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)...
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 ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
webgpu × 3wgsl × 2
javascript × 1
graphics-programming × 1
data-structure × 1
normals × 1
memory-efficiency × 1
normal-mapping × 1