@@ -11,7 +11,7 @@ public static unsafe partial class WebGPUNative
1111 public static extern WGPUInstance wgpuCreateInstance ( WGPUInstanceDescriptor * descriptor ) ;
1212
1313 [ DllImport ( "wgpu_native" , CallingConvention = CallingConvention . Cdecl , EntryPoint = "wgpuGetProcAddress" ) ]
14- public static extern delegate * unmanaged < void > wgpuGetProcAddress ( WGPUDevice device , char * procName ) ;
14+ public static extern IntPtr wgpuGetProcAddress ( WGPUDevice device , char * procName ) ;
1515
1616 [ DllImport ( "wgpu_native" , CallingConvention = CallingConvention . Cdecl , EntryPoint = "wgpuAdapterEnumerateFeatures" ) ]
1717 public static extern uint wgpuAdapterEnumerateFeatures ( WGPUAdapter adapter , WGPUFeatureName * features ) ;
@@ -26,7 +26,7 @@ public static unsafe partial class WebGPUNative
2626 public static extern bool wgpuAdapterHasFeature ( WGPUAdapter adapter , WGPUFeatureName feature ) ;
2727
2828 [ DllImport ( "wgpu_native" , CallingConvention = CallingConvention . Cdecl , EntryPoint = "wgpuAdapterRequestDevice" ) ]
29- public static extern void wgpuAdapterRequestDevice ( WGPUAdapter adapter , WGPUDeviceDescriptor * descriptor , delegate * unmanaged < WGPURequestDeviceStatus , WGPUDevice , char * , void * , void > callback , void * userdata ) ;
29+ public static extern void wgpuAdapterRequestDevice ( WGPUAdapter adapter , WGPUDeviceDescriptor * descriptor , IntPtr callback , void * userdata ) ;
3030
3131 [ DllImport ( "wgpu_native" , CallingConvention = CallingConvention . Cdecl , EntryPoint = "wgpuAdapterReference" ) ]
3232 public static extern void wgpuAdapterReference ( WGPUAdapter adapter ) ;
@@ -68,7 +68,7 @@ public static unsafe partial class WebGPUNative
6868 public static extern WGPUBufferUsage wgpuBufferGetUsage ( WGPUBuffer buffer ) ;
6969
7070 [ DllImport ( "wgpu_native" , CallingConvention = CallingConvention . Cdecl , EntryPoint = "wgpuBufferMapAsync" ) ]
71- public static extern void wgpuBufferMapAsync ( WGPUBuffer buffer , WGPUMapMode mode , uint offset , uint size , delegate * unmanaged < WGPUBufferMapAsyncStatus , void * , void > callback , void * userdata ) ;
71+ public static extern void wgpuBufferMapAsync ( WGPUBuffer buffer , WGPUMapMode mode , uint offset , uint size , IntPtr callback , void * userdata ) ;
7272
7373 [ DllImport ( "wgpu_native" , CallingConvention = CallingConvention . Cdecl , EntryPoint = "wgpuBufferSetLabel" ) ]
7474 public static extern void wgpuBufferSetLabel ( WGPUBuffer buffer , char * label ) ;
@@ -209,7 +209,7 @@ public static unsafe partial class WebGPUNative
209209 public static extern WGPUComputePipeline wgpuDeviceCreateComputePipeline ( WGPUDevice device , WGPUComputePipelineDescriptor * descriptor ) ;
210210
211211 [ DllImport ( "wgpu_native" , CallingConvention = CallingConvention . Cdecl , EntryPoint = "wgpuDeviceCreateComputePipelineAsync" ) ]
212- public static extern void wgpuDeviceCreateComputePipelineAsync ( WGPUDevice device , WGPUComputePipelineDescriptor * descriptor , delegate * unmanaged < WGPUCreatePipelineAsyncStatus , WGPUComputePipeline , char * , void * , void > callback , void * userdata ) ;
212+ public static extern void wgpuDeviceCreateComputePipelineAsync ( WGPUDevice device , WGPUComputePipelineDescriptor * descriptor , IntPtr callback , void * userdata ) ;
213213
214214 [ DllImport ( "wgpu_native" , CallingConvention = CallingConvention . Cdecl , EntryPoint = "wgpuDeviceCreatePipelineLayout" ) ]
215215 public static extern WGPUPipelineLayout wgpuDeviceCreatePipelineLayout ( WGPUDevice device , WGPUPipelineLayoutDescriptor * descriptor ) ;
@@ -224,7 +224,7 @@ public static unsafe partial class WebGPUNative
224224 public static extern WGPURenderPipeline wgpuDeviceCreateRenderPipeline ( WGPUDevice device , WGPURenderPipelineDescriptor * descriptor ) ;
225225
226226 [ DllImport ( "wgpu_native" , CallingConvention = CallingConvention . Cdecl , EntryPoint = "wgpuDeviceCreateRenderPipelineAsync" ) ]
227- public static extern void wgpuDeviceCreateRenderPipelineAsync ( WGPUDevice device , WGPURenderPipelineDescriptor * descriptor , delegate * unmanaged < WGPUCreatePipelineAsyncStatus , WGPURenderPipeline , char * , void * , void > callback , void * userdata ) ;
227+ public static extern void wgpuDeviceCreateRenderPipelineAsync ( WGPUDevice device , WGPURenderPipelineDescriptor * descriptor , IntPtr callback , void * userdata ) ;
228228
229229 [ DllImport ( "wgpu_native" , CallingConvention = CallingConvention . Cdecl , EntryPoint = "wgpuDeviceCreateSampler" ) ]
230230 public static extern WGPUSampler wgpuDeviceCreateSampler ( WGPUDevice device , WGPUSamplerDescriptor * descriptor ) ;
@@ -257,7 +257,7 @@ public static unsafe partial class WebGPUNative
257257 public static extern void wgpuDeviceSetLabel ( WGPUDevice device , char * label ) ;
258258
259259 [ DllImport ( "wgpu_native" , CallingConvention = CallingConvention . Cdecl , EntryPoint = "wgpuDeviceSetUncapturedErrorCallback" ) ]
260- public static extern void wgpuDeviceSetUncapturedErrorCallback ( WGPUDevice device , delegate * unmanaged < WGPUErrorType , char * , void * , void > callback , void * userdata ) ;
260+ public static extern void wgpuDeviceSetUncapturedErrorCallback ( WGPUDevice device , IntPtr callback , void * userdata ) ;
261261
262262 [ DllImport ( "wgpu_native" , CallingConvention = CallingConvention . Cdecl , EntryPoint = "wgpuDeviceReference" ) ]
263263 public static extern void wgpuDeviceReference ( WGPUDevice device ) ;
@@ -272,7 +272,7 @@ public static unsafe partial class WebGPUNative
272272 public static extern void wgpuInstanceProcessEvents ( WGPUInstance instance ) ;
273273
274274 [ DllImport ( "wgpu_native" , CallingConvention = CallingConvention . Cdecl , EntryPoint = "wgpuInstanceRequestAdapter" ) ]
275- public static extern void wgpuInstanceRequestAdapter ( WGPUInstance instance , WGPURequestAdapterOptions * options , delegate * unmanaged < WGPURequestAdapterStatus , WGPUAdapter , char * , void * , void > callback , void * userdata ) ;
275+ public static extern void wgpuInstanceRequestAdapter ( WGPUInstance instance , WGPURequestAdapterOptions * options , IntPtr callback , void * userdata ) ;
276276
277277 [ DllImport ( "wgpu_native" , CallingConvention = CallingConvention . Cdecl , EntryPoint = "wgpuInstanceReference" ) ]
278278 public static extern void wgpuInstanceReference ( WGPUInstance instance ) ;
@@ -308,7 +308,7 @@ public static unsafe partial class WebGPUNative
308308 public static extern void wgpuQuerySetRelease ( WGPUQuerySet querySet ) ;
309309
310310 [ DllImport ( "wgpu_native" , CallingConvention = CallingConvention . Cdecl , EntryPoint = "wgpuQueueOnSubmittedWorkDone" ) ]
311- public static extern void wgpuQueueOnSubmittedWorkDone ( WGPUQueue queue , ulong signalValue , delegate * unmanaged < WGPUQueueWorkDoneStatus , void * , void > callback , void * userdata ) ;
311+ public static extern void wgpuQueueOnSubmittedWorkDone ( WGPUQueue queue , ulong signalValue , IntPtr callback , void * userdata ) ;
312312
313313 [ DllImport ( "wgpu_native" , CallingConvention = CallingConvention . Cdecl , EntryPoint = "wgpuQueueSetLabel" ) ]
314314 public static extern void wgpuQueueSetLabel ( WGPUQueue queue , char * label ) ;
@@ -470,7 +470,7 @@ public static unsafe partial class WebGPUNative
470470 public static extern void wgpuSamplerRelease ( WGPUSampler sampler ) ;
471471
472472 [ DllImport ( "wgpu_native" , CallingConvention = CallingConvention . Cdecl , EntryPoint = "wgpuShaderModuleGetCompilationInfo" ) ]
473- public static extern void wgpuShaderModuleGetCompilationInfo ( WGPUShaderModule shaderModule , delegate * unmanaged < WGPUCompilationInfoRequestStatus , WGPUCompilationInfo * , void * , void > callback , void * userdata ) ;
473+ public static extern void wgpuShaderModuleGetCompilationInfo ( WGPUShaderModule shaderModule , IntPtr callback , void * userdata ) ;
474474
475475 [ DllImport ( "wgpu_native" , CallingConvention = CallingConvention . Cdecl , EntryPoint = "wgpuShaderModuleSetLabel" ) ]
476476 public static extern void wgpuShaderModuleSetLabel ( WGPUShaderModule shaderModule , char * label ) ;
0 commit comments