Skip to main content

Questions tagged [webgpu]

2 votes
2 answers
155 views

Fastest way to store colored rect info?

I'm using WebGPU and a storage buffer for rects. Currently I have this: ...
user29889977's user avatar
0 votes
1 answer
99 views

Dark spot glitch in normal mapping shader - WebGPU

I'm implementing a normal mapping PBR shader using WebGPU, but I'm getting a strange dark spot and visual glitches. My scene consists of a cube with a brick texture which has a normal map, as well as ...
realmayus's user avatar
2 votes
1 answer
334 views

Padding in a vec3f array in WebGPU memory layout

I'm trying to write a WGSL structs parser (sort of webgpu-utils thing). In order to better understand the memory layout, I'm using wgsl offset computer as a helper. Having the next struct: ...
Michael Sazonov's user avatar