Expand description
WebGPU compute shader JPEG decoder.
Usage:
- Create a
Gpucontext (either automatically viaGpu::openor from an existingwgpucontext viaGpu::from_wgpu). - Create a
Decoder(or multiple) viaDecoder::new. - For each JPEG image you want to decode, create an
ImageDataobject and pass it toDecoder::start_decode. - Access the output
TextureviaDecodeOp::texture.