Remove isNan, isInf, isFinite, and isNormal

These were deprecated in M98.

Fixed: tint:1312
Change-Id: Ieec17bfcc729f90d0a9aa8904a162167b9de54ed
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/82800
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: James Price <jrprice@google.com>
This commit is contained in:
James Price
2022-03-05 00:39:14 +00:00
committed by Tint LUCI CQ
parent e228319549
commit bcd9ad2ebb
142 changed files with 2546 additions and 9268 deletions

View File

@@ -1,15 +1,10 @@
// /fallthroUgh]
fn marg8uintin() {
_ = (0 );
_ = isNormal(4.);
_ = (vec4<f32>( 2.));
isNormal(vec4<f32>());
_ = (vec4<f32>( 2.));
isNormal(0.);
_ = isNormal(4.);
_ = isNormal(2.);
}
struct Uniforms {

View File

@@ -1,23 +1,3 @@
bug/chromium/1273230.wgsl:4:7 warning: use of deprecated builtin
_ = isNormal(4.);
^^^^^^^^
bug/chromium/1273230.wgsl:7:3 warning: use of deprecated builtin
isNormal(vec4<f32>());
^^^^^^^^
bug/chromium/1273230.wgsl:10:6 warning: use of deprecated builtin
isNormal(0.);
^^^^^^^^
bug/chromium/1273230.wgsl:11:9 warning: use of deprecated builtin
_ = isNormal(4.);
^^^^^^^^
bug/chromium/1273230.wgsl:12:9 warning: use of deprecated builtin
_ = isNormal(2.);
^^^^^^^^
#version 310 es
struct Uniforms {

View File

@@ -1,35 +1,3 @@
bug/chromium/1273230.wgsl:4:7 warning: use of deprecated builtin
_ = isNormal(4.);
^^^^^^^^
bug/chromium/1273230.wgsl:7:3 warning: use of deprecated builtin
isNormal(vec4<f32>());
^^^^^^^^
bug/chromium/1273230.wgsl:10:6 warning: use of deprecated builtin
isNormal(0.);
^^^^^^^^
bug/chromium/1273230.wgsl:11:9 warning: use of deprecated builtin
_ = isNormal(4.);
^^^^^^^^
bug/chromium/1273230.wgsl:12:9 warning: use of deprecated builtin
_ = isNormal(2.);
^^^^^^^^
bool tint_isNormal(float param_0) {
uint exponent = asuint(param_0) & 0x7f80000;
uint clamped = clamp(exponent, 0x0080000, 0x7f00000);
return clamped == exponent;
}
bool4 tint_isNormal_1(float4 param_0) {
uint4 exponent = asuint(param_0) & 0x7f80000;
uint4 clamped = clamp(exponent, 0x0080000, 0x7f00000);
return clamped == exponent;
}
uint value_or_one_if_zero_uint(uint value) {
return value == 0u ? 1u : value;
}
@@ -53,11 +21,6 @@ int atomicAdd_1(RWByteAddressBuffer buffer, uint offset, int value) {
}
void marg8uintin() {
tint_isNormal(4.0f);
tint_isNormal_1(float4(0.0f, 0.0f, 0.0f, 0.0f));
tint_isNormal(0.0f);
tint_isNormal(4.0f);
tint_isNormal(2.0f);
}
cbuffer cbuffer_uniforms : register(b0, space0) {

View File

@@ -1,23 +1,3 @@
bug/chromium/1273230.wgsl:4:7 warning: use of deprecated builtin
_ = isNormal(4.);
^^^^^^^^
bug/chromium/1273230.wgsl:7:3 warning: use of deprecated builtin
isNormal(vec4<f32>());
^^^^^^^^
bug/chromium/1273230.wgsl:10:6 warning: use of deprecated builtin
isNormal(0.);
^^^^^^^^
bug/chromium/1273230.wgsl:11:9 warning: use of deprecated builtin
_ = isNormal(4.);
^^^^^^^^
bug/chromium/1273230.wgsl:12:9 warning: use of deprecated builtin
_ = isNormal(2.);
^^^^^^^^
#include <metal_stdlib>
using namespace metal;
@@ -33,11 +13,6 @@ inline vec<T, N> operator*(packed_vec<T, M> lhs, matrix<T, N, M> rhs) {
}
void marg8uintin() {
isnormal(4.0f);
isnormal(float4());
isnormal(0.0f);
isnormal(4.0f);
isnormal(2.0f);
}
struct Uniforms {

View File

@@ -1,30 +1,10 @@
bug/chromium/1273230.wgsl:4:7 warning: use of deprecated builtin
_ = isNormal(4.);
^^^^^^^^
bug/chromium/1273230.wgsl:7:3 warning: use of deprecated builtin
isNormal(vec4<f32>());
^^^^^^^^
bug/chromium/1273230.wgsl:10:6 warning: use of deprecated builtin
isNormal(0.);
^^^^^^^^
bug/chromium/1273230.wgsl:11:9 warning: use of deprecated builtin
_ = isNormal(4.);
^^^^^^^^
bug/chromium/1273230.wgsl:12:9 warning: use of deprecated builtin
_ = isNormal(2.);
^^^^^^^^
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 308
; Bound: 277
; Schema: 0
OpCapability Shader
%38 = OpExtInstImport "GLSL.std.450"
%71 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main_count "main_count" %GlobalInvocationID_1
OpExecutionMode %main_count LocalSize 128 1 1
@@ -186,323 +166,292 @@ bug/chromium/1273230.wgsl:12:9 warning: use of deprecated builtin
%void = OpTypeVoid
%30 = OpTypeFunction %void
%int_0 = OpConstant %int 0
%bool = OpTypeBool
%float_4 = OpConstant %float 4
%uint_133693440 = OpConstant %uint 133693440
%uint_524288 = OpConstant %uint 524288
%uint_133169152 = OpConstant %uint 133169152
%v4float = OpTypeVector %float 4
%float_2 = OpConstant %float 2
%47 = OpConstantComposite %v4float %float_2 %float_2 %float_2 %float_2
%v4bool = OpTypeVector %bool 4
%50 = OpConstantNull %v4float
%v4uint = OpTypeVector %uint 4
%float_0 = OpConstant %float 0
%71 = OpTypeFunction %v3float %v3float
%37 = OpConstantComposite %v4float %float_2 %float_2 %float_2 %float_2
%38 = OpTypeFunction %v3float %v3float
%uint_4 = OpConstant %uint 4
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_float = OpTypePointer Uniform %float
%uint_1 = OpConstant %uint 1
%uint_2 = OpConstant %uint 2
%_ptr_Function_v3float = OpTypePointer Function %v3float
%89 = OpConstantNull %v3float
%56 = OpConstantNull %v3float
%uint_5 = OpConstant %uint 5
%_ptr_Function_float = OpTypePointer Function %float
%113 = OpConstantNull %float
%81 = OpConstantNull %float
%_ptr_Uniform_uint = OpTypePointer Uniform %uint
%150 = OpTypeFunction %uint %uint %v3float
%118 = OpTypeFunction %uint %uint %v3float
%_ptr_Function_v3uint = OpTypePointer Function %v3uint
%158 = OpConstantNull %v3uint
%126 = OpConstantNull %v3uint
%_ptr_Function_uint = OpTypePointer Function %uint
%171 = OpTypeFunction %v3uint %uint %uint
%179 = OpConstantNull %uint
%192 = OpTypeFunction %v3float %uint
%139 = OpTypeFunction %v3uint %uint %uint
%147 = OpConstantNull %uint
%160 = OpTypeFunction %v3float %uint
%uint_3 = OpConstant %uint 3
%_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
%_ptr_StorageBuffer_uint_0 = OpTypePointer StorageBuffer %uint
%_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int
%_ptr_Function_int = OpTypePointer Function %int
%239 = OpConstantNull %int
%240 = OpTypeFunction %void %v3uint
%207 = OpConstantNull %int
%208 = OpTypeFunction %void %v3uint
%bool = OpTypeBool
%float_3 = OpConstant %float 3
%int_1 = OpConstant %int 1
%marg8uintin = OpFunction %void None %30
%33 = OpLabel
%42 = OpBitcast %uint %float_4
%43 = OpBitwiseAnd %uint %42 %uint_133693440
%44 = OpExtInst %uint %38 UClamp %43 %uint_524288 %uint_133169152
%35 = OpIEqual %bool %43 %44
%52 = OpCompositeConstruct %v4uint %uint_133693440 %uint_133693440 %uint_133693440 %uint_133693440
%53 = OpCompositeConstruct %v4uint %uint_524288 %uint_524288 %uint_524288 %uint_524288
%54 = OpCompositeConstruct %v4uint %uint_133169152 %uint_133169152 %uint_133169152 %uint_133169152
%55 = OpBitcast %v4uint %50
%56 = OpBitwiseAnd %v4uint %55 %52
%57 = OpExtInst %v4uint %38 UClamp %56 %53 %54
%48 = OpIEqual %v4bool %56 %57
%60 = OpBitcast %uint %float_0
%61 = OpBitwiseAnd %uint %60 %uint_133693440
%62 = OpExtInst %uint %38 UClamp %61 %uint_524288 %uint_133169152
%58 = OpIEqual %bool %61 %62
%64 = OpBitcast %uint %float_4
%65 = OpBitwiseAnd %uint %64 %uint_133693440
%66 = OpExtInst %uint %38 UClamp %65 %uint_524288 %uint_133169152
%63 = OpIEqual %bool %65 %66
%68 = OpBitcast %uint %float_2
%69 = OpBitwiseAnd %uint %68 %uint_133693440
%70 = OpExtInst %uint %38 UClamp %69 %uint_524288 %uint_133169152
%67 = OpIEqual %bool %69 %70
OpReturn
OpFunctionEnd
%toVoxelPos = OpFunction %v3float None %71
%toVoxelPos = OpFunction %v3float None %38
%position = OpFunctionParameter %v3float
%74 = OpLabel
%bbMin = OpVariable %_ptr_Function_v3float Function %89
%bbMax = OpVariable %_ptr_Function_v3float Function %89
%bbSize = OpVariable %_ptr_Function_v3float Function %89
%cubeSize = OpVariable %_ptr_Function_float Function %113
%gridSize = OpVariable %_ptr_Function_float Function %113
%gx = OpVariable %_ptr_Function_float Function %113
%gy = OpVariable %_ptr_Function_float Function %113
%gz = OpVariable %_ptr_Function_float Function %113
%78 = OpAccessChain %_ptr_Uniform_float %uniforms %uint_4 %uint_0
%41 = OpLabel
%bbMin = OpVariable %_ptr_Function_v3float Function %56
%bbMax = OpVariable %_ptr_Function_v3float Function %56
%bbSize = OpVariable %_ptr_Function_v3float Function %56
%cubeSize = OpVariable %_ptr_Function_float Function %81
%gridSize = OpVariable %_ptr_Function_float Function %81
%gx = OpVariable %_ptr_Function_float Function %81
%gy = OpVariable %_ptr_Function_float Function %81
%gz = OpVariable %_ptr_Function_float Function %81
%45 = OpAccessChain %_ptr_Uniform_float %uniforms %uint_4 %uint_0
%46 = OpLoad %float %45
%48 = OpAccessChain %_ptr_Uniform_float %uniforms %uint_4 %uint_1
%49 = OpLoad %float %48
%51 = OpAccessChain %_ptr_Uniform_float %uniforms %uint_4 %uint_2
%52 = OpLoad %float %51
%53 = OpCompositeConstruct %v3float %46 %49 %52
OpStore %bbMin %53
%58 = OpAccessChain %_ptr_Uniform_float %uniforms %uint_5 %uint_0
%59 = OpLoad %float %58
%60 = OpAccessChain %_ptr_Uniform_float %uniforms %uint_5 %uint_1
%61 = OpLoad %float %60
%62 = OpAccessChain %_ptr_Uniform_float %uniforms %uint_5 %uint_2
%63 = OpLoad %float %62
%64 = OpCompositeConstruct %v3float %59 %61 %63
OpStore %bbMax %64
%66 = OpLoad %v3float %bbMin
%67 = OpLoad %v3float %bbMin
%68 = OpFSub %v3float %66 %67
OpStore %bbSize %68
%74 = OpAccessChain %_ptr_Function_float %bbMax %uint_0
%75 = OpLoad %float %74
%76 = OpAccessChain %_ptr_Function_float %bbMax %uint_1
%77 = OpLoad %float %76
%72 = OpExtInst %float %71 NMax %75 %77
%78 = OpAccessChain %_ptr_Function_float %bbSize %uint_2
%79 = OpLoad %float %78
%81 = OpAccessChain %_ptr_Uniform_float %uniforms %uint_4 %uint_1
%82 = OpLoad %float %81
%84 = OpAccessChain %_ptr_Uniform_float %uniforms %uint_4 %uint_2
%85 = OpLoad %float %84
%86 = OpCompositeConstruct %v3float %79 %82 %85
OpStore %bbMin %86
%91 = OpAccessChain %_ptr_Uniform_float %uniforms %uint_5 %uint_0
%92 = OpLoad %float %91
%93 = OpAccessChain %_ptr_Uniform_float %uniforms %uint_5 %uint_1
%94 = OpLoad %float %93
%95 = OpAccessChain %_ptr_Uniform_float %uniforms %uint_5 %uint_2
%96 = OpLoad %float %95
%97 = OpCompositeConstruct %v3float %92 %94 %96
OpStore %bbMax %97
%99 = OpLoad %v3float %bbMin
%100 = OpLoad %v3float %bbMin
%101 = OpFSub %v3float %99 %100
OpStore %bbSize %101
%106 = OpAccessChain %_ptr_Function_float %bbMax %uint_0
%107 = OpLoad %float %106
%108 = OpAccessChain %_ptr_Function_float %bbMax %uint_1
%109 = OpLoad %float %108
%104 = OpExtInst %float %38 NMax %107 %109
%110 = OpAccessChain %_ptr_Function_float %bbSize %uint_2
%111 = OpLoad %float %110
%103 = OpExtInst %float %38 NMax %104 %111
OpStore %cubeSize %103
%116 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_1
%117 = OpLoad %uint %116
%114 = OpConvertUToF %float %117
OpStore %gridSize %114
%119 = OpLoad %float %cubeSize
%120 = OpCompositeExtract %float %position 0
%121 = OpAccessChain %_ptr_Uniform_float %uniforms %uint_4 %uint_0
%122 = OpLoad %float %121
%123 = OpFSub %float %120 %122
%124 = OpFMul %float %119 %123
%125 = OpLoad %float %cubeSize
%126 = OpFDiv %float %124 %125
OpStore %gx %126
%128 = OpLoad %float %gx
%129 = OpCompositeExtract %float %position 1
%130 = OpAccessChain %_ptr_Uniform_float %uniforms %uint_4 %uint_1
%131 = OpLoad %float %130
%132 = OpFSub %float %129 %131
%133 = OpFMul %float %128 %132
%134 = OpLoad %float %gridSize
%135 = OpFDiv %float %133 %134
OpStore %gy %135
%137 = OpLoad %float %gridSize
%138 = OpCompositeExtract %float %position 2
%139 = OpAccessChain %_ptr_Uniform_float %uniforms %uint_4 %uint_2
%140 = OpLoad %float %139
%141 = OpFSub %float %138 %140
%142 = OpFMul %float %137 %141
%143 = OpLoad %float %gridSize
%144 = OpFDiv %float %142 %143
OpStore %gz %144
%146 = OpLoad %float %gz
%147 = OpLoad %float %gz
%148 = OpLoad %float %gz
%149 = OpCompositeConstruct %v3float %146 %147 %148
OpReturnValue %149
%70 = OpExtInst %float %71 NMax %72 %79
OpStore %cubeSize %70
%84 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_1
%85 = OpLoad %uint %84
%82 = OpConvertUToF %float %85
OpStore %gridSize %82
%87 = OpLoad %float %cubeSize
%88 = OpCompositeExtract %float %position 0
%89 = OpAccessChain %_ptr_Uniform_float %uniforms %uint_4 %uint_0
%90 = OpLoad %float %89
%91 = OpFSub %float %88 %90
%92 = OpFMul %float %87 %91
%93 = OpLoad %float %cubeSize
%94 = OpFDiv %float %92 %93
OpStore %gx %94
%96 = OpLoad %float %gx
%97 = OpCompositeExtract %float %position 1
%98 = OpAccessChain %_ptr_Uniform_float %uniforms %uint_4 %uint_1
%99 = OpLoad %float %98
%100 = OpFSub %float %97 %99
%101 = OpFMul %float %96 %100
%102 = OpLoad %float %gridSize
%103 = OpFDiv %float %101 %102
OpStore %gy %103
%105 = OpLoad %float %gridSize
%106 = OpCompositeExtract %float %position 2
%107 = OpAccessChain %_ptr_Uniform_float %uniforms %uint_4 %uint_2
%108 = OpLoad %float %107
%109 = OpFSub %float %106 %108
%110 = OpFMul %float %105 %109
%111 = OpLoad %float %gridSize
%112 = OpFDiv %float %110 %111
OpStore %gz %112
%114 = OpLoad %float %gz
%115 = OpLoad %float %gz
%116 = OpLoad %float %gz
%117 = OpCompositeConstruct %v3float %114 %115 %116
OpReturnValue %117
OpFunctionEnd
%toIndex1D = OpFunction %uint None %150
%toIndex1D = OpFunction %uint None %118
%gridSize_0 = OpFunctionParameter %uint
%voxelPos = OpFunctionParameter %v3float
%154 = OpLabel
%icoord = OpVariable %_ptr_Function_v3uint Function %158
%155 = OpConvertFToU %v3uint %voxelPos
OpStore %icoord %155
%160 = OpAccessChain %_ptr_Function_uint %icoord %uint_0
%161 = OpLoad %uint %160
%162 = OpAccessChain %_ptr_Function_uint %icoord %uint_1
%163 = OpLoad %uint %162
%164 = OpIMul %uint %gridSize_0 %163
%165 = OpIAdd %uint %161 %164
%166 = OpIMul %uint %gridSize_0 %gridSize_0
%167 = OpAccessChain %_ptr_Function_uint %icoord %uint_2
%168 = OpLoad %uint %167
%169 = OpIMul %uint %166 %168
%170 = OpIAdd %uint %165 %169
OpReturnValue %170
%122 = OpLabel
%icoord = OpVariable %_ptr_Function_v3uint Function %126
%123 = OpConvertFToU %v3uint %voxelPos
OpStore %icoord %123
%128 = OpAccessChain %_ptr_Function_uint %icoord %uint_0
%129 = OpLoad %uint %128
%130 = OpAccessChain %_ptr_Function_uint %icoord %uint_1
%131 = OpLoad %uint %130
%132 = OpIMul %uint %gridSize_0 %131
%133 = OpIAdd %uint %129 %132
%134 = OpIMul %uint %gridSize_0 %gridSize_0
%135 = OpAccessChain %_ptr_Function_uint %icoord %uint_2
%136 = OpLoad %uint %135
%137 = OpIMul %uint %134 %136
%138 = OpIAdd %uint %133 %137
OpReturnValue %138
OpFunctionEnd
%toIndex4D = OpFunction %v3uint None %171
%toIndex4D = OpFunction %v3uint None %139
%gridSize_1 = OpFunctionParameter %uint
%index = OpFunctionParameter %uint
%175 = OpLabel
%z = OpVariable %_ptr_Function_uint Function %179
%y = OpVariable %_ptr_Function_uint Function %179
%x = OpVariable %_ptr_Function_uint Function %179
%176 = OpIMul %uint %index %index
%177 = OpUDiv %uint %gridSize_1 %176
OpStore %z %177
%180 = OpIMul %uint %gridSize_1 %gridSize_1
%181 = OpLoad %uint %z
%182 = OpIMul %uint %180 %181
%183 = OpISub %uint %gridSize_1 %182
%184 = OpUDiv %uint %183 %gridSize_1
OpStore %y %184
%186 = OpUMod %uint %index %gridSize_1
OpStore %x %186
%188 = OpLoad %uint %z
%189 = OpLoad %uint %y
%190 = OpLoad %uint %y
%191 = OpCompositeConstruct %v3uint %188 %189 %190
OpReturnValue %191
%143 = OpLabel
%z = OpVariable %_ptr_Function_uint Function %147
%y = OpVariable %_ptr_Function_uint Function %147
%x = OpVariable %_ptr_Function_uint Function %147
%144 = OpIMul %uint %index %index
%145 = OpUDiv %uint %gridSize_1 %144
OpStore %z %145
%148 = OpIMul %uint %gridSize_1 %gridSize_1
%149 = OpLoad %uint %z
%150 = OpIMul %uint %148 %149
%151 = OpISub %uint %gridSize_1 %150
%152 = OpUDiv %uint %151 %gridSize_1
OpStore %y %152
%154 = OpUMod %uint %index %gridSize_1
OpStore %x %154
%156 = OpLoad %uint %z
%157 = OpLoad %uint %y
%158 = OpLoad %uint %y
%159 = OpCompositeConstruct %v3uint %156 %157 %158
OpReturnValue %159
OpFunctionEnd
%loadPosition = OpFunction %v3float None %192
%loadPosition = OpFunction %v3float None %160
%vertexIndex = OpFunctionParameter %uint
%195 = OpLabel
%position_0 = OpVariable %_ptr_Function_v3float Function %89
%197 = OpIMul %uint %uint_3 %vertexIndex
%198 = OpIAdd %uint %197 %uint_0
%200 = OpAccessChain %_ptr_StorageBuffer_float %positions %uint_0 %198
%201 = OpLoad %float %200
%202 = OpIMul %uint %uint_3 %vertexIndex
%203 = OpIAdd %uint %202 %uint_1
%204 = OpAccessChain %_ptr_StorageBuffer_float %positions %uint_0 %203
%205 = OpLoad %float %204
%206 = OpIMul %uint %uint_3 %vertexIndex
%207 = OpIAdd %uint %206 %uint_2
%208 = OpAccessChain %_ptr_StorageBuffer_float %positions %uint_0 %207
%209 = OpLoad %float %208
%210 = OpCompositeConstruct %v3float %201 %205 %209
OpStore %position_0 %210
%212 = OpLoad %v3float %position_0
OpReturnValue %212
%163 = OpLabel
%position_0 = OpVariable %_ptr_Function_v3float Function %56
%165 = OpIMul %uint %uint_3 %vertexIndex
%166 = OpIAdd %uint %165 %uint_0
%168 = OpAccessChain %_ptr_StorageBuffer_float %positions %uint_0 %166
%169 = OpLoad %float %168
%170 = OpIMul %uint %uint_3 %vertexIndex
%171 = OpIAdd %uint %170 %uint_1
%172 = OpAccessChain %_ptr_StorageBuffer_float %positions %uint_0 %171
%173 = OpLoad %float %172
%174 = OpIMul %uint %uint_3 %vertexIndex
%175 = OpIAdd %uint %174 %uint_2
%176 = OpAccessChain %_ptr_StorageBuffer_float %positions %uint_0 %175
%177 = OpLoad %float %176
%178 = OpCompositeConstruct %v3float %169 %173 %177
OpStore %position_0 %178
%180 = OpLoad %v3float %position_0
OpReturnValue %180
OpFunctionEnd
%doIgnore = OpFunction %void None %30
%214 = OpLabel
%g43 = OpVariable %_ptr_Function_uint Function %179
%kj6 = OpVariable %_ptr_Function_uint Function %179
%b53 = OpVariable %_ptr_Function_uint Function %179
%rwg = OpVariable %_ptr_Function_uint Function %179
%rb5 = OpVariable %_ptr_Function_float Function %113
%g55 = OpVariable %_ptr_Function_int Function %239
%215 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_0
%216 = OpLoad %uint %215
OpStore %g43 %216
%219 = OpAccessChain %_ptr_StorageBuffer_uint %dbg %uint_5
%220 = OpLoad %uint %219
OpStore %kj6 %220
%225 = OpAccessChain %_ptr_StorageBuffer_uint_0 %counters %uint_0 %int_0
%222 = OpAtomicLoad %uint %225 %uint_1 %uint_0
OpStore %b53 %222
%227 = OpAccessChain %_ptr_StorageBuffer_uint %indices %uint_0 %int_0
%228 = OpLoad %uint %227
OpStore %rwg %228
%230 = OpAccessChain %_ptr_StorageBuffer_float %positions %uint_0 %int_0
%231 = OpLoad %float %230
OpStore %rb5 %231
%236 = OpAccessChain %_ptr_StorageBuffer_int %LUT %uint_0 %int_0
%233 = OpAtomicLoad %int %236 %uint_1 %uint_0
OpStore %g55 %233
%182 = OpLabel
%g43 = OpVariable %_ptr_Function_uint Function %147
%kj6 = OpVariable %_ptr_Function_uint Function %147
%b53 = OpVariable %_ptr_Function_uint Function %147
%rwg = OpVariable %_ptr_Function_uint Function %147
%rb5 = OpVariable %_ptr_Function_float Function %81
%g55 = OpVariable %_ptr_Function_int Function %207
%183 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_0
%184 = OpLoad %uint %183
OpStore %g43 %184
%187 = OpAccessChain %_ptr_StorageBuffer_uint %dbg %uint_5
%188 = OpLoad %uint %187
OpStore %kj6 %188
%193 = OpAccessChain %_ptr_StorageBuffer_uint_0 %counters %uint_0 %int_0
%190 = OpAtomicLoad %uint %193 %uint_1 %uint_0
OpStore %b53 %190
%195 = OpAccessChain %_ptr_StorageBuffer_uint %indices %uint_0 %int_0
%196 = OpLoad %uint %195
OpStore %rwg %196
%198 = OpAccessChain %_ptr_StorageBuffer_float %positions %uint_0 %int_0
%199 = OpLoad %float %198
OpStore %rb5 %199
%204 = OpAccessChain %_ptr_StorageBuffer_int %LUT %uint_0 %int_0
%201 = OpAtomicLoad %int %204 %uint_1 %uint_0
OpStore %g55 %201
OpReturn
OpFunctionEnd
%main_count_inner = OpFunction %void None %240
%main_count_inner = OpFunction %void None %208
%GlobalInvocationID = OpFunctionParameter %v3uint
%243 = OpLabel
%triangleIndex = OpVariable %_ptr_Function_uint Function %179
%i0 = OpVariable %_ptr_Function_uint Function %179
%i1 = OpVariable %_ptr_Function_uint Function %179
%i2 = OpVariable %_ptr_Function_uint Function %179
%p0 = OpVariable %_ptr_Function_v3float Function %89
%p1 = OpVariable %_ptr_Function_v3float Function %89
%p2 = OpVariable %_ptr_Function_v3float Function %89
%287 = OpVariable %_ptr_Function_v3float Function %89
%center = OpVariable %_ptr_Function_v3float Function %89
%voxelPos_0 = OpVariable %_ptr_Function_v3float Function %89
%lIndex = OpVariable %_ptr_Function_uint Function %179
%triangleOffset = OpVariable %_ptr_Function_int Function %239
%244 = OpCompositeExtract %uint %GlobalInvocationID 0
OpStore %triangleIndex %244
%246 = OpLoad %uint %triangleIndex
%247 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_0
%248 = OpLoad %uint %247
%249 = OpUGreaterThanEqual %bool %246 %248
OpSelectionMerge %250 None
OpBranchConditional %249 %251 %250
%251 = OpLabel
%211 = OpLabel
%triangleIndex = OpVariable %_ptr_Function_uint Function %147
%i0 = OpVariable %_ptr_Function_uint Function %147
%i1 = OpVariable %_ptr_Function_uint Function %147
%i2 = OpVariable %_ptr_Function_uint Function %147
%p0 = OpVariable %_ptr_Function_v3float Function %56
%p1 = OpVariable %_ptr_Function_v3float Function %56
%p2 = OpVariable %_ptr_Function_v3float Function %56
%256 = OpVariable %_ptr_Function_v3float Function %56
%center = OpVariable %_ptr_Function_v3float Function %56
%voxelPos_0 = OpVariable %_ptr_Function_v3float Function %56
%lIndex = OpVariable %_ptr_Function_uint Function %147
%triangleOffset = OpVariable %_ptr_Function_int Function %207
%212 = OpCompositeExtract %uint %GlobalInvocationID 0
OpStore %triangleIndex %212
%214 = OpLoad %uint %triangleIndex
%215 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_0
%216 = OpLoad %uint %215
%217 = OpUGreaterThanEqual %bool %214 %216
OpSelectionMerge %219 None
OpBranchConditional %217 %220 %219
%220 = OpLabel
OpReturn
%250 = OpLabel
%252 = OpFunctionCall %void %doIgnore
%253 = OpLoad %uint %triangleIndex
%254 = OpIMul %uint %uint_3 %253
%255 = OpIAdd %uint %254 %uint_0
%256 = OpAccessChain %_ptr_StorageBuffer_uint %indices %uint_0 %255
%257 = OpLoad %uint %256
OpStore %i0 %257
%259 = OpLoad %uint %i0
%260 = OpIMul %uint %uint_3 %259
%261 = OpIAdd %uint %260 %uint_1
%262 = OpAccessChain %_ptr_StorageBuffer_uint %indices %uint_0 %261
%263 = OpLoad %uint %262
OpStore %i1 %263
%265 = OpLoad %uint %i0
%266 = OpIMul %uint %uint_3 %265
%267 = OpIAdd %uint %266 %uint_2
%268 = OpAccessChain %_ptr_StorageBuffer_uint %indices %uint_0 %267
%269 = OpLoad %uint %268
OpStore %i2 %269
%272 = OpLoad %uint %i0
%271 = OpFunctionCall %v3float %loadPosition %272
OpStore %p0 %271
%275 = OpLoad %uint %i0
%274 = OpFunctionCall %v3float %loadPosition %275
OpStore %p1 %274
%278 = OpLoad %uint %i2
%277 = OpFunctionCall %v3float %loadPosition %278
OpStore %p2 %277
%280 = OpLoad %v3float %p0
%281 = OpLoad %v3float %p2
%282 = OpFAdd %v3float %280 %281
%283 = OpLoad %v3float %p1
%284 = OpFAdd %v3float %282 %283
%288 = OpCompositeConstruct %v3float %float_3 %float_3 %float_3
%286 = OpFDiv %v3float %284 %288
OpStore %center %286
%291 = OpLoad %v3float %p1
%290 = OpFunctionCall %v3float %toVoxelPos %291
OpStore %voxelPos_0 %290
%294 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_1
%295 = OpLoad %uint %294
%296 = OpLoad %v3float %p0
%293 = OpFunctionCall %uint %toIndex1D %295 %296
OpStore %lIndex %293
%300 = OpLoad %uint %i1
%301 = OpAccessChain %_ptr_StorageBuffer_int %LUT %uint_0 %300
%298 = OpAtomicIAdd %int %301 %uint_1 %uint_0 %int_1
OpStore %triangleOffset %298
%219 = OpLabel
%221 = OpFunctionCall %void %doIgnore
%222 = OpLoad %uint %triangleIndex
%223 = OpIMul %uint %uint_3 %222
%224 = OpIAdd %uint %223 %uint_0
%225 = OpAccessChain %_ptr_StorageBuffer_uint %indices %uint_0 %224
%226 = OpLoad %uint %225
OpStore %i0 %226
%228 = OpLoad %uint %i0
%229 = OpIMul %uint %uint_3 %228
%230 = OpIAdd %uint %229 %uint_1
%231 = OpAccessChain %_ptr_StorageBuffer_uint %indices %uint_0 %230
%232 = OpLoad %uint %231
OpStore %i1 %232
%234 = OpLoad %uint %i0
%235 = OpIMul %uint %uint_3 %234
%236 = OpIAdd %uint %235 %uint_2
%237 = OpAccessChain %_ptr_StorageBuffer_uint %indices %uint_0 %236
%238 = OpLoad %uint %237
OpStore %i2 %238
%241 = OpLoad %uint %i0
%240 = OpFunctionCall %v3float %loadPosition %241
OpStore %p0 %240
%244 = OpLoad %uint %i0
%243 = OpFunctionCall %v3float %loadPosition %244
OpStore %p1 %243
%247 = OpLoad %uint %i2
%246 = OpFunctionCall %v3float %loadPosition %247
OpStore %p2 %246
%249 = OpLoad %v3float %p0
%250 = OpLoad %v3float %p2
%251 = OpFAdd %v3float %249 %250
%252 = OpLoad %v3float %p1
%253 = OpFAdd %v3float %251 %252
%257 = OpCompositeConstruct %v3float %float_3 %float_3 %float_3
%255 = OpFDiv %v3float %253 %257
OpStore %center %255
%260 = OpLoad %v3float %p1
%259 = OpFunctionCall %v3float %toVoxelPos %260
OpStore %voxelPos_0 %259
%263 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_1
%264 = OpLoad %uint %263
%265 = OpLoad %v3float %p0
%262 = OpFunctionCall %uint %toIndex1D %264 %265
OpStore %lIndex %262
%269 = OpLoad %uint %i1
%270 = OpAccessChain %_ptr_StorageBuffer_int %LUT %uint_0 %269
%267 = OpAtomicIAdd %int %270 %uint_1 %uint_0 %int_1
OpStore %triangleOffset %267
OpReturn
OpFunctionEnd
%main_count = OpFunction %void None %30
%305 = OpLabel
%307 = OpLoad %v3uint %GlobalInvocationID_1
%306 = OpFunctionCall %void %main_count_inner %307
%274 = OpLabel
%276 = OpLoad %v3uint %GlobalInvocationID_1
%275 = OpFunctionCall %void %main_count_inner %276
OpReturn
OpFunctionEnd

View File

@@ -1,32 +1,7 @@
bug/chromium/1273230.wgsl:4:7 warning: use of deprecated builtin
_ = isNormal(4.);
^^^^^^^^
bug/chromium/1273230.wgsl:7:3 warning: use of deprecated builtin
isNormal(vec4<f32>());
^^^^^^^^
bug/chromium/1273230.wgsl:10:6 warning: use of deprecated builtin
isNormal(0.);
^^^^^^^^
bug/chromium/1273230.wgsl:11:9 warning: use of deprecated builtin
_ = isNormal(4.);
^^^^^^^^
bug/chromium/1273230.wgsl:12:9 warning: use of deprecated builtin
_ = isNormal(2.);
^^^^^^^^
fn marg8uintin() {
_ = 0;
_ = isNormal(4.0);
_ = vec4<f32>(2.0);
isNormal(vec4<f32>());
_ = vec4<f32>(2.0);
isNormal(0.0);
_ = isNormal(4.0);
_ = isNormal(2.0);
}
struct Uniforms {

View File

@@ -1,45 +0,0 @@
// Copyright 2021 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
////////////////////////////////////////////////////////////////////////////////
// File generated by tools/builtin-gen
// using the template:
// test/tint/builtins/builtins.wgsl.tmpl
// and the builtin defintion file:
// src/tint/builtins.def
//
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
// fn isFinite(vec<2, f32>) -> vec<2, bool>
fn isFinite_34d32b() {
var res: vec2<bool> = isFinite(vec2<f32>());
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isFinite_34d32b();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isFinite_34d32b();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isFinite_34d32b();
}

View File

@@ -1,78 +0,0 @@
SKIP: FAILED
builtins/gen/isFinite/34d32b.wgsl:28:25 warning: use of deprecated builtin
var res: vec2<bool> = isFinite(vec2<f32>());
^^^^^^^^
#version 310 es
void isFinite_34d32b() {
bvec2 res = isfinite(vec2(0.0f, 0.0f));
}
vec4 vertex_main() {
isFinite_34d32b();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
}
void main() {
vec4 inner_result = vertex_main();
gl_Position = inner_result;
gl_Position.y = -(gl_Position.y);
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
Error parsing GLSL shader:
ERROR: 0:4: 'isfinite' : no matching overloaded function found
ERROR: 0:4: '=' : cannot convert from ' const float' to ' temp 2-component vector of bool'
ERROR: 0:4: '' : compilation terminated
ERROR: 3 compilation errors. No code generated.
#version 310 es
precision mediump float;
void isFinite_34d32b() {
bvec2 res = isfinite(vec2(0.0f, 0.0f));
}
void fragment_main() {
isFinite_34d32b();
}
void main() {
fragment_main();
return;
}
Error parsing GLSL shader:
ERROR: 0:5: 'isfinite' : no matching overloaded function found
ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp 2-component vector of bool'
ERROR: 0:5: '' : compilation terminated
ERROR: 3 compilation errors. No code generated.
#version 310 es
void isFinite_34d32b() {
bvec2 res = isfinite(vec2(0.0f, 0.0f));
}
void compute_main() {
isFinite_34d32b();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
compute_main();
return;
}
Error parsing GLSL shader:
ERROR: 0:4: 'isfinite' : no matching overloaded function found
ERROR: 0:4: '=' : cannot convert from ' const float' to ' temp 2-component vector of bool'
ERROR: 0:4: '' : compilation terminated
ERROR: 3 compilation errors. No code generated.

View File

@@ -1,34 +0,0 @@
builtins/gen/isFinite/34d32b.wgsl:28:25 warning: use of deprecated builtin
var res: vec2<bool> = isFinite(vec2<f32>());
^^^^^^^^
void isFinite_34d32b() {
bool2 res = isfinite(float2(0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
isFinite_34d32b();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
isFinite_34d32b();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
isFinite_34d32b();
return;
}

View File

@@ -1,37 +0,0 @@
builtins/gen/isFinite/34d32b.wgsl:28:25 warning: use of deprecated builtin
var res: vec2<bool> = isFinite(vec2<f32>());
^^^^^^^^
#include <metal_stdlib>
using namespace metal;
void isFinite_34d32b() {
bool2 res = isfinite(float2());
}
struct tint_symbol {
float4 value [[position]];
};
float4 vertex_main_inner() {
isFinite_34d32b();
return float4();
}
vertex tint_symbol vertex_main() {
float4 const inner_result = vertex_main_inner();
tint_symbol wrapper_result = {};
wrapper_result.value = inner_result;
return wrapper_result;
}
fragment void fragment_main() {
isFinite_34d32b();
return;
}
kernel void compute_main() {
isFinite_34d32b();
return;
}

View File

@@ -1,76 +0,0 @@
builtins/gen/isFinite/34d32b.wgsl:28:25 warning: use of deprecated builtin
var res: vec2<bool> = isFinite(vec2<f32>());
^^^^^^^^
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 38
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
OpEntryPoint GLCompute %compute_main "compute_main"
OpExecutionMode %fragment_main OriginUpperLeft
OpExecutionMode %compute_main LocalSize 1 1 1
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %isFinite_34d32b "isFinite_34d32b"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
OpName %fragment_main "fragment_main"
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%5 = OpConstantNull %v4float
%value = OpVariable %_ptr_Output_v4float Output %5
%_ptr_Output_float = OpTypePointer Output %float
%8 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%bool = OpTypeBool
%v2bool = OpTypeVector %bool 2
%v2float = OpTypeVector %float 2
%17 = OpConstantNull %v2float
%_ptr_Function_v2bool = OpTypePointer Function %v2bool
%23 = OpConstantNull %v2bool
%24 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%isFinite_34d32b = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v2bool Function %23
%18 = OpIsInf %v2bool %17
%19 = OpIsNan %v2bool %17
%20 = OpLogicalOr %v2bool %18 %19
%13 = OpLogicalNot %v2bool %20
OpStore %res %13
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %24
%26 = OpLabel
%27 = OpFunctionCall %void %isFinite_34d32b
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%29 = OpLabel
%30 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %30
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%33 = OpLabel
%34 = OpFunctionCall %void %isFinite_34d32b
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%36 = OpLabel
%37 = OpFunctionCall %void %isFinite_34d32b
OpReturn
OpFunctionEnd

View File

@@ -1,23 +0,0 @@
builtins/gen/isFinite/34d32b.wgsl:28:25 warning: use of deprecated builtin
var res: vec2<bool> = isFinite(vec2<f32>());
^^^^^^^^
fn isFinite_34d32b() {
var res : vec2<bool> = isFinite(vec2<f32>());
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isFinite_34d32b();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isFinite_34d32b();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isFinite_34d32b();
}

View File

@@ -1,45 +0,0 @@
// Copyright 2021 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
////////////////////////////////////////////////////////////////////////////////
// File generated by tools/builtin-gen
// using the template:
// test/tint/builtins/builtins.wgsl.tmpl
// and the builtin defintion file:
// src/tint/builtins.def
//
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
// fn isFinite(f32) -> bool
fn isFinite_426f9f() {
var res: bool = isFinite(1.0);
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isFinite_426f9f();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isFinite_426f9f();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isFinite_426f9f();
}

View File

@@ -1,78 +0,0 @@
SKIP: FAILED
builtins/gen/isFinite/426f9f.wgsl:28:19 warning: use of deprecated builtin
var res: bool = isFinite(1.0);
^^^^^^^^
#version 310 es
void isFinite_426f9f() {
bool res = isfinite(1.0f);
}
vec4 vertex_main() {
isFinite_426f9f();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
}
void main() {
vec4 inner_result = vertex_main();
gl_Position = inner_result;
gl_Position.y = -(gl_Position.y);
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
Error parsing GLSL shader:
ERROR: 0:4: 'isfinite' : no matching overloaded function found
ERROR: 0:4: '=' : cannot convert from ' const float' to ' temp bool'
ERROR: 0:4: '' : compilation terminated
ERROR: 3 compilation errors. No code generated.
#version 310 es
precision mediump float;
void isFinite_426f9f() {
bool res = isfinite(1.0f);
}
void fragment_main() {
isFinite_426f9f();
}
void main() {
fragment_main();
return;
}
Error parsing GLSL shader:
ERROR: 0:5: 'isfinite' : no matching overloaded function found
ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp bool'
ERROR: 0:5: '' : compilation terminated
ERROR: 3 compilation errors. No code generated.
#version 310 es
void isFinite_426f9f() {
bool res = isfinite(1.0f);
}
void compute_main() {
isFinite_426f9f();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
compute_main();
return;
}
Error parsing GLSL shader:
ERROR: 0:4: 'isfinite' : no matching overloaded function found
ERROR: 0:4: '=' : cannot convert from ' const float' to ' temp bool'
ERROR: 0:4: '' : compilation terminated
ERROR: 3 compilation errors. No code generated.

View File

@@ -1,34 +0,0 @@
builtins/gen/isFinite/426f9f.wgsl:28:19 warning: use of deprecated builtin
var res: bool = isFinite(1.0);
^^^^^^^^
void isFinite_426f9f() {
bool res = isfinite(1.0f);
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
isFinite_426f9f();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
isFinite_426f9f();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
isFinite_426f9f();
return;
}

View File

@@ -1,37 +0,0 @@
builtins/gen/isFinite/426f9f.wgsl:28:19 warning: use of deprecated builtin
var res: bool = isFinite(1.0);
^^^^^^^^
#include <metal_stdlib>
using namespace metal;
void isFinite_426f9f() {
bool res = isfinite(1.0f);
}
struct tint_symbol {
float4 value [[position]];
};
float4 vertex_main_inner() {
isFinite_426f9f();
return float4();
}
vertex tint_symbol vertex_main() {
float4 const inner_result = vertex_main_inner();
tint_symbol wrapper_result = {};
wrapper_result.value = inner_result;
return wrapper_result;
}
fragment void fragment_main() {
isFinite_426f9f();
return;
}
kernel void compute_main() {
isFinite_426f9f();
return;
}

View File

@@ -1,73 +0,0 @@
builtins/gen/isFinite/426f9f.wgsl:28:19 warning: use of deprecated builtin
var res: bool = isFinite(1.0);
^^^^^^^^
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 35
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
OpEntryPoint GLCompute %compute_main "compute_main"
OpExecutionMode %fragment_main OriginUpperLeft
OpExecutionMode %compute_main LocalSize 1 1 1
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %isFinite_426f9f "isFinite_426f9f"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
OpName %fragment_main "fragment_main"
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%5 = OpConstantNull %v4float
%value = OpVariable %_ptr_Output_v4float Output %5
%_ptr_Output_float = OpTypePointer Output %float
%8 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%bool = OpTypeBool
%float_1 = OpConstant %float 1
%_ptr_Function_bool = OpTypePointer Function %bool
%21 = OpConstantNull %bool
%22 = OpTypeFunction %v4float
%isFinite_426f9f = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_bool Function %21
%16 = OpIsInf %bool %float_1
%17 = OpIsNan %bool %float_1
%18 = OpLogicalOr %bool %16 %17
%13 = OpLogicalNot %bool %18
OpStore %res %13
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %22
%24 = OpLabel
%25 = OpFunctionCall %void %isFinite_426f9f
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%27 = OpLabel
%28 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %28
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%30 = OpLabel
%31 = OpFunctionCall %void %isFinite_426f9f
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%33 = OpLabel
%34 = OpFunctionCall %void %isFinite_426f9f
OpReturn
OpFunctionEnd

View File

@@ -1,23 +0,0 @@
builtins/gen/isFinite/426f9f.wgsl:28:19 warning: use of deprecated builtin
var res: bool = isFinite(1.0);
^^^^^^^^
fn isFinite_426f9f() {
var res : bool = isFinite(1.0);
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isFinite_426f9f();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isFinite_426f9f();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isFinite_426f9f();
}

View File

@@ -1,45 +0,0 @@
// Copyright 2021 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
////////////////////////////////////////////////////////////////////////////////
// File generated by tools/builtin-gen
// using the template:
// test/tint/builtins/builtins.wgsl.tmpl
// and the builtin defintion file:
// src/tint/builtins.def
//
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
// fn isFinite(vec<3, f32>) -> vec<3, bool>
fn isFinite_8a23ad() {
var res: vec3<bool> = isFinite(vec3<f32>());
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isFinite_8a23ad();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isFinite_8a23ad();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isFinite_8a23ad();
}

View File

@@ -1,78 +0,0 @@
SKIP: FAILED
builtins/gen/isFinite/8a23ad.wgsl:28:25 warning: use of deprecated builtin
var res: vec3<bool> = isFinite(vec3<f32>());
^^^^^^^^
#version 310 es
void isFinite_8a23ad() {
bvec3 res = isfinite(vec3(0.0f, 0.0f, 0.0f));
}
vec4 vertex_main() {
isFinite_8a23ad();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
}
void main() {
vec4 inner_result = vertex_main();
gl_Position = inner_result;
gl_Position.y = -(gl_Position.y);
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
Error parsing GLSL shader:
ERROR: 0:4: 'isfinite' : no matching overloaded function found
ERROR: 0:4: '=' : cannot convert from ' const float' to ' temp 3-component vector of bool'
ERROR: 0:4: '' : compilation terminated
ERROR: 3 compilation errors. No code generated.
#version 310 es
precision mediump float;
void isFinite_8a23ad() {
bvec3 res = isfinite(vec3(0.0f, 0.0f, 0.0f));
}
void fragment_main() {
isFinite_8a23ad();
}
void main() {
fragment_main();
return;
}
Error parsing GLSL shader:
ERROR: 0:5: 'isfinite' : no matching overloaded function found
ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp 3-component vector of bool'
ERROR: 0:5: '' : compilation terminated
ERROR: 3 compilation errors. No code generated.
#version 310 es
void isFinite_8a23ad() {
bvec3 res = isfinite(vec3(0.0f, 0.0f, 0.0f));
}
void compute_main() {
isFinite_8a23ad();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
compute_main();
return;
}
Error parsing GLSL shader:
ERROR: 0:4: 'isfinite' : no matching overloaded function found
ERROR: 0:4: '=' : cannot convert from ' const float' to ' temp 3-component vector of bool'
ERROR: 0:4: '' : compilation terminated
ERROR: 3 compilation errors. No code generated.

View File

@@ -1,34 +0,0 @@
builtins/gen/isFinite/8a23ad.wgsl:28:25 warning: use of deprecated builtin
var res: vec3<bool> = isFinite(vec3<f32>());
^^^^^^^^
void isFinite_8a23ad() {
bool3 res = isfinite(float3(0.0f, 0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
isFinite_8a23ad();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
isFinite_8a23ad();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
isFinite_8a23ad();
return;
}

View File

@@ -1,37 +0,0 @@
builtins/gen/isFinite/8a23ad.wgsl:28:25 warning: use of deprecated builtin
var res: vec3<bool> = isFinite(vec3<f32>());
^^^^^^^^
#include <metal_stdlib>
using namespace metal;
void isFinite_8a23ad() {
bool3 res = isfinite(float3());
}
struct tint_symbol {
float4 value [[position]];
};
float4 vertex_main_inner() {
isFinite_8a23ad();
return float4();
}
vertex tint_symbol vertex_main() {
float4 const inner_result = vertex_main_inner();
tint_symbol wrapper_result = {};
wrapper_result.value = inner_result;
return wrapper_result;
}
fragment void fragment_main() {
isFinite_8a23ad();
return;
}
kernel void compute_main() {
isFinite_8a23ad();
return;
}

View File

@@ -1,76 +0,0 @@
builtins/gen/isFinite/8a23ad.wgsl:28:25 warning: use of deprecated builtin
var res: vec3<bool> = isFinite(vec3<f32>());
^^^^^^^^
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 38
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
OpEntryPoint GLCompute %compute_main "compute_main"
OpExecutionMode %fragment_main OriginUpperLeft
OpExecutionMode %compute_main LocalSize 1 1 1
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %isFinite_8a23ad "isFinite_8a23ad"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
OpName %fragment_main "fragment_main"
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%5 = OpConstantNull %v4float
%value = OpVariable %_ptr_Output_v4float Output %5
%_ptr_Output_float = OpTypePointer Output %float
%8 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%bool = OpTypeBool
%v3bool = OpTypeVector %bool 3
%v3float = OpTypeVector %float 3
%17 = OpConstantNull %v3float
%_ptr_Function_v3bool = OpTypePointer Function %v3bool
%23 = OpConstantNull %v3bool
%24 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%isFinite_8a23ad = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v3bool Function %23
%18 = OpIsInf %v3bool %17
%19 = OpIsNan %v3bool %17
%20 = OpLogicalOr %v3bool %18 %19
%13 = OpLogicalNot %v3bool %20
OpStore %res %13
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %24
%26 = OpLabel
%27 = OpFunctionCall %void %isFinite_8a23ad
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%29 = OpLabel
%30 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %30
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%33 = OpLabel
%34 = OpFunctionCall %void %isFinite_8a23ad
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%36 = OpLabel
%37 = OpFunctionCall %void %isFinite_8a23ad
OpReturn
OpFunctionEnd

View File

@@ -1,23 +0,0 @@
builtins/gen/isFinite/8a23ad.wgsl:28:25 warning: use of deprecated builtin
var res: vec3<bool> = isFinite(vec3<f32>());
^^^^^^^^
fn isFinite_8a23ad() {
var res : vec3<bool> = isFinite(vec3<f32>());
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isFinite_8a23ad();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isFinite_8a23ad();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isFinite_8a23ad();
}

View File

@@ -1,45 +0,0 @@
// Copyright 2021 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
////////////////////////////////////////////////////////////////////////////////
// File generated by tools/builtin-gen
// using the template:
// test/tint/builtins/builtins.wgsl.tmpl
// and the builtin defintion file:
// src/tint/builtins.def
//
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
// fn isFinite(vec<4, f32>) -> vec<4, bool>
fn isFinite_f31987() {
var res: vec4<bool> = isFinite(vec4<f32>());
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isFinite_f31987();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isFinite_f31987();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isFinite_f31987();
}

View File

@@ -1,78 +0,0 @@
SKIP: FAILED
builtins/gen/isFinite/f31987.wgsl:28:25 warning: use of deprecated builtin
var res: vec4<bool> = isFinite(vec4<f32>());
^^^^^^^^
#version 310 es
void isFinite_f31987() {
bvec4 res = isfinite(vec4(0.0f, 0.0f, 0.0f, 0.0f));
}
vec4 vertex_main() {
isFinite_f31987();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
}
void main() {
vec4 inner_result = vertex_main();
gl_Position = inner_result;
gl_Position.y = -(gl_Position.y);
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
Error parsing GLSL shader:
ERROR: 0:4: 'isfinite' : no matching overloaded function found
ERROR: 0:4: '=' : cannot convert from ' const float' to ' temp 4-component vector of bool'
ERROR: 0:4: '' : compilation terminated
ERROR: 3 compilation errors. No code generated.
#version 310 es
precision mediump float;
void isFinite_f31987() {
bvec4 res = isfinite(vec4(0.0f, 0.0f, 0.0f, 0.0f));
}
void fragment_main() {
isFinite_f31987();
}
void main() {
fragment_main();
return;
}
Error parsing GLSL shader:
ERROR: 0:5: 'isfinite' : no matching overloaded function found
ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp 4-component vector of bool'
ERROR: 0:5: '' : compilation terminated
ERROR: 3 compilation errors. No code generated.
#version 310 es
void isFinite_f31987() {
bvec4 res = isfinite(vec4(0.0f, 0.0f, 0.0f, 0.0f));
}
void compute_main() {
isFinite_f31987();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
compute_main();
return;
}
Error parsing GLSL shader:
ERROR: 0:4: 'isfinite' : no matching overloaded function found
ERROR: 0:4: '=' : cannot convert from ' const float' to ' temp 4-component vector of bool'
ERROR: 0:4: '' : compilation terminated
ERROR: 3 compilation errors. No code generated.

View File

@@ -1,34 +0,0 @@
builtins/gen/isFinite/f31987.wgsl:28:25 warning: use of deprecated builtin
var res: vec4<bool> = isFinite(vec4<f32>());
^^^^^^^^
void isFinite_f31987() {
bool4 res = isfinite(float4(0.0f, 0.0f, 0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
isFinite_f31987();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
isFinite_f31987();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
isFinite_f31987();
return;
}

View File

@@ -1,37 +0,0 @@
builtins/gen/isFinite/f31987.wgsl:28:25 warning: use of deprecated builtin
var res: vec4<bool> = isFinite(vec4<f32>());
^^^^^^^^
#include <metal_stdlib>
using namespace metal;
void isFinite_f31987() {
bool4 res = isfinite(float4());
}
struct tint_symbol {
float4 value [[position]];
};
float4 vertex_main_inner() {
isFinite_f31987();
return float4();
}
vertex tint_symbol vertex_main() {
float4 const inner_result = vertex_main_inner();
tint_symbol wrapper_result = {};
wrapper_result.value = inner_result;
return wrapper_result;
}
fragment void fragment_main() {
isFinite_f31987();
return;
}
kernel void compute_main() {
isFinite_f31987();
return;
}

View File

@@ -1,74 +0,0 @@
builtins/gen/isFinite/f31987.wgsl:28:25 warning: use of deprecated builtin
var res: vec4<bool> = isFinite(vec4<f32>());
^^^^^^^^
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 36
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
OpEntryPoint GLCompute %compute_main "compute_main"
OpExecutionMode %fragment_main OriginUpperLeft
OpExecutionMode %compute_main LocalSize 1 1 1
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %isFinite_f31987 "isFinite_f31987"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
OpName %fragment_main "fragment_main"
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%5 = OpConstantNull %v4float
%value = OpVariable %_ptr_Output_v4float Output %5
%_ptr_Output_float = OpTypePointer Output %float
%8 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%bool = OpTypeBool
%v4bool = OpTypeVector %bool 4
%_ptr_Function_v4bool = OpTypePointer Function %v4bool
%21 = OpConstantNull %v4bool
%22 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%isFinite_f31987 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v4bool Function %21
%16 = OpIsInf %v4bool %5
%17 = OpIsNan %v4bool %5
%18 = OpLogicalOr %v4bool %16 %17
%13 = OpLogicalNot %v4bool %18
OpStore %res %13
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %22
%24 = OpLabel
%25 = OpFunctionCall %void %isFinite_f31987
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%27 = OpLabel
%28 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %28
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%31 = OpLabel
%32 = OpFunctionCall %void %isFinite_f31987
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%34 = OpLabel
%35 = OpFunctionCall %void %isFinite_f31987
OpReturn
OpFunctionEnd

View File

@@ -1,23 +0,0 @@
builtins/gen/isFinite/f31987.wgsl:28:25 warning: use of deprecated builtin
var res: vec4<bool> = isFinite(vec4<f32>());
^^^^^^^^
fn isFinite_f31987() {
var res : vec4<bool> = isFinite(vec4<f32>());
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isFinite_f31987();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isFinite_f31987();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isFinite_f31987();
}

View File

@@ -1,45 +0,0 @@
// Copyright 2021 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
////////////////////////////////////////////////////////////////////////////////
// File generated by tools/builtin-gen
// using the template:
// test/tint/builtins/builtins.wgsl.tmpl
// and the builtin defintion file:
// src/tint/builtins.def
//
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
// fn isInf(vec<3, f32>) -> vec<3, bool>
fn isInf_666f2a() {
var res: vec3<bool> = isInf(vec3<f32>());
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isInf_666f2a();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isInf_666f2a();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isInf_666f2a();
}

View File

@@ -1,52 +0,0 @@
builtins/gen/isInf/666f2a.wgsl:28:25 warning: use of deprecated builtin
var res: vec3<bool> = isInf(vec3<f32>());
^^^^^
#version 310 es
void isInf_666f2a() {
bvec3 res = isinf(vec3(0.0f, 0.0f, 0.0f));
}
vec4 vertex_main() {
isInf_666f2a();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
}
void main() {
vec4 inner_result = vertex_main();
gl_Position = inner_result;
gl_Position.y = -(gl_Position.y);
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
#version 310 es
precision mediump float;
void isInf_666f2a() {
bvec3 res = isinf(vec3(0.0f, 0.0f, 0.0f));
}
void fragment_main() {
isInf_666f2a();
}
void main() {
fragment_main();
return;
}
#version 310 es
void isInf_666f2a() {
bvec3 res = isinf(vec3(0.0f, 0.0f, 0.0f));
}
void compute_main() {
isInf_666f2a();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
compute_main();
return;
}

View File

@@ -1,34 +0,0 @@
builtins/gen/isInf/666f2a.wgsl:28:25 warning: use of deprecated builtin
var res: vec3<bool> = isInf(vec3<f32>());
^^^^^
void isInf_666f2a() {
bool3 res = isinf(float3(0.0f, 0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
isInf_666f2a();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
isInf_666f2a();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
isInf_666f2a();
return;
}

View File

@@ -1,37 +0,0 @@
builtins/gen/isInf/666f2a.wgsl:28:25 warning: use of deprecated builtin
var res: vec3<bool> = isInf(vec3<f32>());
^^^^^
#include <metal_stdlib>
using namespace metal;
void isInf_666f2a() {
bool3 res = isinf(float3());
}
struct tint_symbol {
float4 value [[position]];
};
float4 vertex_main_inner() {
isInf_666f2a();
return float4();
}
vertex tint_symbol vertex_main() {
float4 const inner_result = vertex_main_inner();
tint_symbol wrapper_result = {};
wrapper_result.value = inner_result;
return wrapper_result;
}
fragment void fragment_main() {
isInf_666f2a();
return;
}
kernel void compute_main() {
isInf_666f2a();
return;
}

View File

@@ -1,73 +0,0 @@
builtins/gen/isInf/666f2a.wgsl:28:25 warning: use of deprecated builtin
var res: vec3<bool> = isInf(vec3<f32>());
^^^^^
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 35
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
OpEntryPoint GLCompute %compute_main "compute_main"
OpExecutionMode %fragment_main OriginUpperLeft
OpExecutionMode %compute_main LocalSize 1 1 1
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %isInf_666f2a "isInf_666f2a"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
OpName %fragment_main "fragment_main"
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%5 = OpConstantNull %v4float
%value = OpVariable %_ptr_Output_v4float Output %5
%_ptr_Output_float = OpTypePointer Output %float
%8 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%bool = OpTypeBool
%v3bool = OpTypeVector %bool 3
%v3float = OpTypeVector %float 3
%17 = OpConstantNull %v3float
%_ptr_Function_v3bool = OpTypePointer Function %v3bool
%20 = OpConstantNull %v3bool
%21 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%isInf_666f2a = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v3bool Function %20
%13 = OpIsInf %v3bool %17
OpStore %res %13
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %21
%23 = OpLabel
%24 = OpFunctionCall %void %isInf_666f2a
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%26 = OpLabel
%27 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %27
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%30 = OpLabel
%31 = OpFunctionCall %void %isInf_666f2a
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%33 = OpLabel
%34 = OpFunctionCall %void %isInf_666f2a
OpReturn
OpFunctionEnd

View File

@@ -1,23 +0,0 @@
builtins/gen/isInf/666f2a.wgsl:28:25 warning: use of deprecated builtin
var res: vec3<bool> = isInf(vec3<f32>());
^^^^^
fn isInf_666f2a() {
var res : vec3<bool> = isInf(vec3<f32>());
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isInf_666f2a();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isInf_666f2a();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isInf_666f2a();
}

View File

@@ -1,45 +0,0 @@
// Copyright 2021 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
////////////////////////////////////////////////////////////////////////////////
// File generated by tools/builtin-gen
// using the template:
// test/tint/builtins/builtins.wgsl.tmpl
// and the builtin defintion file:
// src/tint/builtins.def
//
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
// fn isInf(f32) -> bool
fn isInf_7bd98f() {
var res: bool = isInf(1.0);
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isInf_7bd98f();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isInf_7bd98f();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isInf_7bd98f();
}

View File

@@ -1,52 +0,0 @@
builtins/gen/isInf/7bd98f.wgsl:28:19 warning: use of deprecated builtin
var res: bool = isInf(1.0);
^^^^^
#version 310 es
void isInf_7bd98f() {
bool res = isinf(1.0f);
}
vec4 vertex_main() {
isInf_7bd98f();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
}
void main() {
vec4 inner_result = vertex_main();
gl_Position = inner_result;
gl_Position.y = -(gl_Position.y);
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
#version 310 es
precision mediump float;
void isInf_7bd98f() {
bool res = isinf(1.0f);
}
void fragment_main() {
isInf_7bd98f();
}
void main() {
fragment_main();
return;
}
#version 310 es
void isInf_7bd98f() {
bool res = isinf(1.0f);
}
void compute_main() {
isInf_7bd98f();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
compute_main();
return;
}

View File

@@ -1,34 +0,0 @@
builtins/gen/isInf/7bd98f.wgsl:28:19 warning: use of deprecated builtin
var res: bool = isInf(1.0);
^^^^^
void isInf_7bd98f() {
bool res = isinf(1.0f);
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
isInf_7bd98f();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
isInf_7bd98f();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
isInf_7bd98f();
return;
}

View File

@@ -1,37 +0,0 @@
builtins/gen/isInf/7bd98f.wgsl:28:19 warning: use of deprecated builtin
var res: bool = isInf(1.0);
^^^^^
#include <metal_stdlib>
using namespace metal;
void isInf_7bd98f() {
bool res = isinf(1.0f);
}
struct tint_symbol {
float4 value [[position]];
};
float4 vertex_main_inner() {
isInf_7bd98f();
return float4();
}
vertex tint_symbol vertex_main() {
float4 const inner_result = vertex_main_inner();
tint_symbol wrapper_result = {};
wrapper_result.value = inner_result;
return wrapper_result;
}
fragment void fragment_main() {
isInf_7bd98f();
return;
}
kernel void compute_main() {
isInf_7bd98f();
return;
}

View File

@@ -1,70 +0,0 @@
builtins/gen/isInf/7bd98f.wgsl:28:19 warning: use of deprecated builtin
var res: bool = isInf(1.0);
^^^^^
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 32
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
OpEntryPoint GLCompute %compute_main "compute_main"
OpExecutionMode %fragment_main OriginUpperLeft
OpExecutionMode %compute_main LocalSize 1 1 1
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %isInf_7bd98f "isInf_7bd98f"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
OpName %fragment_main "fragment_main"
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%5 = OpConstantNull %v4float
%value = OpVariable %_ptr_Output_v4float Output %5
%_ptr_Output_float = OpTypePointer Output %float
%8 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%bool = OpTypeBool
%float_1 = OpConstant %float 1
%_ptr_Function_bool = OpTypePointer Function %bool
%18 = OpConstantNull %bool
%19 = OpTypeFunction %v4float
%isInf_7bd98f = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_bool Function %18
%13 = OpIsInf %bool %float_1
OpStore %res %13
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %19
%21 = OpLabel
%22 = OpFunctionCall %void %isInf_7bd98f
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%24 = OpLabel
%25 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %25
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%27 = OpLabel
%28 = OpFunctionCall %void %isInf_7bd98f
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%30 = OpLabel
%31 = OpFunctionCall %void %isInf_7bd98f
OpReturn
OpFunctionEnd

View File

@@ -1,23 +0,0 @@
builtins/gen/isInf/7bd98f.wgsl:28:19 warning: use of deprecated builtin
var res: bool = isInf(1.0);
^^^^^
fn isInf_7bd98f() {
var res : bool = isInf(1.0);
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isInf_7bd98f();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isInf_7bd98f();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isInf_7bd98f();
}

View File

@@ -1,45 +0,0 @@
// Copyright 2021 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
////////////////////////////////////////////////////////////////////////////////
// File generated by tools/builtin-gen
// using the template:
// test/tint/builtins/builtins.wgsl.tmpl
// and the builtin defintion file:
// src/tint/builtins.def
//
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
// fn isInf(vec<4, f32>) -> vec<4, bool>
fn isInf_7e81b5() {
var res: vec4<bool> = isInf(vec4<f32>());
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isInf_7e81b5();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isInf_7e81b5();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isInf_7e81b5();
}

View File

@@ -1,52 +0,0 @@
builtins/gen/isInf/7e81b5.wgsl:28:25 warning: use of deprecated builtin
var res: vec4<bool> = isInf(vec4<f32>());
^^^^^
#version 310 es
void isInf_7e81b5() {
bvec4 res = isinf(vec4(0.0f, 0.0f, 0.0f, 0.0f));
}
vec4 vertex_main() {
isInf_7e81b5();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
}
void main() {
vec4 inner_result = vertex_main();
gl_Position = inner_result;
gl_Position.y = -(gl_Position.y);
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
#version 310 es
precision mediump float;
void isInf_7e81b5() {
bvec4 res = isinf(vec4(0.0f, 0.0f, 0.0f, 0.0f));
}
void fragment_main() {
isInf_7e81b5();
}
void main() {
fragment_main();
return;
}
#version 310 es
void isInf_7e81b5() {
bvec4 res = isinf(vec4(0.0f, 0.0f, 0.0f, 0.0f));
}
void compute_main() {
isInf_7e81b5();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
compute_main();
return;
}

View File

@@ -1,34 +0,0 @@
builtins/gen/isInf/7e81b5.wgsl:28:25 warning: use of deprecated builtin
var res: vec4<bool> = isInf(vec4<f32>());
^^^^^
void isInf_7e81b5() {
bool4 res = isinf(float4(0.0f, 0.0f, 0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
isInf_7e81b5();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
isInf_7e81b5();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
isInf_7e81b5();
return;
}

View File

@@ -1,37 +0,0 @@
builtins/gen/isInf/7e81b5.wgsl:28:25 warning: use of deprecated builtin
var res: vec4<bool> = isInf(vec4<f32>());
^^^^^
#include <metal_stdlib>
using namespace metal;
void isInf_7e81b5() {
bool4 res = isinf(float4());
}
struct tint_symbol {
float4 value [[position]];
};
float4 vertex_main_inner() {
isInf_7e81b5();
return float4();
}
vertex tint_symbol vertex_main() {
float4 const inner_result = vertex_main_inner();
tint_symbol wrapper_result = {};
wrapper_result.value = inner_result;
return wrapper_result;
}
fragment void fragment_main() {
isInf_7e81b5();
return;
}
kernel void compute_main() {
isInf_7e81b5();
return;
}

View File

@@ -1,71 +0,0 @@
builtins/gen/isInf/7e81b5.wgsl:28:25 warning: use of deprecated builtin
var res: vec4<bool> = isInf(vec4<f32>());
^^^^^
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 33
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
OpEntryPoint GLCompute %compute_main "compute_main"
OpExecutionMode %fragment_main OriginUpperLeft
OpExecutionMode %compute_main LocalSize 1 1 1
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %isInf_7e81b5 "isInf_7e81b5"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
OpName %fragment_main "fragment_main"
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%5 = OpConstantNull %v4float
%value = OpVariable %_ptr_Output_v4float Output %5
%_ptr_Output_float = OpTypePointer Output %float
%8 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%bool = OpTypeBool
%v4bool = OpTypeVector %bool 4
%_ptr_Function_v4bool = OpTypePointer Function %v4bool
%18 = OpConstantNull %v4bool
%19 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%isInf_7e81b5 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v4bool Function %18
%13 = OpIsInf %v4bool %5
OpStore %res %13
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %19
%21 = OpLabel
%22 = OpFunctionCall %void %isInf_7e81b5
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%24 = OpLabel
%25 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %25
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%28 = OpLabel
%29 = OpFunctionCall %void %isInf_7e81b5
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%31 = OpLabel
%32 = OpFunctionCall %void %isInf_7e81b5
OpReturn
OpFunctionEnd

View File

@@ -1,23 +0,0 @@
builtins/gen/isInf/7e81b5.wgsl:28:25 warning: use of deprecated builtin
var res: vec4<bool> = isInf(vec4<f32>());
^^^^^
fn isInf_7e81b5() {
var res : vec4<bool> = isInf(vec4<f32>());
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isInf_7e81b5();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isInf_7e81b5();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isInf_7e81b5();
}

View File

@@ -1,45 +0,0 @@
// Copyright 2021 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
////////////////////////////////////////////////////////////////////////////////
// File generated by tools/builtin-gen
// using the template:
// test/tint/builtins/builtins.wgsl.tmpl
// and the builtin defintion file:
// src/tint/builtins.def
//
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
// fn isInf(vec<2, f32>) -> vec<2, bool>
fn isInf_a46d6f() {
var res: vec2<bool> = isInf(vec2<f32>());
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isInf_a46d6f();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isInf_a46d6f();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isInf_a46d6f();
}

View File

@@ -1,52 +0,0 @@
builtins/gen/isInf/a46d6f.wgsl:28:25 warning: use of deprecated builtin
var res: vec2<bool> = isInf(vec2<f32>());
^^^^^
#version 310 es
void isInf_a46d6f() {
bvec2 res = isinf(vec2(0.0f, 0.0f));
}
vec4 vertex_main() {
isInf_a46d6f();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
}
void main() {
vec4 inner_result = vertex_main();
gl_Position = inner_result;
gl_Position.y = -(gl_Position.y);
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
#version 310 es
precision mediump float;
void isInf_a46d6f() {
bvec2 res = isinf(vec2(0.0f, 0.0f));
}
void fragment_main() {
isInf_a46d6f();
}
void main() {
fragment_main();
return;
}
#version 310 es
void isInf_a46d6f() {
bvec2 res = isinf(vec2(0.0f, 0.0f));
}
void compute_main() {
isInf_a46d6f();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
compute_main();
return;
}

View File

@@ -1,34 +0,0 @@
builtins/gen/isInf/a46d6f.wgsl:28:25 warning: use of deprecated builtin
var res: vec2<bool> = isInf(vec2<f32>());
^^^^^
void isInf_a46d6f() {
bool2 res = isinf(float2(0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
isInf_a46d6f();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
isInf_a46d6f();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
isInf_a46d6f();
return;
}

View File

@@ -1,37 +0,0 @@
builtins/gen/isInf/a46d6f.wgsl:28:25 warning: use of deprecated builtin
var res: vec2<bool> = isInf(vec2<f32>());
^^^^^
#include <metal_stdlib>
using namespace metal;
void isInf_a46d6f() {
bool2 res = isinf(float2());
}
struct tint_symbol {
float4 value [[position]];
};
float4 vertex_main_inner() {
isInf_a46d6f();
return float4();
}
vertex tint_symbol vertex_main() {
float4 const inner_result = vertex_main_inner();
tint_symbol wrapper_result = {};
wrapper_result.value = inner_result;
return wrapper_result;
}
fragment void fragment_main() {
isInf_a46d6f();
return;
}
kernel void compute_main() {
isInf_a46d6f();
return;
}

View File

@@ -1,73 +0,0 @@
builtins/gen/isInf/a46d6f.wgsl:28:25 warning: use of deprecated builtin
var res: vec2<bool> = isInf(vec2<f32>());
^^^^^
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 35
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
OpEntryPoint GLCompute %compute_main "compute_main"
OpExecutionMode %fragment_main OriginUpperLeft
OpExecutionMode %compute_main LocalSize 1 1 1
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %isInf_a46d6f "isInf_a46d6f"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
OpName %fragment_main "fragment_main"
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%5 = OpConstantNull %v4float
%value = OpVariable %_ptr_Output_v4float Output %5
%_ptr_Output_float = OpTypePointer Output %float
%8 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%bool = OpTypeBool
%v2bool = OpTypeVector %bool 2
%v2float = OpTypeVector %float 2
%17 = OpConstantNull %v2float
%_ptr_Function_v2bool = OpTypePointer Function %v2bool
%20 = OpConstantNull %v2bool
%21 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%isInf_a46d6f = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v2bool Function %20
%13 = OpIsInf %v2bool %17
OpStore %res %13
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %21
%23 = OpLabel
%24 = OpFunctionCall %void %isInf_a46d6f
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%26 = OpLabel
%27 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %27
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%30 = OpLabel
%31 = OpFunctionCall %void %isInf_a46d6f
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%33 = OpLabel
%34 = OpFunctionCall %void %isInf_a46d6f
OpReturn
OpFunctionEnd

View File

@@ -1,23 +0,0 @@
builtins/gen/isInf/a46d6f.wgsl:28:25 warning: use of deprecated builtin
var res: vec2<bool> = isInf(vec2<f32>());
^^^^^
fn isInf_a46d6f() {
var res : vec2<bool> = isInf(vec2<f32>());
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isInf_a46d6f();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isInf_a46d6f();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isInf_a46d6f();
}

View File

@@ -1,45 +0,0 @@
// Copyright 2021 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
////////////////////////////////////////////////////////////////////////////////
// File generated by tools/builtin-gen
// using the template:
// test/tint/builtins/builtins.wgsl.tmpl
// and the builtin defintion file:
// src/tint/builtins.def
//
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
// fn isNan(vec<3, f32>) -> vec<3, bool>
fn isNan_1280ab() {
var res: vec3<bool> = isNan(vec3<f32>());
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isNan_1280ab();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isNan_1280ab();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isNan_1280ab();
}

View File

@@ -1,52 +0,0 @@
builtins/gen/isNan/1280ab.wgsl:28:25 warning: use of deprecated builtin
var res: vec3<bool> = isNan(vec3<f32>());
^^^^^
#version 310 es
void isNan_1280ab() {
bvec3 res = isnan(vec3(0.0f, 0.0f, 0.0f));
}
vec4 vertex_main() {
isNan_1280ab();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
}
void main() {
vec4 inner_result = vertex_main();
gl_Position = inner_result;
gl_Position.y = -(gl_Position.y);
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
#version 310 es
precision mediump float;
void isNan_1280ab() {
bvec3 res = isnan(vec3(0.0f, 0.0f, 0.0f));
}
void fragment_main() {
isNan_1280ab();
}
void main() {
fragment_main();
return;
}
#version 310 es
void isNan_1280ab() {
bvec3 res = isnan(vec3(0.0f, 0.0f, 0.0f));
}
void compute_main() {
isNan_1280ab();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
compute_main();
return;
}

View File

@@ -1,34 +0,0 @@
builtins/gen/isNan/1280ab.wgsl:28:25 warning: use of deprecated builtin
var res: vec3<bool> = isNan(vec3<f32>());
^^^^^
void isNan_1280ab() {
bool3 res = isnan(float3(0.0f, 0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
isNan_1280ab();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
isNan_1280ab();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
isNan_1280ab();
return;
}

View File

@@ -1,37 +0,0 @@
builtins/gen/isNan/1280ab.wgsl:28:25 warning: use of deprecated builtin
var res: vec3<bool> = isNan(vec3<f32>());
^^^^^
#include <metal_stdlib>
using namespace metal;
void isNan_1280ab() {
bool3 res = isnan(float3());
}
struct tint_symbol {
float4 value [[position]];
};
float4 vertex_main_inner() {
isNan_1280ab();
return float4();
}
vertex tint_symbol vertex_main() {
float4 const inner_result = vertex_main_inner();
tint_symbol wrapper_result = {};
wrapper_result.value = inner_result;
return wrapper_result;
}
fragment void fragment_main() {
isNan_1280ab();
return;
}
kernel void compute_main() {
isNan_1280ab();
return;
}

View File

@@ -1,73 +0,0 @@
builtins/gen/isNan/1280ab.wgsl:28:25 warning: use of deprecated builtin
var res: vec3<bool> = isNan(vec3<f32>());
^^^^^
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 35
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
OpEntryPoint GLCompute %compute_main "compute_main"
OpExecutionMode %fragment_main OriginUpperLeft
OpExecutionMode %compute_main LocalSize 1 1 1
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %isNan_1280ab "isNan_1280ab"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
OpName %fragment_main "fragment_main"
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%5 = OpConstantNull %v4float
%value = OpVariable %_ptr_Output_v4float Output %5
%_ptr_Output_float = OpTypePointer Output %float
%8 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%bool = OpTypeBool
%v3bool = OpTypeVector %bool 3
%v3float = OpTypeVector %float 3
%17 = OpConstantNull %v3float
%_ptr_Function_v3bool = OpTypePointer Function %v3bool
%20 = OpConstantNull %v3bool
%21 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%isNan_1280ab = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v3bool Function %20
%13 = OpIsNan %v3bool %17
OpStore %res %13
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %21
%23 = OpLabel
%24 = OpFunctionCall %void %isNan_1280ab
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%26 = OpLabel
%27 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %27
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%30 = OpLabel
%31 = OpFunctionCall %void %isNan_1280ab
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%33 = OpLabel
%34 = OpFunctionCall %void %isNan_1280ab
OpReturn
OpFunctionEnd

View File

@@ -1,23 +0,0 @@
builtins/gen/isNan/1280ab.wgsl:28:25 warning: use of deprecated builtin
var res: vec3<bool> = isNan(vec3<f32>());
^^^^^
fn isNan_1280ab() {
var res : vec3<bool> = isNan(vec3<f32>());
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isNan_1280ab();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isNan_1280ab();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isNan_1280ab();
}

View File

@@ -1,45 +0,0 @@
// Copyright 2021 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
////////////////////////////////////////////////////////////////////////////////
// File generated by tools/builtin-gen
// using the template:
// test/tint/builtins/builtins.wgsl.tmpl
// and the builtin defintion file:
// src/tint/builtins.def
//
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
// fn isNan(vec<4, f32>) -> vec<4, bool>
fn isNan_4d280d() {
var res: vec4<bool> = isNan(vec4<f32>());
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isNan_4d280d();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isNan_4d280d();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isNan_4d280d();
}

View File

@@ -1,52 +0,0 @@
builtins/gen/isNan/4d280d.wgsl:28:25 warning: use of deprecated builtin
var res: vec4<bool> = isNan(vec4<f32>());
^^^^^
#version 310 es
void isNan_4d280d() {
bvec4 res = isnan(vec4(0.0f, 0.0f, 0.0f, 0.0f));
}
vec4 vertex_main() {
isNan_4d280d();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
}
void main() {
vec4 inner_result = vertex_main();
gl_Position = inner_result;
gl_Position.y = -(gl_Position.y);
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
#version 310 es
precision mediump float;
void isNan_4d280d() {
bvec4 res = isnan(vec4(0.0f, 0.0f, 0.0f, 0.0f));
}
void fragment_main() {
isNan_4d280d();
}
void main() {
fragment_main();
return;
}
#version 310 es
void isNan_4d280d() {
bvec4 res = isnan(vec4(0.0f, 0.0f, 0.0f, 0.0f));
}
void compute_main() {
isNan_4d280d();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
compute_main();
return;
}

View File

@@ -1,34 +0,0 @@
builtins/gen/isNan/4d280d.wgsl:28:25 warning: use of deprecated builtin
var res: vec4<bool> = isNan(vec4<f32>());
^^^^^
void isNan_4d280d() {
bool4 res = isnan(float4(0.0f, 0.0f, 0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
isNan_4d280d();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
isNan_4d280d();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
isNan_4d280d();
return;
}

View File

@@ -1,37 +0,0 @@
builtins/gen/isNan/4d280d.wgsl:28:25 warning: use of deprecated builtin
var res: vec4<bool> = isNan(vec4<f32>());
^^^^^
#include <metal_stdlib>
using namespace metal;
void isNan_4d280d() {
bool4 res = isnan(float4());
}
struct tint_symbol {
float4 value [[position]];
};
float4 vertex_main_inner() {
isNan_4d280d();
return float4();
}
vertex tint_symbol vertex_main() {
float4 const inner_result = vertex_main_inner();
tint_symbol wrapper_result = {};
wrapper_result.value = inner_result;
return wrapper_result;
}
fragment void fragment_main() {
isNan_4d280d();
return;
}
kernel void compute_main() {
isNan_4d280d();
return;
}

View File

@@ -1,71 +0,0 @@
builtins/gen/isNan/4d280d.wgsl:28:25 warning: use of deprecated builtin
var res: vec4<bool> = isNan(vec4<f32>());
^^^^^
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 33
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
OpEntryPoint GLCompute %compute_main "compute_main"
OpExecutionMode %fragment_main OriginUpperLeft
OpExecutionMode %compute_main LocalSize 1 1 1
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %isNan_4d280d "isNan_4d280d"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
OpName %fragment_main "fragment_main"
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%5 = OpConstantNull %v4float
%value = OpVariable %_ptr_Output_v4float Output %5
%_ptr_Output_float = OpTypePointer Output %float
%8 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%bool = OpTypeBool
%v4bool = OpTypeVector %bool 4
%_ptr_Function_v4bool = OpTypePointer Function %v4bool
%18 = OpConstantNull %v4bool
%19 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%isNan_4d280d = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v4bool Function %18
%13 = OpIsNan %v4bool %5
OpStore %res %13
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %19
%21 = OpLabel
%22 = OpFunctionCall %void %isNan_4d280d
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%24 = OpLabel
%25 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %25
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%28 = OpLabel
%29 = OpFunctionCall %void %isNan_4d280d
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%31 = OpLabel
%32 = OpFunctionCall %void %isNan_4d280d
OpReturn
OpFunctionEnd

View File

@@ -1,23 +0,0 @@
builtins/gen/isNan/4d280d.wgsl:28:25 warning: use of deprecated builtin
var res: vec4<bool> = isNan(vec4<f32>());
^^^^^
fn isNan_4d280d() {
var res : vec4<bool> = isNan(vec4<f32>());
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isNan_4d280d();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isNan_4d280d();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isNan_4d280d();
}

View File

@@ -1,45 +0,0 @@
// Copyright 2021 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
////////////////////////////////////////////////////////////////////////////////
// File generated by tools/builtin-gen
// using the template:
// test/tint/builtins/builtins.wgsl.tmpl
// and the builtin defintion file:
// src/tint/builtins.def
//
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
// fn isNan(vec<2, f32>) -> vec<2, bool>
fn isNan_67ecd3() {
var res: vec2<bool> = isNan(vec2<f32>());
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isNan_67ecd3();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isNan_67ecd3();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isNan_67ecd3();
}

View File

@@ -1,52 +0,0 @@
builtins/gen/isNan/67ecd3.wgsl:28:25 warning: use of deprecated builtin
var res: vec2<bool> = isNan(vec2<f32>());
^^^^^
#version 310 es
void isNan_67ecd3() {
bvec2 res = isnan(vec2(0.0f, 0.0f));
}
vec4 vertex_main() {
isNan_67ecd3();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
}
void main() {
vec4 inner_result = vertex_main();
gl_Position = inner_result;
gl_Position.y = -(gl_Position.y);
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
#version 310 es
precision mediump float;
void isNan_67ecd3() {
bvec2 res = isnan(vec2(0.0f, 0.0f));
}
void fragment_main() {
isNan_67ecd3();
}
void main() {
fragment_main();
return;
}
#version 310 es
void isNan_67ecd3() {
bvec2 res = isnan(vec2(0.0f, 0.0f));
}
void compute_main() {
isNan_67ecd3();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
compute_main();
return;
}

View File

@@ -1,34 +0,0 @@
builtins/gen/isNan/67ecd3.wgsl:28:25 warning: use of deprecated builtin
var res: vec2<bool> = isNan(vec2<f32>());
^^^^^
void isNan_67ecd3() {
bool2 res = isnan(float2(0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
isNan_67ecd3();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
isNan_67ecd3();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
isNan_67ecd3();
return;
}

View File

@@ -1,37 +0,0 @@
builtins/gen/isNan/67ecd3.wgsl:28:25 warning: use of deprecated builtin
var res: vec2<bool> = isNan(vec2<f32>());
^^^^^
#include <metal_stdlib>
using namespace metal;
void isNan_67ecd3() {
bool2 res = isnan(float2());
}
struct tint_symbol {
float4 value [[position]];
};
float4 vertex_main_inner() {
isNan_67ecd3();
return float4();
}
vertex tint_symbol vertex_main() {
float4 const inner_result = vertex_main_inner();
tint_symbol wrapper_result = {};
wrapper_result.value = inner_result;
return wrapper_result;
}
fragment void fragment_main() {
isNan_67ecd3();
return;
}
kernel void compute_main() {
isNan_67ecd3();
return;
}

View File

@@ -1,73 +0,0 @@
builtins/gen/isNan/67ecd3.wgsl:28:25 warning: use of deprecated builtin
var res: vec2<bool> = isNan(vec2<f32>());
^^^^^
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 35
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
OpEntryPoint GLCompute %compute_main "compute_main"
OpExecutionMode %fragment_main OriginUpperLeft
OpExecutionMode %compute_main LocalSize 1 1 1
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %isNan_67ecd3 "isNan_67ecd3"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
OpName %fragment_main "fragment_main"
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%5 = OpConstantNull %v4float
%value = OpVariable %_ptr_Output_v4float Output %5
%_ptr_Output_float = OpTypePointer Output %float
%8 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%bool = OpTypeBool
%v2bool = OpTypeVector %bool 2
%v2float = OpTypeVector %float 2
%17 = OpConstantNull %v2float
%_ptr_Function_v2bool = OpTypePointer Function %v2bool
%20 = OpConstantNull %v2bool
%21 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%isNan_67ecd3 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v2bool Function %20
%13 = OpIsNan %v2bool %17
OpStore %res %13
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %21
%23 = OpLabel
%24 = OpFunctionCall %void %isNan_67ecd3
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%26 = OpLabel
%27 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %27
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%30 = OpLabel
%31 = OpFunctionCall %void %isNan_67ecd3
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%33 = OpLabel
%34 = OpFunctionCall %void %isNan_67ecd3
OpReturn
OpFunctionEnd

View File

@@ -1,23 +0,0 @@
builtins/gen/isNan/67ecd3.wgsl:28:25 warning: use of deprecated builtin
var res: vec2<bool> = isNan(vec2<f32>());
^^^^^
fn isNan_67ecd3() {
var res : vec2<bool> = isNan(vec2<f32>());
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isNan_67ecd3();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isNan_67ecd3();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isNan_67ecd3();
}

View File

@@ -1,45 +0,0 @@
// Copyright 2021 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
////////////////////////////////////////////////////////////////////////////////
// File generated by tools/builtin-gen
// using the template:
// test/tint/builtins/builtins.wgsl.tmpl
// and the builtin defintion file:
// src/tint/builtins.def
//
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
// fn isNan(f32) -> bool
fn isNan_e4978e() {
var res: bool = isNan(1.0);
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isNan_e4978e();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isNan_e4978e();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isNan_e4978e();
}

View File

@@ -1,52 +0,0 @@
builtins/gen/isNan/e4978e.wgsl:28:19 warning: use of deprecated builtin
var res: bool = isNan(1.0);
^^^^^
#version 310 es
void isNan_e4978e() {
bool res = isnan(1.0f);
}
vec4 vertex_main() {
isNan_e4978e();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
}
void main() {
vec4 inner_result = vertex_main();
gl_Position = inner_result;
gl_Position.y = -(gl_Position.y);
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
#version 310 es
precision mediump float;
void isNan_e4978e() {
bool res = isnan(1.0f);
}
void fragment_main() {
isNan_e4978e();
}
void main() {
fragment_main();
return;
}
#version 310 es
void isNan_e4978e() {
bool res = isnan(1.0f);
}
void compute_main() {
isNan_e4978e();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
compute_main();
return;
}

View File

@@ -1,34 +0,0 @@
builtins/gen/isNan/e4978e.wgsl:28:19 warning: use of deprecated builtin
var res: bool = isNan(1.0);
^^^^^
void isNan_e4978e() {
bool res = isnan(1.0f);
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
isNan_e4978e();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
isNan_e4978e();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
isNan_e4978e();
return;
}

View File

@@ -1,37 +0,0 @@
builtins/gen/isNan/e4978e.wgsl:28:19 warning: use of deprecated builtin
var res: bool = isNan(1.0);
^^^^^
#include <metal_stdlib>
using namespace metal;
void isNan_e4978e() {
bool res = isnan(1.0f);
}
struct tint_symbol {
float4 value [[position]];
};
float4 vertex_main_inner() {
isNan_e4978e();
return float4();
}
vertex tint_symbol vertex_main() {
float4 const inner_result = vertex_main_inner();
tint_symbol wrapper_result = {};
wrapper_result.value = inner_result;
return wrapper_result;
}
fragment void fragment_main() {
isNan_e4978e();
return;
}
kernel void compute_main() {
isNan_e4978e();
return;
}

View File

@@ -1,70 +0,0 @@
builtins/gen/isNan/e4978e.wgsl:28:19 warning: use of deprecated builtin
var res: bool = isNan(1.0);
^^^^^
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 32
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
OpEntryPoint GLCompute %compute_main "compute_main"
OpExecutionMode %fragment_main OriginUpperLeft
OpExecutionMode %compute_main LocalSize 1 1 1
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %isNan_e4978e "isNan_e4978e"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
OpName %fragment_main "fragment_main"
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%5 = OpConstantNull %v4float
%value = OpVariable %_ptr_Output_v4float Output %5
%_ptr_Output_float = OpTypePointer Output %float
%8 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%bool = OpTypeBool
%float_1 = OpConstant %float 1
%_ptr_Function_bool = OpTypePointer Function %bool
%18 = OpConstantNull %bool
%19 = OpTypeFunction %v4float
%isNan_e4978e = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_bool Function %18
%13 = OpIsNan %bool %float_1
OpStore %res %13
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %19
%21 = OpLabel
%22 = OpFunctionCall %void %isNan_e4978e
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%24 = OpLabel
%25 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %25
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%27 = OpLabel
%28 = OpFunctionCall %void %isNan_e4978e
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%30 = OpLabel
%31 = OpFunctionCall %void %isNan_e4978e
OpReturn
OpFunctionEnd

View File

@@ -1,23 +0,0 @@
builtins/gen/isNan/e4978e.wgsl:28:19 warning: use of deprecated builtin
var res: bool = isNan(1.0);
^^^^^
fn isNan_e4978e() {
var res : bool = isNan(1.0);
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isNan_e4978e();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isNan_e4978e();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isNan_e4978e();
}

View File

@@ -1,45 +0,0 @@
// Copyright 2021 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
////////////////////////////////////////////////////////////////////////////////
// File generated by tools/builtin-gen
// using the template:
// test/tint/builtins/builtins.wgsl.tmpl
// and the builtin defintion file:
// src/tint/builtins.def
//
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
// fn isNormal(vec<4, f32>) -> vec<4, bool>
fn isNormal_863dcd() {
var res: vec4<bool> = isNormal(vec4<f32>());
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isNormal_863dcd();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isNormal_863dcd();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isNormal_863dcd();
}

View File

@@ -1,73 +0,0 @@
builtins/gen/isNormal/863dcd.wgsl:28:25 warning: use of deprecated builtin
var res: vec4<bool> = isNormal(vec4<f32>());
^^^^^^^^
#version 310 es
bvec4 tint_isNormal(vec4 param_0) {
uvec4 exponent = floatBitsToUint(param_0) & 0x7f80000u;
uvec4 clamped = clamp(exponent, 0x0080000u, 0x7f00000u);
return equal(clamped, exponent);
}
void isNormal_863dcd() {
bvec4 res = tint_isNormal(vec4(0.0f, 0.0f, 0.0f, 0.0f));
}
vec4 vertex_main() {
isNormal_863dcd();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
}
void main() {
vec4 inner_result = vertex_main();
gl_Position = inner_result;
gl_Position.y = -(gl_Position.y);
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
#version 310 es
precision mediump float;
bvec4 tint_isNormal(vec4 param_0) {
uvec4 exponent = floatBitsToUint(param_0) & 0x7f80000u;
uvec4 clamped = clamp(exponent, 0x0080000u, 0x7f00000u);
return equal(clamped, exponent);
}
void isNormal_863dcd() {
bvec4 res = tint_isNormal(vec4(0.0f, 0.0f, 0.0f, 0.0f));
}
void fragment_main() {
isNormal_863dcd();
}
void main() {
fragment_main();
return;
}
#version 310 es
bvec4 tint_isNormal(vec4 param_0) {
uvec4 exponent = floatBitsToUint(param_0) & 0x7f80000u;
uvec4 clamped = clamp(exponent, 0x0080000u, 0x7f00000u);
return equal(clamped, exponent);
}
void isNormal_863dcd() {
bvec4 res = tint_isNormal(vec4(0.0f, 0.0f, 0.0f, 0.0f));
}
void compute_main() {
isNormal_863dcd();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
compute_main();
return;
}

View File

@@ -1,40 +0,0 @@
builtins/gen/isNormal/863dcd.wgsl:28:25 warning: use of deprecated builtin
var res: vec4<bool> = isNormal(vec4<f32>());
^^^^^^^^
bool4 tint_isNormal(float4 param_0) {
uint4 exponent = asuint(param_0) & 0x7f80000;
uint4 clamped = clamp(exponent, 0x0080000, 0x7f00000);
return clamped == exponent;
}
void isNormal_863dcd() {
bool4 res = tint_isNormal(float4(0.0f, 0.0f, 0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
isNormal_863dcd();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
isNormal_863dcd();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
isNormal_863dcd();
return;
}

View File

@@ -1,37 +0,0 @@
builtins/gen/isNormal/863dcd.wgsl:28:25 warning: use of deprecated builtin
var res: vec4<bool> = isNormal(vec4<f32>());
^^^^^^^^
#include <metal_stdlib>
using namespace metal;
void isNormal_863dcd() {
bool4 res = isnormal(float4());
}
struct tint_symbol {
float4 value [[position]];
};
float4 vertex_main_inner() {
isNormal_863dcd();
return float4();
}
vertex tint_symbol vertex_main() {
float4 const inner_result = vertex_main_inner();
tint_symbol wrapper_result = {};
wrapper_result.value = inner_result;
return wrapper_result;
}
fragment void fragment_main() {
isNormal_863dcd();
return;
}
kernel void compute_main() {
isNormal_863dcd();
return;
}

View File

@@ -1,83 +0,0 @@
builtins/gen/isNormal/863dcd.wgsl:28:25 warning: use of deprecated builtin
var res: vec4<bool> = isNormal(vec4<f32>());
^^^^^^^^
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 45
; Schema: 0
OpCapability Shader
%16 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
OpEntryPoint GLCompute %compute_main "compute_main"
OpExecutionMode %fragment_main OriginUpperLeft
OpExecutionMode %compute_main LocalSize 1 1 1
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %isNormal_863dcd "isNormal_863dcd"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
OpName %fragment_main "fragment_main"
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%5 = OpConstantNull %v4float
%value = OpVariable %_ptr_Output_v4float Output %5
%_ptr_Output_float = OpTypePointer Output %float
%8 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%bool = OpTypeBool
%v4bool = OpTypeVector %bool 4
%uint = OpTypeInt 32 0
%uint_133693440 = OpConstant %uint 133693440
%uint_524288 = OpConstant %uint 524288
%uint_133169152 = OpConstant %uint 133169152
%v4uint = OpTypeVector %uint 4
%_ptr_Function_v4bool = OpTypePointer Function %v4bool
%30 = OpConstantNull %v4bool
%31 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%isNormal_863dcd = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v4bool Function %30
%22 = OpCompositeConstruct %v4uint %uint_133693440 %uint_133693440 %uint_133693440 %uint_133693440
%23 = OpCompositeConstruct %v4uint %uint_524288 %uint_524288 %uint_524288 %uint_524288
%24 = OpCompositeConstruct %v4uint %uint_133169152 %uint_133169152 %uint_133169152 %uint_133169152
%25 = OpBitcast %v4uint %5
%26 = OpBitwiseAnd %v4uint %25 %22
%27 = OpExtInst %v4uint %16 UClamp %26 %23 %24
%13 = OpIEqual %v4bool %26 %27
OpStore %res %13
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %31
%33 = OpLabel
%34 = OpFunctionCall %void %isNormal_863dcd
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%36 = OpLabel
%37 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %37
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%40 = OpLabel
%41 = OpFunctionCall %void %isNormal_863dcd
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%43 = OpLabel
%44 = OpFunctionCall %void %isNormal_863dcd
OpReturn
OpFunctionEnd

View File

@@ -1,23 +0,0 @@
builtins/gen/isNormal/863dcd.wgsl:28:25 warning: use of deprecated builtin
var res: vec4<bool> = isNormal(vec4<f32>());
^^^^^^^^
fn isNormal_863dcd() {
var res : vec4<bool> = isNormal(vec4<f32>());
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isNormal_863dcd();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isNormal_863dcd();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isNormal_863dcd();
}

View File

@@ -1,45 +0,0 @@
// Copyright 2021 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
////////////////////////////////////////////////////////////////////////////////
// File generated by tools/builtin-gen
// using the template:
// test/tint/builtins/builtins.wgsl.tmpl
// and the builtin defintion file:
// src/tint/builtins.def
//
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
// fn isNormal(vec<2, f32>) -> vec<2, bool>
fn isNormal_b00ab1() {
var res: vec2<bool> = isNormal(vec2<f32>());
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isNormal_b00ab1();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isNormal_b00ab1();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isNormal_b00ab1();
}

View File

@@ -1,73 +0,0 @@
builtins/gen/isNormal/b00ab1.wgsl:28:25 warning: use of deprecated builtin
var res: vec2<bool> = isNormal(vec2<f32>());
^^^^^^^^
#version 310 es
bvec2 tint_isNormal(vec2 param_0) {
uvec2 exponent = floatBitsToUint(param_0) & 0x7f80000u;
uvec2 clamped = clamp(exponent, 0x0080000u, 0x7f00000u);
return equal(clamped, exponent);
}
void isNormal_b00ab1() {
bvec2 res = tint_isNormal(vec2(0.0f, 0.0f));
}
vec4 vertex_main() {
isNormal_b00ab1();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
}
void main() {
vec4 inner_result = vertex_main();
gl_Position = inner_result;
gl_Position.y = -(gl_Position.y);
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
#version 310 es
precision mediump float;
bvec2 tint_isNormal(vec2 param_0) {
uvec2 exponent = floatBitsToUint(param_0) & 0x7f80000u;
uvec2 clamped = clamp(exponent, 0x0080000u, 0x7f00000u);
return equal(clamped, exponent);
}
void isNormal_b00ab1() {
bvec2 res = tint_isNormal(vec2(0.0f, 0.0f));
}
void fragment_main() {
isNormal_b00ab1();
}
void main() {
fragment_main();
return;
}
#version 310 es
bvec2 tint_isNormal(vec2 param_0) {
uvec2 exponent = floatBitsToUint(param_0) & 0x7f80000u;
uvec2 clamped = clamp(exponent, 0x0080000u, 0x7f00000u);
return equal(clamped, exponent);
}
void isNormal_b00ab1() {
bvec2 res = tint_isNormal(vec2(0.0f, 0.0f));
}
void compute_main() {
isNormal_b00ab1();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
compute_main();
return;
}

View File

@@ -1,40 +0,0 @@
builtins/gen/isNormal/b00ab1.wgsl:28:25 warning: use of deprecated builtin
var res: vec2<bool> = isNormal(vec2<f32>());
^^^^^^^^
bool2 tint_isNormal(float2 param_0) {
uint2 exponent = asuint(param_0) & 0x7f80000;
uint2 clamped = clamp(exponent, 0x0080000, 0x7f00000);
return clamped == exponent;
}
void isNormal_b00ab1() {
bool2 res = tint_isNormal(float2(0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
isNormal_b00ab1();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
isNormal_b00ab1();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
isNormal_b00ab1();
return;
}

View File

@@ -1,37 +0,0 @@
builtins/gen/isNormal/b00ab1.wgsl:28:25 warning: use of deprecated builtin
var res: vec2<bool> = isNormal(vec2<f32>());
^^^^^^^^
#include <metal_stdlib>
using namespace metal;
void isNormal_b00ab1() {
bool2 res = isnormal(float2());
}
struct tint_symbol {
float4 value [[position]];
};
float4 vertex_main_inner() {
isNormal_b00ab1();
return float4();
}
vertex tint_symbol vertex_main() {
float4 const inner_result = vertex_main_inner();
tint_symbol wrapper_result = {};
wrapper_result.value = inner_result;
return wrapper_result;
}
fragment void fragment_main() {
isNormal_b00ab1();
return;
}
kernel void compute_main() {
isNormal_b00ab1();
return;
}

View File

@@ -1,85 +0,0 @@
builtins/gen/isNormal/b00ab1.wgsl:28:25 warning: use of deprecated builtin
var res: vec2<bool> = isNormal(vec2<f32>());
^^^^^^^^
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 47
; Schema: 0
OpCapability Shader
%18 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
OpEntryPoint GLCompute %compute_main "compute_main"
OpExecutionMode %fragment_main OriginUpperLeft
OpExecutionMode %compute_main LocalSize 1 1 1
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %isNormal_b00ab1 "isNormal_b00ab1"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
OpName %fragment_main "fragment_main"
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%5 = OpConstantNull %v4float
%value = OpVariable %_ptr_Output_v4float Output %5
%_ptr_Output_float = OpTypePointer Output %float
%8 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%bool = OpTypeBool
%v2bool = OpTypeVector %bool 2
%v2float = OpTypeVector %float 2
%17 = OpConstantNull %v2float
%uint = OpTypeInt 32 0
%uint_133693440 = OpConstant %uint 133693440
%uint_524288 = OpConstant %uint 524288
%uint_133169152 = OpConstant %uint 133169152
%v2uint = OpTypeVector %uint 2
%_ptr_Function_v2bool = OpTypePointer Function %v2bool
%32 = OpConstantNull %v2bool
%33 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%isNormal_b00ab1 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v2bool Function %32
%24 = OpCompositeConstruct %v2uint %uint_133693440 %uint_133693440
%25 = OpCompositeConstruct %v2uint %uint_524288 %uint_524288
%26 = OpCompositeConstruct %v2uint %uint_133169152 %uint_133169152
%27 = OpBitcast %v2uint %17
%28 = OpBitwiseAnd %v2uint %27 %24
%29 = OpExtInst %v2uint %18 UClamp %28 %25 %26
%13 = OpIEqual %v2bool %28 %29
OpStore %res %13
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %33
%35 = OpLabel
%36 = OpFunctionCall %void %isNormal_b00ab1
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%38 = OpLabel
%39 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %39
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%42 = OpLabel
%43 = OpFunctionCall %void %isNormal_b00ab1
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%45 = OpLabel
%46 = OpFunctionCall %void %isNormal_b00ab1
OpReturn
OpFunctionEnd

View File

@@ -1,23 +0,0 @@
builtins/gen/isNormal/b00ab1.wgsl:28:25 warning: use of deprecated builtin
var res: vec2<bool> = isNormal(vec2<f32>());
^^^^^^^^
fn isNormal_b00ab1() {
var res : vec2<bool> = isNormal(vec2<f32>());
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isNormal_b00ab1();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isNormal_b00ab1();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isNormal_b00ab1();
}

View File

@@ -1,45 +0,0 @@
// Copyright 2021 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
////////////////////////////////////////////////////////////////////////////////
// File generated by tools/builtin-gen
// using the template:
// test/tint/builtins/builtins.wgsl.tmpl
// and the builtin defintion file:
// src/tint/builtins.def
//
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
// fn isNormal(vec<3, f32>) -> vec<3, bool>
fn isNormal_c286b7() {
var res: vec3<bool> = isNormal(vec3<f32>());
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isNormal_c286b7();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isNormal_c286b7();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isNormal_c286b7();
}

View File

@@ -1,73 +0,0 @@
builtins/gen/isNormal/c286b7.wgsl:28:25 warning: use of deprecated builtin
var res: vec3<bool> = isNormal(vec3<f32>());
^^^^^^^^
#version 310 es
bvec3 tint_isNormal(vec3 param_0) {
uvec3 exponent = floatBitsToUint(param_0) & 0x7f80000u;
uvec3 clamped = clamp(exponent, 0x0080000u, 0x7f00000u);
return equal(clamped, exponent);
}
void isNormal_c286b7() {
bvec3 res = tint_isNormal(vec3(0.0f, 0.0f, 0.0f));
}
vec4 vertex_main() {
isNormal_c286b7();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
}
void main() {
vec4 inner_result = vertex_main();
gl_Position = inner_result;
gl_Position.y = -(gl_Position.y);
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
#version 310 es
precision mediump float;
bvec3 tint_isNormal(vec3 param_0) {
uvec3 exponent = floatBitsToUint(param_0) & 0x7f80000u;
uvec3 clamped = clamp(exponent, 0x0080000u, 0x7f00000u);
return equal(clamped, exponent);
}
void isNormal_c286b7() {
bvec3 res = tint_isNormal(vec3(0.0f, 0.0f, 0.0f));
}
void fragment_main() {
isNormal_c286b7();
}
void main() {
fragment_main();
return;
}
#version 310 es
bvec3 tint_isNormal(vec3 param_0) {
uvec3 exponent = floatBitsToUint(param_0) & 0x7f80000u;
uvec3 clamped = clamp(exponent, 0x0080000u, 0x7f00000u);
return equal(clamped, exponent);
}
void isNormal_c286b7() {
bvec3 res = tint_isNormal(vec3(0.0f, 0.0f, 0.0f));
}
void compute_main() {
isNormal_c286b7();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
compute_main();
return;
}

View File

@@ -1,40 +0,0 @@
builtins/gen/isNormal/c286b7.wgsl:28:25 warning: use of deprecated builtin
var res: vec3<bool> = isNormal(vec3<f32>());
^^^^^^^^
bool3 tint_isNormal(float3 param_0) {
uint3 exponent = asuint(param_0) & 0x7f80000;
uint3 clamped = clamp(exponent, 0x0080000, 0x7f00000);
return clamped == exponent;
}
void isNormal_c286b7() {
bool3 res = tint_isNormal(float3(0.0f, 0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
isNormal_c286b7();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
isNormal_c286b7();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
isNormal_c286b7();
return;
}

View File

@@ -1,37 +0,0 @@
builtins/gen/isNormal/c286b7.wgsl:28:25 warning: use of deprecated builtin
var res: vec3<bool> = isNormal(vec3<f32>());
^^^^^^^^
#include <metal_stdlib>
using namespace metal;
void isNormal_c286b7() {
bool3 res = isnormal(float3());
}
struct tint_symbol {
float4 value [[position]];
};
float4 vertex_main_inner() {
isNormal_c286b7();
return float4();
}
vertex tint_symbol vertex_main() {
float4 const inner_result = vertex_main_inner();
tint_symbol wrapper_result = {};
wrapper_result.value = inner_result;
return wrapper_result;
}
fragment void fragment_main() {
isNormal_c286b7();
return;
}
kernel void compute_main() {
isNormal_c286b7();
return;
}

View File

@@ -1,85 +0,0 @@
builtins/gen/isNormal/c286b7.wgsl:28:25 warning: use of deprecated builtin
var res: vec3<bool> = isNormal(vec3<f32>());
^^^^^^^^
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 47
; Schema: 0
OpCapability Shader
%18 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
OpEntryPoint GLCompute %compute_main "compute_main"
OpExecutionMode %fragment_main OriginUpperLeft
OpExecutionMode %compute_main LocalSize 1 1 1
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %isNormal_c286b7 "isNormal_c286b7"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
OpName %fragment_main "fragment_main"
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%5 = OpConstantNull %v4float
%value = OpVariable %_ptr_Output_v4float Output %5
%_ptr_Output_float = OpTypePointer Output %float
%8 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%bool = OpTypeBool
%v3bool = OpTypeVector %bool 3
%v3float = OpTypeVector %float 3
%17 = OpConstantNull %v3float
%uint = OpTypeInt 32 0
%uint_133693440 = OpConstant %uint 133693440
%uint_524288 = OpConstant %uint 524288
%uint_133169152 = OpConstant %uint 133169152
%v3uint = OpTypeVector %uint 3
%_ptr_Function_v3bool = OpTypePointer Function %v3bool
%32 = OpConstantNull %v3bool
%33 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%isNormal_c286b7 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v3bool Function %32
%24 = OpCompositeConstruct %v3uint %uint_133693440 %uint_133693440 %uint_133693440
%25 = OpCompositeConstruct %v3uint %uint_524288 %uint_524288 %uint_524288
%26 = OpCompositeConstruct %v3uint %uint_133169152 %uint_133169152 %uint_133169152
%27 = OpBitcast %v3uint %17
%28 = OpBitwiseAnd %v3uint %27 %24
%29 = OpExtInst %v3uint %18 UClamp %28 %25 %26
%13 = OpIEqual %v3bool %28 %29
OpStore %res %13
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %33
%35 = OpLabel
%36 = OpFunctionCall %void %isNormal_c286b7
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%38 = OpLabel
%39 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %39
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%42 = OpLabel
%43 = OpFunctionCall %void %isNormal_c286b7
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%45 = OpLabel
%46 = OpFunctionCall %void %isNormal_c286b7
OpReturn
OpFunctionEnd

View File

@@ -1,23 +0,0 @@
builtins/gen/isNormal/c286b7.wgsl:28:25 warning: use of deprecated builtin
var res: vec3<bool> = isNormal(vec3<f32>());
^^^^^^^^
fn isNormal_c286b7() {
var res : vec3<bool> = isNormal(vec3<f32>());
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isNormal_c286b7();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isNormal_c286b7();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isNormal_c286b7();
}

View File

@@ -1,45 +0,0 @@
// Copyright 2021 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
////////////////////////////////////////////////////////////////////////////////
// File generated by tools/builtin-gen
// using the template:
// test/tint/builtins/builtins.wgsl.tmpl
// and the builtin defintion file:
// src/tint/builtins.def
//
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
// fn isNormal(f32) -> bool
fn isNormal_c6e880() {
var res: bool = isNormal(1.0);
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
isNormal_c6e880();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
isNormal_c6e880();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
isNormal_c6e880();
}

View File

@@ -1,73 +0,0 @@
builtins/gen/isNormal/c6e880.wgsl:28:19 warning: use of deprecated builtin
var res: bool = isNormal(1.0);
^^^^^^^^
#version 310 es
bool tint_isNormal(float param_0) {
uint exponent = floatBitsToUint(param_0) & 0x7f80000u;
uint clamped = clamp(exponent, 0x0080000u, 0x7f00000u);
return clamped == exponent;
}
void isNormal_c6e880() {
bool res = tint_isNormal(1.0f);
}
vec4 vertex_main() {
isNormal_c6e880();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
}
void main() {
vec4 inner_result = vertex_main();
gl_Position = inner_result;
gl_Position.y = -(gl_Position.y);
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
#version 310 es
precision mediump float;
bool tint_isNormal(float param_0) {
uint exponent = floatBitsToUint(param_0) & 0x7f80000u;
uint clamped = clamp(exponent, 0x0080000u, 0x7f00000u);
return clamped == exponent;
}
void isNormal_c6e880() {
bool res = tint_isNormal(1.0f);
}
void fragment_main() {
isNormal_c6e880();
}
void main() {
fragment_main();
return;
}
#version 310 es
bool tint_isNormal(float param_0) {
uint exponent = floatBitsToUint(param_0) & 0x7f80000u;
uint clamped = clamp(exponent, 0x0080000u, 0x7f00000u);
return clamped == exponent;
}
void isNormal_c6e880() {
bool res = tint_isNormal(1.0f);
}
void compute_main() {
isNormal_c6e880();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
compute_main();
return;
}

View File

@@ -1,40 +0,0 @@
builtins/gen/isNormal/c6e880.wgsl:28:19 warning: use of deprecated builtin
var res: bool = isNormal(1.0);
^^^^^^^^
bool tint_isNormal(float param_0) {
uint exponent = asuint(param_0) & 0x7f80000;
uint clamped = clamp(exponent, 0x0080000, 0x7f00000);
return clamped == exponent;
}
void isNormal_c6e880() {
bool res = tint_isNormal(1.0f);
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
isNormal_c6e880();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
isNormal_c6e880();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
isNormal_c6e880();
return;
}

View File

@@ -1,37 +0,0 @@
builtins/gen/isNormal/c6e880.wgsl:28:19 warning: use of deprecated builtin
var res: bool = isNormal(1.0);
^^^^^^^^
#include <metal_stdlib>
using namespace metal;
void isNormal_c6e880() {
bool res = isnormal(1.0f);
}
struct tint_symbol {
float4 value [[position]];
};
float4 vertex_main_inner() {
isNormal_c6e880();
return float4();
}
vertex tint_symbol vertex_main() {
float4 const inner_result = vertex_main_inner();
tint_symbol wrapper_result = {};
wrapper_result.value = inner_result;
return wrapper_result;
}
fragment void fragment_main() {
isNormal_c6e880();
return;
}
kernel void compute_main() {
isNormal_c6e880();
return;
}

Some files were not shown because too many files have changed in this diff Show More