Skip to main content
2 votes
Accepted

Fastest way to store colored rect info?

If you store them as Uint32Array and retrieve the values to be passed from there directly, there should be no conversion. JavaScript does frequently (but not always)...
Engineer's user avatar
  • 30.4k
1 vote

Fastest way to store colored rect info?

I can't speak to JavaScript specifically, see the other answer for integer storage transfer there, however there are problems with the other answer. Using LUT's is not the "default" when ...
Krupip's user avatar
  • 1,811
1 vote

Dark spot glitch in normal mapping shader - WebGPU

The first thing that jumps out at me is that you aren't normalizing your pixel shader inputs that represent quantities that you're expecting to be normalized. This is necessary because the ...
Adam's user avatar
  • 7,739
1 vote

Padding in a vec3f array in WebGPU memory layout

My confusion was regarding padding of data passed to the array<vec3f>. It is now clear, that in order for it to work correctly, the inbound data should be ...
Michael Sazonov's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible