mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-22 20:05:38 +01:00
gl_shader_decompiler: TEXS: Implement TextureType::TextureCube.
This commit is contained in:
parent
ed2e0e85c9
commit
15cc729ebd
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user