summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend/glsl/reg_alloc.cpp
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-05-22 08:32:57 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:36 +0200
commit65c6f73e436ba3116030277a7a8bcb563f9554e2 (patch)
tree379f8ed7647aa543e54ef953cc39d761b85c192e /src/shader_recompiler/backend/glsl/reg_alloc.cpp
parentglsl: Add many FP32/64 instructions (diff)
downloadyuzu-65c6f73e436ba3116030277a7a8bcb563f9554e2.tar
yuzu-65c6f73e436ba3116030277a7a8bcb563f9554e2.tar.gz
yuzu-65c6f73e436ba3116030277a7a8bcb563f9554e2.tar.bz2
yuzu-65c6f73e436ba3116030277a7a8bcb563f9554e2.tar.lz
yuzu-65c6f73e436ba3116030277a7a8bcb563f9554e2.tar.xz
yuzu-65c6f73e436ba3116030277a7a8bcb563f9554e2.tar.zst
yuzu-65c6f73e436ba3116030277a7a8bcb563f9554e2.zip
Diffstat (limited to '')
-rw-r--r--src/shader_recompiler/backend/glsl/reg_alloc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shader_recompiler/backend/glsl/reg_alloc.cpp b/src/shader_recompiler/backend/glsl/reg_alloc.cpp
index 039236689..c370aabb5 100644
--- a/src/shader_recompiler/backend/glsl/reg_alloc.cpp
+++ b/src/shader_recompiler/backend/glsl/reg_alloc.cpp
@@ -30,11 +30,11 @@ std::string MakeImm(const IR::Value& value) {
case IR::Type::U1:
return fmt::format("{}", value.U1() ? "true" : "false");
case IR::Type::U32:
- return fmt::format("{}", value.U32());
+ return fmt::format("{}u", value.U32());
case IR::Type::F32:
- return fmt::format("{}", value.F32());
+ return fmt::format("{}f", value.F32());
case IR::Type::U64:
- return fmt::format("{}", value.U64());
+ return fmt::format("{}ul", value.U64());
case IR::Type::F64:
return fmt::format("{}", value.F64());
default: