• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1SKIP: FAILED
2
3cbuffer cbuffer_x_8 : register(b2, space0) {
4  uint4 x_8[2];
5};
6static float4 gl_FragCoord = float4(0.0f, 0.0f, 0.0f, 0.0f);
7cbuffer cbuffer_x_10 : register(b0, space0) {
8  uint4 x_10[1];
9};
10cbuffer cbuffer_x_12 : register(b1, space0) {
11  uint4 x_12[1];
12};
13static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f);
14
15void main_1() {
16  uint a = 0u;
17  int b = 0;
18  a = 0u;
19  const int x_41 = asint(x_8[1].x);
20  b = x_41;
21  const float x_43 = gl_FragCoord.x;
22  const uint scalar_offset = ((16u * uint(0))) / 4;
23  const float x_45 = asfloat(x_10[scalar_offset / 4][scalar_offset % 4]);
24  if ((x_43 < x_45)) {
25    const uint scalar_offset_1 = ((16u * uint(0))) / 4;
26    const uint x_50 = x_12[scalar_offset_1 / 4][scalar_offset_1 % 4];
27    b = asint((x_50 % a));
28  }
29  const int x_54 = b;
30  const int x_56 = asint(x_8[1].x);
31  if ((x_54 == x_56)) {
32    const int x_62 = asint(x_8[1].x);
33    const uint scalar_offset_2 = ((16u * uint(0))) / 4;
34    const int x_65 = asint(x_8[scalar_offset_2 / 4][scalar_offset_2 % 4]);
35    const uint scalar_offset_3 = ((16u * uint(0))) / 4;
36    const int x_68 = asint(x_8[scalar_offset_3 / 4][scalar_offset_3 % 4]);
37    const int x_71 = asint(x_8[1].x);
38    x_GLF_color = float4(float(x_62), float(x_65), float(x_68), float(x_71));
39  } else {
40    const uint scalar_offset_4 = ((16u * uint(0))) / 4;
41    const int x_75 = asint(x_8[scalar_offset_4 / 4][scalar_offset_4 % 4]);
42    const float x_76 = float(x_75);
43    x_GLF_color = float4(x_76, x_76, x_76, x_76);
44  }
45  return;
46}
47
48struct main_out {
49  float4 x_GLF_color_1;
50};
51struct tint_symbol_1 {
52  float4 gl_FragCoord_param : SV_Position;
53};
54struct tint_symbol_2 {
55  float4 x_GLF_color_1 : SV_Target0;
56};
57
58main_out main_inner(float4 gl_FragCoord_param) {
59  gl_FragCoord = gl_FragCoord_param;
60  main_1();
61  const main_out tint_symbol_6 = {x_GLF_color};
62  return tint_symbol_6;
63}
64
65tint_symbol_2 main(tint_symbol_1 tint_symbol) {
66  const main_out inner_result = main_inner(tint_symbol.gl_FragCoord_param);
67  tint_symbol_2 wrapper_result = (tint_symbol_2)0;
68  wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1;
69  return wrapper_result;
70}
71C:\src\tint\test\Shader@0x000002533EADD8C0(25,16-23): error X4010: Unsigned integer divide by zero
72
73