fix(webgpu): Insert fragment constants into fragment descriptor instead of vertex (#7621)

This commit is contained in:
David Lenaerts 2025-04-30 17:14:17 +02:00 committed by GitHub
parent 285fa48cec
commit 50eb207a77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2130,7 +2130,7 @@ impl dispatch::DeviceInterface for WebDevice {
.collect::<js_sys::Array>();
let module = frag.module.inner.as_webgpu();
let mapped_fragment_desc = webgpu_sys::GpuFragmentState::new(&module.module, &targets);
insert_constants_map(&mapped_vertex_state, frag.compilation_options.constants);
insert_constants_map(&mapped_fragment_desc, frag.compilation_options.constants);
if let Some(ep) = frag.entry_point {
mapped_fragment_desc.set_entry_point(ep);
}