| 1 |
cbuffer CBuffer : register(b3) |
| 2 |
{ |
| 3 |
float4 cbuf_a : packoffset(c0); |
| 4 |
}; |
| 5 |
|
| 6 |
cbuffer PushMe |
| 7 |
{ |
| 8 |
float4 registers_d : packoffset(c0); |
| 9 |
}; |
| 10 |
|
| 11 |
Texture2D<float4> uSampledImage : register(t4); |
| 12 |
SamplerState _uSampledImage_sampler : register(s4); |
| 13 |
Texture2D<float4> uTexture : register(t5); |
| 14 |
SamplerState uSampler : register(s6); |
| 15 |
|
| 16 |
static float2 vTex; |
| 17 |
static float4 FragColor; |
| 18 |
|
| 19 |
struct SPIRV_Cross_Input |
| 20 |
{ |
| 21 |
float2 vTex : TEXCOORD0; |
| 22 |
}; |
| 23 |
|
| 24 |
struct SPIRV_Cross_Output |
| 25 |
{ |
| 26 |
float4 FragColor : SV_Target0; |
| 27 |
}; |
| 28 |
|
| 29 |
void frag_main() |
| 30 |
{ |
| 31 |
FragColor = (uSampledImage.Sample(_uSampledImage_sampler, vTex) + uTexture.Sample(uSampler, vTex)) + (cbuf_a + registers_d); |
| 32 |
} |
| 33 |
|
| 34 |
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input) |
| 35 |
{ |
| 36 |
vTex = stage_input.vTex; |
| 37 |
frag_main(); |
| 38 |
SPIRV_Cross_Output stage_output; |
| 39 |
stage_output.FragColor = FragColor; |
| 40 |
return stage_output; |
| 41 |
} |