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 shareable surfaces #1356

Closed
kvark opened this issue Apr 27, 2021 · 2 comments
Closed

Support shareable surfaces #1356

kvark opened this issue Apr 27, 2021 · 2 comments
Labels
area: api Issues related to API surface type: enhancement New feature or request

Comments

@kvark
Copy link
Member

kvark commented Apr 27, 2021

Is your feature request related to a problem? Please describe.
We need to be able to use the rendering result of wgpu externally. Like, in Gecko, WebRender needs to show the WebGPU-rendered frame.

Describe the solution you'd like
Some sort of a way to "import" a shareable surface, visible as wgpu texture. This requires some coordination with gfx-rs.

Describe alternatives you've considered
Alternatively, we could expose native handles of textures, allowing the client to schedule their own copy into whatever shareable surface they need.

Additional context

@kvark kvark added type: enhancement New feature or request area: api Issues related to API surface labels Apr 27, 2021
@teoxoy teoxoy added this to the WebGPU Specification V1 milestone Dec 5, 2022
@teoxoy teoxoy reopened this Oct 25, 2023
@teoxoy teoxoy removed this from the WebGPU Specification V1 milestone Jan 3, 2024
@jimblandy
Copy link
Member

We've already implemented the "alternative" approach described above, exposing the platform-level objects via as_hal methods, so Firefox doesn't need this bug solved any more. But others may want to design something more portable, so we'll leave this issue open.

@cwfitzgerald
Copy link
Member

I think this has been basically covered by #4067

@cwfitzgerald cwfitzgerald closed this as not planned Won't fix, can't repro, duplicate, stale Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: api Issues related to API surface type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants