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

Prevent using multiple push constant variables in one entry point. #2484

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

andriyDev
Copy link
Contributor

Previously, using multiple push constant variables was undefined behavior (in wgpu, this resulted in gfx-rs/wgpu#4099). Now, multiple push constant variables per entry point is a validation error!

@andriyDev andriyDev force-pushed the prevent-multiple-push-constants branch from 41f112f to 38a391d Compare September 17, 2023 18:42
src/valid/interface.rs Outdated Show resolved Hide resolved
src/valid/interface.rs Outdated Show resolved Hide resolved
@andriyDev andriyDev force-pushed the prevent-multiple-push-constants branch from 38a391d to a613fdd Compare September 19, 2023 02:58
@andriyDev andriyDev force-pushed the prevent-multiple-push-constants branch from a613fdd to 168533b Compare September 19, 2023 07:02
@andriyDev andriyDev force-pushed the prevent-multiple-push-constants branch from 168533b to eaf4f42 Compare September 19, 2023 07:24
Copy link
Member

@teoxoy teoxoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@teoxoy teoxoy merged commit d8b7573 into gfx-rs:master Sep 19, 2023
5 checks passed
@andriyDev andriyDev deleted the prevent-multiple-push-constants branch September 20, 2023 01:30
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

Successfully merging this pull request may close these issues.

3 participants