[naga] add back PartialEq derives for some types (#6045)

(cherry picked from commit 1f4f675b1b)
This commit is contained in:
teoxoy 2024-07-25 10:54:08 +02:00 committed by Connor Fitzgerald
parent f5003d43be
commit 908bab43b1
No known key found for this signature in database
GPG Key ID: CF0A1F83B4E1A995
2 changed files with 10 additions and 6 deletions

View File

@ -39,6 +39,12 @@ Bottom level categories:
## Unreleased ## Unreleased
### Added
#### Naga
- Added back implementations of PartialEq for more IR types. By @teoxoy in [#6045](https://github.com/gfx-rs/wgpu/pull/6045)
### Bug Fixes ### Bug Fixes
#### General #### General

View File

@ -873,7 +873,7 @@ pub enum Literal {
} }
/// Pipeline-overridable constant. /// Pipeline-overridable constant.
#[derive(Debug, Clone)] #[derive(Clone, Debug, PartialEq)]
#[cfg_attr(feature = "serialize", derive(Serialize))] #[cfg_attr(feature = "serialize", derive(Serialize))]
#[cfg_attr(feature = "deserialize", derive(Deserialize))] #[cfg_attr(feature = "deserialize", derive(Deserialize))]
#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr(feature = "arbitrary", derive(Arbitrary))]
@ -891,8 +891,7 @@ pub struct Override {
} }
/// Constant value. /// Constant value.
#[derive(Debug, Clone)] #[derive(Clone, Debug, PartialEq)]
#[cfg_attr(test, derive(PartialEq))]
#[cfg_attr(feature = "serialize", derive(Serialize))] #[cfg_attr(feature = "serialize", derive(Serialize))]
#[cfg_attr(feature = "deserialize", derive(Deserialize))] #[cfg_attr(feature = "deserialize", derive(Deserialize))]
#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr(feature = "arbitrary", derive(Arbitrary))]
@ -954,7 +953,7 @@ pub struct ResourceBinding {
} }
/// Variable defined at module level. /// Variable defined at module level.
#[derive(Clone, Debug)] #[derive(Clone, Debug, PartialEq)]
#[cfg_attr(feature = "serialize", derive(Serialize))] #[cfg_attr(feature = "serialize", derive(Serialize))]
#[cfg_attr(feature = "deserialize", derive(Deserialize))] #[cfg_attr(feature = "deserialize", derive(Deserialize))]
#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr(feature = "arbitrary", derive(Arbitrary))]
@ -1354,8 +1353,7 @@ bitflags::bitflags! {
/// ///
/// [`Constant`]: Expression::Constant /// [`Constant`]: Expression::Constant
/// [`Override`]: Expression::Override /// [`Override`]: Expression::Override
#[derive(Clone, Debug)] #[derive(Clone, Debug, PartialEq)]
#[cfg_attr(test, derive(PartialEq))]
#[cfg_attr(feature = "serialize", derive(Serialize))] #[cfg_attr(feature = "serialize", derive(Serialize))]
#[cfg_attr(feature = "deserialize", derive(Deserialize))] #[cfg_attr(feature = "deserialize", derive(Deserialize))]
#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr(feature = "arbitrary", derive(Arbitrary))]