blob: b6caf597a28ed45768e85202ed02315f81ac6ab9 [file] [log] [blame]
RasterizerOrderedTexture2D<uint4> pixel_local_a : register(u1);
struct PixelLocal {
uint a;
};
static PixelLocal P = (PixelLocal)0;
void load_from_pixel_local_storage(float4 my_input) {
uint2 rov_texcoord = uint2(my_input.xy);
P.a = pixel_local_a.Load(rov_texcoord).x;
}
void store_into_pixel_local_storage(float4 my_input) {
uint2 rov_texcoord = uint2(my_input.xy);
pixel_local_a[rov_texcoord] = uint4((P.a).xxxx);
}
struct f_res {
float4 output_0;
float4 output_1;
float4 output_2;
};
struct tint_symbol_1 {
float4 my_pos : SV_Position;
};
struct tint_symbol_2 {
float4 output_0 : SV_Target0;
float4 output_1 : SV_Target2;
float4 output_2 : SV_Target3;
};
struct Out {
float4 x;
float4 y;
float4 z;
};
void f0() {
P.a = (P.a + 9u);
}
void f1() {
f0();
P.a = (P.a + 8u);
}
void f2() {
P.a = (P.a + 7u);
f1();
}
Out f_inner() {
f2();
Out tint_symbol_4 = {(10.0f).xxxx, (20.0f).xxxx, (30.0f).xxxx};
return tint_symbol_4;
}
f_res f_inner_1(float4 my_pos) {
float4 hlsl_sv_position = my_pos;
load_from_pixel_local_storage(hlsl_sv_position);
Out result = f_inner();
store_into_pixel_local_storage(hlsl_sv_position);
f_res tint_symbol_3 = {result.x, result.y, result.z};
return tint_symbol_3;
}
tint_symbol_2 f(tint_symbol_1 tint_symbol) {
f_res inner_result = f_inner_1(float4(tint_symbol.my_pos.xyz, (1.0f / tint_symbol.my_pos.w)));
tint_symbol_2 wrapper_result = (tint_symbol_2)0;
wrapper_result.output_0 = inner_result.output_0;
wrapper_result.output_1 = inner_result.output_1;
wrapper_result.output_2 = inner_result.output_2;
return wrapper_result;
}