mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 16:24:24 +00:00
fix BufferMapCallbackC & SubmittedWorkDoneClosureC (#2787)
This commit is contained in:
parent
0d4d3f4ceb
commit
f27a9788fd
@ -30,8 +30,8 @@ const WRITE_COMMAND_BUFFERS_PER_POOL: usize = 64;
|
||||
|
||||
#[repr(C)]
|
||||
pub struct SubmittedWorkDoneClosureC {
|
||||
callback: unsafe extern "C" fn(user_data: *mut u8),
|
||||
user_data: *mut u8,
|
||||
pub callback: unsafe extern "C" fn(user_data: *mut u8),
|
||||
pub user_data: *mut u8,
|
||||
}
|
||||
|
||||
unsafe impl Send for SubmittedWorkDoneClosureC {}
|
||||
|
@ -47,8 +47,8 @@ unsafe impl<A: hal::Api> Sync for BufferMapState<A> {}
|
||||
|
||||
#[repr(C)]
|
||||
pub struct BufferMapCallbackC {
|
||||
callback: unsafe extern "C" fn(status: BufferMapAsyncStatus, user_data: *mut u8),
|
||||
user_data: *mut u8,
|
||||
pub callback: unsafe extern "C" fn(status: BufferMapAsyncStatus, user_data: *mut u8),
|
||||
pub user_data: *mut u8,
|
||||
}
|
||||
|
||||
unsafe impl Send for BufferMapCallbackC {}
|
||||
|
Loading…
Reference in New Issue
Block a user