xenko icon indicating copy to clipboard operation
xenko copied to clipboard

Cannot declare structure buffer of matrices in HKSL

Open matmuze opened this issue 7 years ago • 1 comments

Cannot declare structure buffer of matrices in HKSL, the compilation just fails.

StructuredBuffer<float4x4> InstanceTransformBuffer4; // Not allowed at the moment

matmuze avatar May 31 '17 13:05 matmuze

You can use temporary solution using a structure: struct MyStruct { float4x4 Value; }; StructuredBuffer<MyStruct> InstanceTransformBuffer4;

mafiesto4 avatar Jun 01 '17 04:06 mafiesto4