mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-14 08:47:45 +00:00
Implement 3 coordinate array in TEXS instruction
This commit is contained in:
parent
9e42ffa54e
commit
df2eb1cfdb
1 changed files with 6 additions and 6 deletions
|
@ -2742,12 +2742,12 @@ private:
|
||||||
}
|
}
|
||||||
case 3: {
|
case 3: {
|
||||||
if (is_array) {
|
if (is_array) {
|
||||||
UNIMPLEMENTED_MSG("3-coordinate arrays not fully implemented");
|
const std::string index = regs.GetRegisterAsInteger(instr.gpr8);
|
||||||
const std::string x = regs.GetRegisterAsFloat(instr.gpr8);
|
const std::string x = regs.GetRegisterAsFloat(instr.gpr8.Value() + 1);
|
||||||
const std::string y = regs.GetRegisterAsFloat(instr.gpr20);
|
const std::string y = regs.GetRegisterAsFloat(instr.gpr8.Value() + 2);
|
||||||
coord = "vec2 coords = vec2(" + x + ", " + y + ");";
|
const std::string z = regs.GetRegisterAsFloat(instr.gpr20);
|
||||||
texture_type = Tegra::Shader::TextureType::Texture2D;
|
coord =
|
||||||
is_array = false;
|
"vec4 coords = vec4(" + x + ", " + y + ", " + z + ", " + index + ");";
|
||||||
} else {
|
} else {
|
||||||
const std::string x = regs.GetRegisterAsFloat(instr.gpr8);
|
const std::string x = regs.GetRegisterAsFloat(instr.gpr8);
|
||||||
const std::string y = regs.GetRegisterAsFloat(instr.gpr8.Value() + 1);
|
const std::string y = regs.GetRegisterAsFloat(instr.gpr8.Value() + 1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue