Skip to content

Commit

Permalink
Implement Default for CompositeAlphaMode (#3074)
Browse files Browse the repository at this point in the history
  • Loading branch information
terrarier2111 authored Oct 6, 2022
1 parent 58f92cc commit 1e63e8c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ Bottom level categories:

## Unreleased

### Changes

#### General

* Implement `Default` for `CompositeAlphaMode`

### Bug Fixes

#### General
Expand Down
6 changes: 6 additions & 0 deletions wgpu-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3824,6 +3824,12 @@ pub enum CompositeAlphaMode {
Inherit = 4,
}

impl Default for CompositeAlphaMode {
fn default() -> Self {
Self::Auto
}
}

bitflags::bitflags! {
/// Different ways that you can use a texture.
///
Expand Down

0 comments on commit 1e63e8c

Please sign in to comment.