Skip to content

Extract texture <-> buffer copy logic to wgpu-types #7553

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

Merged

Conversation

cwfitzgerald
Copy link
Member

Connections

Part of #4150

Description

This extracts the number computation logic from the validation in wgpu-core so it can be re-used in wgpu-hal as well.

Testing

Wrote a bunch of tests for that logic, that wasn't there before.

Squash or Rebase?

Is single commit

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.

@cwfitzgerald cwfitzgerald force-pushed the cw/extract-texture-buffer-copy-logi branch 2 times, most recently from a237191 to ef5adc9 Compare April 18, 2025 23:17
@cwfitzgerald cwfitzgerald marked this pull request as ready for review April 19, 2025 03:06
@cwfitzgerald cwfitzgerald requested a review from a team as a code owner April 19, 2025 03:06
@ErichDonGubler ErichDonGubler self-assigned this Apr 22, 2025
Copy link
Member

@ErichDonGubler ErichDonGubler left a comment

Choose a reason for hiding this comment

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

LGTM! I don't think a CHANGELOG entry for wgpu-types is interesting to users in this case, so I'm okay with foregoing that.

@ErichDonGubler ErichDonGubler force-pushed the cw/extract-texture-buffer-copy-logi branch from ef5adc9 to b461a9f Compare April 28, 2025 21:05
@ErichDonGubler ErichDonGubler enabled auto-merge (squash) April 28, 2025 21:06
@ErichDonGubler ErichDonGubler merged commit 9fccdf5 into gfx-rs:trunk Apr 28, 2025
37 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.

2 participants