From b0256e53755c2817ef8e9b5a09e71d9a2b152bca Mon Sep 17 00:00:00 2001 From: bridgewaterrobbie Date: Wed, 26 Mar 2025 17:53:10 -0400 Subject: [PATCH] Allow non uniform derivitives --- libs/filamat/src/GLSLPostProcessor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/filamat/src/GLSLPostProcessor.cpp b/libs/filamat/src/GLSLPostProcessor.cpp index 75e819bca6..098762b9b8 100644 --- a/libs/filamat/src/GLSLPostProcessor.cpp +++ b/libs/filamat/src/GLSLPostProcessor.cpp @@ -525,8 +525,8 @@ bool GLSLPostProcessor::spirvToWgsl(SpirvBlob *spirv, std::string *outWsl) { spv::spirvbin_t remapper(0); remapper.remap(*spirv, spv::spirvbin_base_t::DCE_ALL); - //Currently no options we want to use - const tint::spirv::reader::Options readerOpts{}; + //Allow non-uniform derivitives due to our nested shaders. See https://github.com/gpuweb/gpuweb/issues/3479 + const tint::spirv::reader::Options readerOpts{true}; tint::wgsl::writer::Options writerOpts{}; tint::Program tintRead = tint::spirv::reader::Read(*spirv, readerOpts);