Skip to content

Commit

Permalink
Serialize mtl EntryPointError
Browse files Browse the repository at this point in the history
  • Loading branch information
expenses authored and kvark committed Apr 9, 2021
1 parent 44a6c02 commit 1fc8831
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/back/msl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ pub struct BindTarget {
}

#[derive(Clone, Debug, Hash, Eq, Ord, PartialEq, PartialOrd)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))]
pub struct BindSource {
pub stage: crate::ShaderStage,
Expand Down Expand Up @@ -95,6 +96,8 @@ pub enum Error {
}

#[derive(Clone, Debug, PartialEq, thiserror::Error)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))]
pub enum EntryPointError {
#[error("mapping of {0:?} is missing")]
MissingBinding(BindSource),
Expand Down

0 comments on commit 1fc8831

Please sign in to comment.