summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-21 03:53:18 +0200
committerbunnei <bunneidev@gmail.com>2018-08-21 03:53:18 +0200
commit16db8b9d9f8ef7f9c4d9f7c2dc7628389b42c14d (patch)
tree096094118b984d2a95a1f218dbadf82b46388174
parentgl_shader_decompiler: Implement TextureCube for TEX. (diff)
downloadyuzu-16db8b9d9f8ef7f9c4d9f7c2dc7628389b42c14d.tar
yuzu-16db8b9d9f8ef7f9c4d9f7c2dc7628389b42c14d.tar.gz
yuzu-16db8b9d9f8ef7f9c4d9f7c2dc7628389b42c14d.tar.bz2
yuzu-16db8b9d9f8ef7f9c4d9f7c2dc7628389b42c14d.tar.lz
yuzu-16db8b9d9f8ef7f9c4d9f7c2dc7628389b42c14d.tar.xz
yuzu-16db8b9d9f8ef7f9c4d9f7c2dc7628389b42c14d.tar.zst
yuzu-16db8b9d9f8ef7f9c4d9f7c2dc7628389b42c14d.zip
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp7
1 files changed, 7 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 9e0813a72..34db38787 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -1578,6 +1578,13 @@ private:
}
break;
}
+ case Tegra::Shader::TextureType::Texture3D: {
+ std::string x = regs.GetRegisterAsFloat(instr.gpr8);
+ std::string y = regs.GetRegisterAsFloat(instr.gpr20);
+ std::string z = regs.GetRegisterAsFloat(instr.gpr20.Value() + 1);
+ coord = "vec3 coords = vec3(" + x + ", " + y + ", " + z + ");";
+ break;
+ }
case Tegra::Shader::TextureType::TextureCube: {
std::string x = regs.GetRegisterAsFloat(instr.gpr8);
std::string y = regs.GetRegisterAsFloat(instr.gpr8.Value() + 1);