Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

What features are needed to not vendor librashader into sugarloaf? #802

Closed
chyyran opened this issue Nov 20, 2024 · 1 comment
Closed

What features are needed to not vendor librashader into sugarloaf? #802

chyyran opened this issue Nov 20, 2024 · 1 comment

Comments

@chyyran
Copy link

chyyran commented Nov 20, 2024

I noticed that your librashader implementation is done via vendoring the wgpu runtime into sugarloaf. It's probably OK but I can't officially recommend it because librashader-runtime and librashader-cache are implementation details and don't have a semver guarantee. Only what's exposed in the main librashader crate is covered under semver.

Given that, I'd like to know what features you would like to see in librashader-runtime-wgpu to no longer need to vendor the wgpu runtime into sugarloaf.

Would something like SnowflakePowered/librashader#153 be sufficient where you can pass in any instance of WgpuDeviceObjects, and have something like a FilterChainWgpu<&'a crate::context::Context> or do you need a context argument in the draw function? I'm a little worried about providing that as that would open up the possibility of passing in the wrong device...

@raphamorim
Copy link
Owner

Hey @chyyran thank you for the issue, i appreciate all the work you do 🙏

In the beginner I ported librashader-runtime-wgpu to sugarloaf because of the Arc as you pointed out and I believe SnowflakePowered/librashader#153 would be enough.

However lately I have been considering to use a fork of wgpu that enables f16 gfx-rs/wgpu#5701 and if I follow this path might be I will need to keep the wgpu code on Rio for now (so doesn't break compat).

Will move this issue to discussion but if you want to talk on discord please feel free to ping me there or in rio group https://discord.gg/zRvJjmKGwS

Repository owner locked and limited conversation to collaborators Nov 20, 2024
@raphamorim raphamorim converted this issue into discussion #804 Nov 20, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants