Add repr(C) on copy views

This commit is contained in:
Dzmitry Malyshau 2020-10-21 16:39:27 -04:00 committed by GitHub
parent 8ce2530b69
commit c230988caa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1854,6 +1854,7 @@ pub struct BindGroupLayoutEntry {
} }
/// View of a buffer which can be used to copy to/from a texture. /// View of a buffer which can be used to copy to/from a texture.
#[repr(C)]
#[derive(Clone, Debug)] #[derive(Clone, Debug)]
#[cfg_attr(feature = "trace", derive(serde::Serialize))] #[cfg_attr(feature = "trace", derive(serde::Serialize))]
#[cfg_attr(feature = "replay", derive(serde::Deserialize))] #[cfg_attr(feature = "replay", derive(serde::Deserialize))]
@ -1865,6 +1866,7 @@ pub struct BufferCopyView<B> {
} }
/// View of a texture which can be used to copy to/from a buffer/texture. /// View of a texture which can be used to copy to/from a buffer/texture.
#[repr(C)]
#[derive(Clone, Debug)] #[derive(Clone, Debug)]
#[cfg_attr(feature = "trace", derive(serde::Serialize))] #[cfg_attr(feature = "trace", derive(serde::Serialize))]
#[cfg_attr(feature = "replay", derive(serde::Deserialize))] #[cfg_attr(feature = "replay", derive(serde::Deserialize))]