pass_template:
    samplerstates:
        SamplerLinear:
            filter: MIN_MAG_MIP_LINEAR
            addressU: CLAMP
            addressV: CLAMP
    type: RGBA8_uint
    constant-buffers:
        controlBuf: {g_sldSharpen: sharpenSlider, g_sldDenoise: denoiseSlider} 

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: denoiseSlider 
      ui-label: "Ignore Film Grain"
      ui-label-localized:
          cs-CZ: "Ignorovat zrnitost filmu"
          da-DK: "Ignorer Filmkorn"
          de-DE: "Filmkörnung ignorieren"
          el-GR: "Αγνόηση κόκκων φιλμ "
          en-UK: "Ignore Film Grain"
          es-ES: "Ignorar el grano de la película"
          es-MX: "Ignorar el grano de la película"
          fi-FI: "Ohita filmin rakeisuus"
          fr-FR: "Ignorer le grain du film"
          hu: "Filmszemcsésség mellőzése"
          it-IT: "Ignora Granularità"
          ja-JP: "フィルムグレインには適用しない"
          ko-KR: "흐린 노이즈 무시"
          nl-NL: "Filmkorrel negeren"
          nb-NO: "Ignorer bildekorning"
          pl: "Ignoruj ziarnistość filmu"
          pt-PT: "Ignorar grão do filme"
          pt-BR: "Ignorar grão do filme"
          ru-RU: "Игнорировать зернистость"
          sk-SK: "Ignorovať zrnitosť filmu"
          sl-SI: "Ingoriraj zrnatost filma"
          sv-SE: "Ignorera brus"
          th-TH: "ไม่สนใจเกรนฟิล์ม"
          tr-TR: "Film Grenini Yoksay"
          zh-CHS: "忽略胶片颗粒"
          zh-CHT: "忽略影片雜訊"
      default-value: 0.15
      import: [typical_slider2]

main:
    import: [pass_template]
    shader: PS_Sharpen@Sharpen.yfx
    textures:
        texOriginalColor:
            channel: PIPE_INPUTS_COLOR
