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

Remove additional trait impls from CommandBuffer #6960

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

a1phyr
Copy link
Contributor

@a1phyr a1phyr commented Jan 20, 2025

The only purpose of this type is to be given to submit. Being able to clone and share it has no value .

Remove Clone implementation and the inner Arc<Mutex>. From there, remove all comparison traits as two CommandBuffer are always different.

  • Run cargo fmt.
  • Run taplo format.
  • 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.

@a1phyr a1phyr requested a review from a team as a code owner January 20, 2025 16:09
@a1phyr a1phyr force-pushed the command_buffer branch 2 times, most recently from 0de0b8b to 74aa7c6 Compare January 20, 2025 16:58
@nical
Copy link
Contributor

nical commented Jan 21, 2025

I'll let @cwfitzgerald decide but Removing Clone from CommandBuffer sounds good to me.

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.

I think we also need to change the main dispatch macro from ref to mut

wgpu/src/cmp.rs Show resolved Hide resolved
The only purpose of this type is to be given to `submit`. Remove
`Clone` implementation and the inner `Arc<Mutex>`. From there, remove
all comparison traits as two `CommandBuffer` ar always different.
@cwfitzgerald cwfitzgerald enabled auto-merge (squash) January 21, 2025 16:32
@cwfitzgerald cwfitzgerald merged commit 2298cd2 into gfx-rs:trunk Jan 21, 2025
31 checks passed
@a1phyr a1phyr deleted the command_buffer branch January 22, 2025 13:03
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