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

support for importing external textures (dmabufs on linux) #337

Closed
dvc94ch opened this issue Jun 30, 2023 · 3 comments
Closed

support for importing external textures (dmabufs on linux) #337

dvc94ch opened this issue Jun 30, 2023 · 3 comments

Comments

@dvc94ch
Copy link

dvc94ch commented Jun 30, 2023

Seems like this is not supported by webgpu yet. Use cases for importing dmabufs would be screencasting, embedding a camera feed or hardware accelerated video decoding.

@DJMcNab
Copy link
Member

DJMcNab commented Jun 30, 2023

I'm not sure this is an actionable issue, although there are a couple of aspects here:

  • For video/camera feed/screencasting, AIUI, the ideal solution would be for the compositor itself to handle these, rather than compositing those within vello (because otherwise you get added latency)
  • We are not planning to support an image import mechanism other than wgpu Textures, at least in the normal Rust frontend
    As such, if you need this, the change will need to be driven on the wgpu end, so that it can help all projects which use wgpu

I'll wait to hear from @raphlinus or otherwise, but I'm inclined to close this issue (especially if there's an upstream wgpu issue)

@dvc94ch
Copy link
Author

dvc94ch commented Jun 30, 2023

Is there more information on how that would work? I think flutter/sdl and all other gui libraries do the compositing themselves. Is there some kind of wayland extension that would allow for this? And how would for example xilem handle this? Or are you suggesting it should be handled at an even higher level? Might be wrong, haven't gotten too deep into this topic yet.

@dvc94ch
Copy link
Author

dvc94ch commented Jun 30, 2023

I see your point. So you'd render a placeholder and have some Wayland extension to render a pipewire video source. I don't think it exists yet, but someone could design/implement something like that.

@dvc94ch dvc94ch closed this as not planned Won't fix, can't repro, duplicate, stale Jun 30, 2023
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