mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-23 07:14:01 +00:00
Add repr(C) on copy views
This commit is contained in:
parent
8ce2530b69
commit
c230988caa
@ -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<B> {
|
||||
}
|
||||
|
||||
/// 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))]
|
||||
|
Loading…
Reference in New Issue
Block a user