-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Adding push constants support #1369
Conversation
Blocked on #1401 |
d2c95bc
to
53d979f
Compare
I think this would benefit from a minimal example that proves the feature works / illustrates how to use it. |
@cart This API isn't exactly user-facing, so I don't think it's a good idea to make a new example inside bevy. This PR is supposed to be the foundations for #1372, and we'd probably need to build a Please take a look at the following for an example of how this would work: |
Push constants would be user-facing in the sense that users could use them (like you are using them in the linked |
# Conflicts: # crates/bevy_render/src/pipeline/pipeline_layout.rs # crates/bevy_wgpu/src/wgpu_type_converter.rs
074cb8c
to
8834821
Compare
This can probably be closed with the rendering rework right? It'll be very stale, and seems like we should wait for a compelling use case. |
The rework directly exposes the ability to enable push constants via gpu (because it uses wgpu directly), so I do think we can close this out. |
It doesn't look like |
This PR adds Push Constants support to the bevy rendering engine. This exposes the wgpu push constants API to the user.
However, we might want to coordinate with #547. Push Constants requires enabling the push constant feature and setting an appropriate resource limit. Therefore we might need to wait for #547, or maybe get this merged without enabling the push constants feature by default.