Add missing repr(C) on copy views

This commit is contained in:
Dzmitry Malyshau 2020-05-26 09:32:16 -04:00 committed by Dzmitry Malyshau
parent e4659b6d05
commit 4e1d76013c

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))]