| 1 |
Texture2D<float4> uShadow : register(t0); |
| 2 |
SamplerComparisonState _uShadow_sampler : register(s0); |
| 3 |
Texture2D<float4> uTexture : register(t1); |
| 4 |
SamplerComparisonState uSampler : register(s2); |
| 5 |
|
| 6 |
static float3 vUV; |
| 7 |
static float FragColor; |
| 8 |
|
| 9 |
struct SPIRV_Cross_Input |
| 10 |
{ |
| 11 |
float3 vUV : TEXCOORD0; |
| 12 |
}; |
| 13 |
|
| 14 |
struct SPIRV_Cross_Output |
| 15 |
{ |
| 16 |
float FragColor : SV_Target0; |
| 17 |
}; |
| 18 |
|
| 19 |
float sample_combined() |
| 20 |
{ |
| 21 |
return uShadow.SampleCmp(_uShadow_sampler, vUV.xy, vUV.z); |
| 22 |
} |
| 23 |
|
| 24 |
float sample_separate() |
| 25 |
{ |
| 26 |
return uTexture.SampleCmp(uSampler, vUV.xy, vUV.z); |
| 27 |
} |
| 28 |
|
| 29 |
void frag_main() |
| 30 |
{ |
| 31 |
FragColor = sample_combined() + sample_separate(); |
| 32 |
} |
| 33 |
|
| 34 |
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input) |
| 35 |
{ |
| 36 |
vUV = stage_input.vUV; |
| 37 |
frag_main(); |
| 38 |
SPIRV_Cross_Output stage_output; |
| 39 |
stage_output.FragColor = FragColor; |
| 40 |
return stage_output; |
| 41 |
} |