Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement images and image meshes in WebGPU
This finalizes our WebGPU implementation so it renders our entire feature set and doesn't have random "not implemented" crashes. Pad the image mesh uniform block to 256 bytes in order to satisfy WebGPU align restrictions. Since we padded the image mesh uniform block, we can also modernize the GL backend to use uniform blocks. Also update the spot where we sample the gradient texture to use 'textureLod()' instead of 'textureGrad()'. This more explicitly states what we want and may be faster. This PR does *not* yet implement mipmaps in WebGPU, since there is not a built-in feature to do this. We will eventually need to roll out our own mipmap generator. Diffs=
- Loading branch information