mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-26 08:44:08 +00:00
Add repr(C) on mapping structs
This commit is contained in:
parent
1bac63c654
commit
dc2d581c8d
@ -70,6 +70,7 @@ pub fn all_image_stages() -> hal::pso::PipelineStage {
|
||||
| Ps::TRANSFER
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
#[cfg_attr(feature = "trace", derive(serde::Serialize))]
|
||||
#[cfg_attr(feature = "replay", derive(serde::Deserialize))]
|
||||
|
@ -104,6 +104,7 @@ unsafe impl<B: hal::Backend> Sync for BufferMapState<B> {}
|
||||
|
||||
pub type BufferMapCallback = unsafe extern "C" fn(status: BufferMapAsyncStatus, userdata: *mut u8);
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct BufferMapOperation {
|
||||
pub host: crate::device::HostMap,
|
||||
|
Loading…
Reference in New Issue
Block a user