dawn-cmake/test/vk-gl-cts/graphicsfuzz/cov-copy-prop-arrays-no-stores/0-opt.spvasm.expected.hlsl

40 lines
775 B
HLSL

struct Array {
int values[2];
};
cbuffer cbuffer_x_7 : register(b0, space0) {
uint4 x_7[1];
};
static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f);
void main_1() {
Array a = (Array)0;
Array b = (Array)0;
float one = 0.0f;
const int x_10 = asint(x_7[0].x);
a.values[x_10] = 1;
b = a;
one = 0.0f;
const int x_11 = asint(x_7[0].x);
const int x_12 = b.values[x_11];
if ((x_12 == 1)) {
one = 1.0f;
}
x_GLF_color = float4(one, 0.0f, 0.0f, 1.0f);
return;
}
struct main_out {
float4 x_GLF_color_1;
};
struct tint_symbol {
float4 x_GLF_color_1 : SV_Target0;
};
tint_symbol main() {
main_1();
const main_out tint_symbol_1 = {x_GLF_color};
const tint_symbol tint_symbol_3 = {tint_symbol_1.x_GLF_color_1};
return tint_symbol_3;
}