mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-09 15:49:59 +00:00
shader: Fix ImageWrite indexing
This commit is contained in:
parent
d738ad4d0b
commit
d093522fac
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ IR::Value MakeCoords(TranslatorVisitor& v, IR::Reg reg, Type type) {
|
||||||
case Type::ARRAY_2D:
|
case Type::ARRAY_2D:
|
||||||
return v.ir.CompositeConstruct(v.X(reg), v.X(reg + 1), array(2));
|
return v.ir.CompositeConstruct(v.X(reg), v.X(reg + 1), array(2));
|
||||||
case Type::_3D:
|
case Type::_3D:
|
||||||
return v.ir.CompositeConstruct(v.X(reg), v.X(reg + 1), v.X(reg + 3));
|
return v.ir.CompositeConstruct(v.X(reg), v.X(reg + 1), v.X(reg + 2));
|
||||||
}
|
}
|
||||||
throw NotImplementedException("Invalid type {}", type);
|
throw NotImplementedException("Invalid type {}", type);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue