diff options
author | bunnei <bunneidev@gmail.com> | 2019-04-05 04:36:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-05 04:36:19 +0200 |
commit | f7d6e0868853208ceb0bd3da9ed7266efff59bea (patch) | |
tree | d82450778b17d32657432bbdebf62afe3affefc5 | |
parent | Merge pull request #2331 from lioncash/cache (diff) | |
parent | gl_shader_decompiler: Fix TXQ types (diff) | |
download | yuzu-f7d6e0868853208ceb0bd3da9ed7266efff59bea.tar yuzu-f7d6e0868853208ceb0bd3da9ed7266efff59bea.tar.gz yuzu-f7d6e0868853208ceb0bd3da9ed7266efff59bea.tar.bz2 yuzu-f7d6e0868853208ceb0bd3da9ed7266efff59bea.tar.lz yuzu-f7d6e0868853208ceb0bd3da9ed7266efff59bea.tar.xz yuzu-f7d6e0868853208ceb0bd3da9ed7266efff59bea.tar.zst yuzu-f7d6e0868853208ceb0bd3da9ed7266efff59bea.zip |
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index 11d1169f0..7300a4037 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -1196,11 +1196,12 @@ private: switch (meta->element) { case 0: case 1: - return "textureSize(" + sampler + ", " + lod + ')' + GetSwizzle(meta->element); + return "itof(int(textureSize(" + sampler + ", " + lod + ')' + + GetSwizzle(meta->element) + "))"; case 2: return "0"; case 3: - return "textureQueryLevels(" + sampler + ')'; + return "itof(textureQueryLevels(" + sampler + "))"; } UNREACHABLE(); return "0"; |