SPIRV-Cross/shaders-msl/comp/struct-nested.comp

20 lines
259 B
Plaintext

#version 450
struct s1
{
int a;
};
struct s2
{
s1 b;
};
layout(std430, binding = 1) buffer dstbuffer{ s2 test[]; };
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main()
{
s2 testVal;
testVal.b.a = 0;
test[0] = testVal;
}