mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
Merge #963
963: Add repr(C) on mapping structs r=trivial a=kvark **Connections** Required for https://phabricator.services.mozilla.com/D92636 **Description** Allows C clients to avoid redefining those structs. **Testing** No need Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
This commit is contained in:
commit
aee0bead78
@ -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…
x
Reference in New Issue
Block a user