diff --git a/wgpu-types/src/lib.rs b/wgpu-types/src/lib.rs index 8418fb6ea..117be55ac 100644 --- a/wgpu-types/src/lib.rs +++ b/wgpu-types/src/lib.rs @@ -1854,6 +1854,7 @@ pub struct BindGroupLayoutEntry { } /// View of a buffer which can be used to copy to/from a texture. +#[repr(C)] #[derive(Clone, Debug)] #[cfg_attr(feature = "trace", derive(serde::Serialize))] #[cfg_attr(feature = "replay", derive(serde::Deserialize))] @@ -1865,6 +1866,7 @@ pub struct BufferCopyView { } /// View of a texture which can be used to copy to/from a buffer/texture. +#[repr(C)] #[derive(Clone, Debug)] #[cfg_attr(feature = "trace", derive(serde::Serialize))] #[cfg_attr(feature = "replay", derive(serde::Deserialize))]