| 1 |
#ifndef SPIRV_CROSS_CONSTANT_ID_10 |
| 2 |
#define SPIRV_CROSS_CONSTANT_ID_10 2 |
| 3 |
#endif |
| 4 |
static const int Value = SPIRV_CROSS_CONSTANT_ID_10; |
| 5 |
|
| 6 |
cbuffer SpecConstArray : register(b0) |
| 7 |
{ |
| 8 |
float4 _15_samples[Value] : packoffset(c0); |
| 9 |
}; |
| 10 |
|
| 11 |
|
| 12 |
static float4 FragColor; |
| 13 |
static int Index; |
| 14 |
|
| 15 |
struct SPIRV_Cross_Input |
| 16 |
{ |
| 17 |
nointerpolation int Index : TEXCOORD0; |
| 18 |
}; |
| 19 |
|
| 20 |
struct SPIRV_Cross_Output |
| 21 |
{ |
| 22 |
float4 FragColor : SV_Target0; |
| 23 |
}; |
| 24 |
|
| 25 |
void frag_main() |
| 26 |
{ |
| 27 |
FragColor = _15_samples[Index]; |
| 28 |
} |
| 29 |
|
| 30 |
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input) |
| 31 |
{ |
| 32 |
Index = stage_input.Index; |
| 33 |
frag_main(); |
| 34 |
SPIRV_Cross_Output stage_output; |
| 35 |
stage_output.FragColor = FragColor; |
| 36 |
return stage_output; |
| 37 |
} |