blob: 1642490ac75f5292273ea80e8ac5559de75426ff [file] [log] [blame]
Ben Claytonb85e6922022-02-02 23:07:11 +00001SKIP: FAILED
2
3builtins/gen/isNormal/b00ab1.wgsl:28:25 warning: use of deprecated builtin
4 var res: vec2<bool> = isNormal(vec2<f32>());
5 ^^^^^^^^
6
7#version 310 es
Ben Claytonb85e6922022-02-02 23:07:11 +00008
9bvec2 tint_isNormal(vec2 param_0) {
10 uint2 exponent = asuint(param_0) & 0x7f80000;
11 uint2 clamped = clamp(exponent, 0x0080000, 0x7f00000);
12 return clamped == exponent;
13}
14
15
16void isNormal_b00ab1() {
17 bvec2 res = tint_isNormal(vec2(0.0f, 0.0f));
18}
19
20vec4 vertex_main() {
21 isNormal_b00ab1();
22 return vec4(0.0f, 0.0f, 0.0f, 0.0f);
23}
24
25void main() {
26 vec4 inner_result = vertex_main();
27 gl_Position = inner_result;
28 gl_Position.y = -(gl_Position.y);
29 gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
30 return;
31}
32Error parsing GLSL shader:
Stephen Whitebf0180b2022-02-07 18:49:46 +000033ERROR: 0:4: 'uint2' : undeclared identifier
34ERROR: 0:4: '' : compilation terminated
Ben Claytonb85e6922022-02-02 23:07:11 +000035ERROR: 2 compilation errors. No code generated.
36
37
38
39#version 310 es
40precision mediump float;
41
42bvec2 tint_isNormal(vec2 param_0) {
43 uint2 exponent = asuint(param_0) & 0x7f80000;
44 uint2 clamped = clamp(exponent, 0x0080000, 0x7f00000);
45 return clamped == exponent;
46}
47
48
49void isNormal_b00ab1() {
50 bvec2 res = tint_isNormal(vec2(0.0f, 0.0f));
51}
52
53void fragment_main() {
54 isNormal_b00ab1();
55}
56
57void main() {
58 fragment_main();
59 return;
60}
61Error parsing GLSL shader:
Stephen White46647f12022-02-04 23:09:23 +000062ERROR: 0:5: 'uint2' : undeclared identifier
63ERROR: 0:5: '' : compilation terminated
Ben Claytonb85e6922022-02-02 23:07:11 +000064ERROR: 2 compilation errors. No code generated.
65
66
67
68#version 310 es
Ben Claytonb85e6922022-02-02 23:07:11 +000069
70bvec2 tint_isNormal(vec2 param_0) {
71 uint2 exponent = asuint(param_0) & 0x7f80000;
72 uint2 clamped = clamp(exponent, 0x0080000, 0x7f00000);
73 return clamped == exponent;
74}
75
76
77void isNormal_b00ab1() {
78 bvec2 res = tint_isNormal(vec2(0.0f, 0.0f));
79}
80
81void compute_main() {
82 isNormal_b00ab1();
83}
84
85layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
86void main() {
87 compute_main();
88 return;
89}
90Error parsing GLSL shader:
Stephen Whitebf0180b2022-02-07 18:49:46 +000091ERROR: 0:4: 'uint2' : undeclared identifier
92ERROR: 0:4: '' : compilation terminated
Ben Claytonb85e6922022-02-02 23:07:11 +000093ERROR: 2 compilation errors. No code generated.
94
95
96