Constant array initialization requires explicit type constructors
aras-p opened this issue · 0 comments
aras-p commented
Requires explicit type constructors. Note that this only applies to arrays; non-array types now work fine either way.
// This fails:
static const float3 my_array[2] = {
{ 1, 1, 1 },
{ 1, 0, 0 },
};
// This works fine:
static const float3 my_other_array[2] = {
float3( 1, 1, 1 ),
float3( 1, 0, 0 ),
};