pass_template:
    samplerstates:
        samLinear:
            filter: MIN_MAG_MIP_LINEAR
            addressU: CLAMP
            addressV: CLAMP
        samPointWrap:
            filter: MIN_MAG_MIP_POINT
            addressU: WRAP
            addressV: WRAP
    type: match-color-input
    constant-buffers:
        globalParams: {screenSize: SCREEN_SIZE, elapsedTime: ELAPSED_TIME, captureState: CAPTURE_STATE, tileUV: TILE_UV_RANGE}
        controlBuf: {g_splitPositionSlider: splitPositionSlider, g_rotationSlider: rotationSlider, g_widthSlider: widthSlider, g_hueSlider: hueSlider, g_gradientToggle: gradientToggle, g_sideBySideToggle: sideBySideToggle, g_imageScaleSlider: imageScaleSlider}

typical_slider:
      type: float
      minimum-value: 0.0
      maximum-value: 1.0
      default-value: 0.5
      ui-sticky-region: 0.01
      ui-value-unit: "%"
      ui-value-min: 0
      ui-value-max: 100
      ui-value-step: 1.01
      
rotation_slider:
      type: float
      minimum-value: -180.0
      maximum-value: 180.0
      default-value: 0.0
      ui-sticky-region: 0.0417
      ui-value-unit: "°"
      ui-value-min: -180
      ui-value-max: 180
      ui-value-step: 15.01
      
position_slider:
      type: float
      minimum-value: -0.22
      maximum-value: 1.22
      default-value: 0.5
      ui-sticky-region: 0.0122
      ui-value-unit: "%"
      ui-value-min: 0
      ui-value-max: 100
      ui-value-step: 1.0
      
scale_slider:
      type: float
      minimum-value: 0.5
      maximum-value: 1.0
      default-value: 1.0
      ui-sticky-region: 0.01
      ui-value-unit: "%"
      ui-value-min: 50
      ui-value-max: 100
      ui-value-step: 1.0
      
boolean_toggle:
      type: bool

user-constants:
    - name: sideBySideToggle
      ui-label: "Split & Compare"
      ui-label-localized:
          cs-CZ: "Rozdělit a porovnat"
          da-DK: "Del og sammenlign"
          de-DE: "Teilen & Vergleichen"
          el-GR: "Διαίρεση και σύγκριση"
          en-UK: "Split & Compare"
          es-ES: "Split y comparar"
          es-MX: "Dividir y comparar"
          fi-FI: "Jaa ja vertaile"
          fr-FR: "Séparer et comparer"
          hu: "Felosztás és összehasonlítás"
          it-IT: "Dividere & Confrontare"
          ja-JP: "分割 & 比較"
          ko-KR: "분할 및 비교"
          nl-NL: "Splitsen en vergelijken"
          nb-NO: "Del og sammenlign"
          pl: "Podziel i porównaj"
          pt-PT: "Dividir e comparar"
          pt-BR: "Dividir e Comparar"
          ru-RU: "Разделить и сравнить"
          sk-SK: "Rozdeliť a porovnať"
          sl-SI: "Razdeli in primerjaj"
          sv-SE: "Dela och jämför"
          th-TH: "แยกและเปรียบเทียบ"
          tr-TR: "Böl ve Karşılaştır"
          zh-CHS: "分割并比较"
          zh-CHT: "分割與比較"
      import: [boolean_toggle]
    - name: splitPositionSlider
      ui-label: "Position"
      ui-label-localized:
          cs-CZ: "Poloha"
          da-DK: "Placering"
          de-DE: "Position"
          el-GR: "Τοποθέτηση"
          en-UK: "Position"
          es-ES: "Posición"
          es-MX: "Posición"
          fi-FI: "Sijainti"
          fr-FR: "Position"
          hu: "Pozíció"
          it-IT: "Posizione"
          ja-JP: "位置"
          ko-KR: "위치"
          nl-NL: "Positie"
          nb-NO: "Posisjon"
          pl: "Pozycja"
          pt-PT: "Posição"
          pt-BR: "Posição"
          ru-RU: "Положение"
          sk-SK: "Pozícia"
          sl-SI: "Položaj"
          sv-SE: "Position"
          th-TH: "ตำแหน่ง"
          tr-TR: "Konum"
          zh-CHS: "位置"
          zh-CHT: "位置"
      import: [position_slider]
    - name: rotationSlider
      ui-label: "Rotation"
      ui-label-localized:
          cs-CZ: "Otočení"
          da-DK: "Rotation"
          de-DE: "Drehung"
          el-GR: "Περιστροφή"
          en-UK: "Rotation"
          es-ES: "Rotación"
          es-MX: "Giro"
          fi-FI: "Kierto"
          fr-FR: "Rotation"
          hu: "Elforgatás"
          it-IT: "Rotazione"
          ja-JP: "回転"
          ko-KR: "회전"
          nl-NL: "Draaien"
          nb-NO: "Rotering"
          pl: "Obrót"
          pt-PT: "Rotação"
          pt-BR: "Rotação"
          ru-RU: "Поворот"
          sk-SK: "Otočenie"
          sl-SI: "Zasuk"
          sv-SE: "Rotation"
          th-TH: "การหมุน"
          tr-TR: "Döndürme"
          zh-CHS: "旋转"
          zh-CHT: "旋轉"
      import: [rotation_slider]
    - name: widthSlider
      ui-label: "Divider Width"
      ui-label-localized:
          cs-CZ: "Šířka oddělovače"
          da-DK: "Delingsbredde"
          de-DE: "Trennlinienbreite"
          el-GR: "Πλάτος διαχωριστικού"
          en-UK: "Divider Width"
          es-ES: "Anchura de la división"
          es-MX: "Ancho divisor"
          fi-FI: "Jakajan leveys"
          fr-FR: "Largeur de la ligne de séparation"
          hu: "Osztóvonal szélessége"
          it-IT: "Ampiezza centrale"
          ja-JP: "分割幅"
          ko-KR: "분리기 너비"
          nl-NL: "Breedte scheidingslijn"
          nb-NO: "Delerbredde"
          pl: "Szerokość linii podziału"
          pt-PT: "Largura da divisória"
          pt-BR: "Largura do divisor"
          ru-RU: "Ширина разделителя"
          sk-SK: "Šírka rozdeľovača"
          sl-SI: "Širina pregrad"
          sv-SE: "Delningsbredd"
          th-TH: "ความกว้างของเส้นแบ่งหน้าจอ"
          tr-TR: "Ara Çizgi Kalınlığı"
          zh-CHS: "分隔器宽度"
          zh-CHT: "分隔線寬度"
      default-value: 0.0
      import: [typical_slider]
    - name: hueSlider
      ui-label: "Divider Color"
      ui-label-localized:
          cs-CZ: "Barva oddělovače"
          da-DK: "Delingsfarve"
          de-DE: "Trennlinienfarbe"
          el-GR: "Χρώμα διαχωριστικού"
          en-UK: "Divider Colour"
          es-ES: "Color de la división"
          es-MX: "Color divisor"
          fi-FI: "Jakajan väri"
          fr-FR: "Couleur de la ligne de séparation"
          hu: "Osztóvonal színe"
          it-IT: "Colore del divisore"
          ja-JP: "分割カラー"
          ko-KR: "분리기 컬러"
          nl-NL: "Kleur scheidingslijn"
          nb-NO: "Delerfarge"
          pl: "Kolor linii podziału"
          pt-PT: "Cor da divisória"
          pt-BR: "Cor do divisor"
          ru-RU: "Цвет разделителя"
          sk-SK: "Farba rozdeľovača"
          sl-SI: "Barva pregrade"
          sv-SE: "Delningsfärg"
          th-TH: "สีของเส้นแบ่งหน้าจอ"
          tr-TR: "Ara Çizgi Rengi"
          zh-CHS: "分隔器色彩"
          zh-CHT: "分隔線色彩"
      default-value: 0.0
      import: [typical_slider]
    - name: gradientToggle
      ui-label: "Gradient Fade"
      ui-label-localized:
          cs-CZ: "Intenzita přechodu"
          da-DK: "Gradient udtoning"
          de-DE: "Farbverlauf-Ausblendung"
          el-GR: "Διαβάθμιση αλλαγής χρώματος"
          en-UK: "Gradient Fade"
          es-ES: "Fundido difuminado"
          es-MX: "Visibilidad de la gradiente"
          fi-FI: "Liukuvärin häivytys"
          fr-FR: "Fondu du gradient"
          hu: "Színátmenet élessége"
          it-IT: "Dissolvenza sfumatura"
          ja-JP: "グラデーション度合い"
          ko-KR: "그레디언트 페이드"
          nl-NL: "Geleidelijke vervaging"
          nb-NO: "Gradientuttoning"
          pl: "Zanikanie gradientu"
          pt-PT: "Desvanecimento do gradiente"
          pt-BR: "Distância do gradiente"
          ru-RU: "Плавность градиента"
          sk-SK: "Vykresľovanie gradientu"
          sl-SI: "Izginevanje gradienta"
          sv-SE: "Nedtoningsgradient"
          th-TH: "เลือนหายแบบไล่ระดับสี"
          tr-TR: "Gradyan Silinmesi"
          zh-CHS: "梯度淡出"
          zh-CHT: "漸層淡化"
      import: [boolean_toggle]
    - name: imageScaleSlider
      ui-label: "Zoom"
      ui-label-localized:
          cs-CZ: "Změna velikosti"
          da-DK: "Zoom"
          de-DE: "Zoom"
          el-GR: "Ζουμ"
          en-UK: "Zoom"
          es-ES: "Zoom"
          es-MX: "Zoom"
          fi-FI: "Zoomaus"
          fr-FR: "Zoom"
          hu: "Nagyítás"
          it-IT: "Zoom"
          ja-JP: "ズーム"
          ko-KR: "줌"
          nl-NL: "Zoomen"
          nb-NO: "Zoom"
          pl: "Powiększenie"
          pt-PT: "Zoom"
          pt-BR: "Zoom"
          ru-RU: "Масштаб"
          sk-SK: "Lupa"
          sl-SI: "Povečava"
          sv-SE: "Zoomning"
          th-TH: "ซูม"
          tr-TR: "Yakınlaştırma"
          zh-CHS: "缩放"
          zh-CHT: "縮放"
      import: [scale_slider]

main:
    import: [pass_template]
    shader: PS_Splitscreen@Splitscreen.yfx
    textures:
        texColorProcessed:
            channel: PIPE_INPUTS_COLOR
        texColorRAW:
            channel: PIPE_INPUTS_COLOR_BASE
