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

Inline PassChannel into ColorAttachment #6704

Merged
merged 1 commit into from
Dec 12, 2024
Merged

Conversation

sagudev
Copy link
Contributor

@sagudev sagudev commented Dec 11, 2024

Connections
In preparation for #6700

Description
ColorAttachments requires load/store ops and does not use read_only field at all, while in depth/stencil attachment ops are optional and read_only must be true if ops not provided. So sharing those fields as PassCannel only makes sense for depth/stencil attachment.

Testing
Safe refactoring because we are in Rust, also there are tests that cover color attachments (water example).

Checklist

  • 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.

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
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.

LGTM

@teoxoy teoxoy merged commit 8f82992 into gfx-rs:trunk Dec 12, 2024
27 checks passed
kentslaney pushed a commit to kentslaney/wgpu that referenced this pull request Dec 16, 2024
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
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