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 849c3c5 commit 255a8be
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 @@
5d937915e4128fe4591b6df6212a1b0fc8482b88
c1e10dc4e600d465a09afcc162b65ad5d7e44ee8

0 comments on commit 255a8be

Please sign in to comment.