Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Is sharing of native textures / buffers supported? #422

Open
trbabb opened this issue Sep 13, 2024 · 1 comment
Open

Question: Is sharing of native textures / buffers supported? #422

trbabb opened this issue Sep 13, 2024 · 1 comment

Comments

@trbabb
Copy link

trbabb commented Sep 13, 2024

Apologies if this is available and I missed some documentation— 

Is it possible to "import" or "export" a native (i.e., Vulkan, Metal, etc.) texture or buffer into wgpu?

I see some hints online that in the browser it is possible to share a texture/surface populated by a webcam; this is exactly the use case I have, and would like to minimize copying to/from the CPU, since I'm finding that capturing is a bottleneck. Can this be done in the wgpu-native C/C++ bindings?

Similarly, my compute pipeline is outputting useful data, and it would be useful to be able to use it downstream outside of wgpu, e.g. in Vulkan/Metal/or even CUDA. Is this possible, and if not, is it planned?

@almarklein
Copy link
Collaborator

Not yet: gfx-rs/wgpu#4067

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants