Greggman

Results 495 comments of Greggman

I think this is another thing that needs to be added to the list. [WebGPU supports a stride of 0 for attributes](https://jsgist.org/?src=730bcf98d39f4b9d3d717891200c20a0). OpenGL ES does not. Stride of 0 in...

> I think this is another thing that needs to be added to the list. [WebGPU supports a stride of 0 for attributes](https://jsgist.org/?src=730bcf98d39f4b9d3d717891200c20a0). OpenGL ES does not. Stride of 0...

In JavaScript land `123.toFixed()` is not allowed but `(123).toFixed()` is

You might find [this](https://webgpufundamentals.org/webgpu/lessons/resources/wgsl-offset-computer.html#x=5d000001005000000000000000003d88886237289d13c4320e1a9ba574a728071755edcf12a0ea5e1a4ed7aa1e87736861e35c2f844b34a16006299e7d6adc8359c9a53faa4066e168d49dcb7d4918db8279c973cbc72f5b0fdadedf5fe153c8ff4df50000) helpful

Can't you do this by wrapping `popErrorScope` and `pushErrorScope`?

Here's an example of injecting errors from JavaScript which I've used to work on compat. It injects a couple of compat errors. https://github.com/gpuweb/cts/compare/main...greggman:cts:augment-webgpu-api PS: It doesn't work in dawn.node. Working...

> Atm we do have to carry them through a Uniform buffer. That's not your only option. You can include the code to do an inverse in your shader. Plenty...

Do we want a clean break? It'd be disappointing if adding timestamps forced the GPU to reorder things to be slower.

To be on par with WebGL you'd need arrays of samplers and arrays of textures. Certainly it would be nice to just allow arrays of bindings in general if that's...