diff --git a/crates/horizon-client/src/gfx/hd/dlss.rs b/crates/horizon-client/src/gfx/hd/dlss.rs index c48746da5..65db70f99 100644 --- a/crates/horizon-client/src/gfx/hd/dlss.rs +++ b/crates/horizon-client/src/gfx/hd/dlss.rs @@ -1,6 +1,6 @@ //! DLSS Super Resolution behind the native TAA interface. NGX never sees the display-space //! colour used by Horizon: two small conversion passes bracket its command buffer. -use super::{entries, module, target, SAMPLER, UNFILTERED}; +use super::{entries, module, target, FLOAT, SAMPLER}; use dlss_wgpu::{ DlssFeatureFlags, DlssPerfQualityMode, DlssSdk, super_resolution::{DlssSuperResolution, DlssSuperResolutionExposure, DlssSuperResolutionRenderParameters}, @@ -8,7 +8,10 @@ use dlss_wgpu::{ use std::sync::{Arc, Mutex}; const COLOR: &str = include_str!("dlss_color.wgsl"); -const BINDINGS: [wgpu::BindingType; 2] = [UNFILTERED, SAMPLER]; +// The conversion shaders sample with `textureSampleLevel` and the filtering `linear` sampler, so +// the source must be a filterable float texture (HDR is Rgba16Float). A non-filterable binding +// here fails wgpu validation when the pipeline is created on a real DLSS device. +const BINDINGS: [wgpu::BindingType; 2] = [FLOAT, SAMPLER]; struct ColorConvert { input: wgpu::TextureView,