glsl: Implement more instructions used by SMO

This commit is contained in:
ameerj 2021-05-29 21:12:52 -04:00
parent 80eec85867
commit 7df0815117
5 changed files with 18 additions and 12 deletions

View file

@ -16,7 +16,7 @@ void EmitConvertS16F16([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::I
void EmitConvertS16F32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst,
[[maybe_unused]] std::string_view value) {
throw NotImplementedException("GLSL Instruction");
ctx.AddS32("{}=int(float({}))&0xffff;", inst, value);
}
void EmitConvertS16F64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst,