SPIRV-Cross/shaders-msl-no-opt/packing/struct-packing-array-of-scalar.comp
2019-07-23 15:30:03 +02:00

19 lines
249 B
Plaintext

#version 450
#extension GL_EXT_scalar_block_layout : require
layout(local_size_x = 1) in;
struct Foo
{
vec3 a;
};
layout(scalar, set = 0, binding = 0) buffer SSBOScalar
{
Foo v[];
} buffer_scalar;
void main()
{
buffer_scalar.v[1].a.y = 1.0;
}