pass_template:
    samplerstates:
        SamplerLinear:
            filter: MIN_MAG_MIP_LINEAR
            addressU: CLAMP
            addressV: CLAMP
    type: RGBA8_uint
    constant-buffers:
        globalParams: {screenSize: SCREEN_SIZE, captureState: CAPTURE_STATE, tileUV: TILE_UV_RANGE}
        controlBuf: {g_sldSharpen: sharpenSlider, g_sldClarity : claritySlider, g_sldHDR : hdrSlider, g_sldBloom : bloomSlider} 

typical_slider1:
      type: float
      minimum-value: -1.0
      maximum-value: 1.0
      default-value: 0.0
      ui-sticky-region: 0.01
      ui-value-unit: "%"
      ui-value-min: -100
      ui-value-max: 100
      ui-value-step: 2.01

typical_slider2:
      type: float
      minimum-value: 0.0
      maximum-value: 1.0
      default-value: 0.0
      ui-sticky-region: 0.01
      ui-value-unit: "%"
      ui-value-min: 0
      ui-value-max: 100
      ui-value-step: 1.01

user-constants:
    - name: sharpenSlider 
      ui-label: "Sharpen"
      ui-label-localized:
          cs-CZ: "Zostření"
          da-DK: "Gør skarpere"
          de-DE: "Schärfen"
          el-GR: "Όξυνση"
          en-UK: "Sharpen"
          es-ES: "Enfocar"
          es-MX: "Nitidez"
          fi-FI: "Terävöitä"
          fr-FR: "Affiner"
          hu: "Élesítés"
          it-IT: "Nitidezza"
          ja-JP: "鮮鋭化"
          ko-KR: "선명화"
          nl-NL: "Scherpstellen"
          nb-NO: "Gjør skarpere"
          pl: "Wyostrzenie"
          pt-PT: "Acentuar"
          pt-BR: "Nitidez"
          ru-RU: "Резкость"
          sk-SK: "Zaostrenie"
          sl-SI: "Izostritev"
          sv-SE: "Skärpt"
          th-TH: "ทำให้คมชัด"
          tr-TR: "Keskinleştirme"
          zh-CHS: "使明朗"
          zh-CHT: "鮮明化"
      default-value: 0.5
      import: [typical_slider2]
    - name: claritySlider 
      ui-label: "Clarity"
      ui-label-localized:
          cs-CZ: "Jasnost"
          da-DK: "Klarhed"
          de-DE: "Klarheit"
          el-GR: "Διαύγεια"
          en-UK: "Clarity"
          es-ES: "Claridad"
          es-MX: "Claridad"
          fi-FI: "Kirkkaus"
          fr-FR: "Clarté"
          hu: "Tisztaság"
          it-IT: "Chiarezza"
          ja-JP: "鮮明度"
          ko-KR: "선명도"
          nl-NL: "Helderheid"
          nb-NO: "Klarhet"
          pl: "Przejrzystość"
          pt-PT: "Claridade"
          pt-BR: "Clareza"
          ru-RU: "Четкость"
          sk-SK: "Jas"
          sl-SI: "Jasnost"
          sv-SE: "Klarhet"
          th-TH: "ความชัดเจน"
          tr-TR: "Berraklık"
          zh-CHS: "明亮度"
          zh-CHT: "清晰度"
      default-value: 0.7
      import: [typical_slider1]      
    - name: hdrSlider 
      ui-label: "HDR Toning"
      ui-label-localized:
          cs-CZ: "Tónování HDR"
          da-DK: "HDR-toning"
          de-DE: "HDR-Tönung"
          el-GR: "Τόνωση HDR"
          en-UK: "HDR Toning"
          es-ES: "Tonos HDR"
          es-MX: "Tonalidad de HDR"
          fi-FI: "HDR-sävytys"
          fr-FR: "Tonalité HDR"
          hu: "HDR tónusozás"
          it-IT: "Tonalità HDR"
          ja-JP: "HDR トーニング"
          ko-KR: "HDR 토닝"
          nl-NL: "HDR-tonen"
          nb-NO: "HDR-toning"
          pl: "Tonowanie HDR"
          pt-PT: "Tonalidade HDR"
          pt-BR: "Tonificação HDR"
          ru-RU: "Тонирование HDR"
          sk-SK: "Tónovanie HDR"
          sl-SI: "HDR niansiranje"
          sv-SE: "HDR-toning"
          th-TH: "การปรับภาพแบบ HDR Toning"
          tr-TR: "HDR Tonlaması"
          zh-CHS: "HDR 调色"
          zh-CHT: "高動態範圍色調"
      default-value: 0.6
      import: [typical_slider1]   
    - name: bloomSlider 
      ui-label: "Bloom"
      ui-label-localized:
          cs-CZ: "Přesvětlení"
          da-DK: "Skær"
          de-DE: "Überstrahlung"
          el-GR: "Άνθισμα"
          en-UK: "Bloom"
          es-ES: "Bloom"
          es-MX: "Bloom"
          fi-FI: "Hohde"
          fr-FR: "Flou lumineux"
          hu: "Ellenfény"
          it-IT: "Blooming"
          ja-JP: "ブルーム"
          ko-KR: "블룸"
          nl-NL: "Bloom"
          nb-NO: "Lyskontur"
          pl: "Rozświetlenie"
          pt-PT: "Auréola"
          pt-BR: "Bloom"
          ru-RU: "Bloom"
          sk-SK: "Žiara"
          sl-SI: "Žarenje"
          sv-SE: "Bakljus"
          th-TH: "แสงบาน"
          tr-TR: "Işık Patlaması"
          zh-CHS: "泛光"
          zh-CHT: "光暈"
      default-value: 0.15
      import: [typical_slider2]  


blur1:
    import: [pass_template]
    shader: PS_LargeBlur1@Details.yfx
    textures:
        texOriginalColor:
            channel: PIPE_INPUTS_COLOR

main:
    import: [pass_template]
    shader: PS_SharpenClarity@Details.yfx
    textures:
        texBlurred:
            import: [blur1]
        texOriginalColor:
            channel: PIPE_INPUTS_COLOR
