Skip to content

Commit 50eb207

Browse files
authored
fix(webgpu): Insert fragment constants into fragment descriptor instead of vertex (#7621)
1 parent 285fa48 commit 50eb207

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wgpu/src/backend/webgpu.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2130,7 +2130,7 @@ impl dispatch::DeviceInterface for WebDevice {
21302130
.collect::<js_sys::Array>();
21312131
let module = frag.module.inner.as_webgpu();
21322132
let mapped_fragment_desc = webgpu_sys::GpuFragmentState::new(&module.module, &targets);
2133-
insert_constants_map(&mapped_vertex_state, frag.compilation_options.constants);
2133+
insert_constants_map(&mapped_fragment_desc, frag.compilation_options.constants);
21342134
if let Some(ep) = frag.entry_point {
21352135
mapped_fragment_desc.set_entry_point(ep);
21362136
}

0 commit comments

Comments
 (0)