Debian Codegraph @

third_party/spirv-cross/reference/shaders-msl/asm/frag/empty-struct.asm.frag

raw
1 #pragma clang diagnostic ignored "-Wmissing-prototypes"
2
3 #include <metal_stdlib>
4 #include <simd/simd.h>
5
6 using namespace metal;
7
8 struct EmptyStructTest
9 {
10 };
11 static inline __attribute__((always_inline))
12 float GetValue(thread const EmptyStructTest& self)
13 {
14 return 0.0;
15 }
16
17 static inline __attribute__((always_inline))
18 float GetValue_1(EmptyStructTest self)
19 {
20 return 0.0;
21 }
22
23 fragment void main0()
24 {
25 EmptyStructTest emptyStruct;
26 float value = GetValue(emptyStruct);
27 value = GetValue_1(EmptyStructTest{ });
28 }
29