mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-24 10:23:01 -06:00
shader: Fix undetected bug from review
This commit is contained in:
parent
ed6a1b1a3d
commit
e7700aad18
1 changed files with 3 additions and 0 deletions
|
@ -86,10 +86,13 @@ void IREmitter::MemoryBarrier(MemoryScope scope) {
|
|||
switch (scope) {
|
||||
case MemoryScope::Workgroup:
|
||||
Inst(Opcode::MemoryBarrierWorkgroupLevel);
|
||||
break;
|
||||
case MemoryScope::Device:
|
||||
Inst(Opcode::MemoryBarrierDeviceLevel);
|
||||
break;
|
||||
case MemoryScope::System:
|
||||
Inst(Opcode::MemoryBarrierSystemLevel);
|
||||
break;
|
||||
default:
|
||||
throw InvalidArgument("Invalid memory scope {}", scope);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue