mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-27 01:02:48 +01:00
gl_shader_decompiler: Implement TextureCube for TEX.
This commit is contained in:
parent
ea99819f37
commit
948002635f
1 changed files with 8 additions and 0 deletions
|
@ -1525,6 +1525,14 @@ private:
|
||||||
coord = "vec3 coords = vec3(" + x + ", " + y + ", " + z + ");";
|
coord = "vec3 coords = vec3(" + x + ", " + y + ", " + z + ");";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case Tegra::Shader::TextureType::TextureCube: {
|
||||||
|
std::string x = regs.GetRegisterAsFloat(instr.gpr8);
|
||||||
|
std::string y = regs.GetRegisterAsFloat(instr.gpr8.Value() + 1);
|
||||||
|
std::string z = regs.GetRegisterAsFloat(instr.gpr8.Value() + 2);
|
||||||
|
ASSERT(instr.gpr20.Value() == Register::ZeroIndex);
|
||||||
|
coord = "vec3 coords = vec3(" + x + ", " + y + ", " + z + ");";
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
LOG_CRITICAL(HW_GPU, "Unhandled texture type {}",
|
LOG_CRITICAL(HW_GPU, "Unhandled texture type {}",
|
||||||
static_cast<u32>(instr.tex.texture_type.Value()));
|
static_cast<u32>(instr.tex.texture_type.Value()));
|
||||||
|
|
Loading…
Reference in a new issue