3
0
Fork 0
forked from suyu/suyu

gl_shader_decompiler: Implement Texture3D for TEXS.

This commit is contained in:
bunnei 2018-08-20 21:53:18 -04:00
parent 948002635f
commit 16db8b9d9f

View file

@ -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);