| 1 |
#include <metal_stdlib> |
| 2 |
#include <simd/simd.h> |
| 3 |
|
| 4 |
using namespace metal; |
| 5 |
|
| 6 |
#ifndef SPIRV_CROSS_CONSTANT_ID_10 |
| 7 |
#define SPIRV_CROSS_CONSTANT_ID_10 2 |
| 8 |
#endif |
| 9 |
constant int Value = SPIRV_CROSS_CONSTANT_ID_10; |
| 10 |
|
| 11 |
struct SpecConstArray |
| 12 |
{ |
| 13 |
float4 samples[Value]; |
| 14 |
}; |
| 15 |
|
| 16 |
struct main0_out |
| 17 |
{ |
| 18 |
float4 FragColor [[color(0)]]; |
| 19 |
}; |
| 20 |
|
| 21 |
struct main0_in |
| 22 |
{ |
| 23 |
int Index [[user(locn0)]]; |
| 24 |
}; |
| 25 |
|
| 26 |
fragment main0_out main0(main0_in in [[stage_in]], constant SpecConstArray& _15 [[buffer(0)]]) |
| 27 |
{ |
| 28 |
main0_out out = {}; |
| 29 |
out.FragColor = _15.samples[in.Index]; |
| 30 |
return out; |
| 31 |
} |
| 32 |
|