shader: Implement LEA

This commit is contained in:
ameerj 2021-03-05 01:15:16 -05:00
parent e47fd18387
commit 67a8a810d2
9 changed files with 136 additions and 29 deletions

View file

@ -30,8 +30,8 @@ void EmitBitCastF64U64(EmitContext&) {
throw NotImplementedException("SPIR-V Instruction");
}
void EmitPackUint2x32(EmitContext&) {
throw NotImplementedException("SPIR-V Instruction");
Id EmitPackUint2x32(EmitContext& ctx, Id value) {
return ctx.OpBitcast(ctx.U64, value);
}
Id EmitUnpackUint2x32(EmitContext& ctx, Id value) {