summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend/glsl/emit_glsl_floating_point.cpp
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-06-01 05:07:13 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:37 +0200
commit8c684b3e2327bc7b0c02f2a22dbf52c11884ecd3 (patch)
tree7312ad1f04957f63a0a848f71f47271a5d29b234 /src/shader_recompiler/backend/glsl/emit_glsl_floating_point.cpp
parentglsl: Implement ImageGradient and other texture function variants (diff)
downloadyuzu-8c684b3e2327bc7b0c02f2a22dbf52c11884ecd3.tar
yuzu-8c684b3e2327bc7b0c02f2a22dbf52c11884ecd3.tar.gz
yuzu-8c684b3e2327bc7b0c02f2a22dbf52c11884ecd3.tar.bz2
yuzu-8c684b3e2327bc7b0c02f2a22dbf52c11884ecd3.tar.lz
yuzu-8c684b3e2327bc7b0c02f2a22dbf52c11884ecd3.tar.xz
yuzu-8c684b3e2327bc7b0c02f2a22dbf52c11884ecd3.tar.zst
yuzu-8c684b3e2327bc7b0c02f2a22dbf52c11884ecd3.zip
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_glsl_floating_point.cpp')
-rw-r--r--src/shader_recompiler/backend/glsl/emit_glsl_floating_point.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_floating_point.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_floating_point.cpp
index 49ab182ea..f4b81407a 100644
--- a/src/shader_recompiler/backend/glsl/emit_glsl_floating_point.cpp
+++ b/src/shader_recompiler/backend/glsl/emit_glsl_floating_point.cpp
@@ -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,