Skip to content

[WebGPU] device.importExternalTexture and queue.copyExternalImageToTexture are missing #18946

Answered by kainino0x
alienself asked this question in Q&A
Discussion options

You must be logged in to vote

This is an open item, but I'm not exactly sure what the fix is. These APIs require DOM objects to be passed in (which live outside the WASM heap), so need to take something like an EM_VAL. But I don't know what the appropriate Emscripten-y way to do this is.

For now IIRC the workaround is to use EM_ASM to make these calls. It takes a little effort to get the correct objects into JS to be able to do this but it should be possible.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@alienself
Comment options

Answer selected by kainino0x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants