Open maxammann opened 1 year ago
We use right now the image create to read PNG files. We also use this in the web version of maplibre-rs. Using the native decoder could speed up the decoding drastically.
image
Speed!
It's not slow but also not super fast.
Since wgpu 15.0 there is support to queue textures from webassembly: https://github.com/gfx-rs/wgpu/blob/master/CHANGELOG.md#queuecopy_external_image_to_texture-on-webassembly
Note that this currently requires nightly firefox https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/copyExternalImageToTexture#browser_compatibility
We use right now the
image
create to read PNG files. We also use this in the web version of maplibre-rs. Using the native decoder could speed up the decoding drastically.🤔 Expected Behavior
Speed!
😯 Current Behavior
It's not slow but also not super fast.
💁 Possible Solution
Since wgpu 15.0 there is support to queue textures from webassembly: https://github.com/gfx-rs/wgpu/blob/master/CHANGELOG.md#queuecopy_external_image_to_texture-on-webassembly