From a791e84391aecf26d0a22a2095b1d0d3d6a93285 Mon Sep 17 00:00:00 2001 From: chexit Date: Sat, 21 Nov 2026 16:08:39 +0300 Subject: [PATCH] DLSS colour conversion samples a filterable texture (#124) The display<->linear conversion shaders sample the source with textureSampleLevel and the filtering HD sampler, but the bind group layout declared the source UNFILTERED (Float filterable:false). wgpu rejects a non-filterable texture paired with a filtering sampler when the pipeline is created, which only happens on a real DLSS device (the colour pipelines are built when DLSS initialises, never on the native-TAAU fallback). HDR is Rgba16Float, filterable, so bind the source as FLOAT (filterable:true). Co-Authored-By: Kimi Code --- crates/horizon-client/src/gfx/hd/dlss.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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,