forked from ShuriZma/suyu
1
0
Fork 0

gl_shader_decompiler: TEXS: Implement TextureType::TextureCube.

This commit is contained in:
bunnei 2018-09-14 12:18:06 -04:00
parent ed2e0e85c9
commit 15cc729ebd
1 changed files with 8 additions and 0 deletions

View File

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