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

Naga fails to translate certain correct SPIR-V #17

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

Naga fails to translate certain correct SPIR-V #17

Shfty opened this issue Mar 19, 2023 · 1 comment
Labels
upstream Issue lies with an upstream repository

Comments

@Shfty
Copy link
Collaborator

Shfty commented Mar 19, 2023

Some valid rust-gpu code - such as the idiomatic for i in 0..10 loop sytax, or reading from a depth texture - is not yet supported by naga, or is subject to naga-internal bugs, thus preventing it from being used with bevy.

This can be worked around in the interim by using SPIR-V passthrough, but this is not yet supported by bevy.

A PR exists at bevy/3996, but was closed by its author before being merged. This code still works, and was deemed desirable by the bevy team, so I'll look at adopting said PR and getting it merged.

@Shfty Shfty added the upstream Issue lies with an upstream repository label Mar 19, 2023
@Shfty
Copy link
Collaborator Author

Shfty commented Mar 19, 2023

Opened a new PR: bevy/8131

@Shfty Shfty added this to the Stable Release milestone Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream Issue lies with an upstream repository
Projects
None yet
Development

No branches or pull requests

1 participant