Skip to content

Commit

Permalink
Implement images and image meshes in WebGPU
Browse files Browse the repository at this point in the history
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
csmartdalton committed Oct 2, 2023
1 parent f5afafd commit 9551429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .rive_renderer
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c6600415242c7b3e3f21034d33befae091947199
5d937915e4128fe4591b6df6212a1b0fc8482b88

0 comments on commit 9551429

Please sign in to comment.