ruffle/render/wgpu
Aaron Hill bdadb17a95 render: Don't use BitmapHandle in tessellator
Currently, we rely on ShapeTessellator being able to get a BitmapHandle
without a RenderBackend. With the upcoming BitmapData refactor,
we will always need a RenderBackend to get a BitmapHandle, which creates
borrow-checker issues in ShapeTessellator (which is stored in a
RenderBackend).

To solve this, we split BitmapSource.bitmap into two methods -
BitmapSource.bitmap and BitmapSource.bitmap_handle. ShapeTessellator
continues to use BitmapSource.bitmap, and uses the u16 bitmap id
instead of a BitmapHandle. The BitmapSource.bitmap_handle method
is used inside each render backend to convert the id to a BitmapHandle,
avoiding borrow-checker issues.
2022-11-21 21:04:40 -07:00
..
shaders wgpu: Merge bitmap bind groups 2 and 3 2022-09-11 09:07:53 +02:00
src render: Don't use BitmapHandle in tessellator 2022-11-21 21:04:40 -07:00
Cargo.toml build(deps): bump clap from 4.0.24 to 4.0.26 2022-11-21 18:07:28 -07:00
uniforms.md wgpu: Merge bitmap bind groups 2 and 3 2022-09-11 09:07:53 +02:00