SPIRV-Cross-Vulnerable/shaders-msl-no-opt/frag/ubo-array-multiple-structs-access-chain.argument.msl2.frag

19 lines
191 B
GLSL

#version 450
struct Foo
{
vec4 v;
};
layout(set = 0, binding = 0) uniform UBO
{
Foo foo;
} ubos[2];
layout(location = 0) out vec4 FragColor;
void main()
{
FragColor = ubos[1].foo.v;
}