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

Clean up render bundle index buffer tracking. #2743

Merged
merged 2 commits into from
Jun 7, 2022

Conversation

jimblandy
Copy link
Member

Put all state associated with an established index buffer within an Option, so that the Rust types accurately represent value liveness.

Generate MissingIndexBuffer errors as needed for DrawIndexed and indexed MultiDrawIndirect commands.

Remove unused field bundle::IndexState::pipeline_format.

This may be easier to review if you look at the commits separately.

jimblandy added 2 commits June 6, 2022 15:07
Put all state associated with an established index buffer within an
`Option`, so that the Rust types accurately represent value liveness.

Generate `MissingIndexBuffer` errors as needed for `DrawIndexed` and
indexed `MultiDrawIndirect` commands.
@jimblandy jimblandy marked this pull request as ready for review June 6, 2022 22:41
Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

Better validation is better!

wgpu-core/src/command/bundle.rs Show resolved Hide resolved
@cwfitzgerald cwfitzgerald merged commit 091e9b1 into gfx-rs:master Jun 7, 2022
@jimblandy jimblandy deleted the bundle-index-tracking branch June 7, 2022 06:20
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.

2 participants