glsl: Implement tessellation shaders

This commit is contained in:
ameerj
2021-05-31 23:07:13 -04:00
parent c7d085b505
commit 8c684b3e23
5 changed files with 146 additions and 27 deletions

View File

@ -161,7 +161,7 @@ void EmitFPRecip64(EmitContext& ctx, IR::Inst& inst, std::string_view value) {
void EmitFPRecipSqrt32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst,
[[maybe_unused]] std::string_view value) {
ctx.AddF32("{}=(1.0f)/sqrt({});", inst, value);
ctx.AddF32("{}=inversesqrt({});", inst, value);
}
void EmitFPRecipSqrt64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst,