Debian Codegraph @

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

raw
1 #include <metal_stdlib>
2 #include <simd/simd.h>
3
4 using namespace metal;
5
6 struct UBO
7 {
8 float a[1];
9 float2 b[2];
10 };
11
12 struct UBOEnhancedLayout
13 {
14 float c[1];
15 float2 d[2];
16 char _m2_pad[9976];
17 float e;
18 };
19
20 struct main0_out
21 {
22 float FragColor [[color(0)]];
23 };
24
25 struct main0_in
26 {
27 int vIndex [[user(locn0)]];
28 };
29
30 fragment main0_out main0(main0_in in [[stage_in]], constant UBO& _17 [[buffer(0)]], constant UBOEnhancedLayout& _30 [[buffer(1)]])
31 {
32 main0_out out = {};
33 out.FragColor = (_17.a[in.vIndex] + _30.c[in.vIndex]) + _30.e;
34 return out;
35 }
36