From 96abadaf422cdbac8aa790104bdcc9dc967ad070 Mon Sep 17 00:00:00 2001 From: Michael Pollind Date: Thu, 21 May 2026 20:05:25 -0700 Subject: [PATCH] add missing non uniform access for material lookup Signed-off-by: Michael Pollind --- Source/Falcor/Scene/Material/MaterialSystem.slang | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Falcor/Scene/Material/MaterialSystem.slang b/Source/Falcor/Scene/Material/MaterialSystem.slang index 59cc62c79c..818dc4e90b 100644 --- a/Source/Falcor/Scene/Material/MaterialSystem.slang +++ b/Source/Falcor/Scene/Material/MaterialSystem.slang @@ -313,7 +313,7 @@ struct MaterialSystem case TextureHandle::Mode::Uniform: return uniformValue; case TextureHandle::Mode::Texture: - return lod.sampleTexture(materialTextures[handle.getTextureID()], s, uv); + return lod.sampleTexture(materialTextures[NonUniformResourceIndex(handle.getTextureID())], s, uv); default: return float4(0.f); }