2
2
* License, v. 2.0. If a copy of the MPL was not distributed with this
3
3
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
4
5
- /* Generated with cbindgen:0.12.2 */
5
+ /* Generated with cbindgen:0.13.1 */
6
6
7
7
/* DO NOT MODIFY THIS MANUALLY! This file was generated using cbindgen.
8
8
* To generate this file:
@@ -311,6 +311,8 @@ typedef uint64_t WGPUId_TextureView_Dummy;
311
311
312
312
typedef WGPUId_TextureView_Dummy WGPUTextureViewId ;
313
313
314
+ typedef const WGPUTextureViewId * WGPUOptionRef_TextureViewId ;
315
+
314
316
typedef struct {
315
317
double r ;
316
318
double g ;
@@ -326,13 +328,13 @@ typedef struct {
326
328
327
329
typedef struct {
328
330
WGPUTextureViewId attachment ;
329
- WGPUTextureViewId resolve_target ;
331
+ WGPUOptionRef_TextureViewId resolve_target ;
330
332
WGPULoadOp load_op ;
331
333
WGPUStoreOp store_op ;
332
334
WGPUColor clear_color ;
333
- } WGPURenderPassColorAttachmentDescriptorBase_TextureViewId__TextureViewId ;
335
+ } WGPURenderPassColorAttachmentDescriptorBase_TextureViewId__OptionRef_TextureViewId ;
334
336
335
- typedef WGPURenderPassColorAttachmentDescriptorBase_TextureViewId__TextureViewId WGPURawRenderPassColorAttachmentDescriptor ;
337
+ typedef WGPURenderPassColorAttachmentDescriptorBase_TextureViewId__OptionRef_TextureViewId WGPURenderPassColorAttachmentDescriptor ;
336
338
337
339
typedef struct {
338
340
WGPUTextureViewId attachment ;
@@ -346,28 +348,6 @@ typedef struct {
346
348
347
349
typedef WGPURenderPassDepthStencilAttachmentDescriptorBase_TextureViewId WGPURenderPassDepthStencilAttachmentDescriptor ;
348
350
349
- typedef struct {
350
- WGPURawRenderPassColorAttachmentDescriptor colors [WGPUMAX_COLOR_TARGETS ];
351
- WGPURenderPassDepthStencilAttachmentDescriptor depth_stencil ;
352
- } WGPURawRenderTargets ;
353
-
354
- typedef struct {
355
- WGPURawPass raw ;
356
- WGPURawRenderTargets targets ;
357
- } WGPURawRenderPass ;
358
-
359
- typedef const WGPUTextureViewId * WGPUOptionRef_TextureViewId ;
360
-
361
- typedef struct {
362
- WGPUTextureViewId attachment ;
363
- WGPUOptionRef_TextureViewId resolve_target ;
364
- WGPULoadOp load_op ;
365
- WGPUStoreOp store_op ;
366
- WGPUColor clear_color ;
367
- } WGPURenderPassColorAttachmentDescriptorBase_TextureViewId__OptionRef_TextureViewId ;
368
-
369
- typedef WGPURenderPassColorAttachmentDescriptorBase_TextureViewId__OptionRef_TextureViewId WGPURenderPassColorAttachmentDescriptor ;
370
-
371
351
typedef struct {
372
352
const WGPURenderPassColorAttachmentDescriptor * color_attachments ;
373
353
uintptr_t color_attachments_length ;
@@ -680,7 +660,7 @@ typedef struct {
680
660
681
661
typedef WGPUDeviceId WGPUQueueId ;
682
662
683
- typedef WGPURawRenderPass * WGPURenderPassId ;
663
+ typedef WGPURawPass * WGPURenderPassId ;
684
664
685
665
typedef uint64_t WGPUId_RenderBundle_Dummy ;
686
666
@@ -750,8 +730,8 @@ WGPURawPass *wgpu_command_encoder_begin_compute_pass(WGPUCommandEncoderId encode
750
730
* (`RenderPassDescriptor::color_attachments`) is valid for
751
731
* `RenderPassDescriptor::color_attachments_length` elements.
752
732
*/
753
- WGPURawRenderPass * wgpu_command_encoder_begin_render_pass (WGPUCommandEncoderId encoder_id ,
754
- const WGPURenderPassDescriptor * desc );
733
+ WGPURawPass * wgpu_command_encoder_begin_render_pass (WGPUCommandEncoderId encoder_id ,
734
+ const WGPURenderPassDescriptor * desc );
755
735
756
736
void wgpu_command_encoder_copy_buffer_to_buffer (WGPUCommandEncoderId command_encoder_id ,
757
737
WGPUBufferId source ,
@@ -882,26 +862,26 @@ void wgpu_queue_submit(WGPUQueueId queue_id,
882
862
const WGPUCommandBufferId * command_buffers ,
883
863
uintptr_t command_buffers_length );
884
864
885
- void wgpu_render_pass_destroy (WGPURawRenderPass * pass );
865
+ void wgpu_render_pass_destroy (WGPURawPass * pass );
886
866
887
- void wgpu_render_pass_draw (WGPURawRenderPass * pass ,
867
+ void wgpu_render_pass_draw (WGPURawPass * pass ,
888
868
uint32_t vertex_count ,
889
869
uint32_t instance_count ,
890
870
uint32_t first_vertex ,
891
871
uint32_t first_instance );
892
872
893
- void wgpu_render_pass_draw_indexed (WGPURawRenderPass * pass ,
873
+ void wgpu_render_pass_draw_indexed (WGPURawPass * pass ,
894
874
uint32_t index_count ,
895
875
uint32_t instance_count ,
896
876
uint32_t first_index ,
897
877
int32_t base_vertex ,
898
878
uint32_t first_instance );
899
879
900
- void wgpu_render_pass_draw_indexed_indirect (WGPURawRenderPass * pass ,
880
+ void wgpu_render_pass_draw_indexed_indirect (WGPURawPass * pass ,
901
881
WGPUBufferId buffer_id ,
902
882
WGPUBufferAddress offset );
903
883
904
- void wgpu_render_pass_draw_indirect (WGPURawRenderPass * pass ,
884
+ void wgpu_render_pass_draw_indirect (WGPURawPass * pass ,
905
885
WGPUBufferId buffer_id ,
906
886
WGPUBufferAddress offset );
907
887
@@ -914,59 +894,59 @@ void wgpu_render_pass_draw_indirect(WGPURawRenderPass *pass,
914
894
*/
915
895
void wgpu_render_pass_end_pass (WGPURenderPassId pass_id );
916
896
917
- void wgpu_render_pass_execute_bundles (WGPURawRenderPass * _pass ,
897
+ void wgpu_render_pass_execute_bundles (WGPURawPass * _pass ,
918
898
const WGPURenderBundleId * _bundles ,
919
899
uintptr_t _bundles_length );
920
900
921
- const uint8_t * wgpu_render_pass_finish (WGPURawRenderPass * pass , uintptr_t * length );
901
+ const uint8_t * wgpu_render_pass_finish (WGPURawPass * pass , uintptr_t * length );
922
902
923
- void wgpu_render_pass_insert_debug_marker (WGPURawRenderPass * _pass , WGPURawString _label );
903
+ void wgpu_render_pass_insert_debug_marker (WGPURawPass * _pass , WGPURawString _label );
924
904
925
- void wgpu_render_pass_pop_debug_group (WGPURawRenderPass * _pass );
905
+ void wgpu_render_pass_pop_debug_group (WGPURawPass * _pass );
926
906
927
- void wgpu_render_pass_push_debug_group (WGPURawRenderPass * _pass , WGPURawString _label );
907
+ void wgpu_render_pass_push_debug_group (WGPURawPass * _pass , WGPURawString _label );
928
908
929
909
/**
930
910
* # Safety
931
911
*
932
912
* This function is unsafe as there is no guarantee that the given pointer is
933
913
* valid for `offset_length` elements.
934
914
*/
935
- void wgpu_render_pass_set_bind_group (WGPURawRenderPass * pass ,
915
+ void wgpu_render_pass_set_bind_group (WGPURawPass * pass ,
936
916
uint32_t index ,
937
917
WGPUBindGroupId bind_group_id ,
938
918
const WGPUDynamicOffset * offsets ,
939
919
uintptr_t offset_length );
940
920
941
- void wgpu_render_pass_set_blend_color (WGPURawRenderPass * pass , const WGPUColor * color );
921
+ void wgpu_render_pass_set_blend_color (WGPURawPass * pass , const WGPUColor * color );
942
922
943
- void wgpu_render_pass_set_index_buffer (WGPURawRenderPass * pass ,
923
+ void wgpu_render_pass_set_index_buffer (WGPURawPass * pass ,
944
924
WGPUBufferId buffer_id ,
945
925
WGPUBufferAddress offset );
946
926
947
- void wgpu_render_pass_set_pipeline (WGPURawRenderPass * pass , WGPURenderPipelineId pipeline_id );
927
+ void wgpu_render_pass_set_pipeline (WGPURawPass * pass , WGPURenderPipelineId pipeline_id );
948
928
949
- void wgpu_render_pass_set_scissor_rect (WGPURawRenderPass * pass ,
929
+ void wgpu_render_pass_set_scissor_rect (WGPURawPass * pass ,
950
930
uint32_t x ,
951
931
uint32_t y ,
952
932
uint32_t w ,
953
933
uint32_t h );
954
934
955
- void wgpu_render_pass_set_stencil_reference (WGPURawRenderPass * pass , uint32_t value );
935
+ void wgpu_render_pass_set_stencil_reference (WGPURawPass * pass , uint32_t value );
956
936
957
937
/**
958
938
* # Safety
959
939
*
960
940
* This function is unsafe as there is no guarantee that the given pointers
961
941
* (`buffer_ids` and `offsets`) are valid for `length` elements.
962
942
*/
963
- void wgpu_render_pass_set_vertex_buffers (WGPURawRenderPass * pass ,
943
+ void wgpu_render_pass_set_vertex_buffers (WGPURawPass * pass ,
964
944
uint32_t start_slot ,
965
945
const WGPUBufferId * buffer_ids ,
966
946
const WGPUBufferAddress * offsets ,
967
947
uintptr_t length );
968
948
969
- void wgpu_render_pass_set_viewport (WGPURawRenderPass * pass ,
949
+ void wgpu_render_pass_set_viewport (WGPURawPass * pass ,
970
950
float x ,
971
951
float y ,
972
952
float w ,
0 commit comments