Consolodate barriers
This commit is contained in:
parent
a31e461db8
commit
558752594c
3 changed files with 6 additions and 15 deletions
|
@ -600,13 +600,6 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl.Instructions
|
|||
return $"float2(as_type<half2>({srcExpr})){GetMask(operation.Index)}";
|
||||
}
|
||||
|
||||
public static string MemoryBarrier(CodeGenContext context, AstOperation operation)
|
||||
{
|
||||
var grouped = (operation.Inst & Instruction.Mask) == Instruction.GroupMemoryBarrier;
|
||||
|
||||
return $"threadgroup_barrier(mem_flags::mem_{(grouped ? "threadgroup" : "device")})";
|
||||
}
|
||||
|
||||
private static string GetMask(int index)
|
||||
{
|
||||
return $".{"xy".AsSpan(index, 1)}";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue