Expand description
WebGPU compute shader JPEG decoder.
Usage:
- Create a
Gpu
context (either automatically viaGpu::open
or from an existingwgpu
context viaGpu::from_wgpu
). - Create a
Decoder
(or multiple) viaDecoder::new
. - For each JPEG image you want to decode, create an
ImageData
object and pass it toDecoder::start_decode
. - Access the output
Texture
viaDecodeOp::texture
.
Structs§
- Information about an ongoing JPEG decode operation.
- A GPU JPEG decode context.
- An open handle to a GPU.
- A parsed JPEG image, containing all data needed for on-GPU decoding.