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

Formalize code structure vs WGSL implementation #8

Open
Shfty opened this issue Mar 17, 2023 · 1 comment
Open

Formalize code structure vs WGSL implementation #8

Shfty opened this issue Mar 17, 2023 · 1 comment

Comments

@Shfty
Copy link
Collaborator

Shfty commented Mar 17, 2023

Upgrading to bevy 0.10 demonstrated the need for some kind of formal mapping between WGSL and Rust implementations, for the sake of easily patching in changes via diff as they're made in upstream.

However, this is somewhat at odds with Rust organization idioms. Need to see if anything can be done, perhaps by splitting out impl blocks in cases where free functions have been made intrinsic over a related type.

@LegNeato
Copy link

LegNeato commented Feb 1, 2024

@Shfty You might be interested in my draft PR to naga:

gfx-rs/wgpu#5175

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