mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
fix(webgpu): Insert fragment constants into fragment descriptor instead of vertex (#7621)
This commit is contained in:
parent
285fa48cec
commit
50eb207a77
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user