5656apidiff = ApiDiff ()
5757
5858# The wgpu-native version that we target/expect
59- __version__ = "0.10.4 .1"
60- __commit_sha__ = "b4dd62d1781c923ae0b52195fb9e710a7fc6b177 "
59+ __version__ = "0.11.0 .1"
60+ __commit_sha__ = "9d962ef667ef6006cca7bac7489d5bf303a2a244 "
6161version_info = tuple (map (int , __version__ .split ("." )))
6262check_expected_version (version_info ) # produces a warning on mismatch
6363
@@ -445,10 +445,10 @@ def _request_device(self, label, features, required_limits, trace_path):
445445 # H: chain: WGPUChainedStruct, nativeFeatures: WGPUNativeFeature, label: char*, tracePath: char*
446446 extras = new_struct_p (
447447 "WGPUDeviceExtras *" ,
448- label = to_c_label (label ),
449448 tracePath = c_trace_path ,
450449 nativeFeatures = lib .WGPUNativeFeature_TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES ,
451450 # not used: chain
451+ # not used: label
452452 )
453453 extras .chain .sType = lib .WGPUSType_DeviceExtras
454454
@@ -464,9 +464,10 @@ def _request_device(self, label, features, required_limits, trace_path):
464464 for key , val in required_limits .items ():
465465 setattr (c_limits , to_camel_case (key ), val )
466466
467- # H: nextInChain: WGPUChainedStruct *, requiredFeaturesCount: int, requiredFeatures: WGPUFeatureName *, requiredLimits: WGPURequiredLimits *
467+ # H: nextInChain: WGPUChainedStruct *, label: char *, requiredFeaturesCount: int, requiredFeatures: WGPUFeatureName *, requiredLimits: WGPURequiredLimits *
468468 struct = new_struct_p (
469469 "WGPUDeviceDescriptor *" ,
470+ label = to_c_label (label ),
470471 nextInChain = ffi .cast ("WGPUChainedStruct * " , extras ),
471472 requiredFeaturesCount = 0 ,
472473 requiredFeatures = ffi .new ("WGPUFeatureName []" , []),
@@ -848,10 +849,10 @@ def create_shader_module(self, *, label="", code: str, source_map: dict = None):
848849
849850 if isinstance (code , str ):
850851 # WGSL
851- # H: chain: WGPUChainedStruct, source : char *
852+ # H: chain: WGPUChainedStruct, code : char *
852853 source_struct = new_struct_p (
853854 "WGPUShaderModuleWGSLDescriptor *" ,
854- source = ffi .new ("char []" , code .encode ()),
855+ code = ffi .new ("char []" , code .encode ()),
855856 # not used: chain
856857 )
857858 source_struct [0 ].chain .next = ffi .NULL
@@ -1422,11 +1423,13 @@ def _destroy(self):
14221423
14231424class GPUCommandEncoder (base .GPUCommandEncoder , GPUObjectBase ):
14241425 def begin_compute_pass (self , * , label = "" ):
1425- # H: nextInChain: WGPUChainedStruct *, label: char *
1426+ # H: nextInChain: WGPUChainedStruct *, label: char *, timestampWriteCount: int, timestampWrites: WGPUComputePassTimestampWrite *
14261427 struct = new_struct_p (
14271428 "WGPUComputePassDescriptor *" ,
14281429 label = to_c_label (label ),
14291430 # not used: nextInChain
1431+ # not used: timestampWriteCount
1432+ # not used: timestampWrites
14301433 )
14311434 # H: WGPUComputePassEncoder f(WGPUCommandEncoder commandEncoder, WGPUComputePassDescriptor const * descriptor)
14321435 raw_pass = lib .wgpuCommandEncoderBeginComputePass (self ._internal , struct )
@@ -1508,7 +1511,7 @@ def begin_render_pass(
15081511 ),
15091512 )
15101513
1511- # H: nextInChain: WGPUChainedStruct *, label: char *, colorAttachmentCount: int, colorAttachments: WGPURenderPassColorAttachment *, depthStencilAttachment: WGPURenderPassDepthStencilAttachment *, occlusionQuerySet: WGPUQuerySet
1514+ # H: nextInChain: WGPUChainedStruct *, label: char *, colorAttachmentCount: int, colorAttachments: WGPURenderPassColorAttachment *, depthStencilAttachment: WGPURenderPassDepthStencilAttachment *, occlusionQuerySet: WGPUQuerySet, timestampWriteCount: int, timestampWrites: WGPURenderPassTimestampWrite *
15121515 struct = new_struct_p (
15131516 "WGPURenderPassDescriptor *" ,
15141517 label = to_c_label (label ),
@@ -1517,6 +1520,8 @@ def begin_render_pass(
15171520 depthStencilAttachment = c_depth_stencil_attachment ,
15181521 # not used: occlusionQuerySet
15191522 # not used: nextInChain
1523+ # not used: timestampWriteCount
1524+ # not used: timestampWrites
15201525 )
15211526
15221527 # H: WGPURenderPassEncoder f(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor)
0 commit comments