juj / wasm_webgpu

System headers for interfacing WebGPU from C programs compiled via Emscripten to WebAssembly
BSD 3-Clause "New" or "Revised" License
331 stars 26 forks source link

Error in wgpu_queue_write_texture and wgpu_queue_copy_external_image_to_texture #1

Closed brendan-duncan closed 3 years ago

brendan-duncan commented 3 years ago

They get the WGpuImageCopyTexture destination object as wgpu[destination], but it's not a stored object. It should probably get it with wgpuReadGpuImageCopyTexture(destination).

juj commented 3 years ago

Good catch. Pushed a fix in above commit, though untested, as I don't currently have a test sample written up for that yet.