mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-30 21:44:21 +01:00
shader: Add 2D and 3D variants to SUATOM and SURED
Used by Claybook.
This commit is contained in:
parent
b02c78b276
commit
ec9a78885e
@ -76,6 +76,10 @@ IR::Value MakeCoords(TranslatorVisitor& v, IR::Reg reg, Type type) {
|
|||||||
case Type::_1D:
|
case Type::_1D:
|
||||||
case Type::BUFFER_1D:
|
case Type::BUFFER_1D:
|
||||||
return v.X(reg);
|
return v.X(reg);
|
||||||
|
case Type::_2D:
|
||||||
|
return v.ir.CompositeConstruct(v.X(reg), v.X(reg + 1));
|
||||||
|
case Type::_3D:
|
||||||
|
return v.ir.CompositeConstruct(v.X(reg), v.X(reg + 1), v.X(reg + 2));
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user