From aed3b1ae59ee097901b852d934493c7ec167d344 Mon Sep 17 00:00:00 2001 From: Andreas Reich Date: Wed, 12 Oct 2022 20:28:44 +0200 Subject: [PATCH] adds eq to DepthBiasState and DepthStencilState (#3096) --- wgpu-types/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wgpu-types/src/lib.rs b/wgpu-types/src/lib.rs index 42845642b..ed82c00de 100644 --- a/wgpu-types/src/lib.rs +++ b/wgpu-types/src/lib.rs @@ -3188,12 +3188,14 @@ impl PartialEq for DepthBiasState { } } +impl Eq for DepthBiasState {} + /// Describes the depth/stencil state in a render pipeline. /// /// Corresponds to [WebGPU `GPUDepthStencilState`]( /// https://gpuweb.github.io/gpuweb/#dictdef-gpudepthstencilstate). #[repr(C)] -#[derive(Clone, Debug, Hash, PartialEq)] +#[derive(Clone, Debug, Hash, PartialEq, Eq)] #[cfg_attr(feature = "trace", derive(Serialize))] #[cfg_attr(feature = "replay", derive(Deserialize))] pub struct DepthStencilState {