@@ -284,20 +284,12 @@ typedef uint64_t WGPUId_CommandBuffer_Dummy;
284284
285285typedef WGPUId_CommandBuffer_Dummy WGPUCommandBufferId ;
286286
287- typedef uint64_t WGPUId_ComputePass_Dummy ;
288-
289- typedef WGPUId_ComputePass_Dummy WGPUComputePassId ;
290-
291- typedef WGPUCommandBufferId WGPUCommandEncoderId ;
292-
293- typedef struct {
294- uint32_t todo ;
295- } WGPUComputePassDescriptor ;
296-
297287typedef uint64_t WGPUId_RenderPass_Dummy ;
298288
299289typedef WGPUId_RenderPass_Dummy WGPURenderPassId ;
300290
291+ typedef WGPUCommandBufferId WGPUCommandEncoderId ;
292+
301293typedef uint64_t WGPUId_TextureView_Dummy ;
302294
303295typedef WGPUId_TextureView_Dummy WGPUTextureViewId ;
@@ -378,11 +370,7 @@ typedef struct {
378370 uint32_t todo ;
379371} WGPUCommandBufferDescriptor ;
380372
381- typedef const char * WGPURawString ;
382-
383- typedef uint64_t WGPUId_ComputePipeline_Dummy ;
384-
385- typedef WGPUId_ComputePipeline_Dummy WGPUComputePipelineId ;
373+ typedef WGPURawPass * WGPURawComputePassId ;
386374
387375typedef uint64_t WGPUId_Surface ;
388376
@@ -482,6 +470,10 @@ typedef struct {
482470 uint32_t todo ;
483471} WGPUCommandEncoderDescriptor ;
484472
473+ typedef uint64_t WGPUId_ComputePipeline_Dummy ;
474+
475+ typedef WGPUId_ComputePipeline_Dummy WGPUComputePipelineId ;
476+
485477typedef uint64_t WGPUId_PipelineLayout_Dummy ;
486478
487479typedef WGPUId_PipelineLayout_Dummy WGPUPipelineLayoutId ;
@@ -490,6 +482,8 @@ typedef uint64_t WGPUId_ShaderModule_Dummy;
490482
491483typedef WGPUId_ShaderModule_Dummy WGPUShaderModuleId ;
492484
485+ typedef const char * WGPURawString ;
486+
493487typedef struct {
494488 WGPUShaderModuleId module ;
495489 WGPURawString entry_point ;
@@ -694,14 +688,9 @@ void wgpu_buffer_unmap(WGPUBufferId buffer_id);
694688
695689void wgpu_command_buffer_destroy (WGPUCommandBufferId command_buffer_id );
696690
697- WGPUComputePassId wgpu_command_encoder_begin_compute_pass (WGPUCommandEncoderId encoder_id ,
698- const WGPUComputePassDescriptor * desc );
699-
700691WGPURenderPassId wgpu_command_encoder_begin_render_pass (WGPUCommandEncoderId encoder_id ,
701692 const WGPURenderPassDescriptor * desc );
702693
703- void wgpu_command_encoder_compute_pass (WGPUCommandEncoderId self_id , const WGPURawPass * pass );
704-
705694void wgpu_command_encoder_copy_buffer_to_buffer (WGPUCommandEncoderId command_encoder_id ,
706695 WGPUBufferId source ,
707696 WGPUBufferAddress source_offset ,
@@ -729,33 +718,7 @@ void wgpu_command_encoder_destroy(WGPUCommandEncoderId command_encoder_id);
729718WGPUCommandBufferId wgpu_command_encoder_finish (WGPUCommandEncoderId encoder_id ,
730719 const WGPUCommandBufferDescriptor * desc );
731720
732- void wgpu_command_encoder_render_pass (WGPUCommandEncoderId self_id ,
733- const WGPURenderPassColorAttachmentDescriptor * color_attachments ,
734- uintptr_t color_attachment_length ,
735- const WGPURenderPassDepthStencilAttachmentDescriptor * depth_stencil_attachment ,
736- const WGPURawPass * pass );
737-
738- void wgpu_compute_pass_dispatch (WGPUComputePassId pass_id , uint32_t x , uint32_t y , uint32_t z );
739-
740- void wgpu_compute_pass_dispatch_indirect (WGPUComputePassId pass_id ,
741- WGPUBufferId indirect_buffer_id ,
742- WGPUBufferAddress indirect_offset );
743-
744- void wgpu_compute_pass_end_pass (WGPUComputePassId pass_id );
745-
746- void wgpu_compute_pass_insert_debug_marker (WGPUComputePassId _pass_id , WGPURawString _label );
747-
748- void wgpu_compute_pass_pop_debug_group (WGPUComputePassId _pass_id );
749-
750- void wgpu_compute_pass_push_debug_group (WGPUComputePassId _pass_id , WGPURawString _label );
751-
752- void wgpu_compute_pass_set_bind_group (WGPUComputePassId pass_id ,
753- uint32_t index ,
754- WGPUBindGroupId bind_group_id ,
755- const WGPUBufferAddress * offsets ,
756- uintptr_t offsets_length );
757-
758- void wgpu_compute_pass_set_pipeline (WGPUComputePassId pass_id , WGPUComputePipelineId pipeline_id );
721+ void wgpu_compute_pass_end_pass (WGPURawComputePassId pass_id );
759722
760723WGPUSurfaceId wgpu_create_surface_from_metal_layer (void * layer );
761724
0 commit comments