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

Make bind group an Option for set_bind_group calls. #6216

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

bradwerth
Copy link
Contributor

@bradwerth bradwerth commented Sep 4, 2024

This is just an API change for all the "set_bind_group" calls. Calls that pass a Some() argument have unchanged behavior. The None cases are left as TODOs.

Connections
Issue #4738

Description
set_bind_group now takes Option<&BindGroup>.

Testing
Existing tests, player scenes, and examples are all updated to use the new syntax.

Checklist

  • Run cargo fmt.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown
    • --target wasm32-unknown-emscripten
  • Run cargo xtask test to run tests.
  • Add change to CHANGELOG.md. See simple instructions inside file.

This is just an API change for all the "set_bind_group" calls. Calls
that pass a Some() argument should have unchanged behavior. The None
cases are left as TODOs.
@bradwerth bradwerth marked this pull request as ready for review September 4, 2024 22:53
@bradwerth bradwerth requested a review from a team as a code owner September 4, 2024 22:53
@JMS55
Copy link
Contributor

JMS55 commented Sep 6, 2024

I'd rather use Into<Option> so that the caller does not need to wrap it in Some.

@ErichDonGubler
Copy link
Member

@JMS55:

I'd rather use Into so that the caller does not need to wrap it in Some.

I don't think this feedback should block this PR, but if you feel strongly about it, I'd encourage you to file an issue for further discussion.

@bradwerth bradwerth merged commit 9b36a3e into gfx-rs:trunk Sep 6, 2024
25 checks passed
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.

4 participants