| 1 |
Texture2D<float4> uCombined[4] : register(t0); |
| 2 |
SamplerState _uCombined_sampler[4] : register(s0); |
| 3 |
Texture2D<float4> uTex[4] : register(t4); |
| 4 |
SamplerState uSampler[4] : register(s8); |
| 5 |
RWTexture2D<float4> uImage[8] : register(u12); |
| 6 |
|
| 7 |
static float4 gl_FragCoord; |
| 8 |
static float2 vTex; |
| 9 |
static int vIndex; |
| 10 |
|
| 11 |
struct SPIRV_Cross_Input |
| 12 |
{ |
| 13 |
float2 vTex : TEXCOORD0; |
| 14 |
nointerpolation int vIndex : TEXCOORD1; |
| 15 |
float4 gl_FragCoord : SV_Position; |
| 16 |
}; |
| 17 |
|
| 18 |
float4 sample_in_function(Texture2D<float4> samp, SamplerState _samp_sampler) |
| 19 |
{ |
| 20 |
return samp.Sample(_samp_sampler, vTex); |
| 21 |
} |
| 22 |
|
| 23 |
float4 sample_in_function2(Texture2D<float4> tex, SamplerState samp) |
| 24 |
{ |
| 25 |
return tex.Sample(samp, vTex); |
| 26 |
} |
| 27 |
|
| 28 |
void frag_main() |
| 29 |
{ |
| 30 |
float4 color = uCombined[vIndex].Sample(_uCombined_sampler[vIndex], vTex); |
| 31 |
color += uTex[vIndex].Sample(uSampler[vIndex], vTex); |
| 32 |
int _72 = vIndex + 1; |
| 33 |
color += sample_in_function(uCombined[_72], _uCombined_sampler[_72]); |
| 34 |
color += sample_in_function2(uTex[vIndex + 1], uSampler[vIndex + 1]); |
| 35 |
uImage[vIndex][int2(gl_FragCoord.xy)] = color; |
| 36 |
} |
| 37 |
|
| 38 |
void main(SPIRV_Cross_Input stage_input) |
| 39 |
{ |
| 40 |
gl_FragCoord = stage_input.gl_FragCoord; |
| 41 |
gl_FragCoord.w = 1.0 / gl_FragCoord.w; |
| 42 |
vTex = stage_input.vTex; |
| 43 |
vIndex = stage_input.vIndex; |
| 44 |
frag_main(); |
| 45 |
} |