| 1 |
RWByteAddressBuffer _34 : register(u0); |
| 2 |
Texture2D<int4> Buf : register(t1); |
| 3 |
SamplerState _Buf_sampler : register(s1); |
| 4 |
|
| 5 |
static float4 gl_FragCoord; |
| 6 |
static int vIn; |
| 7 |
static int vIn2; |
| 8 |
static float4 FragColor; |
| 9 |
|
| 10 |
struct SPIRV_Cross_Input |
| 11 |
{ |
| 12 |
nointerpolation int vIn : TEXCOORD0; |
| 13 |
nointerpolation int vIn2 : TEXCOORD1; |
| 14 |
float4 gl_FragCoord : SV_Position; |
| 15 |
}; |
| 16 |
|
| 17 |
struct SPIRV_Cross_Output |
| 18 |
{ |
| 19 |
float4 FragColor : SV_Target0; |
| 20 |
}; |
| 21 |
|
| 22 |
void frag_main() |
| 23 |
{ |
| 24 |
int _40 = Buf.Load(int3(int2(gl_FragCoord.xy), 0)).x % 16; |
| 25 |
FragColor = (asfloat(_34.Load4(_40 * 16 + 0)) + asfloat(_34.Load4(_40 * 16 + 0))) + asfloat(_34.Load4(((vIn * vIn) + (vIn2 * vIn2)) * 16 + 0)); |
| 26 |
} |
| 27 |
|
| 28 |
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input) |
| 29 |
{ |
| 30 |
gl_FragCoord = stage_input.gl_FragCoord; |
| 31 |
gl_FragCoord.w = 1.0 / gl_FragCoord.w; |
| 32 |
vIn = stage_input.vIn; |
| 33 |
vIn2 = stage_input.vIn2; |
| 34 |
frag_main(); |
| 35 |
SPIRV_Cross_Output stage_output; |
| 36 |
stage_output.FragColor = FragColor; |
| 37 |
return stage_output; |
| 38 |
} |