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

Better API for already GPU-resident images #664

Open
DJMcNab opened this issue Aug 12, 2024 · 2 comments
Open

Better API for already GPU-resident images #664

DJMcNab opened this issue Aug 12, 2024 · 2 comments

Comments

@DJMcNab
Copy link
Member

DJMcNab commented Aug 12, 2024

There have been repeated requests for supporting using a wgpu Texture within a Vello Scene, such as #660.

We did implement a targeted fix for this in #636.

In #gpu > vello adding wgpu texture buffers to scene, Chad suggested a new variant of Brush for this use case.
I think that is likely to be the best API, due to the other constraints on the Scene API (namely that we have chosen to make it independent of wgpu, for any consumers who use Vello without using wgpu directly)

@nicoburns
Copy link
Contributor

namely that we have chosen to make it independent of wgpu, for any consumers who use Vello without using wgpu directly

What does this mean? I thought Vello was heavily dependent on wgpu.

@DJMcNab
Copy link
Member Author

DJMcNab commented Aug 16, 2024

We have several users/potential users who cannot use wgpu directly. These include:

  1. People who use their own renderer with Vello. See e.g. vello_shaders crate for AOT compilation and lightweight integration with external renderer projects #265, 📀 Make wgpu an optional dependency #359
  2. People who want to use Vello with wgpu-core, rather than wgpu (e.g. your colleages https://xi.zulipchat.com/#narrow/stream/197075-gpu/topic/Servo.202D.20canvas.20backend)

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