| 1 |
Texture2D<float4> uImage : register(t0); |
| 2 |
SamplerState _uImage_sampler : register(s0); |
| 3 |
|
| 4 |
static float4 v0; |
| 5 |
static float4 FragColor; |
| 6 |
|
| 7 |
struct SPIRV_Cross_Input |
| 8 |
{ |
| 9 |
float4 v0 : TEXCOORD0; |
| 10 |
}; |
| 11 |
|
| 12 |
struct SPIRV_Cross_Output |
| 13 |
{ |
| 14 |
float4 FragColor : SV_Target0; |
| 15 |
}; |
| 16 |
|
| 17 |
void frag_main() |
| 18 |
{ |
| 19 |
float phi; |
| 20 |
float4 _36; |
| 21 |
int _51; |
| 22 |
_51 = 0; |
| 23 |
phi = 1.0f; |
| 24 |
_36 = float4(1.0f, 2.0f, 1.0f, 2.0f); |
| 25 |
for (;;) |
| 26 |
{ |
| 27 |
FragColor = _36; |
| 28 |
if (_51 < 4) |
| 29 |
{ |
| 30 |
if (v0[_51] > 0.0f) |
| 31 |
{ |
| 32 |
float2 _48 = phi.xx; |
| 33 |
_51++; |
| 34 |
phi += 2.0f; |
| 35 |
_36 = uImage.SampleLevel(_uImage_sampler, _48, 0.0f); |
| 36 |
continue; |
| 37 |
} |
| 38 |
else |
| 39 |
{ |
| 40 |
break; |
| 41 |
} |
| 42 |
} |
| 43 |
else |
| 44 |
{ |
| 45 |
break; |
| 46 |
} |
| 47 |
} |
| 48 |
} |
| 49 |
|
| 50 |
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input) |
| 51 |
{ |
| 52 |
v0 = stage_input.v0; |
| 53 |
frag_main(); |
| 54 |
SPIRV_Cross_Output stage_output; |
| 55 |
stage_output.FragColor = FragColor; |
| 56 |
return stage_output; |
| 57 |
} |