[WGSL] https://compute.toys/view/734 fails to compile
9 errors generated while compiling the shader: 131:25: cannot call value of type 'f32' 300:47: cannot call value of type 'f32' 312:15: cannot call value of type 'i32' 326:36: cannot call value of type 'u32' 328:28: cannot call value of type 'i32' 341:12: cannot call value of type 'f32' 342:12: cannot call value of type 'f32' 343:12: cannot call value of type 'f32' 359:27: cannot call value of type 'f32'
<rdar://problem/119870669>
Created attachment 469130 [details] shader source
Failing lines are: 131: return float4(state)/float(0xffffffffu); 300: var color = spectral_zucconi(400 + 0.2*float(i-512)); 312: let idx0 = int(id.x) + int(screen_size.x * int(id.y)); 326: state = uint4(id.x, id.y, id.z, uint(custom.NoiseAnimation)*time.frame); 328: for(var i: i32 = 0; i < int(custom.Samples*MaxSamples + 1.0); i++) 341: let x = float(atomicLoad(&atomic_storage[idx*4+0])); 342: let y = float(atomicLoad(&atomic_storage[idx*4+1])); 343: let z = float(atomicLoad(&atomic_storage[idx*4+2])); 359: let fragCoord = float2(float(id.x) + .5, float(id.y) + .5); Its possible some of these are due to Tint being out of compliance with the current WGSL specification, see https://github.com/gpuweb/gpuweb/issues/4415#issuecomment-1850152484
Pull request: https://github.com/WebKit/WebKit/pull/22251
Committed 272519@main (4375e00da390): <https://commits.webkit.org/272519@main> Reviewed commits have been landed. Closing PR #22251 and removing active labels.