-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix(dx12): map composite alpha mode #7117
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
fix(dx12): map composite alpha mode #7117
Conversation
wgpu-hal/src/dx12/adapter.rs
Outdated
| wgt::CompositeAlphaMode::Auto, | ||
| wgt::CompositeAlphaMode::Inherit, | ||
| wgt::CompositeAlphaMode::Opaque, | ||
| wgt::CompositeAlphaMode::PostMultiplied, | ||
| wgt::CompositeAlphaMode::PreMultiplied, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be conditional on rendering to a DComp swapchain. Regular swapchains should only have Opaque
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks!
Head branch was pushed to by a user without write access
|
apologies, had a missing |
* fix(dx12): map composite alpha mode closes gfx-rs#7108 * changelog entry * add composite modes based on surface target * fix missing `in` in change log entry
* fix(dx12): map composite alpha mode closes gfx-rs#7108 * changelog entry * add composite modes based on surface target * fix missing `in` in change log entry Co-authored-by: Amr Bashir <github@amrbashir.me>
* fix(dx12): map composite alpha mode closes gfx-rs#7108 * changelog entry * add composite modes based on surface target * fix missing `in` in change log entry
* fix(dx12): map composite alpha mode closes gfx-rs#7108 * changelog entry * add composite modes based on surface target * fix missing `in` in change log entry
Connections
Link to the issues addressed by this PR, or dependent PRs in other repositories
closes #7108
Description
Describe what problem this is solving, and how it's solved.
Fix wgpu alpha modes when using it with windows DirectComposition.
Testing
Explain how this change is tested.
This PR was tested using the repro at https://github.com/microsoft/windows-rs/blob/91cfd289eeae05fa0bb6bdbe37a8426061f77c6e/crates/samples/windows/dcomp/src/main.rs
Checklist
cargo fmt.taplo format.cargo clippy. If applicable, add:--target wasm32-unknown-unknowncargo xtask testto run tests.CHANGELOG.md. See simple instructions inside file.