mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
Fix detection of local_invocation_id for zero initialization of workgroup memory (#7962)
This commit is contained in:
parent
76dba55e8d
commit
33b9f86cc4
@ -760,7 +760,7 @@ impl Writer {
|
||||
.push(Instruction::load(type_id, id, varying_id, None));
|
||||
constituent_ids.push(id);
|
||||
|
||||
if binding == &crate::Binding::BuiltIn(crate::BuiltIn::GlobalInvocationId) {
|
||||
if binding == &crate::Binding::BuiltIn(crate::BuiltIn::LocalInvocationId) {
|
||||
local_invocation_id = Some(id);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user