From 9433450cc984774ef93ca16f043dfc388789f42b Mon Sep 17 00:00:00 2001 From: rajveermalviya Date: Sat, 18 Jun 2022 22:06:59 +0530 Subject: [PATCH] fix BufferMapCallbackC & SubmittedWorkDoneClosureC --- wgpu-core/src/device/queue.rs | 4 ++-- wgpu-core/src/resource.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 {}