xenko
xenko copied to clipboard
Cannot declare structure buffer of matrices in HKSL
Cannot declare structure buffer of matrices in HKSL, the compilation just fails.
StructuredBuffer<float4x4> InstanceTransformBuffer4; // Not allowed at the moment
You can use temporary solution using a structure:
struct MyStruct { float4x4 Value; }; StructuredBuffer<MyStruct> InstanceTransformBuffer4;