third_party/spirv-cross/reference/shaders-msl-no-opt/frag/16bit-constants.invalid.frag
raw| 1 | #include <metal_stdlib> |
| 2 | #include <simd/simd.h> |
| 3 | |
| 4 | using namespace metal; |
| 5 | |
| 6 | struct main0_out |
| 7 | { |
| 8 | half foo [[color(0)]]; |
| 9 | short bar [[color(1)]]; |
| 10 | ushort baz [[color(2)]]; |
| 11 | }; |
| 12 | |
| 13 | fragment main0_out main0() |
| 14 | { |
| 15 | main0_out out = {}; |
| 16 | out.foo = half(1.0); |
| 17 | out.bar = short(2); |
| 18 | out.baz = ushort(3); |
| 19 | return out; |
| 20 | } |
| 21 |