diff options
| author | 2021-06-03 19:15:36 -0400 | |
|---|---|---|
| committer | 2021-07-22 21:51:37 -0400 | |
| commit | 8d8ce24f20649be639dbb3cc0f3edc90c6a6481e (patch) | |
| tree | b85e6fd9a9440cdfe6abaab483f5a98a8ee5159f /src/shader_recompiler/backend/glsl/var_alloc.cpp | |
| parent | glsl: Implement Images (diff) | |
| download | yuzu-8d8ce24f20649be639dbb3cc0f3edc90c6a6481e.tar.gz yuzu-8d8ce24f20649be639dbb3cc0f3edc90c6a6481e.tar.xz yuzu-8d8ce24f20649be639dbb3cc0f3edc90c6a6481e.zip | |
glsl: Implement Load/WriteGlobal
along with some other misc changes and fixes
Diffstat (limited to 'src/shader_recompiler/backend/glsl/var_alloc.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glsl/var_alloc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shader_recompiler/backend/glsl/var_alloc.cpp b/src/shader_recompiler/backend/glsl/var_alloc.cpp index 1ab64add4..0ae56651e 100644 --- a/src/shader_recompiler/backend/glsl/var_alloc.cpp +++ b/src/shader_recompiler/backend/glsl/var_alloc.cpp | |||
| @@ -58,13 +58,13 @@ std::string FormatFloat(std::string_view value, IR::Type type) { | |||
| 58 | // TODO: Confirm FP64 nan/inf | 58 | // TODO: Confirm FP64 nan/inf |
| 59 | if (type == IR::Type::F32) { | 59 | if (type == IR::Type::F32) { |
| 60 | if (value == "nan") { | 60 | if (value == "nan") { |
| 61 | return "uintBitsToFloat(0x7fc00000)"; | 61 | return "utof(0x7fc00000)"; |
| 62 | } | 62 | } |
| 63 | if (value == "inf") { | 63 | if (value == "inf") { |
| 64 | return "uintBitsToFloat(0x7f800000)"; | 64 | return "utof(0x7f800000)"; |
| 65 | } | 65 | } |
| 66 | if (value == "-inf") { | 66 | if (value == "-inf") { |
| 67 | return "uintBitsToFloat(0xff800000)"; | 67 | return "utof(0xff800000)"; |
| 68 | } | 68 | } |
| 69 | } | 69 | } |
| 70 | if (value.find_first_of('e') != std::string_view::npos) { | 70 | if (value.find_first_of('e') != std::string_view::npos) { |