@@ -50,23 +50,23 @@ pub const CommandEncoderDescriptor = extern struct {
5050};
5151
5252const ComputePassEncoderProcs = struct {
53- pub const DispatchWorkgroups = * const fn (* ComputePassEncoder , u32 , u32 , u32 ) callconv (.C ) void ;
54- pub const DispatchWorkgroupsIndirect = * const fn (* ComputePassEncoder , * Buffer , u64 ) callconv (.C ) void ;
55- pub const End = * const fn (* ComputePassEncoder ) callconv (.C ) void ;
56- pub const InsertDebugMarker = * const fn (* ComputePassEncoder , StringView ) callconv (.C ) void ;
57- pub const PopDebugGroup = * const fn (* ComputePassEncoder ) callconv (.C ) void ;
58- pub const PushDebugGroup = * const fn (* ComputePassEncoder , StringView ) callconv (.C ) void ;
59- pub const SetBindGroup = * const fn (* ComputePassEncoder , u32 , * BindGroup , usize , ? [* ]const u32 ) callconv (.C ) void ;
60- pub const SetLabel = * const fn (* ComputePassEncoder , StringView ) callconv (.C ) void ;
61- pub const SetPipeline = * const fn (* ComputePassEncoder , * ComputePipeline ) callconv (.C ) void ;
62- pub const AddRef = * const fn (* ComputePassEncoder ) callconv (.C ) void ;
63- pub const Release = * const fn (* ComputePassEncoder ) callconv (.C ) void ;
53+ pub const DispatchWorkgroups = * const fn (* ComputePassEncoder , u32 , u32 , u32 ) callconv (.c ) void ;
54+ pub const DispatchWorkgroupsIndirect = * const fn (* ComputePassEncoder , * Buffer , u64 ) callconv (.c ) void ;
55+ pub const End = * const fn (* ComputePassEncoder ) callconv (.c ) void ;
56+ pub const InsertDebugMarker = * const fn (* ComputePassEncoder , StringView ) callconv (.c ) void ;
57+ pub const PopDebugGroup = * const fn (* ComputePassEncoder ) callconv (.c ) void ;
58+ pub const PushDebugGroup = * const fn (* ComputePassEncoder , StringView ) callconv (.c ) void ;
59+ pub const SetBindGroup = * const fn (* ComputePassEncoder , u32 , * BindGroup , usize , ? [* ]const u32 ) callconv (.c ) void ;
60+ pub const SetLabel = * const fn (* ComputePassEncoder , StringView ) callconv (.c ) void ;
61+ pub const SetPipeline = * const fn (* ComputePassEncoder , * ComputePipeline ) callconv (.c ) void ;
62+ pub const AddRef = * const fn (* ComputePassEncoder ) callconv (.c ) void ;
63+ pub const Release = * const fn (* ComputePassEncoder ) callconv (.c ) void ;
6464
6565 // wgpu-native procs?
66- // pub const SetPushConstants = *const fn(*ComputePassEncoder, u32, u32, *const anyopaque) callconv(.C ) void;
67- // pub const BeginPipelineStatisticsQuery = *const fn(*ComputePassEncoder, *QuerySet, u32) callconv(.C ) void;
68- // pub const EndPipelineStatisticsQuery = *const fn(*ComputePassEncoder) callconv(.C ) void;
69- // pub const WriteTimestamp = *const fn(*ComputePassEncoder, *QuerySet, u32) callconv(.C ) void;
66+ // pub const SetPushConstants = *const fn(*ComputePassEncoder, u32, u32, *const anyopaque) callconv(.c ) void;
67+ // pub const BeginPipelineStatisticsQuery = *const fn(*ComputePassEncoder, *QuerySet, u32) callconv(.c ) void;
68+ // pub const EndPipelineStatisticsQuery = *const fn(*ComputePassEncoder) callconv(.c ) void;
69+ // pub const WriteTimestamp = *const fn(*ComputePassEncoder, *QuerySet, u32) callconv(.c ) void;
7070};
7171
7272extern fn wgpuComputePassEncoderDispatchWorkgroups (compute_pass_encoder : * ComputePassEncoder , workgroup_count_x : u32 , workgroup_count_y : u32 , workgroup_count_z : u32 ) void ;
@@ -211,38 +211,38 @@ pub const RenderPassDescriptor = extern struct {
211211};
212212
213213pub const RenderPassEncoderProcs = struct {
214- pub const BeginOcclusionQuery = * const fn (* RenderPassEncoder , u32 ) callconv (.C ) void ;
215- pub const Draw = * const fn (* RenderPassEncoder , u32 , u32 , u32 , u32 ) callconv (.C ) void ;
216- pub const DrawIndexed = * const fn (* RenderPassEncoder , u32 , u32 , u32 , i32 , u32 ) callconv (.C ) void ;
217- pub const DrawIndexedIndirect = * const fn (* RenderPassEncoder , * Buffer , u64 ) callconv (.C ) void ;
218- pub const DrawIndirect = * const fn (* RenderPassEncoder , * Buffer , u64 ) callconv (.C ) void ;
219- pub const End = * const fn (* RenderPassEncoder ) callconv (.C ) void ;
220- pub const EndOcclusionQuery = * const fn (* RenderPassEncoder ) callconv (.C ) void ;
221- pub const ExecuteBundles = * const fn (* RenderPassEncoder , usize , [* ]const * const RenderBundle ) callconv (.C ) void ;
222- pub const InsertDebugMarker = * const fn (* RenderPassEncoder , StringView ) callconv (.C ) void ;
223- pub const PopDebugGroup = * const fn (* RenderPassEncoder ) callconv (.C ) void ;
224- pub const PushDebugGroup = * const fn (* RenderPassEncoder , StringView ) callconv (.C ) void ;
225- pub const SetBindGroup = * const fn (* RenderPassEncoder , u32 , * BindGroup , usize , ? [* ]const u32 ) callconv (.C ) void ;
226- pub const SetBlendConstant = * const fn (* RenderPassEncoder , * const Color ) callconv (.C ) void ;
227- pub const SetIndexBuffer = * const fn (* RenderPassEncoder , * Buffer , IndexFormat , u64 , u64 ) callconv (.C ) void ;
228- pub const SetLabel = * const fn (* RenderPassEncoder , StringView ) callconv (.C ) void ;
229- pub const SetPipeline = * const fn (* RenderPassEncoder , * RenderPipeline ) callconv (.C ) void ;
230- pub const SetScissorRect = * const fn (* RenderPassEncoder , u32 , u32 , u32 , u32 ) callconv (.C ) void ;
231- pub const SetStencilReference = * const fn (* RenderPassEncoder , u32 ) callconv (.C ) void ;
232- pub const SetVertexBuffer = * const fn (* RenderPassEncoder , u32 , * Buffer , u64 , u64 ) callconv (.C ) void ;
233- pub const SetViewport = * const fn (* RenderPassEncoder , f32 , f32 , f32 , f32 , f32 , f32 ) callconv (.C ) void ;
234- pub const AddRef = * const fn (* RenderPassEncoder ) callconv (.C ) void ;
235- pub const Release = * const fn (* RenderPassEncoder ) callconv (.C ) void ;
214+ pub const BeginOcclusionQuery = * const fn (* RenderPassEncoder , u32 ) callconv (.c ) void ;
215+ pub const Draw = * const fn (* RenderPassEncoder , u32 , u32 , u32 , u32 ) callconv (.c ) void ;
216+ pub const DrawIndexed = * const fn (* RenderPassEncoder , u32 , u32 , u32 , i32 , u32 ) callconv (.c ) void ;
217+ pub const DrawIndexedIndirect = * const fn (* RenderPassEncoder , * Buffer , u64 ) callconv (.c ) void ;
218+ pub const DrawIndirect = * const fn (* RenderPassEncoder , * Buffer , u64 ) callconv (.c ) void ;
219+ pub const End = * const fn (* RenderPassEncoder ) callconv (.c ) void ;
220+ pub const EndOcclusionQuery = * const fn (* RenderPassEncoder ) callconv (.c ) void ;
221+ pub const ExecuteBundles = * const fn (* RenderPassEncoder , usize , [* ]const * const RenderBundle ) callconv (.c ) void ;
222+ pub const InsertDebugMarker = * const fn (* RenderPassEncoder , StringView ) callconv (.c ) void ;
223+ pub const PopDebugGroup = * const fn (* RenderPassEncoder ) callconv (.c ) void ;
224+ pub const PushDebugGroup = * const fn (* RenderPassEncoder , StringView ) callconv (.c ) void ;
225+ pub const SetBindGroup = * const fn (* RenderPassEncoder , u32 , * BindGroup , usize , ? [* ]const u32 ) callconv (.c ) void ;
226+ pub const SetBlendConstant = * const fn (* RenderPassEncoder , * const Color ) callconv (.c ) void ;
227+ pub const SetIndexBuffer = * const fn (* RenderPassEncoder , * Buffer , IndexFormat , u64 , u64 ) callconv (.c ) void ;
228+ pub const SetLabel = * const fn (* RenderPassEncoder , StringView ) callconv (.c ) void ;
229+ pub const SetPipeline = * const fn (* RenderPassEncoder , * RenderPipeline ) callconv (.c ) void ;
230+ pub const SetScissorRect = * const fn (* RenderPassEncoder , u32 , u32 , u32 , u32 ) callconv (.c ) void ;
231+ pub const SetStencilReference = * const fn (* RenderPassEncoder , u32 ) callconv (.c ) void ;
232+ pub const SetVertexBuffer = * const fn (* RenderPassEncoder , u32 , * Buffer , u64 , u64 ) callconv (.c ) void ;
233+ pub const SetViewport = * const fn (* RenderPassEncoder , f32 , f32 , f32 , f32 , f32 , f32 ) callconv (.c ) void ;
234+ pub const AddRef = * const fn (* RenderPassEncoder ) callconv (.c ) void ;
235+ pub const Release = * const fn (* RenderPassEncoder ) callconv (.c ) void ;
236236
237237 // wgpu-native procs?
238- // pub const SetPushConstants = *const fn(*RenderPassEncoder, ShaderStage, u32, u32, *const anyopaque) callconv(.C ) void;
239- // pub const MultiDrawIndirect = *const fn(*RenderPassEncoder, *Buffer, u64, u32) callconv(.C ) void;
240- // pub const MultiDrawIndexedIndirect = *const fn(*RenderPassEncoder, *Buffer, u64, u32) callconv(.C ) void;
241- // pub const MultiDrawIndirectCount = *const fn(*RenderPassEncoder, *Buffer, u64, *Buffer, u64, u32) callconv(.C ) void;
242- // pub const MultiDrawIndexedIndirectCount = *const fn(*RenderPassEncoder, *Buffer, u64, *Buffer, u64, u32) callconv(.C ) void;
243- // pub const BeginPipelineStatisticsQuery = *const fn(*RenderPassEncoder, *QuerySet, u32) callconv(.C ) void;
244- // pub const EndPipelineStatisticsQuery = *const fn(*RenderPassEncoder) callconv(.C ) void;
245- // pub const WriteTimestamp = *const fn(*RenderPassEncoder, *QuerySet, u32) callconv(.C ) void;
238+ // pub const SetPushConstants = *const fn(*RenderPassEncoder, ShaderStage, u32, u32, *const anyopaque) callconv(.c ) void;
239+ // pub const MultiDrawIndirect = *const fn(*RenderPassEncoder, *Buffer, u64, u32) callconv(.c ) void;
240+ // pub const MultiDrawIndexedIndirect = *const fn(*RenderPassEncoder, *Buffer, u64, u32) callconv(.c ) void;
241+ // pub const MultiDrawIndirectCount = *const fn(*RenderPassEncoder, *Buffer, u64, *Buffer, u64, u32) callconv(.c ) void;
242+ // pub const MultiDrawIndexedIndirectCount = *const fn(*RenderPassEncoder, *Buffer, u64, *Buffer, u64, u32) callconv(.c ) void;
243+ // pub const BeginPipelineStatisticsQuery = *const fn(*RenderPassEncoder, *QuerySet, u32) callconv(.c ) void;
244+ // pub const EndPipelineStatisticsQuery = *const fn(*RenderPassEncoder) callconv(.c ) void;
245+ // pub const WriteTimestamp = *const fn(*RenderPassEncoder, *QuerySet, u32) callconv(.c ) void;
246246};
247247
248248extern fn wgpuRenderPassEncoderBeginOcclusionQuery (render_pass_encoder : * RenderPassEncoder , query_index : u32 ) void ;
@@ -383,9 +383,9 @@ pub const CommandBufferDescriptor = extern struct {
383383};
384384
385385pub const CommandBufferProcs = struct {
386- pub const SetLabel = * const fn (* CommandBuffer , StringView ) callconv (.C ) void ;
387- pub const AddRef = * const fn (* CommandBuffer ) callconv (.C ) void ;
388- pub const Release = * const fn (* CommandBuffer ) callconv (.C ) void ;
386+ pub const SetLabel = * const fn (* CommandBuffer , StringView ) callconv (.c ) void ;
387+ pub const AddRef = * const fn (* CommandBuffer ) callconv (.c ) void ;
388+ pub const Release = * const fn (* CommandBuffer ) callconv (.c ) void ;
389389};
390390
391391extern fn wgpuCommandBufferSetLabel (command_buffer : * CommandBuffer , label : StringView ) void ;
@@ -408,22 +408,22 @@ pub const CommandBuffer = opaque {
408408};
409409
410410pub const CommandEncoderProcs = struct {
411- pub const BeginComputePass = * const fn (* CommandEncoder , ? * const ComputePassDescriptor ) callconv (.C ) ? * ComputePassEncoder ;
412- pub const BeginRenderPass = * const fn (* CommandEncoder , * const RenderPassDescriptor ) callconv (.C ) ? * RenderPassEncoder ;
413- pub const ClearBuffer = * const fn (* CommandEncoder , * Buffer , u64 , u64 ) callconv (.C ) void ;
414- pub const CopyBufferToBuffer = * const fn (* CommandEncoder , * Buffer , u64 , * Buffer , u64 , u64 ) callconv (.C ) void ;
415- pub const CopyBufferToTexture = * const fn (* CommandEncoder , * const TexelCopyBufferInfo , * const TexelCopyTextureInfo , * const Extent3D ) callconv (.C ) void ;
416- pub const CopyTextureToBuffer = * const fn (* CommandEncoder , * const TexelCopyTextureInfo , * const TexelCopyBufferInfo , * const Extent3D ) callconv (.C ) void ;
417- pub const CopyTextureToTexture = * const fn (* CommandEncoder , * const TexelCopyTextureInfo , * const TexelCopyTextureInfo , * const Extent3D ) callconv (.C ) void ;
418- pub const Finish = * const fn (* CommandEncoder , ? * const CommandBufferDescriptor ) callconv (.C ) ? * CommandBuffer ;
419- pub const InsertDebugMarker = * const fn (* CommandEncoder , StringView ) callconv (.C ) void ;
420- pub const PopDebugGroup = * const fn (* CommandEncoder ) callconv (.C ) void ;
421- pub const PushDebugGroup = * const fn (* CommandEncoder , StringView ) callconv (.C ) void ;
422- pub const ResolveQuerySet = * const fn (* CommandEncoder , * QuerySet , u32 , u32 , * Buffer , u64 ) callconv (.C ) void ;
423- pub const SetLabel = * const fn (* CommandEncoder , StringView ) callconv (.C ) void ;
424- pub const WriteTimestamp = * const fn (* CommandEncoder , * QuerySet , u32 ) callconv (.C ) void ;
425- pub const AddRef = * const fn (* CommandEncoder ) callconv (.C ) void ;
426- pub const Release = * const fn (* CommandEncoder ) callconv (.C ) void ;
411+ pub const BeginComputePass = * const fn (* CommandEncoder , ? * const ComputePassDescriptor ) callconv (.c ) ? * ComputePassEncoder ;
412+ pub const BeginRenderPass = * const fn (* CommandEncoder , * const RenderPassDescriptor ) callconv (.c ) ? * RenderPassEncoder ;
413+ pub const ClearBuffer = * const fn (* CommandEncoder , * Buffer , u64 , u64 ) callconv (.c ) void ;
414+ pub const CopyBufferToBuffer = * const fn (* CommandEncoder , * Buffer , u64 , * Buffer , u64 , u64 ) callconv (.c ) void ;
415+ pub const CopyBufferToTexture = * const fn (* CommandEncoder , * const TexelCopyBufferInfo , * const TexelCopyTextureInfo , * const Extent3D ) callconv (.c ) void ;
416+ pub const CopyTextureToBuffer = * const fn (* CommandEncoder , * const TexelCopyTextureInfo , * const TexelCopyBufferInfo , * const Extent3D ) callconv (.c ) void ;
417+ pub const CopyTextureToTexture = * const fn (* CommandEncoder , * const TexelCopyTextureInfo , * const TexelCopyTextureInfo , * const Extent3D ) callconv (.c ) void ;
418+ pub const Finish = * const fn (* CommandEncoder , ? * const CommandBufferDescriptor ) callconv (.c ) ? * CommandBuffer ;
419+ pub const InsertDebugMarker = * const fn (* CommandEncoder , StringView ) callconv (.c ) void ;
420+ pub const PopDebugGroup = * const fn (* CommandEncoder ) callconv (.c ) void ;
421+ pub const PushDebugGroup = * const fn (* CommandEncoder , StringView ) callconv (.c ) void ;
422+ pub const ResolveQuerySet = * const fn (* CommandEncoder , * QuerySet , u32 , u32 , * Buffer , u64 ) callconv (.c ) void ;
423+ pub const SetLabel = * const fn (* CommandEncoder , StringView ) callconv (.c ) void ;
424+ pub const WriteTimestamp = * const fn (* CommandEncoder , * QuerySet , u32 ) callconv (.c ) void ;
425+ pub const AddRef = * const fn (* CommandEncoder ) callconv (.c ) void ;
426+ pub const Release = * const fn (* CommandEncoder ) callconv (.c ) void ;
427427};
428428
429429extern fn wgpuCommandEncoderBeginComputePass (command_encoder : * CommandEncoder , descriptor : ? * const ComputePassDescriptor ) ? * ComputePassEncoder ;
0 commit comments