diff options
author | bunnei <bunneidev@gmail.com> | 2018-09-14 18:18:06 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-09-30 20:31:58 +0200 |
commit | 15cc729ebdd9f5053a16e2d9e1e7bab6d62aff8a (patch) | |
tree | 40b6154573084d317268e286ad76a175e59ef5a1 /src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |
parent | gl_rasterizer_cache: Add support for SurfaceTarget::TextureCubemap. (diff) | |
download | yuzu-15cc729ebdd9f5053a16e2d9e1e7bab6d62aff8a.tar yuzu-15cc729ebdd9f5053a16e2d9e1e7bab6d62aff8a.tar.gz yuzu-15cc729ebdd9f5053a16e2d9e1e7bab6d62aff8a.tar.bz2 yuzu-15cc729ebdd9f5053a16e2d9e1e7bab6d62aff8a.tar.lz yuzu-15cc729ebdd9f5053a16e2d9e1e7bab6d62aff8a.tar.xz yuzu-15cc729ebdd9f5053a16e2d9e1e7bab6d62aff8a.tar.zst yuzu-15cc729ebdd9f5053a16e2d9e1e7bab6d62aff8a.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_shader_decompiler.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index b3e95187e..320babdb1 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -2000,6 +2000,14 @@ private: } break; } + case Tegra::Shader::TextureType::TextureCube: { + ASSERT_MSG(!is_array, "Unimplemented"); + std::string x = regs.GetRegisterAsFloat(instr.gpr8); + std::string y = regs.GetRegisterAsFloat(instr.gpr8.Value() + 1); + std::string z = regs.GetRegisterAsFloat(instr.gpr20); + coord = "vec3 coords = vec3(" + x + ", " + y + ", " + z + ");"; + break; + } default: LOG_CRITICAL(HW_GPU, "Unhandled texture type {}", static_cast<u32>(texture_type)); |