Debian Codegraph @

third_party/spirv-cross/reference/shaders-no-opt/frag/scalar-block-layout-ubo-std430.vk.nocompat.invalid.frag.vk

raw
1 #version 450
2 #extension GL_EXT_scalar_block_layout : require
3
4 layout(set = 0, binding = 0, std430) uniform UBO
5 {
6 float a[1024];
7 vec3 b[2];
8 } _17;
9
10 layout(set = 0, binding = 1, std430) uniform UBOEnhancedLayout
11 {
12 layout(offset = 0) float c[1024];
13 layout(offset = 4096) vec3 d[2];
14 layout(offset = 10000) float e;
15 } _30;
16
17 layout(location = 0) out float FragColor;
18 layout(location = 0) flat in int vIndex;
19
20 void main()
21 {
22 FragColor = (_17.a[vIndex] + _30.c[vIndex]) + _30.e;
23 }
24