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: 5

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: 5

user-constants:
    - name: sharpenSlider 
      ui-label: "Sharpen"
      ui-label-localized:
          ru-RU:  "Резкость"
          fr-FR:  "Accentuation"
          it-IT:  "Messa a fuoco"
          de-DE:  "Schärfen"
          es-ES:  "Nitidez"
          es-MX:  "Enfoque"
          zh-CHS: "锐化"
          zh-CHT: "銳化"
          ja-JP:  "シャープにする"
          cs-CZ:  "Zaostřit"
          da-DK:  "Gør skarpere"
          el-GR:  "Αύξηση ευκρίνειας"
          en-UK:  "Sharpen"
          fi-FI:  "Terävöitä"
          hu: "Élesítés"
          ko-KR:  "선명도"
          nl-NL:  "Scherper maken"
          nb-NO:  "Gjør skarpere"
          pl: "Wyostrzanie"
          pt-PT:  "Nitidez"
          pt-BR:  "Nitidez"
          sl-SI:  "Ostrenje"
          sk-SK:  "Zostriť"
          sv-SE:  "Skärpa"
          th-TH:  "ทำให้คมชัดขึ้น"
          tr-TR:  "Keskinleştirme"
      default-value: 0.0
      ui-sticky-value: 0.0
      import: [typical_slider2]
    - name: claritySlider 
      ui-label: "Clarity"
      ui-label-localized:
          ru-RU:  "Четкость"
          fr-FR:  "Clarté"
          it-IT:  "Nitidezza"
          de-DE:  "Klarheit"
          es-ES:  "Claridad"
          es-MX:  "Claridad"
          zh-CHS: "清晰度"
          zh-CHT: "清晰度"
          ja-JP:  "鮮明さ"
          cs-CZ:  "Čirost"
          da-DK:  "Klarhed"
          el-GR:  "Καθαρότητα"
          en-UK:  "Clarity"
          fi-FI:  "Selkeys"
          hu: "Tisztaság"
          ko-KR:  "투명도"
          nl-NL:  "Helderheid"
          nb-NO:  "Klarhet"
          pl: "Przejrzystość"
          pt-PT:  "Claridade"
          pt-BR:  "Claridade"
          sl-SI:  "Jasnost"
          sk-SK:  "Jasnosť"
          sv-SE:  "Klarhet"
          th-TH:  "ความชัดเจน"
          tr-TR:  "Netlik"        
      default-value: 0.0
      ui-sticky-value: 0.0
      import: [typical_slider1]      
    - name: hdrSlider 
      ui-label: "HDR Toning"
      ui-label-localized:
          ru-RU:  "Тонирование HDR"
          fr-FR:  "Tonalité HDR"
          it-IT:  "HDR"
          de-DE:  "HDR-Toning"
          es-ES:  "Tono HDR"
          es-MX:  "Tono de HDR"
          zh-CHS: "高动态范围 (HDR) 调色"
          zh-CHT: "HDR 色調"
          ja-JP:  "HDRトーニング"
          cs-CZ:  "Tónování HDR"
          da-DK:  "HDR-toning"
          el-GR:  "Τόνος HDR"
          en-UK:  "HDR toning"
          fi-FI:  "HDR-sävytys"
          hu: "HDR árnyalatok"
          ko-KR:  "HDR 조색"
          nl-NL:  "HDR-toning"
          nb-NO:  "HDR-toning"
          pl: "Tonowanie HDR"
          pt-PT:  "Tonalidade HDR"
          pt-BR:  "Tonalização do HDR"
          sl-SI:  "Toniranje HDR"
          sk-SK:  "Tónovanie HDR"
          sv-SE:  "HDR-toning"
          th-TH:  "HDR โทนนิ่ง"
          tr-TR:  "HDR tonlama"      
      default-value: 0.0
      ui-sticky-value: 0.0
      import: [typical_slider1]   
    - name: bloomSlider 
      ui-label: "Bloom"
      ui-label-localized:
          ru-RU:  "Размытие"
          fr-FR:  "Flou"
          it-IT:  "Patinatura"
          de-DE:  "Überstrahleffekte"
          es-ES:  "Bloom (resplandor)"
          es-MX:  "Brillo de iluminación"
          zh-CHS: "全屏泛光"
          zh-CHT: "光暈"
          ja-JP:  "ブルーム"
          cs-CZ:  "Záře"
          da-DK:  "Bloom"
          el-GR:  "Bloom"
          en-UK:  "Bloom"
          fi-FI:  "Bloom-tehoste"
          hu: "Virág"
          ko-KR:  "블룸"
          nl-NL:  "Bloom-effect"
          nb-NO:  "Bloom"
          pl: "Rozświetlenie"
          pt-PT:  "Brilho"
          pt-BR:  "Bloom"
          sl-SI:  "Žarenje"
          sk-SK:  "Žiara"
          sv-SE:  "Bloom"
          th-TH:  "บลูม"
          tr-TR:  "Bloom"        
      default-value: 0.0
      ui-sticky-value: 0.0
      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
