From 1e63e8ca9b7bca7519e1770a0b7585435095f601 Mon Sep 17 00:00:00 2001 From: terrarier2111 <58695553+terrarier2111@users.noreply.github.com> Date: Thu, 6 Oct 2022 22:07:12 +0200 Subject: [PATCH] Implement Default for CompositeAlphaMode (#3074) --- CHANGELOG.md | 6 ++++++ wgpu-types/src/lib.rs | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 28855c766..5d50c447e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,12 @@ Bottom level categories: ## Unreleased +### Changes + +#### General + +* Implement `Default` for `CompositeAlphaMode` + ### Bug Fixes #### General diff --git a/wgpu-types/src/lib.rs b/wgpu-types/src/lib.rs index a7bd3d0d9..86cb02c71 100644 --- a/wgpu-types/src/lib.rs +++ b/wgpu-types/src/lib.rs @@ -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. ///