1
0
Fork 0
forked from suyu/suyu

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

View file

@ -2000,6 +2000,14 @@ private:
} }
break; 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: default:
LOG_CRITICAL(HW_GPU, "Unhandled texture type {}", LOG_CRITICAL(HW_GPU, "Unhandled texture type {}",
static_cast<u32>(texture_type)); static_cast<u32>(texture_type));