Skip to content

Defer some bind group processing until draw/dispatch#8418

Merged
teoxoy merged 2 commits intogfx-rs:trunkfrom
andyleiserson:push-wpxztmrmtpyx
Oct 23, 2025
Merged

Defer some bind group processing until draw/dispatch#8418
teoxoy merged 2 commits intogfx-rs:trunkfrom
andyleiserson:push-wpxztmrmtpyx

Conversation

@andyleiserson
Copy link
Contributor

This allows us to save some work when a bind group is replaced, although WebGPU still requires us to fail a submission if any resource in any bind group that was ever referenced during encoding is destroyed.

Fixes #8399.

Testing
Enables some relevant CTS tests.

Squash or Rebase? Rebase (after squashing any fixups)

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • Run cargo clippy --tests. If applicable, add:
    • --target wasm32-unknown-unknown
  • Run cargo xtask test to run tests.
  • If this contains user-facing changes, add a CHANGELOG.md entry.

* Don't remove resources from the usage scope, it is not necessary, and
  not useful, since we don't verify the scope is empty afterwards.
* Avoid some unnecessary `unsafe`.
This allows us to save some work when a bind group is replaced,
although WebGPU still requires us to fail a submission if any
resource in any bind group that was ever referenced during
encoding is destroyed.

Fixes gfx-rs#8399
@teoxoy teoxoy self-assigned this Oct 23, 2025
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.

Looks great!

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.

Detection of usage conflicts for indirect buffers is not correct

2 participants