Add missing repr(C) on copy views

This commit is contained in:
Dzmitry Malyshau authored and Dzmitry Malyshau committed 2020-05-26 09:35:09 -04:00
1 parent e4659b6d05
commit 4e1d76013c
1 file changed
+2
+2
View File
@@ -19,6 +19,7 @@ use std::iter;
pub(crate) const BITS_PER_BYTE: u32 = 8;
#[repr(C)]
#[derive(Clone, Debug)]
#[cfg_attr(feature = "trace", derive(serde::Serialize))]
#[cfg_attr(feature = "replay", derive(serde::Deserialize))]
@@ -27,6 +28,7 @@ pub struct BufferCopyView {
pub layout: TextureDataLayout,
}
#[repr(C)]
#[derive(Clone, Debug)]
#[cfg_attr(feature = "trace", derive(serde::Serialize))]
#[cfg_attr(feature = "replay", derive(serde::Deserialize))]