dawn-cmake/test/vk-gl-cts/graphicsfuzz/struct-and-unreachable-infi.../0.wgsl.expected.hlsl

45 lines
893 B
HLSL

struct BST {
int data;
int leftIndex;
int rightIndex;
};
static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f);
void makeTreeNode_struct_BST_i1_i1_i11_(inout BST tree) {
tree.rightIndex = 1;
return;
}
void main_1() {
BST tree_1[10] = (BST[10])0;
BST param = (BST)0;
param = tree_1[0u];
makeTreeNode_struct_BST_i1_i1_i11_(param);
const BST x_40 = param;
BST x_42_1[10] = tree_1;
x_42_1[0u] = x_40;
tree_1 = x_42_1;
if ((tree_1[0u].rightIndex == 0)) {
while (true) {
}
return;
}
x_GLF_color = float4(float(tree_1[0u].rightIndex), 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_2 = {tint_symbol_1.x_GLF_color_1};
return tint_symbol_2;
}