diff --git a/wgpu-core/src/device/queue.rs b/wgpu-core/src/device/queue.rs index 6e0f589cae..f7c394c0be 100644 --- a/wgpu-core/src/device/queue.rs +++ b/wgpu-core/src/device/queue.rs @@ -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 {} diff --git a/wgpu-core/src/resource.rs b/wgpu-core/src/resource.rs index dffe52c0be..4ef38b83f5 100644 --- a/wgpu-core/src/resource.rs +++ b/wgpu-core/src/resource.rs @@ -47,8 +47,8 @@ unsafe impl Sync for BufferMapState {} #[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 {}