MSL: Cleanup decoration forwarding for SampleMask.
Don't want to create Meta instances unless we have to.
This commit is contained in:
parent
db55d474f9
commit
43842cefb3
@ -5299,10 +5299,8 @@ void CompilerMSL::emit_instruction(const Instruction &instruction)
|
||||
{
|
||||
uint32_t id = ops[1];
|
||||
uint32_t ptr = ops[2];
|
||||
if (ir.meta[ptr].decoration.builtin_type == BuiltInSampleMask)
|
||||
{
|
||||
ir.meta[id].decoration.builtin_type = BuiltInSampleMask;
|
||||
}
|
||||
if (BuiltIn(get_decoration(ptr, DecorationBuiltIn)) == BuiltInSampleMask)
|
||||
set_decoration(id, DecorationBuiltIn, BuiltInSampleMask);
|
||||
CompilerGLSL::emit_instruction(instruction);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user