| 1 |
Texture2D<float4> uSampler[4] : register(t0); |
| 2 |
SamplerState _uSampler_sampler[4] : register(s0); |
| 3 |
Texture2D<float4> uTextures[4] : register(t8); |
| 4 |
SamplerState uSamplers[4] : register(s4); |
| 5 |
|
| 6 |
static int vIndex; |
| 7 |
static float2 vTex; |
| 8 |
static float4 FragColor; |
| 9 |
|
| 10 |
struct SPIRV_Cross_Input |
| 11 |
{ |
| 12 |
nointerpolation float2 vTex : TEXCOORD0; |
| 13 |
nointerpolation int vIndex : TEXCOORD1; |
| 14 |
}; |
| 15 |
|
| 16 |
struct SPIRV_Cross_Output |
| 17 |
{ |
| 18 |
float4 FragColor : SV_Target0; |
| 19 |
}; |
| 20 |
|
| 21 |
void frag_main() |
| 22 |
{ |
| 23 |
FragColor = 0.0f.xxxx; |
| 24 |
FragColor += uTextures[2].Sample(uSamplers[1], vTex); |
| 25 |
FragColor += uSampler[vIndex].Sample(_uSampler_sampler[vIndex], vTex); |
| 26 |
FragColor += uSampler[vIndex].Sample(_uSampler_sampler[vIndex], vTex + 0.100000001490116119384765625f.xx); |
| 27 |
FragColor += uSampler[vIndex].Sample(_uSampler_sampler[vIndex], vTex + 0.20000000298023223876953125f.xx); |
| 28 |
FragColor += uSampler[3].Sample(_uSampler_sampler[3], vTex + 0.300000011920928955078125f.xx); |
| 29 |
} |
| 30 |
|
| 31 |
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input) |
| 32 |
{ |
| 33 |
vIndex = stage_input.vIndex; |
| 34 |
vTex = stage_input.vTex; |
| 35 |
frag_main(); |
| 36 |
SPIRV_Cross_Output stage_output; |
| 37 |
stage_output.FragColor = FragColor; |
| 38 |
return stage_output; |
| 39 |
} |