Skip to content

Commit

Permalink
fix(types): use correct cfgs for serde(rename…)d VertexFormat v…
Browse files Browse the repository at this point in the history
…ariants (#6765)
  • Loading branch information
ErichDonGubler authored Dec 16, 2024
1 parent 4eb1435 commit 3160f81
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions naga/src/back/msl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,16 @@ pub enum VertexFormat {
/// Four signed ints (i32). `vec4<i32>` in shaders.
Sint32x4 = 38,
/// Three unsigned 10-bit integers and one 2-bit integer, packed into a 32-bit integer (u32). [0, 1024] converted to float [0, 1] `vec4<f32>` in shaders.
#[cfg_attr(feature = "serde", serde(rename = "unorm10-10-10-2"))]
#[cfg_attr(
any(feature = "serialize", feature = "deserialize"),
serde(rename = "unorm10-10-10-2")
)]
Unorm10_10_10_2 = 43,
/// Four unsigned 8-bit integers, packed into a 32-bit integer (u32). [0, 255] converted to float [0, 1] `vec4<f32>` in shaders.
#[cfg_attr(feature = "serde", serde(rename = "unorm8x4-bgra"))]
#[cfg_attr(
any(feature = "serialize", feature = "deserialize"),
serde(rename = "unorm8x4-bgra")
)]
Unorm8x4Bgra = 44,
}

Expand Down

0 comments on commit 3160f81

Please sign in to comment.