1intrinsics/repeated_use.wgsl:5:9 warning: use of deprecated intrinsic 2 _ = isNormal(vec4<f32>()); 3 ^^^^^^^^ 4 5intrinsics/repeated_use.wgsl:6:9 warning: use of deprecated intrinsic 6 _ = isNormal(vec4<f32>(1.)); 7 ^^^^^^^^ 8 9intrinsics/repeated_use.wgsl:7:9 warning: use of deprecated intrinsic 10 _ = isNormal(vec4<f32>(1., 2., 3., 4.)); 11 ^^^^^^^^ 12 13intrinsics/repeated_use.wgsl:9:9 warning: use of deprecated intrinsic 14 _ = isNormal(vec3<f32>()); 15 ^^^^^^^^ 16 17intrinsics/repeated_use.wgsl:10:9 warning: use of deprecated intrinsic 18 _ = isNormal(vec3<f32>(1.)); 19 ^^^^^^^^ 20 21intrinsics/repeated_use.wgsl:11:9 warning: use of deprecated intrinsic 22 _ = isNormal(vec3<f32>(1., 2., 3.)); 23 ^^^^^^^^ 24 25intrinsics/repeated_use.wgsl:13:9 warning: use of deprecated intrinsic 26 _ = isNormal(vec2<f32>()); 27 ^^^^^^^^ 28 29intrinsics/repeated_use.wgsl:14:9 warning: use of deprecated intrinsic 30 _ = isNormal(vec2<f32>(1.)); 31 ^^^^^^^^ 32 33intrinsics/repeated_use.wgsl:15:9 warning: use of deprecated intrinsic 34 _ = isNormal(vec2<f32>(1., 2.)); 35 ^^^^^^^^ 36 37intrinsics/repeated_use.wgsl:17:9 warning: use of deprecated intrinsic 38 _ = isNormal(1.); 39 ^^^^^^^^ 40 41intrinsics/repeated_use.wgsl:18:9 warning: use of deprecated intrinsic 42 _ = isNormal(2.); 43 ^^^^^^^^ 44 45intrinsics/repeated_use.wgsl:19:9 warning: use of deprecated intrinsic 46 _ = isNormal(3.); 47 ^^^^^^^^ 48 49bool4 tint_isNormal(float4 param_0) { 50 uint4 exponent = asuint(param_0) & 0x7f80000; 51 uint4 clamped = clamp(exponent, 0x0080000, 0x7f00000); 52 return clamped == exponent; 53} 54 55bool3 tint_isNormal_1(float3 param_0) { 56 uint3 exponent = asuint(param_0) & 0x7f80000; 57 uint3 clamped = clamp(exponent, 0x0080000, 0x7f00000); 58 return clamped == exponent; 59} 60 61bool2 tint_isNormal_2(float2 param_0) { 62 uint2 exponent = asuint(param_0) & 0x7f80000; 63 uint2 clamped = clamp(exponent, 0x0080000, 0x7f00000); 64 return clamped == exponent; 65} 66 67bool tint_isNormal_3(float param_0) { 68 uint exponent = asuint(param_0) & 0x7f80000; 69 uint clamped = clamp(exponent, 0x0080000, 0x7f00000); 70 return clamped == exponent; 71} 72 73[numthreads(1, 1, 1)] 74void main() { 75 tint_isNormal(float4(0.0f, 0.0f, 0.0f, 0.0f)); 76 tint_isNormal(float4((1.0f).xxxx)); 77 tint_isNormal(float4(1.0f, 2.0f, 3.0f, 4.0f)); 78 tint_isNormal_1(float3(0.0f, 0.0f, 0.0f)); 79 tint_isNormal_1(float3((1.0f).xxx)); 80 tint_isNormal_1(float3(1.0f, 2.0f, 3.0f)); 81 tint_isNormal_2(float2(0.0f, 0.0f)); 82 tint_isNormal_2(float2((1.0f).xx)); 83 tint_isNormal_2(float2(1.0f, 2.0f)); 84 tint_isNormal_3(1.0f); 85 tint_isNormal_3(2.0f); 86 tint_isNormal_3(3.0f); 87 return; 88} 89