dawn_sys/generated/
bindings.rs

1/* automatically generated by rust-bindgen 0.71.1 */
2
3#[repr(C)]
4#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5pub struct WGPUStringView {
6    pub data: *const ::core::ffi::c_char,
7    pub length: usize,
8}
9#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10const _: () = {
11    ["Size of WGPUStringView"][::core::mem::size_of::<WGPUStringView>() - 16usize];
12    ["Alignment of WGPUStringView"][::core::mem::align_of::<WGPUStringView>() - 8usize];
13    ["Offset of field: WGPUStringView::data"]
14        [::core::mem::offset_of!(WGPUStringView, data) - 0usize];
15    ["Offset of field: WGPUStringView::length"]
16        [::core::mem::offset_of!(WGPUStringView, length) - 8usize];
17};
18impl Default for WGPUStringView {
19    fn default() -> Self {
20        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
21        unsafe {
22            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
23            s.assume_init()
24        }
25    }
26}
27pub type WGPUFlags = u64;
28pub type WGPUBool = u32;
29#[repr(C)]
30#[derive(Debug, Copy, Clone)]
31pub struct WGPUAdapterImpl {
32    _unused: [u8; 0],
33}
34pub type WGPUAdapter = *mut WGPUAdapterImpl;
35#[repr(C)]
36#[derive(Debug, Copy, Clone)]
37pub struct WGPUBindGroupImpl {
38    _unused: [u8; 0],
39}
40pub type WGPUBindGroup = *mut WGPUBindGroupImpl;
41#[repr(C)]
42#[derive(Debug, Copy, Clone)]
43pub struct WGPUBindGroupLayoutImpl {
44    _unused: [u8; 0],
45}
46pub type WGPUBindGroupLayout = *mut WGPUBindGroupLayoutImpl;
47#[repr(C)]
48#[derive(Debug, Copy, Clone)]
49pub struct WGPUBufferImpl {
50    _unused: [u8; 0],
51}
52pub type WGPUBuffer = *mut WGPUBufferImpl;
53#[repr(C)]
54#[derive(Debug, Copy, Clone)]
55pub struct WGPUCommandBufferImpl {
56    _unused: [u8; 0],
57}
58pub type WGPUCommandBuffer = *mut WGPUCommandBufferImpl;
59#[repr(C)]
60#[derive(Debug, Copy, Clone)]
61pub struct WGPUCommandEncoderImpl {
62    _unused: [u8; 0],
63}
64pub type WGPUCommandEncoder = *mut WGPUCommandEncoderImpl;
65#[repr(C)]
66#[derive(Debug, Copy, Clone)]
67pub struct WGPUComputePassEncoderImpl {
68    _unused: [u8; 0],
69}
70pub type WGPUComputePassEncoder = *mut WGPUComputePassEncoderImpl;
71#[repr(C)]
72#[derive(Debug, Copy, Clone)]
73pub struct WGPUComputePipelineImpl {
74    _unused: [u8; 0],
75}
76pub type WGPUComputePipeline = *mut WGPUComputePipelineImpl;
77#[repr(C)]
78#[derive(Debug, Copy, Clone)]
79pub struct WGPUDeviceImpl {
80    _unused: [u8; 0],
81}
82pub type WGPUDevice = *mut WGPUDeviceImpl;
83#[repr(C)]
84#[derive(Debug, Copy, Clone)]
85pub struct WGPUExternalTextureImpl {
86    _unused: [u8; 0],
87}
88pub type WGPUExternalTexture = *mut WGPUExternalTextureImpl;
89#[repr(C)]
90#[derive(Debug, Copy, Clone)]
91pub struct WGPUInstanceImpl {
92    _unused: [u8; 0],
93}
94pub type WGPUInstance = *mut WGPUInstanceImpl;
95#[repr(C)]
96#[derive(Debug, Copy, Clone)]
97pub struct WGPUPipelineLayoutImpl {
98    _unused: [u8; 0],
99}
100pub type WGPUPipelineLayout = *mut WGPUPipelineLayoutImpl;
101#[repr(C)]
102#[derive(Debug, Copy, Clone)]
103pub struct WGPUQuerySetImpl {
104    _unused: [u8; 0],
105}
106pub type WGPUQuerySet = *mut WGPUQuerySetImpl;
107#[repr(C)]
108#[derive(Debug, Copy, Clone)]
109pub struct WGPUQueueImpl {
110    _unused: [u8; 0],
111}
112pub type WGPUQueue = *mut WGPUQueueImpl;
113#[repr(C)]
114#[derive(Debug, Copy, Clone)]
115pub struct WGPURenderBundleImpl {
116    _unused: [u8; 0],
117}
118pub type WGPURenderBundle = *mut WGPURenderBundleImpl;
119#[repr(C)]
120#[derive(Debug, Copy, Clone)]
121pub struct WGPURenderBundleEncoderImpl {
122    _unused: [u8; 0],
123}
124pub type WGPURenderBundleEncoder = *mut WGPURenderBundleEncoderImpl;
125#[repr(C)]
126#[derive(Debug, Copy, Clone)]
127pub struct WGPURenderPassEncoderImpl {
128    _unused: [u8; 0],
129}
130pub type WGPURenderPassEncoder = *mut WGPURenderPassEncoderImpl;
131#[repr(C)]
132#[derive(Debug, Copy, Clone)]
133pub struct WGPURenderPipelineImpl {
134    _unused: [u8; 0],
135}
136pub type WGPURenderPipeline = *mut WGPURenderPipelineImpl;
137#[repr(C)]
138#[derive(Debug, Copy, Clone)]
139pub struct WGPUSamplerImpl {
140    _unused: [u8; 0],
141}
142pub type WGPUSampler = *mut WGPUSamplerImpl;
143#[repr(C)]
144#[derive(Debug, Copy, Clone)]
145pub struct WGPUShaderModuleImpl {
146    _unused: [u8; 0],
147}
148pub type WGPUShaderModule = *mut WGPUShaderModuleImpl;
149#[repr(C)]
150#[derive(Debug, Copy, Clone)]
151pub struct WGPUSharedBufferMemoryImpl {
152    _unused: [u8; 0],
153}
154pub type WGPUSharedBufferMemory = *mut WGPUSharedBufferMemoryImpl;
155#[repr(C)]
156#[derive(Debug, Copy, Clone)]
157pub struct WGPUSharedFenceImpl {
158    _unused: [u8; 0],
159}
160pub type WGPUSharedFence = *mut WGPUSharedFenceImpl;
161#[repr(C)]
162#[derive(Debug, Copy, Clone)]
163pub struct WGPUSharedTextureMemoryImpl {
164    _unused: [u8; 0],
165}
166pub type WGPUSharedTextureMemory = *mut WGPUSharedTextureMemoryImpl;
167#[repr(C)]
168#[derive(Debug, Copy, Clone)]
169pub struct WGPUSurfaceImpl {
170    _unused: [u8; 0],
171}
172pub type WGPUSurface = *mut WGPUSurfaceImpl;
173#[repr(C)]
174#[derive(Debug, Copy, Clone)]
175pub struct WGPUTextureImpl {
176    _unused: [u8; 0],
177}
178pub type WGPUTexture = *mut WGPUTextureImpl;
179#[repr(C)]
180#[derive(Debug, Copy, Clone)]
181pub struct WGPUTextureViewImpl {
182    _unused: [u8; 0],
183}
184pub type WGPUTextureView = *mut WGPUTextureViewImpl;
185impl WGPUAdapterType {
186    pub const WGPUAdapterType_DiscreteGPU: WGPUAdapterType = WGPUAdapterType(1);
187}
188impl WGPUAdapterType {
189    pub const WGPUAdapterType_IntegratedGPU: WGPUAdapterType = WGPUAdapterType(2);
190}
191impl WGPUAdapterType {
192    pub const WGPUAdapterType_CPU: WGPUAdapterType = WGPUAdapterType(3);
193}
194impl WGPUAdapterType {
195    pub const WGPUAdapterType_Unknown: WGPUAdapterType = WGPUAdapterType(4);
196}
197impl WGPUAdapterType {
198    pub const WGPUAdapterType_Force32: WGPUAdapterType = WGPUAdapterType(2147483647);
199}
200#[repr(transparent)]
201#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
202pub struct WGPUAdapterType(pub ::core::ffi::c_int);
203impl WGPUAddressMode {
204    pub const WGPUAddressMode_Undefined: WGPUAddressMode = WGPUAddressMode(0);
205}
206impl WGPUAddressMode {
207    pub const WGPUAddressMode_ClampToEdge: WGPUAddressMode = WGPUAddressMode(1);
208}
209impl WGPUAddressMode {
210    pub const WGPUAddressMode_Repeat: WGPUAddressMode = WGPUAddressMode(2);
211}
212impl WGPUAddressMode {
213    pub const WGPUAddressMode_MirrorRepeat: WGPUAddressMode = WGPUAddressMode(3);
214}
215impl WGPUAddressMode {
216    pub const WGPUAddressMode_Force32: WGPUAddressMode = WGPUAddressMode(2147483647);
217}
218#[repr(transparent)]
219#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
220pub struct WGPUAddressMode(pub ::core::ffi::c_int);
221impl WGPUAlphaMode {
222    pub const WGPUAlphaMode_Opaque: WGPUAlphaMode = WGPUAlphaMode(1);
223}
224impl WGPUAlphaMode {
225    pub const WGPUAlphaMode_Premultiplied: WGPUAlphaMode = WGPUAlphaMode(2);
226}
227impl WGPUAlphaMode {
228    pub const WGPUAlphaMode_Unpremultiplied: WGPUAlphaMode = WGPUAlphaMode(3);
229}
230impl WGPUAlphaMode {
231    pub const WGPUAlphaMode_Force32: WGPUAlphaMode = WGPUAlphaMode(2147483647);
232}
233#[repr(transparent)]
234#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
235pub struct WGPUAlphaMode(pub ::core::ffi::c_int);
236impl WGPUBackendType {
237    pub const WGPUBackendType_Undefined: WGPUBackendType = WGPUBackendType(0);
238}
239impl WGPUBackendType {
240    pub const WGPUBackendType_Null: WGPUBackendType = WGPUBackendType(1);
241}
242impl WGPUBackendType {
243    pub const WGPUBackendType_WebGPU: WGPUBackendType = WGPUBackendType(2);
244}
245impl WGPUBackendType {
246    pub const WGPUBackendType_D3D11: WGPUBackendType = WGPUBackendType(3);
247}
248impl WGPUBackendType {
249    pub const WGPUBackendType_D3D12: WGPUBackendType = WGPUBackendType(4);
250}
251impl WGPUBackendType {
252    pub const WGPUBackendType_Metal: WGPUBackendType = WGPUBackendType(5);
253}
254impl WGPUBackendType {
255    pub const WGPUBackendType_Vulkan: WGPUBackendType = WGPUBackendType(6);
256}
257impl WGPUBackendType {
258    pub const WGPUBackendType_OpenGL: WGPUBackendType = WGPUBackendType(7);
259}
260impl WGPUBackendType {
261    pub const WGPUBackendType_OpenGLES: WGPUBackendType = WGPUBackendType(8);
262}
263impl WGPUBackendType {
264    pub const WGPUBackendType_Force32: WGPUBackendType = WGPUBackendType(2147483647);
265}
266#[repr(transparent)]
267#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
268pub struct WGPUBackendType(pub ::core::ffi::c_int);
269impl WGPUBlendFactor {
270    pub const WGPUBlendFactor_Undefined: WGPUBlendFactor = WGPUBlendFactor(0);
271}
272impl WGPUBlendFactor {
273    pub const WGPUBlendFactor_Zero: WGPUBlendFactor = WGPUBlendFactor(1);
274}
275impl WGPUBlendFactor {
276    pub const WGPUBlendFactor_One: WGPUBlendFactor = WGPUBlendFactor(2);
277}
278impl WGPUBlendFactor {
279    pub const WGPUBlendFactor_Src: WGPUBlendFactor = WGPUBlendFactor(3);
280}
281impl WGPUBlendFactor {
282    pub const WGPUBlendFactor_OneMinusSrc: WGPUBlendFactor = WGPUBlendFactor(4);
283}
284impl WGPUBlendFactor {
285    pub const WGPUBlendFactor_SrcAlpha: WGPUBlendFactor = WGPUBlendFactor(5);
286}
287impl WGPUBlendFactor {
288    pub const WGPUBlendFactor_OneMinusSrcAlpha: WGPUBlendFactor = WGPUBlendFactor(6);
289}
290impl WGPUBlendFactor {
291    pub const WGPUBlendFactor_Dst: WGPUBlendFactor = WGPUBlendFactor(7);
292}
293impl WGPUBlendFactor {
294    pub const WGPUBlendFactor_OneMinusDst: WGPUBlendFactor = WGPUBlendFactor(8);
295}
296impl WGPUBlendFactor {
297    pub const WGPUBlendFactor_DstAlpha: WGPUBlendFactor = WGPUBlendFactor(9);
298}
299impl WGPUBlendFactor {
300    pub const WGPUBlendFactor_OneMinusDstAlpha: WGPUBlendFactor = WGPUBlendFactor(10);
301}
302impl WGPUBlendFactor {
303    pub const WGPUBlendFactor_SrcAlphaSaturated: WGPUBlendFactor = WGPUBlendFactor(11);
304}
305impl WGPUBlendFactor {
306    pub const WGPUBlendFactor_Constant: WGPUBlendFactor = WGPUBlendFactor(12);
307}
308impl WGPUBlendFactor {
309    pub const WGPUBlendFactor_OneMinusConstant: WGPUBlendFactor = WGPUBlendFactor(13);
310}
311impl WGPUBlendFactor {
312    pub const WGPUBlendFactor_Src1: WGPUBlendFactor = WGPUBlendFactor(14);
313}
314impl WGPUBlendFactor {
315    pub const WGPUBlendFactor_OneMinusSrc1: WGPUBlendFactor = WGPUBlendFactor(15);
316}
317impl WGPUBlendFactor {
318    pub const WGPUBlendFactor_Src1Alpha: WGPUBlendFactor = WGPUBlendFactor(16);
319}
320impl WGPUBlendFactor {
321    pub const WGPUBlendFactor_OneMinusSrc1Alpha: WGPUBlendFactor = WGPUBlendFactor(17);
322}
323impl WGPUBlendFactor {
324    pub const WGPUBlendFactor_Force32: WGPUBlendFactor = WGPUBlendFactor(2147483647);
325}
326#[repr(transparent)]
327#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
328pub struct WGPUBlendFactor(pub ::core::ffi::c_int);
329impl WGPUBlendOperation {
330    pub const WGPUBlendOperation_Undefined: WGPUBlendOperation = WGPUBlendOperation(0);
331}
332impl WGPUBlendOperation {
333    pub const WGPUBlendOperation_Add: WGPUBlendOperation = WGPUBlendOperation(1);
334}
335impl WGPUBlendOperation {
336    pub const WGPUBlendOperation_Subtract: WGPUBlendOperation = WGPUBlendOperation(2);
337}
338impl WGPUBlendOperation {
339    pub const WGPUBlendOperation_ReverseSubtract: WGPUBlendOperation = WGPUBlendOperation(3);
340}
341impl WGPUBlendOperation {
342    pub const WGPUBlendOperation_Min: WGPUBlendOperation = WGPUBlendOperation(4);
343}
344impl WGPUBlendOperation {
345    pub const WGPUBlendOperation_Max: WGPUBlendOperation = WGPUBlendOperation(5);
346}
347impl WGPUBlendOperation {
348    pub const WGPUBlendOperation_Force32: WGPUBlendOperation = WGPUBlendOperation(2147483647);
349}
350#[repr(transparent)]
351#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
352pub struct WGPUBlendOperation(pub ::core::ffi::c_int);
353impl WGPUBufferBindingType {
354    pub const WGPUBufferBindingType_BindingNotUsed: WGPUBufferBindingType =
355        WGPUBufferBindingType(0);
356}
357impl WGPUBufferBindingType {
358    pub const WGPUBufferBindingType_Undefined: WGPUBufferBindingType = WGPUBufferBindingType(1);
359}
360impl WGPUBufferBindingType {
361    pub const WGPUBufferBindingType_Uniform: WGPUBufferBindingType = WGPUBufferBindingType(2);
362}
363impl WGPUBufferBindingType {
364    pub const WGPUBufferBindingType_Storage: WGPUBufferBindingType = WGPUBufferBindingType(3);
365}
366impl WGPUBufferBindingType {
367    pub const WGPUBufferBindingType_ReadOnlyStorage: WGPUBufferBindingType =
368        WGPUBufferBindingType(4);
369}
370impl WGPUBufferBindingType {
371    pub const WGPUBufferBindingType_Force32: WGPUBufferBindingType =
372        WGPUBufferBindingType(2147483647);
373}
374#[repr(transparent)]
375#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
376pub struct WGPUBufferBindingType(pub ::core::ffi::c_int);
377impl WGPUBufferMapState {
378    pub const WGPUBufferMapState_Unmapped: WGPUBufferMapState = WGPUBufferMapState(1);
379}
380impl WGPUBufferMapState {
381    pub const WGPUBufferMapState_Pending: WGPUBufferMapState = WGPUBufferMapState(2);
382}
383impl WGPUBufferMapState {
384    pub const WGPUBufferMapState_Mapped: WGPUBufferMapState = WGPUBufferMapState(3);
385}
386impl WGPUBufferMapState {
387    pub const WGPUBufferMapState_Force32: WGPUBufferMapState = WGPUBufferMapState(2147483647);
388}
389#[repr(transparent)]
390#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
391pub struct WGPUBufferMapState(pub ::core::ffi::c_int);
392impl WGPUCallbackMode {
393    pub const WGPUCallbackMode_WaitAnyOnly: WGPUCallbackMode = WGPUCallbackMode(1);
394}
395impl WGPUCallbackMode {
396    pub const WGPUCallbackMode_AllowProcessEvents: WGPUCallbackMode = WGPUCallbackMode(2);
397}
398impl WGPUCallbackMode {
399    pub const WGPUCallbackMode_AllowSpontaneous: WGPUCallbackMode = WGPUCallbackMode(3);
400}
401impl WGPUCallbackMode {
402    pub const WGPUCallbackMode_Force32: WGPUCallbackMode = WGPUCallbackMode(2147483647);
403}
404#[repr(transparent)]
405#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
406pub struct WGPUCallbackMode(pub ::core::ffi::c_int);
407impl WGPUCompareFunction {
408    pub const WGPUCompareFunction_Undefined: WGPUCompareFunction = WGPUCompareFunction(0);
409}
410impl WGPUCompareFunction {
411    pub const WGPUCompareFunction_Never: WGPUCompareFunction = WGPUCompareFunction(1);
412}
413impl WGPUCompareFunction {
414    pub const WGPUCompareFunction_Less: WGPUCompareFunction = WGPUCompareFunction(2);
415}
416impl WGPUCompareFunction {
417    pub const WGPUCompareFunction_Equal: WGPUCompareFunction = WGPUCompareFunction(3);
418}
419impl WGPUCompareFunction {
420    pub const WGPUCompareFunction_LessEqual: WGPUCompareFunction = WGPUCompareFunction(4);
421}
422impl WGPUCompareFunction {
423    pub const WGPUCompareFunction_Greater: WGPUCompareFunction = WGPUCompareFunction(5);
424}
425impl WGPUCompareFunction {
426    pub const WGPUCompareFunction_NotEqual: WGPUCompareFunction = WGPUCompareFunction(6);
427}
428impl WGPUCompareFunction {
429    pub const WGPUCompareFunction_GreaterEqual: WGPUCompareFunction = WGPUCompareFunction(7);
430}
431impl WGPUCompareFunction {
432    pub const WGPUCompareFunction_Always: WGPUCompareFunction = WGPUCompareFunction(8);
433}
434impl WGPUCompareFunction {
435    pub const WGPUCompareFunction_Force32: WGPUCompareFunction = WGPUCompareFunction(2147483647);
436}
437#[repr(transparent)]
438#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
439pub struct WGPUCompareFunction(pub ::core::ffi::c_int);
440impl WGPUCompilationInfoRequestStatus {
441    pub const WGPUCompilationInfoRequestStatus_Success: WGPUCompilationInfoRequestStatus =
442        WGPUCompilationInfoRequestStatus(1);
443}
444impl WGPUCompilationInfoRequestStatus {
445    pub const WGPUCompilationInfoRequestStatus_CallbackCancelled: WGPUCompilationInfoRequestStatus =
446        WGPUCompilationInfoRequestStatus(2);
447}
448impl WGPUCompilationInfoRequestStatus {
449    pub const WGPUCompilationInfoRequestStatus_Force32: WGPUCompilationInfoRequestStatus =
450        WGPUCompilationInfoRequestStatus(2147483647);
451}
452#[repr(transparent)]
453#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
454pub struct WGPUCompilationInfoRequestStatus(pub ::core::ffi::c_int);
455impl WGPUCompilationMessageType {
456    pub const WGPUCompilationMessageType_Error: WGPUCompilationMessageType =
457        WGPUCompilationMessageType(1);
458}
459impl WGPUCompilationMessageType {
460    pub const WGPUCompilationMessageType_Warning: WGPUCompilationMessageType =
461        WGPUCompilationMessageType(2);
462}
463impl WGPUCompilationMessageType {
464    pub const WGPUCompilationMessageType_Info: WGPUCompilationMessageType =
465        WGPUCompilationMessageType(3);
466}
467impl WGPUCompilationMessageType {
468    pub const WGPUCompilationMessageType_Force32: WGPUCompilationMessageType =
469        WGPUCompilationMessageType(2147483647);
470}
471#[repr(transparent)]
472#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
473pub struct WGPUCompilationMessageType(pub ::core::ffi::c_int);
474impl WGPUCompositeAlphaMode {
475    pub const WGPUCompositeAlphaMode_Auto: WGPUCompositeAlphaMode = WGPUCompositeAlphaMode(0);
476}
477impl WGPUCompositeAlphaMode {
478    pub const WGPUCompositeAlphaMode_Opaque: WGPUCompositeAlphaMode = WGPUCompositeAlphaMode(1);
479}
480impl WGPUCompositeAlphaMode {
481    pub const WGPUCompositeAlphaMode_Premultiplied: WGPUCompositeAlphaMode =
482        WGPUCompositeAlphaMode(2);
483}
484impl WGPUCompositeAlphaMode {
485    pub const WGPUCompositeAlphaMode_Unpremultiplied: WGPUCompositeAlphaMode =
486        WGPUCompositeAlphaMode(3);
487}
488impl WGPUCompositeAlphaMode {
489    pub const WGPUCompositeAlphaMode_Inherit: WGPUCompositeAlphaMode = WGPUCompositeAlphaMode(4);
490}
491impl WGPUCompositeAlphaMode {
492    pub const WGPUCompositeAlphaMode_Force32: WGPUCompositeAlphaMode =
493        WGPUCompositeAlphaMode(2147483647);
494}
495#[repr(transparent)]
496#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
497pub struct WGPUCompositeAlphaMode(pub ::core::ffi::c_int);
498impl WGPUCreatePipelineAsyncStatus {
499    pub const WGPUCreatePipelineAsyncStatus_Success: WGPUCreatePipelineAsyncStatus =
500        WGPUCreatePipelineAsyncStatus(1);
501}
502impl WGPUCreatePipelineAsyncStatus {
503    pub const WGPUCreatePipelineAsyncStatus_CallbackCancelled: WGPUCreatePipelineAsyncStatus =
504        WGPUCreatePipelineAsyncStatus(2);
505}
506impl WGPUCreatePipelineAsyncStatus {
507    pub const WGPUCreatePipelineAsyncStatus_ValidationError: WGPUCreatePipelineAsyncStatus =
508        WGPUCreatePipelineAsyncStatus(3);
509}
510impl WGPUCreatePipelineAsyncStatus {
511    pub const WGPUCreatePipelineAsyncStatus_InternalError: WGPUCreatePipelineAsyncStatus =
512        WGPUCreatePipelineAsyncStatus(4);
513}
514impl WGPUCreatePipelineAsyncStatus {
515    pub const WGPUCreatePipelineAsyncStatus_Force32: WGPUCreatePipelineAsyncStatus =
516        WGPUCreatePipelineAsyncStatus(2147483647);
517}
518#[repr(transparent)]
519#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
520pub struct WGPUCreatePipelineAsyncStatus(pub ::core::ffi::c_int);
521impl WGPUCullMode {
522    pub const WGPUCullMode_Undefined: WGPUCullMode = WGPUCullMode(0);
523}
524impl WGPUCullMode {
525    pub const WGPUCullMode_None: WGPUCullMode = WGPUCullMode(1);
526}
527impl WGPUCullMode {
528    pub const WGPUCullMode_Front: WGPUCullMode = WGPUCullMode(2);
529}
530impl WGPUCullMode {
531    pub const WGPUCullMode_Back: WGPUCullMode = WGPUCullMode(3);
532}
533impl WGPUCullMode {
534    pub const WGPUCullMode_Force32: WGPUCullMode = WGPUCullMode(2147483647);
535}
536#[repr(transparent)]
537#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
538pub struct WGPUCullMode(pub ::core::ffi::c_int);
539impl WGPUDeviceLostReason {
540    pub const WGPUDeviceLostReason_Unknown: WGPUDeviceLostReason = WGPUDeviceLostReason(1);
541}
542impl WGPUDeviceLostReason {
543    pub const WGPUDeviceLostReason_Destroyed: WGPUDeviceLostReason = WGPUDeviceLostReason(2);
544}
545impl WGPUDeviceLostReason {
546    pub const WGPUDeviceLostReason_CallbackCancelled: WGPUDeviceLostReason =
547        WGPUDeviceLostReason(3);
548}
549impl WGPUDeviceLostReason {
550    pub const WGPUDeviceLostReason_FailedCreation: WGPUDeviceLostReason = WGPUDeviceLostReason(4);
551}
552impl WGPUDeviceLostReason {
553    pub const WGPUDeviceLostReason_Force32: WGPUDeviceLostReason = WGPUDeviceLostReason(2147483647);
554}
555#[repr(transparent)]
556#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
557pub struct WGPUDeviceLostReason(pub ::core::ffi::c_int);
558impl WGPUErrorFilter {
559    pub const WGPUErrorFilter_Validation: WGPUErrorFilter = WGPUErrorFilter(1);
560}
561impl WGPUErrorFilter {
562    pub const WGPUErrorFilter_OutOfMemory: WGPUErrorFilter = WGPUErrorFilter(2);
563}
564impl WGPUErrorFilter {
565    pub const WGPUErrorFilter_Internal: WGPUErrorFilter = WGPUErrorFilter(3);
566}
567impl WGPUErrorFilter {
568    pub const WGPUErrorFilter_Force32: WGPUErrorFilter = WGPUErrorFilter(2147483647);
569}
570#[repr(transparent)]
571#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
572pub struct WGPUErrorFilter(pub ::core::ffi::c_int);
573impl WGPUErrorType {
574    pub const WGPUErrorType_NoError: WGPUErrorType = WGPUErrorType(1);
575}
576impl WGPUErrorType {
577    pub const WGPUErrorType_Validation: WGPUErrorType = WGPUErrorType(2);
578}
579impl WGPUErrorType {
580    pub const WGPUErrorType_OutOfMemory: WGPUErrorType = WGPUErrorType(3);
581}
582impl WGPUErrorType {
583    pub const WGPUErrorType_Internal: WGPUErrorType = WGPUErrorType(4);
584}
585impl WGPUErrorType {
586    pub const WGPUErrorType_Unknown: WGPUErrorType = WGPUErrorType(5);
587}
588impl WGPUErrorType {
589    pub const WGPUErrorType_Force32: WGPUErrorType = WGPUErrorType(2147483647);
590}
591#[repr(transparent)]
592#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
593pub struct WGPUErrorType(pub ::core::ffi::c_int);
594impl WGPUExternalTextureRotation {
595    pub const WGPUExternalTextureRotation_Rotate0Degrees: WGPUExternalTextureRotation =
596        WGPUExternalTextureRotation(1);
597}
598impl WGPUExternalTextureRotation {
599    pub const WGPUExternalTextureRotation_Rotate90Degrees: WGPUExternalTextureRotation =
600        WGPUExternalTextureRotation(2);
601}
602impl WGPUExternalTextureRotation {
603    pub const WGPUExternalTextureRotation_Rotate180Degrees: WGPUExternalTextureRotation =
604        WGPUExternalTextureRotation(3);
605}
606impl WGPUExternalTextureRotation {
607    pub const WGPUExternalTextureRotation_Rotate270Degrees: WGPUExternalTextureRotation =
608        WGPUExternalTextureRotation(4);
609}
610impl WGPUExternalTextureRotation {
611    pub const WGPUExternalTextureRotation_Force32: WGPUExternalTextureRotation =
612        WGPUExternalTextureRotation(2147483647);
613}
614#[repr(transparent)]
615#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
616pub struct WGPUExternalTextureRotation(pub ::core::ffi::c_int);
617impl WGPUFeatureLevel {
618    pub const WGPUFeatureLevel_Undefined: WGPUFeatureLevel = WGPUFeatureLevel(0);
619}
620impl WGPUFeatureLevel {
621    pub const WGPUFeatureLevel_Compatibility: WGPUFeatureLevel = WGPUFeatureLevel(1);
622}
623impl WGPUFeatureLevel {
624    pub const WGPUFeatureLevel_Core: WGPUFeatureLevel = WGPUFeatureLevel(2);
625}
626impl WGPUFeatureLevel {
627    pub const WGPUFeatureLevel_Force32: WGPUFeatureLevel = WGPUFeatureLevel(2147483647);
628}
629#[repr(transparent)]
630#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
631pub struct WGPUFeatureLevel(pub ::core::ffi::c_int);
632impl WGPUFeatureName {
633    pub const WGPUFeatureName_DepthClipControl: WGPUFeatureName = WGPUFeatureName(1);
634}
635impl WGPUFeatureName {
636    pub const WGPUFeatureName_Depth32FloatStencil8: WGPUFeatureName = WGPUFeatureName(2);
637}
638impl WGPUFeatureName {
639    pub const WGPUFeatureName_TimestampQuery: WGPUFeatureName = WGPUFeatureName(3);
640}
641impl WGPUFeatureName {
642    pub const WGPUFeatureName_TextureCompressionBC: WGPUFeatureName = WGPUFeatureName(4);
643}
644impl WGPUFeatureName {
645    pub const WGPUFeatureName_TextureCompressionBCSliced3D: WGPUFeatureName = WGPUFeatureName(5);
646}
647impl WGPUFeatureName {
648    pub const WGPUFeatureName_TextureCompressionETC2: WGPUFeatureName = WGPUFeatureName(6);
649}
650impl WGPUFeatureName {
651    pub const WGPUFeatureName_TextureCompressionASTC: WGPUFeatureName = WGPUFeatureName(7);
652}
653impl WGPUFeatureName {
654    pub const WGPUFeatureName_TextureCompressionASTCSliced3D: WGPUFeatureName = WGPUFeatureName(8);
655}
656impl WGPUFeatureName {
657    pub const WGPUFeatureName_IndirectFirstInstance: WGPUFeatureName = WGPUFeatureName(9);
658}
659impl WGPUFeatureName {
660    pub const WGPUFeatureName_ShaderF16: WGPUFeatureName = WGPUFeatureName(10);
661}
662impl WGPUFeatureName {
663    pub const WGPUFeatureName_RG11B10UfloatRenderable: WGPUFeatureName = WGPUFeatureName(11);
664}
665impl WGPUFeatureName {
666    pub const WGPUFeatureName_BGRA8UnormStorage: WGPUFeatureName = WGPUFeatureName(12);
667}
668impl WGPUFeatureName {
669    pub const WGPUFeatureName_Float32Filterable: WGPUFeatureName = WGPUFeatureName(13);
670}
671impl WGPUFeatureName {
672    pub const WGPUFeatureName_Float32Blendable: WGPUFeatureName = WGPUFeatureName(14);
673}
674impl WGPUFeatureName {
675    pub const WGPUFeatureName_ClipDistances: WGPUFeatureName = WGPUFeatureName(15);
676}
677impl WGPUFeatureName {
678    pub const WGPUFeatureName_DualSourceBlending: WGPUFeatureName = WGPUFeatureName(16);
679}
680impl WGPUFeatureName {
681    pub const WGPUFeatureName_Subgroups: WGPUFeatureName = WGPUFeatureName(17);
682}
683impl WGPUFeatureName {
684    pub const WGPUFeatureName_CoreFeaturesAndLimits: WGPUFeatureName = WGPUFeatureName(18);
685}
686impl WGPUFeatureName {
687    pub const WGPUFeatureName_DawnInternalUsages: WGPUFeatureName = WGPUFeatureName(327680);
688}
689impl WGPUFeatureName {
690    pub const WGPUFeatureName_DawnMultiPlanarFormats: WGPUFeatureName = WGPUFeatureName(327681);
691}
692impl WGPUFeatureName {
693    pub const WGPUFeatureName_DawnNative: WGPUFeatureName = WGPUFeatureName(327682);
694}
695impl WGPUFeatureName {
696    pub const WGPUFeatureName_ChromiumExperimentalTimestampQueryInsidePasses: WGPUFeatureName =
697        WGPUFeatureName(327683);
698}
699impl WGPUFeatureName {
700    pub const WGPUFeatureName_ImplicitDeviceSynchronization: WGPUFeatureName =
701        WGPUFeatureName(327684);
702}
703impl WGPUFeatureName {
704    pub const WGPUFeatureName_TransientAttachments: WGPUFeatureName = WGPUFeatureName(327686);
705}
706impl WGPUFeatureName {
707    pub const WGPUFeatureName_MSAARenderToSingleSampled: WGPUFeatureName = WGPUFeatureName(327687);
708}
709impl WGPUFeatureName {
710    pub const WGPUFeatureName_D3D11MultithreadProtected: WGPUFeatureName = WGPUFeatureName(327688);
711}
712impl WGPUFeatureName {
713    pub const WGPUFeatureName_ANGLETextureSharing: WGPUFeatureName = WGPUFeatureName(327689);
714}
715impl WGPUFeatureName {
716    pub const WGPUFeatureName_PixelLocalStorageCoherent: WGPUFeatureName = WGPUFeatureName(327690);
717}
718impl WGPUFeatureName {
719    pub const WGPUFeatureName_PixelLocalStorageNonCoherent: WGPUFeatureName =
720        WGPUFeatureName(327691);
721}
722impl WGPUFeatureName {
723    pub const WGPUFeatureName_Unorm16TextureFormats: WGPUFeatureName = WGPUFeatureName(327692);
724}
725impl WGPUFeatureName {
726    pub const WGPUFeatureName_Snorm16TextureFormats: WGPUFeatureName = WGPUFeatureName(327693);
727}
728impl WGPUFeatureName {
729    pub const WGPUFeatureName_MultiPlanarFormatExtendedUsages: WGPUFeatureName =
730        WGPUFeatureName(327694);
731}
732impl WGPUFeatureName {
733    pub const WGPUFeatureName_MultiPlanarFormatP010: WGPUFeatureName = WGPUFeatureName(327695);
734}
735impl WGPUFeatureName {
736    pub const WGPUFeatureName_HostMappedPointer: WGPUFeatureName = WGPUFeatureName(327696);
737}
738impl WGPUFeatureName {
739    pub const WGPUFeatureName_MultiPlanarRenderTargets: WGPUFeatureName = WGPUFeatureName(327697);
740}
741impl WGPUFeatureName {
742    pub const WGPUFeatureName_MultiPlanarFormatNv12a: WGPUFeatureName = WGPUFeatureName(327698);
743}
744impl WGPUFeatureName {
745    pub const WGPUFeatureName_FramebufferFetch: WGPUFeatureName = WGPUFeatureName(327699);
746}
747impl WGPUFeatureName {
748    pub const WGPUFeatureName_BufferMapExtendedUsages: WGPUFeatureName = WGPUFeatureName(327700);
749}
750impl WGPUFeatureName {
751    pub const WGPUFeatureName_AdapterPropertiesMemoryHeaps: WGPUFeatureName =
752        WGPUFeatureName(327701);
753}
754impl WGPUFeatureName {
755    pub const WGPUFeatureName_AdapterPropertiesD3D: WGPUFeatureName = WGPUFeatureName(327702);
756}
757impl WGPUFeatureName {
758    pub const WGPUFeatureName_AdapterPropertiesVk: WGPUFeatureName = WGPUFeatureName(327703);
759}
760impl WGPUFeatureName {
761    pub const WGPUFeatureName_R8UnormStorage: WGPUFeatureName = WGPUFeatureName(327704);
762}
763impl WGPUFeatureName {
764    pub const WGPUFeatureName_DawnFormatCapabilities: WGPUFeatureName = WGPUFeatureName(327705);
765}
766impl WGPUFeatureName {
767    pub const WGPUFeatureName_DawnDrmFormatCapabilities: WGPUFeatureName = WGPUFeatureName(327706);
768}
769impl WGPUFeatureName {
770    pub const WGPUFeatureName_Norm16TextureFormats: WGPUFeatureName = WGPUFeatureName(327707);
771}
772impl WGPUFeatureName {
773    pub const WGPUFeatureName_MultiPlanarFormatNv16: WGPUFeatureName = WGPUFeatureName(327708);
774}
775impl WGPUFeatureName {
776    pub const WGPUFeatureName_MultiPlanarFormatNv24: WGPUFeatureName = WGPUFeatureName(327709);
777}
778impl WGPUFeatureName {
779    pub const WGPUFeatureName_MultiPlanarFormatP210: WGPUFeatureName = WGPUFeatureName(327710);
780}
781impl WGPUFeatureName {
782    pub const WGPUFeatureName_MultiPlanarFormatP410: WGPUFeatureName = WGPUFeatureName(327711);
783}
784impl WGPUFeatureName {
785    pub const WGPUFeatureName_SharedTextureMemoryVkDedicatedAllocation: WGPUFeatureName =
786        WGPUFeatureName(327712);
787}
788impl WGPUFeatureName {
789    pub const WGPUFeatureName_SharedTextureMemoryAHardwareBuffer: WGPUFeatureName =
790        WGPUFeatureName(327713);
791}
792impl WGPUFeatureName {
793    pub const WGPUFeatureName_SharedTextureMemoryDmaBuf: WGPUFeatureName = WGPUFeatureName(327714);
794}
795impl WGPUFeatureName {
796    pub const WGPUFeatureName_SharedTextureMemoryOpaqueFD: WGPUFeatureName =
797        WGPUFeatureName(327715);
798}
799impl WGPUFeatureName {
800    pub const WGPUFeatureName_SharedTextureMemoryZirconHandle: WGPUFeatureName =
801        WGPUFeatureName(327716);
802}
803impl WGPUFeatureName {
804    pub const WGPUFeatureName_SharedTextureMemoryDXGISharedHandle: WGPUFeatureName =
805        WGPUFeatureName(327717);
806}
807impl WGPUFeatureName {
808    pub const WGPUFeatureName_SharedTextureMemoryD3D11Texture2D: WGPUFeatureName =
809        WGPUFeatureName(327718);
810}
811impl WGPUFeatureName {
812    pub const WGPUFeatureName_SharedTextureMemoryIOSurface: WGPUFeatureName =
813        WGPUFeatureName(327719);
814}
815impl WGPUFeatureName {
816    pub const WGPUFeatureName_SharedTextureMemoryEGLImage: WGPUFeatureName =
817        WGPUFeatureName(327720);
818}
819impl WGPUFeatureName {
820    pub const WGPUFeatureName_SharedFenceVkSemaphoreOpaqueFD: WGPUFeatureName =
821        WGPUFeatureName(327721);
822}
823impl WGPUFeatureName {
824    pub const WGPUFeatureName_SharedFenceSyncFD: WGPUFeatureName = WGPUFeatureName(327722);
825}
826impl WGPUFeatureName {
827    pub const WGPUFeatureName_SharedFenceVkSemaphoreZirconHandle: WGPUFeatureName =
828        WGPUFeatureName(327723);
829}
830impl WGPUFeatureName {
831    pub const WGPUFeatureName_SharedFenceDXGISharedHandle: WGPUFeatureName =
832        WGPUFeatureName(327724);
833}
834impl WGPUFeatureName {
835    pub const WGPUFeatureName_SharedFenceMTLSharedEvent: WGPUFeatureName = WGPUFeatureName(327725);
836}
837impl WGPUFeatureName {
838    pub const WGPUFeatureName_SharedBufferMemoryD3D12Resource: WGPUFeatureName =
839        WGPUFeatureName(327726);
840}
841impl WGPUFeatureName {
842    pub const WGPUFeatureName_StaticSamplers: WGPUFeatureName = WGPUFeatureName(327727);
843}
844impl WGPUFeatureName {
845    pub const WGPUFeatureName_YCbCrVulkanSamplers: WGPUFeatureName = WGPUFeatureName(327728);
846}
847impl WGPUFeatureName {
848    pub const WGPUFeatureName_ShaderModuleCompilationOptions: WGPUFeatureName =
849        WGPUFeatureName(327729);
850}
851impl WGPUFeatureName {
852    pub const WGPUFeatureName_DawnLoadResolveTexture: WGPUFeatureName = WGPUFeatureName(327730);
853}
854impl WGPUFeatureName {
855    pub const WGPUFeatureName_DawnPartialLoadResolveTexture: WGPUFeatureName =
856        WGPUFeatureName(327731);
857}
858impl WGPUFeatureName {
859    pub const WGPUFeatureName_MultiDrawIndirect: WGPUFeatureName = WGPUFeatureName(327732);
860}
861impl WGPUFeatureName {
862    pub const WGPUFeatureName_DawnTexelCopyBufferRowAlignment: WGPUFeatureName =
863        WGPUFeatureName(327733);
864}
865impl WGPUFeatureName {
866    pub const WGPUFeatureName_FlexibleTextureViews: WGPUFeatureName = WGPUFeatureName(327734);
867}
868impl WGPUFeatureName {
869    pub const WGPUFeatureName_ChromiumExperimentalSubgroupMatrix: WGPUFeatureName =
870        WGPUFeatureName(327735);
871}
872impl WGPUFeatureName {
873    pub const WGPUFeatureName_SharedFenceEGLSync: WGPUFeatureName = WGPUFeatureName(327736);
874}
875impl WGPUFeatureName {
876    pub const WGPUFeatureName_DawnDeviceAllocatorControl: WGPUFeatureName = WGPUFeatureName(327737);
877}
878impl WGPUFeatureName {
879    pub const WGPUFeatureName_Force32: WGPUFeatureName = WGPUFeatureName(2147483647);
880}
881#[repr(transparent)]
882#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
883pub struct WGPUFeatureName(pub ::core::ffi::c_int);
884impl WGPUFilterMode {
885    pub const WGPUFilterMode_Undefined: WGPUFilterMode = WGPUFilterMode(0);
886}
887impl WGPUFilterMode {
888    pub const WGPUFilterMode_Nearest: WGPUFilterMode = WGPUFilterMode(1);
889}
890impl WGPUFilterMode {
891    pub const WGPUFilterMode_Linear: WGPUFilterMode = WGPUFilterMode(2);
892}
893impl WGPUFilterMode {
894    pub const WGPUFilterMode_Force32: WGPUFilterMode = WGPUFilterMode(2147483647);
895}
896#[repr(transparent)]
897#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
898pub struct WGPUFilterMode(pub ::core::ffi::c_int);
899impl WGPUFrontFace {
900    pub const WGPUFrontFace_Undefined: WGPUFrontFace = WGPUFrontFace(0);
901}
902impl WGPUFrontFace {
903    pub const WGPUFrontFace_CCW: WGPUFrontFace = WGPUFrontFace(1);
904}
905impl WGPUFrontFace {
906    pub const WGPUFrontFace_CW: WGPUFrontFace = WGPUFrontFace(2);
907}
908impl WGPUFrontFace {
909    pub const WGPUFrontFace_Force32: WGPUFrontFace = WGPUFrontFace(2147483647);
910}
911#[repr(transparent)]
912#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
913pub struct WGPUFrontFace(pub ::core::ffi::c_int);
914impl WGPUIndexFormat {
915    pub const WGPUIndexFormat_Undefined: WGPUIndexFormat = WGPUIndexFormat(0);
916}
917impl WGPUIndexFormat {
918    pub const WGPUIndexFormat_Uint16: WGPUIndexFormat = WGPUIndexFormat(1);
919}
920impl WGPUIndexFormat {
921    pub const WGPUIndexFormat_Uint32: WGPUIndexFormat = WGPUIndexFormat(2);
922}
923impl WGPUIndexFormat {
924    pub const WGPUIndexFormat_Force32: WGPUIndexFormat = WGPUIndexFormat(2147483647);
925}
926#[repr(transparent)]
927#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
928pub struct WGPUIndexFormat(pub ::core::ffi::c_int);
929impl WGPULoadOp {
930    pub const WGPULoadOp_Undefined: WGPULoadOp = WGPULoadOp(0);
931}
932impl WGPULoadOp {
933    pub const WGPULoadOp_Load: WGPULoadOp = WGPULoadOp(1);
934}
935impl WGPULoadOp {
936    pub const WGPULoadOp_Clear: WGPULoadOp = WGPULoadOp(2);
937}
938impl WGPULoadOp {
939    pub const WGPULoadOp_ExpandResolveTexture: WGPULoadOp = WGPULoadOp(327683);
940}
941impl WGPULoadOp {
942    pub const WGPULoadOp_Force32: WGPULoadOp = WGPULoadOp(2147483647);
943}
944#[repr(transparent)]
945#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
946pub struct WGPULoadOp(pub ::core::ffi::c_int);
947impl WGPULoggingType {
948    pub const WGPULoggingType_Verbose: WGPULoggingType = WGPULoggingType(1);
949}
950impl WGPULoggingType {
951    pub const WGPULoggingType_Info: WGPULoggingType = WGPULoggingType(2);
952}
953impl WGPULoggingType {
954    pub const WGPULoggingType_Warning: WGPULoggingType = WGPULoggingType(3);
955}
956impl WGPULoggingType {
957    pub const WGPULoggingType_Error: WGPULoggingType = WGPULoggingType(4);
958}
959impl WGPULoggingType {
960    pub const WGPULoggingType_Force32: WGPULoggingType = WGPULoggingType(2147483647);
961}
962#[repr(transparent)]
963#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
964pub struct WGPULoggingType(pub ::core::ffi::c_int);
965impl WGPUMapAsyncStatus {
966    pub const WGPUMapAsyncStatus_Success: WGPUMapAsyncStatus = WGPUMapAsyncStatus(1);
967}
968impl WGPUMapAsyncStatus {
969    pub const WGPUMapAsyncStatus_CallbackCancelled: WGPUMapAsyncStatus = WGPUMapAsyncStatus(2);
970}
971impl WGPUMapAsyncStatus {
972    pub const WGPUMapAsyncStatus_Error: WGPUMapAsyncStatus = WGPUMapAsyncStatus(3);
973}
974impl WGPUMapAsyncStatus {
975    pub const WGPUMapAsyncStatus_Aborted: WGPUMapAsyncStatus = WGPUMapAsyncStatus(4);
976}
977impl WGPUMapAsyncStatus {
978    pub const WGPUMapAsyncStatus_Force32: WGPUMapAsyncStatus = WGPUMapAsyncStatus(2147483647);
979}
980#[repr(transparent)]
981#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
982pub struct WGPUMapAsyncStatus(pub ::core::ffi::c_int);
983impl WGPUMipmapFilterMode {
984    pub const WGPUMipmapFilterMode_Undefined: WGPUMipmapFilterMode = WGPUMipmapFilterMode(0);
985}
986impl WGPUMipmapFilterMode {
987    pub const WGPUMipmapFilterMode_Nearest: WGPUMipmapFilterMode = WGPUMipmapFilterMode(1);
988}
989impl WGPUMipmapFilterMode {
990    pub const WGPUMipmapFilterMode_Linear: WGPUMipmapFilterMode = WGPUMipmapFilterMode(2);
991}
992impl WGPUMipmapFilterMode {
993    pub const WGPUMipmapFilterMode_Force32: WGPUMipmapFilterMode = WGPUMipmapFilterMode(2147483647);
994}
995#[repr(transparent)]
996#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
997pub struct WGPUMipmapFilterMode(pub ::core::ffi::c_int);
998impl WGPUOptionalBool {
999    pub const WGPUOptionalBool_False: WGPUOptionalBool = WGPUOptionalBool(0);
1000}
1001impl WGPUOptionalBool {
1002    pub const WGPUOptionalBool_True: WGPUOptionalBool = WGPUOptionalBool(1);
1003}
1004impl WGPUOptionalBool {
1005    pub const WGPUOptionalBool_Undefined: WGPUOptionalBool = WGPUOptionalBool(2);
1006}
1007impl WGPUOptionalBool {
1008    pub const WGPUOptionalBool_Force32: WGPUOptionalBool = WGPUOptionalBool(2147483647);
1009}
1010#[repr(transparent)]
1011#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1012pub struct WGPUOptionalBool(pub ::core::ffi::c_int);
1013impl WGPUPopErrorScopeStatus {
1014    pub const WGPUPopErrorScopeStatus_Success: WGPUPopErrorScopeStatus = WGPUPopErrorScopeStatus(1);
1015}
1016impl WGPUPopErrorScopeStatus {
1017    pub const WGPUPopErrorScopeStatus_CallbackCancelled: WGPUPopErrorScopeStatus =
1018        WGPUPopErrorScopeStatus(2);
1019}
1020impl WGPUPopErrorScopeStatus {
1021    pub const WGPUPopErrorScopeStatus_Error: WGPUPopErrorScopeStatus = WGPUPopErrorScopeStatus(3);
1022}
1023impl WGPUPopErrorScopeStatus {
1024    pub const WGPUPopErrorScopeStatus_Force32: WGPUPopErrorScopeStatus =
1025        WGPUPopErrorScopeStatus(2147483647);
1026}
1027#[repr(transparent)]
1028#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1029pub struct WGPUPopErrorScopeStatus(pub ::core::ffi::c_int);
1030impl WGPUPowerPreference {
1031    pub const WGPUPowerPreference_Undefined: WGPUPowerPreference = WGPUPowerPreference(0);
1032}
1033impl WGPUPowerPreference {
1034    pub const WGPUPowerPreference_LowPower: WGPUPowerPreference = WGPUPowerPreference(1);
1035}
1036impl WGPUPowerPreference {
1037    pub const WGPUPowerPreference_HighPerformance: WGPUPowerPreference = WGPUPowerPreference(2);
1038}
1039impl WGPUPowerPreference {
1040    pub const WGPUPowerPreference_Force32: WGPUPowerPreference = WGPUPowerPreference(2147483647);
1041}
1042#[repr(transparent)]
1043#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1044pub struct WGPUPowerPreference(pub ::core::ffi::c_int);
1045impl WGPUPredefinedColorSpace {
1046    pub const WGPUPredefinedColorSpace_SRGB: WGPUPredefinedColorSpace = WGPUPredefinedColorSpace(1);
1047}
1048impl WGPUPredefinedColorSpace {
1049    pub const WGPUPredefinedColorSpace_DisplayP3: WGPUPredefinedColorSpace =
1050        WGPUPredefinedColorSpace(2);
1051}
1052impl WGPUPredefinedColorSpace {
1053    pub const WGPUPredefinedColorSpace_Force32: WGPUPredefinedColorSpace =
1054        WGPUPredefinedColorSpace(2147483647);
1055}
1056#[repr(transparent)]
1057#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1058pub struct WGPUPredefinedColorSpace(pub ::core::ffi::c_int);
1059impl WGPUPresentMode {
1060    pub const WGPUPresentMode_Undefined: WGPUPresentMode = WGPUPresentMode(0);
1061}
1062impl WGPUPresentMode {
1063    pub const WGPUPresentMode_Fifo: WGPUPresentMode = WGPUPresentMode(1);
1064}
1065impl WGPUPresentMode {
1066    pub const WGPUPresentMode_FifoRelaxed: WGPUPresentMode = WGPUPresentMode(2);
1067}
1068impl WGPUPresentMode {
1069    pub const WGPUPresentMode_Immediate: WGPUPresentMode = WGPUPresentMode(3);
1070}
1071impl WGPUPresentMode {
1072    pub const WGPUPresentMode_Mailbox: WGPUPresentMode = WGPUPresentMode(4);
1073}
1074impl WGPUPresentMode {
1075    pub const WGPUPresentMode_Force32: WGPUPresentMode = WGPUPresentMode(2147483647);
1076}
1077#[repr(transparent)]
1078#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1079pub struct WGPUPresentMode(pub ::core::ffi::c_int);
1080impl WGPUPrimitiveTopology {
1081    pub const WGPUPrimitiveTopology_Undefined: WGPUPrimitiveTopology = WGPUPrimitiveTopology(0);
1082}
1083impl WGPUPrimitiveTopology {
1084    pub const WGPUPrimitiveTopology_PointList: WGPUPrimitiveTopology = WGPUPrimitiveTopology(1);
1085}
1086impl WGPUPrimitiveTopology {
1087    pub const WGPUPrimitiveTopology_LineList: WGPUPrimitiveTopology = WGPUPrimitiveTopology(2);
1088}
1089impl WGPUPrimitiveTopology {
1090    pub const WGPUPrimitiveTopology_LineStrip: WGPUPrimitiveTopology = WGPUPrimitiveTopology(3);
1091}
1092impl WGPUPrimitiveTopology {
1093    pub const WGPUPrimitiveTopology_TriangleList: WGPUPrimitiveTopology = WGPUPrimitiveTopology(4);
1094}
1095impl WGPUPrimitiveTopology {
1096    pub const WGPUPrimitiveTopology_TriangleStrip: WGPUPrimitiveTopology = WGPUPrimitiveTopology(5);
1097}
1098impl WGPUPrimitiveTopology {
1099    pub const WGPUPrimitiveTopology_Force32: WGPUPrimitiveTopology =
1100        WGPUPrimitiveTopology(2147483647);
1101}
1102#[repr(transparent)]
1103#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1104pub struct WGPUPrimitiveTopology(pub ::core::ffi::c_int);
1105impl WGPUQueryType {
1106    pub const WGPUQueryType_Occlusion: WGPUQueryType = WGPUQueryType(1);
1107}
1108impl WGPUQueryType {
1109    pub const WGPUQueryType_Timestamp: WGPUQueryType = WGPUQueryType(2);
1110}
1111impl WGPUQueryType {
1112    pub const WGPUQueryType_Force32: WGPUQueryType = WGPUQueryType(2147483647);
1113}
1114#[repr(transparent)]
1115#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1116pub struct WGPUQueryType(pub ::core::ffi::c_int);
1117impl WGPUQueueWorkDoneStatus {
1118    pub const WGPUQueueWorkDoneStatus_Success: WGPUQueueWorkDoneStatus = WGPUQueueWorkDoneStatus(1);
1119}
1120impl WGPUQueueWorkDoneStatus {
1121    pub const WGPUQueueWorkDoneStatus_CallbackCancelled: WGPUQueueWorkDoneStatus =
1122        WGPUQueueWorkDoneStatus(2);
1123}
1124impl WGPUQueueWorkDoneStatus {
1125    pub const WGPUQueueWorkDoneStatus_Error: WGPUQueueWorkDoneStatus = WGPUQueueWorkDoneStatus(3);
1126}
1127impl WGPUQueueWorkDoneStatus {
1128    pub const WGPUQueueWorkDoneStatus_Force32: WGPUQueueWorkDoneStatus =
1129        WGPUQueueWorkDoneStatus(2147483647);
1130}
1131#[repr(transparent)]
1132#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1133pub struct WGPUQueueWorkDoneStatus(pub ::core::ffi::c_int);
1134impl WGPURequestAdapterStatus {
1135    pub const WGPURequestAdapterStatus_Success: WGPURequestAdapterStatus =
1136        WGPURequestAdapterStatus(1);
1137}
1138impl WGPURequestAdapterStatus {
1139    pub const WGPURequestAdapterStatus_CallbackCancelled: WGPURequestAdapterStatus =
1140        WGPURequestAdapterStatus(2);
1141}
1142impl WGPURequestAdapterStatus {
1143    pub const WGPURequestAdapterStatus_Unavailable: WGPURequestAdapterStatus =
1144        WGPURequestAdapterStatus(3);
1145}
1146impl WGPURequestAdapterStatus {
1147    pub const WGPURequestAdapterStatus_Error: WGPURequestAdapterStatus =
1148        WGPURequestAdapterStatus(4);
1149}
1150impl WGPURequestAdapterStatus {
1151    pub const WGPURequestAdapterStatus_Force32: WGPURequestAdapterStatus =
1152        WGPURequestAdapterStatus(2147483647);
1153}
1154#[repr(transparent)]
1155#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1156pub struct WGPURequestAdapterStatus(pub ::core::ffi::c_int);
1157impl WGPURequestDeviceStatus {
1158    pub const WGPURequestDeviceStatus_Success: WGPURequestDeviceStatus = WGPURequestDeviceStatus(1);
1159}
1160impl WGPURequestDeviceStatus {
1161    pub const WGPURequestDeviceStatus_CallbackCancelled: WGPURequestDeviceStatus =
1162        WGPURequestDeviceStatus(2);
1163}
1164impl WGPURequestDeviceStatus {
1165    pub const WGPURequestDeviceStatus_Error: WGPURequestDeviceStatus = WGPURequestDeviceStatus(3);
1166}
1167impl WGPURequestDeviceStatus {
1168    pub const WGPURequestDeviceStatus_Force32: WGPURequestDeviceStatus =
1169        WGPURequestDeviceStatus(2147483647);
1170}
1171#[repr(transparent)]
1172#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1173pub struct WGPURequestDeviceStatus(pub ::core::ffi::c_int);
1174impl WGPUSamplerBindingType {
1175    pub const WGPUSamplerBindingType_BindingNotUsed: WGPUSamplerBindingType =
1176        WGPUSamplerBindingType(0);
1177}
1178impl WGPUSamplerBindingType {
1179    pub const WGPUSamplerBindingType_Undefined: WGPUSamplerBindingType = WGPUSamplerBindingType(1);
1180}
1181impl WGPUSamplerBindingType {
1182    pub const WGPUSamplerBindingType_Filtering: WGPUSamplerBindingType = WGPUSamplerBindingType(2);
1183}
1184impl WGPUSamplerBindingType {
1185    pub const WGPUSamplerBindingType_NonFiltering: WGPUSamplerBindingType =
1186        WGPUSamplerBindingType(3);
1187}
1188impl WGPUSamplerBindingType {
1189    pub const WGPUSamplerBindingType_Comparison: WGPUSamplerBindingType = WGPUSamplerBindingType(4);
1190}
1191impl WGPUSamplerBindingType {
1192    pub const WGPUSamplerBindingType_Force32: WGPUSamplerBindingType =
1193        WGPUSamplerBindingType(2147483647);
1194}
1195#[repr(transparent)]
1196#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1197pub struct WGPUSamplerBindingType(pub ::core::ffi::c_int);
1198impl WGPUSharedFenceType {
1199    pub const WGPUSharedFenceType_VkSemaphoreOpaqueFD: WGPUSharedFenceType = WGPUSharedFenceType(1);
1200}
1201impl WGPUSharedFenceType {
1202    pub const WGPUSharedFenceType_SyncFD: WGPUSharedFenceType = WGPUSharedFenceType(2);
1203}
1204impl WGPUSharedFenceType {
1205    pub const WGPUSharedFenceType_VkSemaphoreZirconHandle: WGPUSharedFenceType =
1206        WGPUSharedFenceType(3);
1207}
1208impl WGPUSharedFenceType {
1209    pub const WGPUSharedFenceType_DXGISharedHandle: WGPUSharedFenceType = WGPUSharedFenceType(4);
1210}
1211impl WGPUSharedFenceType {
1212    pub const WGPUSharedFenceType_MTLSharedEvent: WGPUSharedFenceType = WGPUSharedFenceType(5);
1213}
1214impl WGPUSharedFenceType {
1215    pub const WGPUSharedFenceType_EGLSync: WGPUSharedFenceType = WGPUSharedFenceType(6);
1216}
1217impl WGPUSharedFenceType {
1218    pub const WGPUSharedFenceType_Force32: WGPUSharedFenceType = WGPUSharedFenceType(2147483647);
1219}
1220#[repr(transparent)]
1221#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1222pub struct WGPUSharedFenceType(pub ::core::ffi::c_int);
1223impl WGPUStatus {
1224    pub const WGPUStatus_Success: WGPUStatus = WGPUStatus(1);
1225}
1226impl WGPUStatus {
1227    pub const WGPUStatus_Error: WGPUStatus = WGPUStatus(2);
1228}
1229impl WGPUStatus {
1230    pub const WGPUStatus_Force32: WGPUStatus = WGPUStatus(2147483647);
1231}
1232#[repr(transparent)]
1233#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1234pub struct WGPUStatus(pub ::core::ffi::c_int);
1235impl WGPUStencilOperation {
1236    pub const WGPUStencilOperation_Undefined: WGPUStencilOperation = WGPUStencilOperation(0);
1237}
1238impl WGPUStencilOperation {
1239    pub const WGPUStencilOperation_Keep: WGPUStencilOperation = WGPUStencilOperation(1);
1240}
1241impl WGPUStencilOperation {
1242    pub const WGPUStencilOperation_Zero: WGPUStencilOperation = WGPUStencilOperation(2);
1243}
1244impl WGPUStencilOperation {
1245    pub const WGPUStencilOperation_Replace: WGPUStencilOperation = WGPUStencilOperation(3);
1246}
1247impl WGPUStencilOperation {
1248    pub const WGPUStencilOperation_Invert: WGPUStencilOperation = WGPUStencilOperation(4);
1249}
1250impl WGPUStencilOperation {
1251    pub const WGPUStencilOperation_IncrementClamp: WGPUStencilOperation = WGPUStencilOperation(5);
1252}
1253impl WGPUStencilOperation {
1254    pub const WGPUStencilOperation_DecrementClamp: WGPUStencilOperation = WGPUStencilOperation(6);
1255}
1256impl WGPUStencilOperation {
1257    pub const WGPUStencilOperation_IncrementWrap: WGPUStencilOperation = WGPUStencilOperation(7);
1258}
1259impl WGPUStencilOperation {
1260    pub const WGPUStencilOperation_DecrementWrap: WGPUStencilOperation = WGPUStencilOperation(8);
1261}
1262impl WGPUStencilOperation {
1263    pub const WGPUStencilOperation_Force32: WGPUStencilOperation = WGPUStencilOperation(2147483647);
1264}
1265#[repr(transparent)]
1266#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1267pub struct WGPUStencilOperation(pub ::core::ffi::c_int);
1268impl WGPUStorageTextureAccess {
1269    pub const WGPUStorageTextureAccess_BindingNotUsed: WGPUStorageTextureAccess =
1270        WGPUStorageTextureAccess(0);
1271}
1272impl WGPUStorageTextureAccess {
1273    pub const WGPUStorageTextureAccess_Undefined: WGPUStorageTextureAccess =
1274        WGPUStorageTextureAccess(1);
1275}
1276impl WGPUStorageTextureAccess {
1277    pub const WGPUStorageTextureAccess_WriteOnly: WGPUStorageTextureAccess =
1278        WGPUStorageTextureAccess(2);
1279}
1280impl WGPUStorageTextureAccess {
1281    pub const WGPUStorageTextureAccess_ReadOnly: WGPUStorageTextureAccess =
1282        WGPUStorageTextureAccess(3);
1283}
1284impl WGPUStorageTextureAccess {
1285    pub const WGPUStorageTextureAccess_ReadWrite: WGPUStorageTextureAccess =
1286        WGPUStorageTextureAccess(4);
1287}
1288impl WGPUStorageTextureAccess {
1289    pub const WGPUStorageTextureAccess_Force32: WGPUStorageTextureAccess =
1290        WGPUStorageTextureAccess(2147483647);
1291}
1292#[repr(transparent)]
1293#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1294pub struct WGPUStorageTextureAccess(pub ::core::ffi::c_int);
1295impl WGPUStoreOp {
1296    pub const WGPUStoreOp_Undefined: WGPUStoreOp = WGPUStoreOp(0);
1297}
1298impl WGPUStoreOp {
1299    pub const WGPUStoreOp_Store: WGPUStoreOp = WGPUStoreOp(1);
1300}
1301impl WGPUStoreOp {
1302    pub const WGPUStoreOp_Discard: WGPUStoreOp = WGPUStoreOp(2);
1303}
1304impl WGPUStoreOp {
1305    pub const WGPUStoreOp_Force32: WGPUStoreOp = WGPUStoreOp(2147483647);
1306}
1307#[repr(transparent)]
1308#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1309pub struct WGPUStoreOp(pub ::core::ffi::c_int);
1310impl WGPUSType {
1311    pub const WGPUSType_ShaderSourceSPIRV: WGPUSType = WGPUSType(1);
1312}
1313impl WGPUSType {
1314    pub const WGPUSType_ShaderSourceWGSL: WGPUSType = WGPUSType(2);
1315}
1316impl WGPUSType {
1317    pub const WGPUSType_RenderPassMaxDrawCount: WGPUSType = WGPUSType(3);
1318}
1319impl WGPUSType {
1320    pub const WGPUSType_SurfaceSourceMetalLayer: WGPUSType = WGPUSType(4);
1321}
1322impl WGPUSType {
1323    pub const WGPUSType_SurfaceSourceWindowsHWND: WGPUSType = WGPUSType(5);
1324}
1325impl WGPUSType {
1326    pub const WGPUSType_SurfaceSourceXlibWindow: WGPUSType = WGPUSType(6);
1327}
1328impl WGPUSType {
1329    pub const WGPUSType_SurfaceSourceWaylandSurface: WGPUSType = WGPUSType(7);
1330}
1331impl WGPUSType {
1332    pub const WGPUSType_SurfaceSourceAndroidNativeWindow: WGPUSType = WGPUSType(8);
1333}
1334impl WGPUSType {
1335    pub const WGPUSType_SurfaceSourceXCBWindow: WGPUSType = WGPUSType(9);
1336}
1337impl WGPUSType {
1338    pub const WGPUSType_SurfaceColorManagement: WGPUSType = WGPUSType(10);
1339}
1340impl WGPUSType {
1341    pub const WGPUSType_RequestAdapterWebXROptions: WGPUSType = WGPUSType(11);
1342}
1343impl WGPUSType {
1344    pub const WGPUSType_AdapterPropertiesSubgroups: WGPUSType = WGPUSType(12);
1345}
1346impl WGPUSType {
1347    pub const WGPUSType_BindGroupLayoutEntryArraySize: WGPUSType = WGPUSType(13);
1348}
1349impl WGPUSType {
1350    pub const WGPUSType_TextureBindingViewDimensionDescriptor: WGPUSType = WGPUSType(131072);
1351}
1352impl WGPUSType {
1353    pub const WGPUSType_EmscriptenSurfaceSourceCanvasHTMLSelector: WGPUSType = WGPUSType(262144);
1354}
1355impl WGPUSType {
1356    pub const WGPUSType_SurfaceDescriptorFromWindowsCoreWindow: WGPUSType = WGPUSType(327680);
1357}
1358impl WGPUSType {
1359    pub const WGPUSType_ExternalTextureBindingEntry: WGPUSType = WGPUSType(327681);
1360}
1361impl WGPUSType {
1362    pub const WGPUSType_ExternalTextureBindingLayout: WGPUSType = WGPUSType(327682);
1363}
1364impl WGPUSType {
1365    pub const WGPUSType_SurfaceDescriptorFromWindowsUWPSwapChainPanel: WGPUSType =
1366        WGPUSType(327683);
1367}
1368impl WGPUSType {
1369    pub const WGPUSType_DawnTextureInternalUsageDescriptor: WGPUSType = WGPUSType(327684);
1370}
1371impl WGPUSType {
1372    pub const WGPUSType_DawnEncoderInternalUsageDescriptor: WGPUSType = WGPUSType(327685);
1373}
1374impl WGPUSType {
1375    pub const WGPUSType_DawnInstanceDescriptor: WGPUSType = WGPUSType(327686);
1376}
1377impl WGPUSType {
1378    pub const WGPUSType_DawnCacheDeviceDescriptor: WGPUSType = WGPUSType(327687);
1379}
1380impl WGPUSType {
1381    pub const WGPUSType_DawnAdapterPropertiesPowerPreference: WGPUSType = WGPUSType(327688);
1382}
1383impl WGPUSType {
1384    pub const WGPUSType_DawnBufferDescriptorErrorInfoFromWireClient: WGPUSType = WGPUSType(327689);
1385}
1386impl WGPUSType {
1387    pub const WGPUSType_DawnTogglesDescriptor: WGPUSType = WGPUSType(327690);
1388}
1389impl WGPUSType {
1390    pub const WGPUSType_DawnShaderModuleSPIRVOptionsDescriptor: WGPUSType = WGPUSType(327691);
1391}
1392impl WGPUSType {
1393    pub const WGPUSType_RequestAdapterOptionsLUID: WGPUSType = WGPUSType(327692);
1394}
1395impl WGPUSType {
1396    pub const WGPUSType_RequestAdapterOptionsGetGLProc: WGPUSType = WGPUSType(327693);
1397}
1398impl WGPUSType {
1399    pub const WGPUSType_RequestAdapterOptionsD3D11Device: WGPUSType = WGPUSType(327694);
1400}
1401impl WGPUSType {
1402    pub const WGPUSType_DawnRenderPassColorAttachmentRenderToSingleSampled: WGPUSType =
1403        WGPUSType(327695);
1404}
1405impl WGPUSType {
1406    pub const WGPUSType_RenderPassPixelLocalStorage: WGPUSType = WGPUSType(327696);
1407}
1408impl WGPUSType {
1409    pub const WGPUSType_PipelineLayoutPixelLocalStorage: WGPUSType = WGPUSType(327697);
1410}
1411impl WGPUSType {
1412    pub const WGPUSType_BufferHostMappedPointer: WGPUSType = WGPUSType(327698);
1413}
1414impl WGPUSType {
1415    pub const WGPUSType_AdapterPropertiesMemoryHeaps: WGPUSType = WGPUSType(327699);
1416}
1417impl WGPUSType {
1418    pub const WGPUSType_AdapterPropertiesD3D: WGPUSType = WGPUSType(327700);
1419}
1420impl WGPUSType {
1421    pub const WGPUSType_AdapterPropertiesVk: WGPUSType = WGPUSType(327701);
1422}
1423impl WGPUSType {
1424    pub const WGPUSType_DawnWireWGSLControl: WGPUSType = WGPUSType(327702);
1425}
1426impl WGPUSType {
1427    pub const WGPUSType_DawnWGSLBlocklist: WGPUSType = WGPUSType(327703);
1428}
1429impl WGPUSType {
1430    pub const WGPUSType_DawnDrmFormatCapabilities: WGPUSType = WGPUSType(327704);
1431}
1432impl WGPUSType {
1433    pub const WGPUSType_ShaderModuleCompilationOptions: WGPUSType = WGPUSType(327705);
1434}
1435impl WGPUSType {
1436    pub const WGPUSType_ColorTargetStateExpandResolveTextureDawn: WGPUSType = WGPUSType(327706);
1437}
1438impl WGPUSType {
1439    pub const WGPUSType_RenderPassDescriptorExpandResolveRect: WGPUSType = WGPUSType(327707);
1440}
1441impl WGPUSType {
1442    pub const WGPUSType_SharedTextureMemoryVkDedicatedAllocationDescriptor: WGPUSType =
1443        WGPUSType(327708);
1444}
1445impl WGPUSType {
1446    pub const WGPUSType_SharedTextureMemoryAHardwareBufferDescriptor: WGPUSType = WGPUSType(327709);
1447}
1448impl WGPUSType {
1449    pub const WGPUSType_SharedTextureMemoryDmaBufDescriptor: WGPUSType = WGPUSType(327710);
1450}
1451impl WGPUSType {
1452    pub const WGPUSType_SharedTextureMemoryOpaqueFDDescriptor: WGPUSType = WGPUSType(327711);
1453}
1454impl WGPUSType {
1455    pub const WGPUSType_SharedTextureMemoryZirconHandleDescriptor: WGPUSType = WGPUSType(327712);
1456}
1457impl WGPUSType {
1458    pub const WGPUSType_SharedTextureMemoryDXGISharedHandleDescriptor: WGPUSType =
1459        WGPUSType(327713);
1460}
1461impl WGPUSType {
1462    pub const WGPUSType_SharedTextureMemoryD3D11Texture2DDescriptor: WGPUSType = WGPUSType(327714);
1463}
1464impl WGPUSType {
1465    pub const WGPUSType_SharedTextureMemoryIOSurfaceDescriptor: WGPUSType = WGPUSType(327715);
1466}
1467impl WGPUSType {
1468    pub const WGPUSType_SharedTextureMemoryEGLImageDescriptor: WGPUSType = WGPUSType(327716);
1469}
1470impl WGPUSType {
1471    pub const WGPUSType_SharedTextureMemoryInitializedBeginState: WGPUSType = WGPUSType(327717);
1472}
1473impl WGPUSType {
1474    pub const WGPUSType_SharedTextureMemoryInitializedEndState: WGPUSType = WGPUSType(327718);
1475}
1476impl WGPUSType {
1477    pub const WGPUSType_SharedTextureMemoryVkImageLayoutBeginState: WGPUSType = WGPUSType(327719);
1478}
1479impl WGPUSType {
1480    pub const WGPUSType_SharedTextureMemoryVkImageLayoutEndState: WGPUSType = WGPUSType(327720);
1481}
1482impl WGPUSType {
1483    pub const WGPUSType_SharedTextureMemoryD3DSwapchainBeginState: WGPUSType = WGPUSType(327721);
1484}
1485impl WGPUSType {
1486    pub const WGPUSType_SharedFenceVkSemaphoreOpaqueFDDescriptor: WGPUSType = WGPUSType(327722);
1487}
1488impl WGPUSType {
1489    pub const WGPUSType_SharedFenceVkSemaphoreOpaqueFDExportInfo: WGPUSType = WGPUSType(327723);
1490}
1491impl WGPUSType {
1492    pub const WGPUSType_SharedFenceSyncFDDescriptor: WGPUSType = WGPUSType(327724);
1493}
1494impl WGPUSType {
1495    pub const WGPUSType_SharedFenceSyncFDExportInfo: WGPUSType = WGPUSType(327725);
1496}
1497impl WGPUSType {
1498    pub const WGPUSType_SharedFenceVkSemaphoreZirconHandleDescriptor: WGPUSType = WGPUSType(327726);
1499}
1500impl WGPUSType {
1501    pub const WGPUSType_SharedFenceVkSemaphoreZirconHandleExportInfo: WGPUSType = WGPUSType(327727);
1502}
1503impl WGPUSType {
1504    pub const WGPUSType_SharedFenceDXGISharedHandleDescriptor: WGPUSType = WGPUSType(327728);
1505}
1506impl WGPUSType {
1507    pub const WGPUSType_SharedFenceDXGISharedHandleExportInfo: WGPUSType = WGPUSType(327729);
1508}
1509impl WGPUSType {
1510    pub const WGPUSType_SharedFenceMTLSharedEventDescriptor: WGPUSType = WGPUSType(327730);
1511}
1512impl WGPUSType {
1513    pub const WGPUSType_SharedFenceMTLSharedEventExportInfo: WGPUSType = WGPUSType(327731);
1514}
1515impl WGPUSType {
1516    pub const WGPUSType_SharedBufferMemoryD3D12ResourceDescriptor: WGPUSType = WGPUSType(327732);
1517}
1518impl WGPUSType {
1519    pub const WGPUSType_StaticSamplerBindingLayout: WGPUSType = WGPUSType(327733);
1520}
1521impl WGPUSType {
1522    pub const WGPUSType_YCbCrVkDescriptor: WGPUSType = WGPUSType(327734);
1523}
1524impl WGPUSType {
1525    pub const WGPUSType_SharedTextureMemoryAHardwareBufferProperties: WGPUSType = WGPUSType(327735);
1526}
1527impl WGPUSType {
1528    pub const WGPUSType_AHardwareBufferProperties: WGPUSType = WGPUSType(327736);
1529}
1530impl WGPUSType {
1531    pub const WGPUSType_DawnTexelCopyBufferRowAlignmentLimits: WGPUSType = WGPUSType(327738);
1532}
1533impl WGPUSType {
1534    pub const WGPUSType_AdapterPropertiesSubgroupMatrixConfigs: WGPUSType = WGPUSType(327739);
1535}
1536impl WGPUSType {
1537    pub const WGPUSType_SharedFenceEGLSyncDescriptor: WGPUSType = WGPUSType(327740);
1538}
1539impl WGPUSType {
1540    pub const WGPUSType_SharedFenceEGLSyncExportInfo: WGPUSType = WGPUSType(327741);
1541}
1542impl WGPUSType {
1543    pub const WGPUSType_DawnInjectedInvalidSType: WGPUSType = WGPUSType(327742);
1544}
1545impl WGPUSType {
1546    pub const WGPUSType_DawnCompilationMessageUtf16: WGPUSType = WGPUSType(327743);
1547}
1548impl WGPUSType {
1549    pub const WGPUSType_DawnFakeBufferOOMForTesting: WGPUSType = WGPUSType(327744);
1550}
1551impl WGPUSType {
1552    pub const WGPUSType_SurfaceDescriptorFromWindowsWinUISwapChainPanel: WGPUSType =
1553        WGPUSType(327745);
1554}
1555impl WGPUSType {
1556    pub const WGPUSType_DawnDeviceAllocatorControl: WGPUSType = WGPUSType(327746);
1557}
1558impl WGPUSType {
1559    pub const WGPUSType_DawnHostMappedPointerLimits: WGPUSType = WGPUSType(327747);
1560}
1561impl WGPUSType {
1562    pub const WGPUSType_RenderPassDescriptorResolveRect: WGPUSType = WGPUSType(327748);
1563}
1564impl WGPUSType {
1565    pub const WGPUSType_Force32: WGPUSType = WGPUSType(2147483647);
1566}
1567#[repr(transparent)]
1568#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1569pub struct WGPUSType(pub ::core::ffi::c_int);
1570impl WGPUSubgroupMatrixComponentType {
1571    pub const WGPUSubgroupMatrixComponentType_F32: WGPUSubgroupMatrixComponentType =
1572        WGPUSubgroupMatrixComponentType(1);
1573}
1574impl WGPUSubgroupMatrixComponentType {
1575    pub const WGPUSubgroupMatrixComponentType_F16: WGPUSubgroupMatrixComponentType =
1576        WGPUSubgroupMatrixComponentType(2);
1577}
1578impl WGPUSubgroupMatrixComponentType {
1579    pub const WGPUSubgroupMatrixComponentType_U32: WGPUSubgroupMatrixComponentType =
1580        WGPUSubgroupMatrixComponentType(3);
1581}
1582impl WGPUSubgroupMatrixComponentType {
1583    pub const WGPUSubgroupMatrixComponentType_I32: WGPUSubgroupMatrixComponentType =
1584        WGPUSubgroupMatrixComponentType(4);
1585}
1586impl WGPUSubgroupMatrixComponentType {
1587    pub const WGPUSubgroupMatrixComponentType_Force32: WGPUSubgroupMatrixComponentType =
1588        WGPUSubgroupMatrixComponentType(2147483647);
1589}
1590#[repr(transparent)]
1591#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1592pub struct WGPUSubgroupMatrixComponentType(pub ::core::ffi::c_int);
1593impl WGPUSurfaceGetCurrentTextureStatus {
1594    pub const WGPUSurfaceGetCurrentTextureStatus_SuccessOptimal:
1595        WGPUSurfaceGetCurrentTextureStatus = WGPUSurfaceGetCurrentTextureStatus(1);
1596}
1597impl WGPUSurfaceGetCurrentTextureStatus {
1598    pub const WGPUSurfaceGetCurrentTextureStatus_SuccessSuboptimal:
1599        WGPUSurfaceGetCurrentTextureStatus = WGPUSurfaceGetCurrentTextureStatus(2);
1600}
1601impl WGPUSurfaceGetCurrentTextureStatus {
1602    pub const WGPUSurfaceGetCurrentTextureStatus_Timeout: WGPUSurfaceGetCurrentTextureStatus =
1603        WGPUSurfaceGetCurrentTextureStatus(3);
1604}
1605impl WGPUSurfaceGetCurrentTextureStatus {
1606    pub const WGPUSurfaceGetCurrentTextureStatus_Outdated: WGPUSurfaceGetCurrentTextureStatus =
1607        WGPUSurfaceGetCurrentTextureStatus(4);
1608}
1609impl WGPUSurfaceGetCurrentTextureStatus {
1610    pub const WGPUSurfaceGetCurrentTextureStatus_Lost: WGPUSurfaceGetCurrentTextureStatus =
1611        WGPUSurfaceGetCurrentTextureStatus(5);
1612}
1613impl WGPUSurfaceGetCurrentTextureStatus {
1614    pub const WGPUSurfaceGetCurrentTextureStatus_Error: WGPUSurfaceGetCurrentTextureStatus =
1615        WGPUSurfaceGetCurrentTextureStatus(6);
1616}
1617impl WGPUSurfaceGetCurrentTextureStatus {
1618    pub const WGPUSurfaceGetCurrentTextureStatus_Force32: WGPUSurfaceGetCurrentTextureStatus =
1619        WGPUSurfaceGetCurrentTextureStatus(2147483647);
1620}
1621#[repr(transparent)]
1622#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1623pub struct WGPUSurfaceGetCurrentTextureStatus(pub ::core::ffi::c_int);
1624impl WGPUTextureAspect {
1625    pub const WGPUTextureAspect_Undefined: WGPUTextureAspect = WGPUTextureAspect(0);
1626}
1627impl WGPUTextureAspect {
1628    pub const WGPUTextureAspect_All: WGPUTextureAspect = WGPUTextureAspect(1);
1629}
1630impl WGPUTextureAspect {
1631    pub const WGPUTextureAspect_StencilOnly: WGPUTextureAspect = WGPUTextureAspect(2);
1632}
1633impl WGPUTextureAspect {
1634    pub const WGPUTextureAspect_DepthOnly: WGPUTextureAspect = WGPUTextureAspect(3);
1635}
1636impl WGPUTextureAspect {
1637    pub const WGPUTextureAspect_Plane0Only: WGPUTextureAspect = WGPUTextureAspect(327680);
1638}
1639impl WGPUTextureAspect {
1640    pub const WGPUTextureAspect_Plane1Only: WGPUTextureAspect = WGPUTextureAspect(327681);
1641}
1642impl WGPUTextureAspect {
1643    pub const WGPUTextureAspect_Plane2Only: WGPUTextureAspect = WGPUTextureAspect(327682);
1644}
1645impl WGPUTextureAspect {
1646    pub const WGPUTextureAspect_Force32: WGPUTextureAspect = WGPUTextureAspect(2147483647);
1647}
1648#[repr(transparent)]
1649#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1650pub struct WGPUTextureAspect(pub ::core::ffi::c_int);
1651impl WGPUTextureDimension {
1652    pub const WGPUTextureDimension_Undefined: WGPUTextureDimension = WGPUTextureDimension(0);
1653}
1654impl WGPUTextureDimension {
1655    pub const WGPUTextureDimension_1D: WGPUTextureDimension = WGPUTextureDimension(1);
1656}
1657impl WGPUTextureDimension {
1658    pub const WGPUTextureDimension_2D: WGPUTextureDimension = WGPUTextureDimension(2);
1659}
1660impl WGPUTextureDimension {
1661    pub const WGPUTextureDimension_3D: WGPUTextureDimension = WGPUTextureDimension(3);
1662}
1663impl WGPUTextureDimension {
1664    pub const WGPUTextureDimension_Force32: WGPUTextureDimension = WGPUTextureDimension(2147483647);
1665}
1666#[repr(transparent)]
1667#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1668pub struct WGPUTextureDimension(pub ::core::ffi::c_int);
1669impl WGPUTextureFormat {
1670    pub const WGPUTextureFormat_Undefined: WGPUTextureFormat = WGPUTextureFormat(0);
1671}
1672impl WGPUTextureFormat {
1673    pub const WGPUTextureFormat_R8Unorm: WGPUTextureFormat = WGPUTextureFormat(1);
1674}
1675impl WGPUTextureFormat {
1676    pub const WGPUTextureFormat_R8Snorm: WGPUTextureFormat = WGPUTextureFormat(2);
1677}
1678impl WGPUTextureFormat {
1679    pub const WGPUTextureFormat_R8Uint: WGPUTextureFormat = WGPUTextureFormat(3);
1680}
1681impl WGPUTextureFormat {
1682    pub const WGPUTextureFormat_R8Sint: WGPUTextureFormat = WGPUTextureFormat(4);
1683}
1684impl WGPUTextureFormat {
1685    pub const WGPUTextureFormat_R16Uint: WGPUTextureFormat = WGPUTextureFormat(5);
1686}
1687impl WGPUTextureFormat {
1688    pub const WGPUTextureFormat_R16Sint: WGPUTextureFormat = WGPUTextureFormat(6);
1689}
1690impl WGPUTextureFormat {
1691    pub const WGPUTextureFormat_R16Float: WGPUTextureFormat = WGPUTextureFormat(7);
1692}
1693impl WGPUTextureFormat {
1694    pub const WGPUTextureFormat_RG8Unorm: WGPUTextureFormat = WGPUTextureFormat(8);
1695}
1696impl WGPUTextureFormat {
1697    pub const WGPUTextureFormat_RG8Snorm: WGPUTextureFormat = WGPUTextureFormat(9);
1698}
1699impl WGPUTextureFormat {
1700    pub const WGPUTextureFormat_RG8Uint: WGPUTextureFormat = WGPUTextureFormat(10);
1701}
1702impl WGPUTextureFormat {
1703    pub const WGPUTextureFormat_RG8Sint: WGPUTextureFormat = WGPUTextureFormat(11);
1704}
1705impl WGPUTextureFormat {
1706    pub const WGPUTextureFormat_R32Float: WGPUTextureFormat = WGPUTextureFormat(12);
1707}
1708impl WGPUTextureFormat {
1709    pub const WGPUTextureFormat_R32Uint: WGPUTextureFormat = WGPUTextureFormat(13);
1710}
1711impl WGPUTextureFormat {
1712    pub const WGPUTextureFormat_R32Sint: WGPUTextureFormat = WGPUTextureFormat(14);
1713}
1714impl WGPUTextureFormat {
1715    pub const WGPUTextureFormat_RG16Uint: WGPUTextureFormat = WGPUTextureFormat(15);
1716}
1717impl WGPUTextureFormat {
1718    pub const WGPUTextureFormat_RG16Sint: WGPUTextureFormat = WGPUTextureFormat(16);
1719}
1720impl WGPUTextureFormat {
1721    pub const WGPUTextureFormat_RG16Float: WGPUTextureFormat = WGPUTextureFormat(17);
1722}
1723impl WGPUTextureFormat {
1724    pub const WGPUTextureFormat_RGBA8Unorm: WGPUTextureFormat = WGPUTextureFormat(18);
1725}
1726impl WGPUTextureFormat {
1727    pub const WGPUTextureFormat_RGBA8UnormSrgb: WGPUTextureFormat = WGPUTextureFormat(19);
1728}
1729impl WGPUTextureFormat {
1730    pub const WGPUTextureFormat_RGBA8Snorm: WGPUTextureFormat = WGPUTextureFormat(20);
1731}
1732impl WGPUTextureFormat {
1733    pub const WGPUTextureFormat_RGBA8Uint: WGPUTextureFormat = WGPUTextureFormat(21);
1734}
1735impl WGPUTextureFormat {
1736    pub const WGPUTextureFormat_RGBA8Sint: WGPUTextureFormat = WGPUTextureFormat(22);
1737}
1738impl WGPUTextureFormat {
1739    pub const WGPUTextureFormat_BGRA8Unorm: WGPUTextureFormat = WGPUTextureFormat(23);
1740}
1741impl WGPUTextureFormat {
1742    pub const WGPUTextureFormat_BGRA8UnormSrgb: WGPUTextureFormat = WGPUTextureFormat(24);
1743}
1744impl WGPUTextureFormat {
1745    pub const WGPUTextureFormat_RGB10A2Uint: WGPUTextureFormat = WGPUTextureFormat(25);
1746}
1747impl WGPUTextureFormat {
1748    pub const WGPUTextureFormat_RGB10A2Unorm: WGPUTextureFormat = WGPUTextureFormat(26);
1749}
1750impl WGPUTextureFormat {
1751    pub const WGPUTextureFormat_RG11B10Ufloat: WGPUTextureFormat = WGPUTextureFormat(27);
1752}
1753impl WGPUTextureFormat {
1754    pub const WGPUTextureFormat_RGB9E5Ufloat: WGPUTextureFormat = WGPUTextureFormat(28);
1755}
1756impl WGPUTextureFormat {
1757    pub const WGPUTextureFormat_RG32Float: WGPUTextureFormat = WGPUTextureFormat(29);
1758}
1759impl WGPUTextureFormat {
1760    pub const WGPUTextureFormat_RG32Uint: WGPUTextureFormat = WGPUTextureFormat(30);
1761}
1762impl WGPUTextureFormat {
1763    pub const WGPUTextureFormat_RG32Sint: WGPUTextureFormat = WGPUTextureFormat(31);
1764}
1765impl WGPUTextureFormat {
1766    pub const WGPUTextureFormat_RGBA16Uint: WGPUTextureFormat = WGPUTextureFormat(32);
1767}
1768impl WGPUTextureFormat {
1769    pub const WGPUTextureFormat_RGBA16Sint: WGPUTextureFormat = WGPUTextureFormat(33);
1770}
1771impl WGPUTextureFormat {
1772    pub const WGPUTextureFormat_RGBA16Float: WGPUTextureFormat = WGPUTextureFormat(34);
1773}
1774impl WGPUTextureFormat {
1775    pub const WGPUTextureFormat_RGBA32Float: WGPUTextureFormat = WGPUTextureFormat(35);
1776}
1777impl WGPUTextureFormat {
1778    pub const WGPUTextureFormat_RGBA32Uint: WGPUTextureFormat = WGPUTextureFormat(36);
1779}
1780impl WGPUTextureFormat {
1781    pub const WGPUTextureFormat_RGBA32Sint: WGPUTextureFormat = WGPUTextureFormat(37);
1782}
1783impl WGPUTextureFormat {
1784    pub const WGPUTextureFormat_Stencil8: WGPUTextureFormat = WGPUTextureFormat(38);
1785}
1786impl WGPUTextureFormat {
1787    pub const WGPUTextureFormat_Depth16Unorm: WGPUTextureFormat = WGPUTextureFormat(39);
1788}
1789impl WGPUTextureFormat {
1790    pub const WGPUTextureFormat_Depth24Plus: WGPUTextureFormat = WGPUTextureFormat(40);
1791}
1792impl WGPUTextureFormat {
1793    pub const WGPUTextureFormat_Depth24PlusStencil8: WGPUTextureFormat = WGPUTextureFormat(41);
1794}
1795impl WGPUTextureFormat {
1796    pub const WGPUTextureFormat_Depth32Float: WGPUTextureFormat = WGPUTextureFormat(42);
1797}
1798impl WGPUTextureFormat {
1799    pub const WGPUTextureFormat_Depth32FloatStencil8: WGPUTextureFormat = WGPUTextureFormat(43);
1800}
1801impl WGPUTextureFormat {
1802    pub const WGPUTextureFormat_BC1RGBAUnorm: WGPUTextureFormat = WGPUTextureFormat(44);
1803}
1804impl WGPUTextureFormat {
1805    pub const WGPUTextureFormat_BC1RGBAUnormSrgb: WGPUTextureFormat = WGPUTextureFormat(45);
1806}
1807impl WGPUTextureFormat {
1808    pub const WGPUTextureFormat_BC2RGBAUnorm: WGPUTextureFormat = WGPUTextureFormat(46);
1809}
1810impl WGPUTextureFormat {
1811    pub const WGPUTextureFormat_BC2RGBAUnormSrgb: WGPUTextureFormat = WGPUTextureFormat(47);
1812}
1813impl WGPUTextureFormat {
1814    pub const WGPUTextureFormat_BC3RGBAUnorm: WGPUTextureFormat = WGPUTextureFormat(48);
1815}
1816impl WGPUTextureFormat {
1817    pub const WGPUTextureFormat_BC3RGBAUnormSrgb: WGPUTextureFormat = WGPUTextureFormat(49);
1818}
1819impl WGPUTextureFormat {
1820    pub const WGPUTextureFormat_BC4RUnorm: WGPUTextureFormat = WGPUTextureFormat(50);
1821}
1822impl WGPUTextureFormat {
1823    pub const WGPUTextureFormat_BC4RSnorm: WGPUTextureFormat = WGPUTextureFormat(51);
1824}
1825impl WGPUTextureFormat {
1826    pub const WGPUTextureFormat_BC5RGUnorm: WGPUTextureFormat = WGPUTextureFormat(52);
1827}
1828impl WGPUTextureFormat {
1829    pub const WGPUTextureFormat_BC5RGSnorm: WGPUTextureFormat = WGPUTextureFormat(53);
1830}
1831impl WGPUTextureFormat {
1832    pub const WGPUTextureFormat_BC6HRGBUfloat: WGPUTextureFormat = WGPUTextureFormat(54);
1833}
1834impl WGPUTextureFormat {
1835    pub const WGPUTextureFormat_BC6HRGBFloat: WGPUTextureFormat = WGPUTextureFormat(55);
1836}
1837impl WGPUTextureFormat {
1838    pub const WGPUTextureFormat_BC7RGBAUnorm: WGPUTextureFormat = WGPUTextureFormat(56);
1839}
1840impl WGPUTextureFormat {
1841    pub const WGPUTextureFormat_BC7RGBAUnormSrgb: WGPUTextureFormat = WGPUTextureFormat(57);
1842}
1843impl WGPUTextureFormat {
1844    pub const WGPUTextureFormat_ETC2RGB8Unorm: WGPUTextureFormat = WGPUTextureFormat(58);
1845}
1846impl WGPUTextureFormat {
1847    pub const WGPUTextureFormat_ETC2RGB8UnormSrgb: WGPUTextureFormat = WGPUTextureFormat(59);
1848}
1849impl WGPUTextureFormat {
1850    pub const WGPUTextureFormat_ETC2RGB8A1Unorm: WGPUTextureFormat = WGPUTextureFormat(60);
1851}
1852impl WGPUTextureFormat {
1853    pub const WGPUTextureFormat_ETC2RGB8A1UnormSrgb: WGPUTextureFormat = WGPUTextureFormat(61);
1854}
1855impl WGPUTextureFormat {
1856    pub const WGPUTextureFormat_ETC2RGBA8Unorm: WGPUTextureFormat = WGPUTextureFormat(62);
1857}
1858impl WGPUTextureFormat {
1859    pub const WGPUTextureFormat_ETC2RGBA8UnormSrgb: WGPUTextureFormat = WGPUTextureFormat(63);
1860}
1861impl WGPUTextureFormat {
1862    pub const WGPUTextureFormat_EACR11Unorm: WGPUTextureFormat = WGPUTextureFormat(64);
1863}
1864impl WGPUTextureFormat {
1865    pub const WGPUTextureFormat_EACR11Snorm: WGPUTextureFormat = WGPUTextureFormat(65);
1866}
1867impl WGPUTextureFormat {
1868    pub const WGPUTextureFormat_EACRG11Unorm: WGPUTextureFormat = WGPUTextureFormat(66);
1869}
1870impl WGPUTextureFormat {
1871    pub const WGPUTextureFormat_EACRG11Snorm: WGPUTextureFormat = WGPUTextureFormat(67);
1872}
1873impl WGPUTextureFormat {
1874    pub const WGPUTextureFormat_ASTC4x4Unorm: WGPUTextureFormat = WGPUTextureFormat(68);
1875}
1876impl WGPUTextureFormat {
1877    pub const WGPUTextureFormat_ASTC4x4UnormSrgb: WGPUTextureFormat = WGPUTextureFormat(69);
1878}
1879impl WGPUTextureFormat {
1880    pub const WGPUTextureFormat_ASTC5x4Unorm: WGPUTextureFormat = WGPUTextureFormat(70);
1881}
1882impl WGPUTextureFormat {
1883    pub const WGPUTextureFormat_ASTC5x4UnormSrgb: WGPUTextureFormat = WGPUTextureFormat(71);
1884}
1885impl WGPUTextureFormat {
1886    pub const WGPUTextureFormat_ASTC5x5Unorm: WGPUTextureFormat = WGPUTextureFormat(72);
1887}
1888impl WGPUTextureFormat {
1889    pub const WGPUTextureFormat_ASTC5x5UnormSrgb: WGPUTextureFormat = WGPUTextureFormat(73);
1890}
1891impl WGPUTextureFormat {
1892    pub const WGPUTextureFormat_ASTC6x5Unorm: WGPUTextureFormat = WGPUTextureFormat(74);
1893}
1894impl WGPUTextureFormat {
1895    pub const WGPUTextureFormat_ASTC6x5UnormSrgb: WGPUTextureFormat = WGPUTextureFormat(75);
1896}
1897impl WGPUTextureFormat {
1898    pub const WGPUTextureFormat_ASTC6x6Unorm: WGPUTextureFormat = WGPUTextureFormat(76);
1899}
1900impl WGPUTextureFormat {
1901    pub const WGPUTextureFormat_ASTC6x6UnormSrgb: WGPUTextureFormat = WGPUTextureFormat(77);
1902}
1903impl WGPUTextureFormat {
1904    pub const WGPUTextureFormat_ASTC8x5Unorm: WGPUTextureFormat = WGPUTextureFormat(78);
1905}
1906impl WGPUTextureFormat {
1907    pub const WGPUTextureFormat_ASTC8x5UnormSrgb: WGPUTextureFormat = WGPUTextureFormat(79);
1908}
1909impl WGPUTextureFormat {
1910    pub const WGPUTextureFormat_ASTC8x6Unorm: WGPUTextureFormat = WGPUTextureFormat(80);
1911}
1912impl WGPUTextureFormat {
1913    pub const WGPUTextureFormat_ASTC8x6UnormSrgb: WGPUTextureFormat = WGPUTextureFormat(81);
1914}
1915impl WGPUTextureFormat {
1916    pub const WGPUTextureFormat_ASTC8x8Unorm: WGPUTextureFormat = WGPUTextureFormat(82);
1917}
1918impl WGPUTextureFormat {
1919    pub const WGPUTextureFormat_ASTC8x8UnormSrgb: WGPUTextureFormat = WGPUTextureFormat(83);
1920}
1921impl WGPUTextureFormat {
1922    pub const WGPUTextureFormat_ASTC10x5Unorm: WGPUTextureFormat = WGPUTextureFormat(84);
1923}
1924impl WGPUTextureFormat {
1925    pub const WGPUTextureFormat_ASTC10x5UnormSrgb: WGPUTextureFormat = WGPUTextureFormat(85);
1926}
1927impl WGPUTextureFormat {
1928    pub const WGPUTextureFormat_ASTC10x6Unorm: WGPUTextureFormat = WGPUTextureFormat(86);
1929}
1930impl WGPUTextureFormat {
1931    pub const WGPUTextureFormat_ASTC10x6UnormSrgb: WGPUTextureFormat = WGPUTextureFormat(87);
1932}
1933impl WGPUTextureFormat {
1934    pub const WGPUTextureFormat_ASTC10x8Unorm: WGPUTextureFormat = WGPUTextureFormat(88);
1935}
1936impl WGPUTextureFormat {
1937    pub const WGPUTextureFormat_ASTC10x8UnormSrgb: WGPUTextureFormat = WGPUTextureFormat(89);
1938}
1939impl WGPUTextureFormat {
1940    pub const WGPUTextureFormat_ASTC10x10Unorm: WGPUTextureFormat = WGPUTextureFormat(90);
1941}
1942impl WGPUTextureFormat {
1943    pub const WGPUTextureFormat_ASTC10x10UnormSrgb: WGPUTextureFormat = WGPUTextureFormat(91);
1944}
1945impl WGPUTextureFormat {
1946    pub const WGPUTextureFormat_ASTC12x10Unorm: WGPUTextureFormat = WGPUTextureFormat(92);
1947}
1948impl WGPUTextureFormat {
1949    pub const WGPUTextureFormat_ASTC12x10UnormSrgb: WGPUTextureFormat = WGPUTextureFormat(93);
1950}
1951impl WGPUTextureFormat {
1952    pub const WGPUTextureFormat_ASTC12x12Unorm: WGPUTextureFormat = WGPUTextureFormat(94);
1953}
1954impl WGPUTextureFormat {
1955    pub const WGPUTextureFormat_ASTC12x12UnormSrgb: WGPUTextureFormat = WGPUTextureFormat(95);
1956}
1957impl WGPUTextureFormat {
1958    pub const WGPUTextureFormat_R16Unorm: WGPUTextureFormat = WGPUTextureFormat(327680);
1959}
1960impl WGPUTextureFormat {
1961    pub const WGPUTextureFormat_RG16Unorm: WGPUTextureFormat = WGPUTextureFormat(327681);
1962}
1963impl WGPUTextureFormat {
1964    pub const WGPUTextureFormat_RGBA16Unorm: WGPUTextureFormat = WGPUTextureFormat(327682);
1965}
1966impl WGPUTextureFormat {
1967    pub const WGPUTextureFormat_R16Snorm: WGPUTextureFormat = WGPUTextureFormat(327683);
1968}
1969impl WGPUTextureFormat {
1970    pub const WGPUTextureFormat_RG16Snorm: WGPUTextureFormat = WGPUTextureFormat(327684);
1971}
1972impl WGPUTextureFormat {
1973    pub const WGPUTextureFormat_RGBA16Snorm: WGPUTextureFormat = WGPUTextureFormat(327685);
1974}
1975impl WGPUTextureFormat {
1976    pub const WGPUTextureFormat_R8BG8Biplanar420Unorm: WGPUTextureFormat =
1977        WGPUTextureFormat(327686);
1978}
1979impl WGPUTextureFormat {
1980    pub const WGPUTextureFormat_R10X6BG10X6Biplanar420Unorm: WGPUTextureFormat =
1981        WGPUTextureFormat(327687);
1982}
1983impl WGPUTextureFormat {
1984    pub const WGPUTextureFormat_R8BG8A8Triplanar420Unorm: WGPUTextureFormat =
1985        WGPUTextureFormat(327688);
1986}
1987impl WGPUTextureFormat {
1988    pub const WGPUTextureFormat_R8BG8Biplanar422Unorm: WGPUTextureFormat =
1989        WGPUTextureFormat(327689);
1990}
1991impl WGPUTextureFormat {
1992    pub const WGPUTextureFormat_R8BG8Biplanar444Unorm: WGPUTextureFormat =
1993        WGPUTextureFormat(327690);
1994}
1995impl WGPUTextureFormat {
1996    pub const WGPUTextureFormat_R10X6BG10X6Biplanar422Unorm: WGPUTextureFormat =
1997        WGPUTextureFormat(327691);
1998}
1999impl WGPUTextureFormat {
2000    pub const WGPUTextureFormat_R10X6BG10X6Biplanar444Unorm: WGPUTextureFormat =
2001        WGPUTextureFormat(327692);
2002}
2003impl WGPUTextureFormat {
2004    pub const WGPUTextureFormat_External: WGPUTextureFormat = WGPUTextureFormat(327693);
2005}
2006impl WGPUTextureFormat {
2007    pub const WGPUTextureFormat_Force32: WGPUTextureFormat = WGPUTextureFormat(2147483647);
2008}
2009#[repr(transparent)]
2010#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2011pub struct WGPUTextureFormat(pub ::core::ffi::c_int);
2012impl WGPUTextureSampleType {
2013    pub const WGPUTextureSampleType_BindingNotUsed: WGPUTextureSampleType =
2014        WGPUTextureSampleType(0);
2015}
2016impl WGPUTextureSampleType {
2017    pub const WGPUTextureSampleType_Undefined: WGPUTextureSampleType = WGPUTextureSampleType(1);
2018}
2019impl WGPUTextureSampleType {
2020    pub const WGPUTextureSampleType_Float: WGPUTextureSampleType = WGPUTextureSampleType(2);
2021}
2022impl WGPUTextureSampleType {
2023    pub const WGPUTextureSampleType_UnfilterableFloat: WGPUTextureSampleType =
2024        WGPUTextureSampleType(3);
2025}
2026impl WGPUTextureSampleType {
2027    pub const WGPUTextureSampleType_Depth: WGPUTextureSampleType = WGPUTextureSampleType(4);
2028}
2029impl WGPUTextureSampleType {
2030    pub const WGPUTextureSampleType_Sint: WGPUTextureSampleType = WGPUTextureSampleType(5);
2031}
2032impl WGPUTextureSampleType {
2033    pub const WGPUTextureSampleType_Uint: WGPUTextureSampleType = WGPUTextureSampleType(6);
2034}
2035impl WGPUTextureSampleType {
2036    pub const WGPUTextureSampleType_Force32: WGPUTextureSampleType =
2037        WGPUTextureSampleType(2147483647);
2038}
2039#[repr(transparent)]
2040#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2041pub struct WGPUTextureSampleType(pub ::core::ffi::c_int);
2042impl WGPUTextureViewDimension {
2043    pub const WGPUTextureViewDimension_Undefined: WGPUTextureViewDimension =
2044        WGPUTextureViewDimension(0);
2045}
2046impl WGPUTextureViewDimension {
2047    pub const WGPUTextureViewDimension_1D: WGPUTextureViewDimension = WGPUTextureViewDimension(1);
2048}
2049impl WGPUTextureViewDimension {
2050    pub const WGPUTextureViewDimension_2D: WGPUTextureViewDimension = WGPUTextureViewDimension(2);
2051}
2052impl WGPUTextureViewDimension {
2053    pub const WGPUTextureViewDimension_2DArray: WGPUTextureViewDimension =
2054        WGPUTextureViewDimension(3);
2055}
2056impl WGPUTextureViewDimension {
2057    pub const WGPUTextureViewDimension_Cube: WGPUTextureViewDimension = WGPUTextureViewDimension(4);
2058}
2059impl WGPUTextureViewDimension {
2060    pub const WGPUTextureViewDimension_CubeArray: WGPUTextureViewDimension =
2061        WGPUTextureViewDimension(5);
2062}
2063impl WGPUTextureViewDimension {
2064    pub const WGPUTextureViewDimension_3D: WGPUTextureViewDimension = WGPUTextureViewDimension(6);
2065}
2066impl WGPUTextureViewDimension {
2067    pub const WGPUTextureViewDimension_Force32: WGPUTextureViewDimension =
2068        WGPUTextureViewDimension(2147483647);
2069}
2070#[repr(transparent)]
2071#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2072pub struct WGPUTextureViewDimension(pub ::core::ffi::c_int);
2073impl WGPUToneMappingMode {
2074    pub const WGPUToneMappingMode_Standard: WGPUToneMappingMode = WGPUToneMappingMode(1);
2075}
2076impl WGPUToneMappingMode {
2077    pub const WGPUToneMappingMode_Extended: WGPUToneMappingMode = WGPUToneMappingMode(2);
2078}
2079impl WGPUToneMappingMode {
2080    pub const WGPUToneMappingMode_Force32: WGPUToneMappingMode = WGPUToneMappingMode(2147483647);
2081}
2082#[repr(transparent)]
2083#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2084pub struct WGPUToneMappingMode(pub ::core::ffi::c_int);
2085impl WGPUVertexFormat {
2086    pub const WGPUVertexFormat_Uint8: WGPUVertexFormat = WGPUVertexFormat(1);
2087}
2088impl WGPUVertexFormat {
2089    pub const WGPUVertexFormat_Uint8x2: WGPUVertexFormat = WGPUVertexFormat(2);
2090}
2091impl WGPUVertexFormat {
2092    pub const WGPUVertexFormat_Uint8x4: WGPUVertexFormat = WGPUVertexFormat(3);
2093}
2094impl WGPUVertexFormat {
2095    pub const WGPUVertexFormat_Sint8: WGPUVertexFormat = WGPUVertexFormat(4);
2096}
2097impl WGPUVertexFormat {
2098    pub const WGPUVertexFormat_Sint8x2: WGPUVertexFormat = WGPUVertexFormat(5);
2099}
2100impl WGPUVertexFormat {
2101    pub const WGPUVertexFormat_Sint8x4: WGPUVertexFormat = WGPUVertexFormat(6);
2102}
2103impl WGPUVertexFormat {
2104    pub const WGPUVertexFormat_Unorm8: WGPUVertexFormat = WGPUVertexFormat(7);
2105}
2106impl WGPUVertexFormat {
2107    pub const WGPUVertexFormat_Unorm8x2: WGPUVertexFormat = WGPUVertexFormat(8);
2108}
2109impl WGPUVertexFormat {
2110    pub const WGPUVertexFormat_Unorm8x4: WGPUVertexFormat = WGPUVertexFormat(9);
2111}
2112impl WGPUVertexFormat {
2113    pub const WGPUVertexFormat_Snorm8: WGPUVertexFormat = WGPUVertexFormat(10);
2114}
2115impl WGPUVertexFormat {
2116    pub const WGPUVertexFormat_Snorm8x2: WGPUVertexFormat = WGPUVertexFormat(11);
2117}
2118impl WGPUVertexFormat {
2119    pub const WGPUVertexFormat_Snorm8x4: WGPUVertexFormat = WGPUVertexFormat(12);
2120}
2121impl WGPUVertexFormat {
2122    pub const WGPUVertexFormat_Uint16: WGPUVertexFormat = WGPUVertexFormat(13);
2123}
2124impl WGPUVertexFormat {
2125    pub const WGPUVertexFormat_Uint16x2: WGPUVertexFormat = WGPUVertexFormat(14);
2126}
2127impl WGPUVertexFormat {
2128    pub const WGPUVertexFormat_Uint16x4: WGPUVertexFormat = WGPUVertexFormat(15);
2129}
2130impl WGPUVertexFormat {
2131    pub const WGPUVertexFormat_Sint16: WGPUVertexFormat = WGPUVertexFormat(16);
2132}
2133impl WGPUVertexFormat {
2134    pub const WGPUVertexFormat_Sint16x2: WGPUVertexFormat = WGPUVertexFormat(17);
2135}
2136impl WGPUVertexFormat {
2137    pub const WGPUVertexFormat_Sint16x4: WGPUVertexFormat = WGPUVertexFormat(18);
2138}
2139impl WGPUVertexFormat {
2140    pub const WGPUVertexFormat_Unorm16: WGPUVertexFormat = WGPUVertexFormat(19);
2141}
2142impl WGPUVertexFormat {
2143    pub const WGPUVertexFormat_Unorm16x2: WGPUVertexFormat = WGPUVertexFormat(20);
2144}
2145impl WGPUVertexFormat {
2146    pub const WGPUVertexFormat_Unorm16x4: WGPUVertexFormat = WGPUVertexFormat(21);
2147}
2148impl WGPUVertexFormat {
2149    pub const WGPUVertexFormat_Snorm16: WGPUVertexFormat = WGPUVertexFormat(22);
2150}
2151impl WGPUVertexFormat {
2152    pub const WGPUVertexFormat_Snorm16x2: WGPUVertexFormat = WGPUVertexFormat(23);
2153}
2154impl WGPUVertexFormat {
2155    pub const WGPUVertexFormat_Snorm16x4: WGPUVertexFormat = WGPUVertexFormat(24);
2156}
2157impl WGPUVertexFormat {
2158    pub const WGPUVertexFormat_Float16: WGPUVertexFormat = WGPUVertexFormat(25);
2159}
2160impl WGPUVertexFormat {
2161    pub const WGPUVertexFormat_Float16x2: WGPUVertexFormat = WGPUVertexFormat(26);
2162}
2163impl WGPUVertexFormat {
2164    pub const WGPUVertexFormat_Float16x4: WGPUVertexFormat = WGPUVertexFormat(27);
2165}
2166impl WGPUVertexFormat {
2167    pub const WGPUVertexFormat_Float32: WGPUVertexFormat = WGPUVertexFormat(28);
2168}
2169impl WGPUVertexFormat {
2170    pub const WGPUVertexFormat_Float32x2: WGPUVertexFormat = WGPUVertexFormat(29);
2171}
2172impl WGPUVertexFormat {
2173    pub const WGPUVertexFormat_Float32x3: WGPUVertexFormat = WGPUVertexFormat(30);
2174}
2175impl WGPUVertexFormat {
2176    pub const WGPUVertexFormat_Float32x4: WGPUVertexFormat = WGPUVertexFormat(31);
2177}
2178impl WGPUVertexFormat {
2179    pub const WGPUVertexFormat_Uint32: WGPUVertexFormat = WGPUVertexFormat(32);
2180}
2181impl WGPUVertexFormat {
2182    pub const WGPUVertexFormat_Uint32x2: WGPUVertexFormat = WGPUVertexFormat(33);
2183}
2184impl WGPUVertexFormat {
2185    pub const WGPUVertexFormat_Uint32x3: WGPUVertexFormat = WGPUVertexFormat(34);
2186}
2187impl WGPUVertexFormat {
2188    pub const WGPUVertexFormat_Uint32x4: WGPUVertexFormat = WGPUVertexFormat(35);
2189}
2190impl WGPUVertexFormat {
2191    pub const WGPUVertexFormat_Sint32: WGPUVertexFormat = WGPUVertexFormat(36);
2192}
2193impl WGPUVertexFormat {
2194    pub const WGPUVertexFormat_Sint32x2: WGPUVertexFormat = WGPUVertexFormat(37);
2195}
2196impl WGPUVertexFormat {
2197    pub const WGPUVertexFormat_Sint32x3: WGPUVertexFormat = WGPUVertexFormat(38);
2198}
2199impl WGPUVertexFormat {
2200    pub const WGPUVertexFormat_Sint32x4: WGPUVertexFormat = WGPUVertexFormat(39);
2201}
2202impl WGPUVertexFormat {
2203    pub const WGPUVertexFormat_Unorm10_10_10_2: WGPUVertexFormat = WGPUVertexFormat(40);
2204}
2205impl WGPUVertexFormat {
2206    pub const WGPUVertexFormat_Unorm8x4BGRA: WGPUVertexFormat = WGPUVertexFormat(41);
2207}
2208impl WGPUVertexFormat {
2209    pub const WGPUVertexFormat_Force32: WGPUVertexFormat = WGPUVertexFormat(2147483647);
2210}
2211#[repr(transparent)]
2212#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2213pub struct WGPUVertexFormat(pub ::core::ffi::c_int);
2214impl WGPUVertexStepMode {
2215    pub const WGPUVertexStepMode_Undefined: WGPUVertexStepMode = WGPUVertexStepMode(0);
2216}
2217impl WGPUVertexStepMode {
2218    pub const WGPUVertexStepMode_Vertex: WGPUVertexStepMode = WGPUVertexStepMode(1);
2219}
2220impl WGPUVertexStepMode {
2221    pub const WGPUVertexStepMode_Instance: WGPUVertexStepMode = WGPUVertexStepMode(2);
2222}
2223impl WGPUVertexStepMode {
2224    pub const WGPUVertexStepMode_Force32: WGPUVertexStepMode = WGPUVertexStepMode(2147483647);
2225}
2226#[repr(transparent)]
2227#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2228pub struct WGPUVertexStepMode(pub ::core::ffi::c_int);
2229impl WGPUWaitStatus {
2230    pub const WGPUWaitStatus_Success: WGPUWaitStatus = WGPUWaitStatus(1);
2231}
2232impl WGPUWaitStatus {
2233    pub const WGPUWaitStatus_TimedOut: WGPUWaitStatus = WGPUWaitStatus(2);
2234}
2235impl WGPUWaitStatus {
2236    pub const WGPUWaitStatus_Error: WGPUWaitStatus = WGPUWaitStatus(3);
2237}
2238impl WGPUWaitStatus {
2239    pub const WGPUWaitStatus_Force32: WGPUWaitStatus = WGPUWaitStatus(2147483647);
2240}
2241#[repr(transparent)]
2242#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2243pub struct WGPUWaitStatus(pub ::core::ffi::c_int);
2244impl WGPUWGSLLanguageFeatureName {
2245    pub const WGPUWGSLLanguageFeatureName_ReadonlyAndReadwriteStorageTextures:
2246        WGPUWGSLLanguageFeatureName = WGPUWGSLLanguageFeatureName(1);
2247}
2248impl WGPUWGSLLanguageFeatureName {
2249    pub const WGPUWGSLLanguageFeatureName_Packed4x8IntegerDotProduct: WGPUWGSLLanguageFeatureName =
2250        WGPUWGSLLanguageFeatureName(2);
2251}
2252impl WGPUWGSLLanguageFeatureName {
2253    pub const WGPUWGSLLanguageFeatureName_UnrestrictedPointerParameters:
2254        WGPUWGSLLanguageFeatureName = WGPUWGSLLanguageFeatureName(3);
2255}
2256impl WGPUWGSLLanguageFeatureName {
2257    pub const WGPUWGSLLanguageFeatureName_PointerCompositeAccess: WGPUWGSLLanguageFeatureName =
2258        WGPUWGSLLanguageFeatureName(4);
2259}
2260impl WGPUWGSLLanguageFeatureName {
2261    pub const WGPUWGSLLanguageFeatureName_SizedBindingArray: WGPUWGSLLanguageFeatureName =
2262        WGPUWGSLLanguageFeatureName(5);
2263}
2264impl WGPUWGSLLanguageFeatureName {
2265    pub const WGPUWGSLLanguageFeatureName_ChromiumTestingUnimplemented:
2266        WGPUWGSLLanguageFeatureName = WGPUWGSLLanguageFeatureName(327680);
2267}
2268impl WGPUWGSLLanguageFeatureName {
2269    pub const WGPUWGSLLanguageFeatureName_ChromiumTestingUnsafeExperimental:
2270        WGPUWGSLLanguageFeatureName = WGPUWGSLLanguageFeatureName(327681);
2271}
2272impl WGPUWGSLLanguageFeatureName {
2273    pub const WGPUWGSLLanguageFeatureName_ChromiumTestingExperimental: WGPUWGSLLanguageFeatureName =
2274        WGPUWGSLLanguageFeatureName(327682);
2275}
2276impl WGPUWGSLLanguageFeatureName {
2277    pub const WGPUWGSLLanguageFeatureName_ChromiumTestingShippedWithKillswitch:
2278        WGPUWGSLLanguageFeatureName = WGPUWGSLLanguageFeatureName(327683);
2279}
2280impl WGPUWGSLLanguageFeatureName {
2281    pub const WGPUWGSLLanguageFeatureName_ChromiumTestingShipped: WGPUWGSLLanguageFeatureName =
2282        WGPUWGSLLanguageFeatureName(327684);
2283}
2284impl WGPUWGSLLanguageFeatureName {
2285    pub const WGPUWGSLLanguageFeatureName_Force32: WGPUWGSLLanguageFeatureName =
2286        WGPUWGSLLanguageFeatureName(2147483647);
2287}
2288#[repr(transparent)]
2289#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2290pub struct WGPUWGSLLanguageFeatureName(pub ::core::ffi::c_int);
2291pub type WGPUBufferUsage = WGPUFlags;
2292pub const WGPUBufferUsage_None: WGPUBufferUsage = 0;
2293pub const WGPUBufferUsage_MapRead: WGPUBufferUsage = 1;
2294pub const WGPUBufferUsage_MapWrite: WGPUBufferUsage = 2;
2295pub const WGPUBufferUsage_CopySrc: WGPUBufferUsage = 4;
2296pub const WGPUBufferUsage_CopyDst: WGPUBufferUsage = 8;
2297pub const WGPUBufferUsage_Index: WGPUBufferUsage = 16;
2298pub const WGPUBufferUsage_Vertex: WGPUBufferUsage = 32;
2299pub const WGPUBufferUsage_Uniform: WGPUBufferUsage = 64;
2300pub const WGPUBufferUsage_Storage: WGPUBufferUsage = 128;
2301pub const WGPUBufferUsage_Indirect: WGPUBufferUsage = 256;
2302pub const WGPUBufferUsage_QueryResolve: WGPUBufferUsage = 512;
2303pub type WGPUColorWriteMask = WGPUFlags;
2304pub const WGPUColorWriteMask_None: WGPUColorWriteMask = 0;
2305pub const WGPUColorWriteMask_Red: WGPUColorWriteMask = 1;
2306pub const WGPUColorWriteMask_Green: WGPUColorWriteMask = 2;
2307pub const WGPUColorWriteMask_Blue: WGPUColorWriteMask = 4;
2308pub const WGPUColorWriteMask_Alpha: WGPUColorWriteMask = 8;
2309pub const WGPUColorWriteMask_All: WGPUColorWriteMask = 15;
2310pub type WGPUHeapProperty = WGPUFlags;
2311pub const WGPUHeapProperty_None: WGPUHeapProperty = 0;
2312pub const WGPUHeapProperty_DeviceLocal: WGPUHeapProperty = 1;
2313pub const WGPUHeapProperty_HostVisible: WGPUHeapProperty = 2;
2314pub const WGPUHeapProperty_HostCoherent: WGPUHeapProperty = 4;
2315pub const WGPUHeapProperty_HostUncached: WGPUHeapProperty = 8;
2316pub const WGPUHeapProperty_HostCached: WGPUHeapProperty = 16;
2317pub type WGPUMapMode = WGPUFlags;
2318pub const WGPUMapMode_None: WGPUMapMode = 0;
2319pub const WGPUMapMode_Read: WGPUMapMode = 1;
2320pub const WGPUMapMode_Write: WGPUMapMode = 2;
2321pub type WGPUShaderStage = WGPUFlags;
2322pub const WGPUShaderStage_None: WGPUShaderStage = 0;
2323pub const WGPUShaderStage_Vertex: WGPUShaderStage = 1;
2324pub const WGPUShaderStage_Fragment: WGPUShaderStage = 2;
2325pub const WGPUShaderStage_Compute: WGPUShaderStage = 4;
2326pub type WGPUTextureUsage = WGPUFlags;
2327pub const WGPUTextureUsage_None: WGPUTextureUsage = 0;
2328pub const WGPUTextureUsage_CopySrc: WGPUTextureUsage = 1;
2329pub const WGPUTextureUsage_CopyDst: WGPUTextureUsage = 2;
2330pub const WGPUTextureUsage_TextureBinding: WGPUTextureUsage = 4;
2331pub const WGPUTextureUsage_StorageBinding: WGPUTextureUsage = 8;
2332pub const WGPUTextureUsage_RenderAttachment: WGPUTextureUsage = 16;
2333pub const WGPUTextureUsage_TransientAttachment: WGPUTextureUsage = 32;
2334pub const WGPUTextureUsage_StorageAttachment: WGPUTextureUsage = 64;
2335pub type WGPUCallback =
2336    ::core::option::Option<unsafe extern "C" fn(userdata: *mut ::core::ffi::c_void)>;
2337pub type WGPUDawnLoadCacheDataFunction = ::core::option::Option<
2338    unsafe extern "C" fn(
2339        key: *const ::core::ffi::c_void,
2340        keySize: usize,
2341        value: *mut ::core::ffi::c_void,
2342        valueSize: usize,
2343        userdata: *mut ::core::ffi::c_void,
2344    ) -> usize,
2345>;
2346pub type WGPUDawnStoreCacheDataFunction = ::core::option::Option<
2347    unsafe extern "C" fn(
2348        key: *const ::core::ffi::c_void,
2349        keySize: usize,
2350        value: *const ::core::ffi::c_void,
2351        valueSize: usize,
2352        userdata: *mut ::core::ffi::c_void,
2353    ),
2354>;
2355pub type WGPUProc = ::core::option::Option<unsafe extern "C" fn()>;
2356pub type WGPUBufferMapCallback = ::core::option::Option<
2357    unsafe extern "C" fn(
2358        status: WGPUMapAsyncStatus,
2359        message: WGPUStringView,
2360        userdata1: *mut ::core::ffi::c_void,
2361        userdata2: *mut ::core::ffi::c_void,
2362    ),
2363>;
2364pub type WGPUCompilationInfoCallback = ::core::option::Option<
2365    unsafe extern "C" fn(
2366        status: WGPUCompilationInfoRequestStatus,
2367        compilationInfo: *const WGPUCompilationInfo,
2368        userdata1: *mut ::core::ffi::c_void,
2369        userdata2: *mut ::core::ffi::c_void,
2370    ),
2371>;
2372pub type WGPUCreateComputePipelineAsyncCallback = ::core::option::Option<
2373    unsafe extern "C" fn(
2374        status: WGPUCreatePipelineAsyncStatus,
2375        pipeline: WGPUComputePipeline,
2376        message: WGPUStringView,
2377        userdata1: *mut ::core::ffi::c_void,
2378        userdata2: *mut ::core::ffi::c_void,
2379    ),
2380>;
2381pub type WGPUCreateRenderPipelineAsyncCallback = ::core::option::Option<
2382    unsafe extern "C" fn(
2383        status: WGPUCreatePipelineAsyncStatus,
2384        pipeline: WGPURenderPipeline,
2385        message: WGPUStringView,
2386        userdata1: *mut ::core::ffi::c_void,
2387        userdata2: *mut ::core::ffi::c_void,
2388    ),
2389>;
2390pub type WGPUDeviceLostCallback = ::core::option::Option<
2391    unsafe extern "C" fn(
2392        device: *const WGPUDevice,
2393        reason: WGPUDeviceLostReason,
2394        message: WGPUStringView,
2395        userdata1: *mut ::core::ffi::c_void,
2396        userdata2: *mut ::core::ffi::c_void,
2397    ),
2398>;
2399pub type WGPULoggingCallback = ::core::option::Option<
2400    unsafe extern "C" fn(
2401        type_: WGPULoggingType,
2402        message: WGPUStringView,
2403        userdata1: *mut ::core::ffi::c_void,
2404        userdata2: *mut ::core::ffi::c_void,
2405    ),
2406>;
2407pub type WGPUPopErrorScopeCallback = ::core::option::Option<
2408    unsafe extern "C" fn(
2409        status: WGPUPopErrorScopeStatus,
2410        type_: WGPUErrorType,
2411        message: WGPUStringView,
2412        userdata1: *mut ::core::ffi::c_void,
2413        userdata2: *mut ::core::ffi::c_void,
2414    ),
2415>;
2416pub type WGPUQueueWorkDoneCallback = ::core::option::Option<
2417    unsafe extern "C" fn(
2418        status: WGPUQueueWorkDoneStatus,
2419        userdata1: *mut ::core::ffi::c_void,
2420        userdata2: *mut ::core::ffi::c_void,
2421    ),
2422>;
2423pub type WGPURequestAdapterCallback = ::core::option::Option<
2424    unsafe extern "C" fn(
2425        status: WGPURequestAdapterStatus,
2426        adapter: WGPUAdapter,
2427        message: WGPUStringView,
2428        userdata1: *mut ::core::ffi::c_void,
2429        userdata2: *mut ::core::ffi::c_void,
2430    ),
2431>;
2432pub type WGPURequestDeviceCallback = ::core::option::Option<
2433    unsafe extern "C" fn(
2434        status: WGPURequestDeviceStatus,
2435        device: WGPUDevice,
2436        message: WGPUStringView,
2437        userdata1: *mut ::core::ffi::c_void,
2438        userdata2: *mut ::core::ffi::c_void,
2439    ),
2440>;
2441pub type WGPUUncapturedErrorCallback = ::core::option::Option<
2442    unsafe extern "C" fn(
2443        device: *const WGPUDevice,
2444        type_: WGPUErrorType,
2445        message: WGPUStringView,
2446        userdata1: *mut ::core::ffi::c_void,
2447        userdata2: *mut ::core::ffi::c_void,
2448    ),
2449>;
2450#[repr(C)]
2451#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2452pub struct WGPUChainedStruct {
2453    pub next: *mut WGPUChainedStruct,
2454    pub sType: WGPUSType,
2455}
2456#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2457const _: () = {
2458    ["Size of WGPUChainedStruct"][::core::mem::size_of::<WGPUChainedStruct>() - 16usize];
2459    ["Alignment of WGPUChainedStruct"][::core::mem::align_of::<WGPUChainedStruct>() - 8usize];
2460    ["Offset of field: WGPUChainedStruct::next"]
2461        [::core::mem::offset_of!(WGPUChainedStruct, next) - 0usize];
2462    ["Offset of field: WGPUChainedStruct::sType"]
2463        [::core::mem::offset_of!(WGPUChainedStruct, sType) - 8usize];
2464};
2465impl Default for WGPUChainedStruct {
2466    fn default() -> Self {
2467        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2468        unsafe {
2469            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2470            s.assume_init()
2471        }
2472    }
2473}
2474#[repr(C)]
2475#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2476pub struct WGPUBufferMapCallbackInfo {
2477    pub nextInChain: *mut WGPUChainedStruct,
2478    pub mode: WGPUCallbackMode,
2479    pub callback: WGPUBufferMapCallback,
2480    pub userdata1: *mut ::core::ffi::c_void,
2481    pub userdata2: *mut ::core::ffi::c_void,
2482}
2483#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2484const _: () = {
2485    ["Size of WGPUBufferMapCallbackInfo"]
2486        [::core::mem::size_of::<WGPUBufferMapCallbackInfo>() - 40usize];
2487    ["Alignment of WGPUBufferMapCallbackInfo"]
2488        [::core::mem::align_of::<WGPUBufferMapCallbackInfo>() - 8usize];
2489    ["Offset of field: WGPUBufferMapCallbackInfo::nextInChain"]
2490        [::core::mem::offset_of!(WGPUBufferMapCallbackInfo, nextInChain) - 0usize];
2491    ["Offset of field: WGPUBufferMapCallbackInfo::mode"]
2492        [::core::mem::offset_of!(WGPUBufferMapCallbackInfo, mode) - 8usize];
2493    ["Offset of field: WGPUBufferMapCallbackInfo::callback"]
2494        [::core::mem::offset_of!(WGPUBufferMapCallbackInfo, callback) - 16usize];
2495    ["Offset of field: WGPUBufferMapCallbackInfo::userdata1"]
2496        [::core::mem::offset_of!(WGPUBufferMapCallbackInfo, userdata1) - 24usize];
2497    ["Offset of field: WGPUBufferMapCallbackInfo::userdata2"]
2498        [::core::mem::offset_of!(WGPUBufferMapCallbackInfo, userdata2) - 32usize];
2499};
2500impl Default for WGPUBufferMapCallbackInfo {
2501    fn default() -> Self {
2502        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2503        unsafe {
2504            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2505            s.assume_init()
2506        }
2507    }
2508}
2509#[repr(C)]
2510#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2511pub struct WGPUCompilationInfoCallbackInfo {
2512    pub nextInChain: *mut WGPUChainedStruct,
2513    pub mode: WGPUCallbackMode,
2514    pub callback: WGPUCompilationInfoCallback,
2515    pub userdata1: *mut ::core::ffi::c_void,
2516    pub userdata2: *mut ::core::ffi::c_void,
2517}
2518#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2519const _: () = {
2520    ["Size of WGPUCompilationInfoCallbackInfo"]
2521        [::core::mem::size_of::<WGPUCompilationInfoCallbackInfo>() - 40usize];
2522    ["Alignment of WGPUCompilationInfoCallbackInfo"]
2523        [::core::mem::align_of::<WGPUCompilationInfoCallbackInfo>() - 8usize];
2524    ["Offset of field: WGPUCompilationInfoCallbackInfo::nextInChain"]
2525        [::core::mem::offset_of!(WGPUCompilationInfoCallbackInfo, nextInChain) - 0usize];
2526    ["Offset of field: WGPUCompilationInfoCallbackInfo::mode"]
2527        [::core::mem::offset_of!(WGPUCompilationInfoCallbackInfo, mode) - 8usize];
2528    ["Offset of field: WGPUCompilationInfoCallbackInfo::callback"]
2529        [::core::mem::offset_of!(WGPUCompilationInfoCallbackInfo, callback) - 16usize];
2530    ["Offset of field: WGPUCompilationInfoCallbackInfo::userdata1"]
2531        [::core::mem::offset_of!(WGPUCompilationInfoCallbackInfo, userdata1) - 24usize];
2532    ["Offset of field: WGPUCompilationInfoCallbackInfo::userdata2"]
2533        [::core::mem::offset_of!(WGPUCompilationInfoCallbackInfo, userdata2) - 32usize];
2534};
2535impl Default for WGPUCompilationInfoCallbackInfo {
2536    fn default() -> Self {
2537        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2538        unsafe {
2539            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2540            s.assume_init()
2541        }
2542    }
2543}
2544#[repr(C)]
2545#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2546pub struct WGPUCreateComputePipelineAsyncCallbackInfo {
2547    pub nextInChain: *mut WGPUChainedStruct,
2548    pub mode: WGPUCallbackMode,
2549    pub callback: WGPUCreateComputePipelineAsyncCallback,
2550    pub userdata1: *mut ::core::ffi::c_void,
2551    pub userdata2: *mut ::core::ffi::c_void,
2552}
2553#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2554const _: () = {
2555    ["Size of WGPUCreateComputePipelineAsyncCallbackInfo"]
2556        [::core::mem::size_of::<WGPUCreateComputePipelineAsyncCallbackInfo>() - 40usize];
2557    ["Alignment of WGPUCreateComputePipelineAsyncCallbackInfo"]
2558        [::core::mem::align_of::<WGPUCreateComputePipelineAsyncCallbackInfo>() - 8usize];
2559    ["Offset of field: WGPUCreateComputePipelineAsyncCallbackInfo::nextInChain"]
2560        [::core::mem::offset_of!(WGPUCreateComputePipelineAsyncCallbackInfo, nextInChain) - 0usize];
2561    ["Offset of field: WGPUCreateComputePipelineAsyncCallbackInfo::mode"]
2562        [::core::mem::offset_of!(WGPUCreateComputePipelineAsyncCallbackInfo, mode) - 8usize];
2563    ["Offset of field: WGPUCreateComputePipelineAsyncCallbackInfo::callback"]
2564        [::core::mem::offset_of!(WGPUCreateComputePipelineAsyncCallbackInfo, callback) - 16usize];
2565    ["Offset of field: WGPUCreateComputePipelineAsyncCallbackInfo::userdata1"]
2566        [::core::mem::offset_of!(WGPUCreateComputePipelineAsyncCallbackInfo, userdata1) - 24usize];
2567    ["Offset of field: WGPUCreateComputePipelineAsyncCallbackInfo::userdata2"]
2568        [::core::mem::offset_of!(WGPUCreateComputePipelineAsyncCallbackInfo, userdata2) - 32usize];
2569};
2570impl Default for WGPUCreateComputePipelineAsyncCallbackInfo {
2571    fn default() -> Self {
2572        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2573        unsafe {
2574            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2575            s.assume_init()
2576        }
2577    }
2578}
2579#[repr(C)]
2580#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2581pub struct WGPUCreateRenderPipelineAsyncCallbackInfo {
2582    pub nextInChain: *mut WGPUChainedStruct,
2583    pub mode: WGPUCallbackMode,
2584    pub callback: WGPUCreateRenderPipelineAsyncCallback,
2585    pub userdata1: *mut ::core::ffi::c_void,
2586    pub userdata2: *mut ::core::ffi::c_void,
2587}
2588#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2589const _: () = {
2590    ["Size of WGPUCreateRenderPipelineAsyncCallbackInfo"]
2591        [::core::mem::size_of::<WGPUCreateRenderPipelineAsyncCallbackInfo>() - 40usize];
2592    ["Alignment of WGPUCreateRenderPipelineAsyncCallbackInfo"]
2593        [::core::mem::align_of::<WGPUCreateRenderPipelineAsyncCallbackInfo>() - 8usize];
2594    ["Offset of field: WGPUCreateRenderPipelineAsyncCallbackInfo::nextInChain"]
2595        [::core::mem::offset_of!(WGPUCreateRenderPipelineAsyncCallbackInfo, nextInChain) - 0usize];
2596    ["Offset of field: WGPUCreateRenderPipelineAsyncCallbackInfo::mode"]
2597        [::core::mem::offset_of!(WGPUCreateRenderPipelineAsyncCallbackInfo, mode) - 8usize];
2598    ["Offset of field: WGPUCreateRenderPipelineAsyncCallbackInfo::callback"]
2599        [::core::mem::offset_of!(WGPUCreateRenderPipelineAsyncCallbackInfo, callback) - 16usize];
2600    ["Offset of field: WGPUCreateRenderPipelineAsyncCallbackInfo::userdata1"]
2601        [::core::mem::offset_of!(WGPUCreateRenderPipelineAsyncCallbackInfo, userdata1) - 24usize];
2602    ["Offset of field: WGPUCreateRenderPipelineAsyncCallbackInfo::userdata2"]
2603        [::core::mem::offset_of!(WGPUCreateRenderPipelineAsyncCallbackInfo, userdata2) - 32usize];
2604};
2605impl Default for WGPUCreateRenderPipelineAsyncCallbackInfo {
2606    fn default() -> Self {
2607        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2608        unsafe {
2609            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2610            s.assume_init()
2611        }
2612    }
2613}
2614#[repr(C)]
2615#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2616pub struct WGPUDeviceLostCallbackInfo {
2617    pub nextInChain: *mut WGPUChainedStruct,
2618    pub mode: WGPUCallbackMode,
2619    pub callback: WGPUDeviceLostCallback,
2620    pub userdata1: *mut ::core::ffi::c_void,
2621    pub userdata2: *mut ::core::ffi::c_void,
2622}
2623#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2624const _: () = {
2625    ["Size of WGPUDeviceLostCallbackInfo"]
2626        [::core::mem::size_of::<WGPUDeviceLostCallbackInfo>() - 40usize];
2627    ["Alignment of WGPUDeviceLostCallbackInfo"]
2628        [::core::mem::align_of::<WGPUDeviceLostCallbackInfo>() - 8usize];
2629    ["Offset of field: WGPUDeviceLostCallbackInfo::nextInChain"]
2630        [::core::mem::offset_of!(WGPUDeviceLostCallbackInfo, nextInChain) - 0usize];
2631    ["Offset of field: WGPUDeviceLostCallbackInfo::mode"]
2632        [::core::mem::offset_of!(WGPUDeviceLostCallbackInfo, mode) - 8usize];
2633    ["Offset of field: WGPUDeviceLostCallbackInfo::callback"]
2634        [::core::mem::offset_of!(WGPUDeviceLostCallbackInfo, callback) - 16usize];
2635    ["Offset of field: WGPUDeviceLostCallbackInfo::userdata1"]
2636        [::core::mem::offset_of!(WGPUDeviceLostCallbackInfo, userdata1) - 24usize];
2637    ["Offset of field: WGPUDeviceLostCallbackInfo::userdata2"]
2638        [::core::mem::offset_of!(WGPUDeviceLostCallbackInfo, userdata2) - 32usize];
2639};
2640impl Default for WGPUDeviceLostCallbackInfo {
2641    fn default() -> Self {
2642        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2643        unsafe {
2644            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2645            s.assume_init()
2646        }
2647    }
2648}
2649#[repr(C)]
2650#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2651pub struct WGPULoggingCallbackInfo {
2652    pub nextInChain: *mut WGPUChainedStruct,
2653    pub callback: WGPULoggingCallback,
2654    pub userdata1: *mut ::core::ffi::c_void,
2655    pub userdata2: *mut ::core::ffi::c_void,
2656}
2657#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2658const _: () = {
2659    ["Size of WGPULoggingCallbackInfo"]
2660        [::core::mem::size_of::<WGPULoggingCallbackInfo>() - 32usize];
2661    ["Alignment of WGPULoggingCallbackInfo"]
2662        [::core::mem::align_of::<WGPULoggingCallbackInfo>() - 8usize];
2663    ["Offset of field: WGPULoggingCallbackInfo::nextInChain"]
2664        [::core::mem::offset_of!(WGPULoggingCallbackInfo, nextInChain) - 0usize];
2665    ["Offset of field: WGPULoggingCallbackInfo::callback"]
2666        [::core::mem::offset_of!(WGPULoggingCallbackInfo, callback) - 8usize];
2667    ["Offset of field: WGPULoggingCallbackInfo::userdata1"]
2668        [::core::mem::offset_of!(WGPULoggingCallbackInfo, userdata1) - 16usize];
2669    ["Offset of field: WGPULoggingCallbackInfo::userdata2"]
2670        [::core::mem::offset_of!(WGPULoggingCallbackInfo, userdata2) - 24usize];
2671};
2672impl Default for WGPULoggingCallbackInfo {
2673    fn default() -> Self {
2674        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2675        unsafe {
2676            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2677            s.assume_init()
2678        }
2679    }
2680}
2681#[repr(C)]
2682#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2683pub struct WGPUPopErrorScopeCallbackInfo {
2684    pub nextInChain: *mut WGPUChainedStruct,
2685    pub mode: WGPUCallbackMode,
2686    pub callback: WGPUPopErrorScopeCallback,
2687    pub userdata1: *mut ::core::ffi::c_void,
2688    pub userdata2: *mut ::core::ffi::c_void,
2689}
2690#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2691const _: () = {
2692    ["Size of WGPUPopErrorScopeCallbackInfo"]
2693        [::core::mem::size_of::<WGPUPopErrorScopeCallbackInfo>() - 40usize];
2694    ["Alignment of WGPUPopErrorScopeCallbackInfo"]
2695        [::core::mem::align_of::<WGPUPopErrorScopeCallbackInfo>() - 8usize];
2696    ["Offset of field: WGPUPopErrorScopeCallbackInfo::nextInChain"]
2697        [::core::mem::offset_of!(WGPUPopErrorScopeCallbackInfo, nextInChain) - 0usize];
2698    ["Offset of field: WGPUPopErrorScopeCallbackInfo::mode"]
2699        [::core::mem::offset_of!(WGPUPopErrorScopeCallbackInfo, mode) - 8usize];
2700    ["Offset of field: WGPUPopErrorScopeCallbackInfo::callback"]
2701        [::core::mem::offset_of!(WGPUPopErrorScopeCallbackInfo, callback) - 16usize];
2702    ["Offset of field: WGPUPopErrorScopeCallbackInfo::userdata1"]
2703        [::core::mem::offset_of!(WGPUPopErrorScopeCallbackInfo, userdata1) - 24usize];
2704    ["Offset of field: WGPUPopErrorScopeCallbackInfo::userdata2"]
2705        [::core::mem::offset_of!(WGPUPopErrorScopeCallbackInfo, userdata2) - 32usize];
2706};
2707impl Default for WGPUPopErrorScopeCallbackInfo {
2708    fn default() -> Self {
2709        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2710        unsafe {
2711            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2712            s.assume_init()
2713        }
2714    }
2715}
2716#[repr(C)]
2717#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2718pub struct WGPUQueueWorkDoneCallbackInfo {
2719    pub nextInChain: *mut WGPUChainedStruct,
2720    pub mode: WGPUCallbackMode,
2721    pub callback: WGPUQueueWorkDoneCallback,
2722    pub userdata1: *mut ::core::ffi::c_void,
2723    pub userdata2: *mut ::core::ffi::c_void,
2724}
2725#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2726const _: () = {
2727    ["Size of WGPUQueueWorkDoneCallbackInfo"]
2728        [::core::mem::size_of::<WGPUQueueWorkDoneCallbackInfo>() - 40usize];
2729    ["Alignment of WGPUQueueWorkDoneCallbackInfo"]
2730        [::core::mem::align_of::<WGPUQueueWorkDoneCallbackInfo>() - 8usize];
2731    ["Offset of field: WGPUQueueWorkDoneCallbackInfo::nextInChain"]
2732        [::core::mem::offset_of!(WGPUQueueWorkDoneCallbackInfo, nextInChain) - 0usize];
2733    ["Offset of field: WGPUQueueWorkDoneCallbackInfo::mode"]
2734        [::core::mem::offset_of!(WGPUQueueWorkDoneCallbackInfo, mode) - 8usize];
2735    ["Offset of field: WGPUQueueWorkDoneCallbackInfo::callback"]
2736        [::core::mem::offset_of!(WGPUQueueWorkDoneCallbackInfo, callback) - 16usize];
2737    ["Offset of field: WGPUQueueWorkDoneCallbackInfo::userdata1"]
2738        [::core::mem::offset_of!(WGPUQueueWorkDoneCallbackInfo, userdata1) - 24usize];
2739    ["Offset of field: WGPUQueueWorkDoneCallbackInfo::userdata2"]
2740        [::core::mem::offset_of!(WGPUQueueWorkDoneCallbackInfo, userdata2) - 32usize];
2741};
2742impl Default for WGPUQueueWorkDoneCallbackInfo {
2743    fn default() -> Self {
2744        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2745        unsafe {
2746            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2747            s.assume_init()
2748        }
2749    }
2750}
2751#[repr(C)]
2752#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2753pub struct WGPURequestAdapterCallbackInfo {
2754    pub nextInChain: *mut WGPUChainedStruct,
2755    pub mode: WGPUCallbackMode,
2756    pub callback: WGPURequestAdapterCallback,
2757    pub userdata1: *mut ::core::ffi::c_void,
2758    pub userdata2: *mut ::core::ffi::c_void,
2759}
2760#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2761const _: () = {
2762    ["Size of WGPURequestAdapterCallbackInfo"]
2763        [::core::mem::size_of::<WGPURequestAdapterCallbackInfo>() - 40usize];
2764    ["Alignment of WGPURequestAdapterCallbackInfo"]
2765        [::core::mem::align_of::<WGPURequestAdapterCallbackInfo>() - 8usize];
2766    ["Offset of field: WGPURequestAdapterCallbackInfo::nextInChain"]
2767        [::core::mem::offset_of!(WGPURequestAdapterCallbackInfo, nextInChain) - 0usize];
2768    ["Offset of field: WGPURequestAdapterCallbackInfo::mode"]
2769        [::core::mem::offset_of!(WGPURequestAdapterCallbackInfo, mode) - 8usize];
2770    ["Offset of field: WGPURequestAdapterCallbackInfo::callback"]
2771        [::core::mem::offset_of!(WGPURequestAdapterCallbackInfo, callback) - 16usize];
2772    ["Offset of field: WGPURequestAdapterCallbackInfo::userdata1"]
2773        [::core::mem::offset_of!(WGPURequestAdapterCallbackInfo, userdata1) - 24usize];
2774    ["Offset of field: WGPURequestAdapterCallbackInfo::userdata2"]
2775        [::core::mem::offset_of!(WGPURequestAdapterCallbackInfo, userdata2) - 32usize];
2776};
2777impl Default for WGPURequestAdapterCallbackInfo {
2778    fn default() -> Self {
2779        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2780        unsafe {
2781            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2782            s.assume_init()
2783        }
2784    }
2785}
2786#[repr(C)]
2787#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2788pub struct WGPURequestDeviceCallbackInfo {
2789    pub nextInChain: *mut WGPUChainedStruct,
2790    pub mode: WGPUCallbackMode,
2791    pub callback: WGPURequestDeviceCallback,
2792    pub userdata1: *mut ::core::ffi::c_void,
2793    pub userdata2: *mut ::core::ffi::c_void,
2794}
2795#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2796const _: () = {
2797    ["Size of WGPURequestDeviceCallbackInfo"]
2798        [::core::mem::size_of::<WGPURequestDeviceCallbackInfo>() - 40usize];
2799    ["Alignment of WGPURequestDeviceCallbackInfo"]
2800        [::core::mem::align_of::<WGPURequestDeviceCallbackInfo>() - 8usize];
2801    ["Offset of field: WGPURequestDeviceCallbackInfo::nextInChain"]
2802        [::core::mem::offset_of!(WGPURequestDeviceCallbackInfo, nextInChain) - 0usize];
2803    ["Offset of field: WGPURequestDeviceCallbackInfo::mode"]
2804        [::core::mem::offset_of!(WGPURequestDeviceCallbackInfo, mode) - 8usize];
2805    ["Offset of field: WGPURequestDeviceCallbackInfo::callback"]
2806        [::core::mem::offset_of!(WGPURequestDeviceCallbackInfo, callback) - 16usize];
2807    ["Offset of field: WGPURequestDeviceCallbackInfo::userdata1"]
2808        [::core::mem::offset_of!(WGPURequestDeviceCallbackInfo, userdata1) - 24usize];
2809    ["Offset of field: WGPURequestDeviceCallbackInfo::userdata2"]
2810        [::core::mem::offset_of!(WGPURequestDeviceCallbackInfo, userdata2) - 32usize];
2811};
2812impl Default for WGPURequestDeviceCallbackInfo {
2813    fn default() -> Self {
2814        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2815        unsafe {
2816            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2817            s.assume_init()
2818        }
2819    }
2820}
2821#[repr(C)]
2822#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2823pub struct WGPUUncapturedErrorCallbackInfo {
2824    pub nextInChain: *mut WGPUChainedStruct,
2825    pub callback: WGPUUncapturedErrorCallback,
2826    pub userdata1: *mut ::core::ffi::c_void,
2827    pub userdata2: *mut ::core::ffi::c_void,
2828}
2829#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2830const _: () = {
2831    ["Size of WGPUUncapturedErrorCallbackInfo"]
2832        [::core::mem::size_of::<WGPUUncapturedErrorCallbackInfo>() - 32usize];
2833    ["Alignment of WGPUUncapturedErrorCallbackInfo"]
2834        [::core::mem::align_of::<WGPUUncapturedErrorCallbackInfo>() - 8usize];
2835    ["Offset of field: WGPUUncapturedErrorCallbackInfo::nextInChain"]
2836        [::core::mem::offset_of!(WGPUUncapturedErrorCallbackInfo, nextInChain) - 0usize];
2837    ["Offset of field: WGPUUncapturedErrorCallbackInfo::callback"]
2838        [::core::mem::offset_of!(WGPUUncapturedErrorCallbackInfo, callback) - 8usize];
2839    ["Offset of field: WGPUUncapturedErrorCallbackInfo::userdata1"]
2840        [::core::mem::offset_of!(WGPUUncapturedErrorCallbackInfo, userdata1) - 16usize];
2841    ["Offset of field: WGPUUncapturedErrorCallbackInfo::userdata2"]
2842        [::core::mem::offset_of!(WGPUUncapturedErrorCallbackInfo, userdata2) - 24usize];
2843};
2844impl Default for WGPUUncapturedErrorCallbackInfo {
2845    fn default() -> Self {
2846        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2847        unsafe {
2848            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2849            s.assume_init()
2850        }
2851    }
2852}
2853#[repr(C)]
2854#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2855pub struct WGPUAdapterPropertiesD3D {
2856    pub chain: WGPUChainedStruct,
2857    pub shaderModel: u32,
2858}
2859#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2860const _: () = {
2861    ["Size of WGPUAdapterPropertiesD3D"]
2862        [::core::mem::size_of::<WGPUAdapterPropertiesD3D>() - 24usize];
2863    ["Alignment of WGPUAdapterPropertiesD3D"]
2864        [::core::mem::align_of::<WGPUAdapterPropertiesD3D>() - 8usize];
2865    ["Offset of field: WGPUAdapterPropertiesD3D::chain"]
2866        [::core::mem::offset_of!(WGPUAdapterPropertiesD3D, chain) - 0usize];
2867    ["Offset of field: WGPUAdapterPropertiesD3D::shaderModel"]
2868        [::core::mem::offset_of!(WGPUAdapterPropertiesD3D, shaderModel) - 16usize];
2869};
2870impl Default for WGPUAdapterPropertiesD3D {
2871    fn default() -> Self {
2872        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2873        unsafe {
2874            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2875            s.assume_init()
2876        }
2877    }
2878}
2879#[repr(C)]
2880#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2881pub struct WGPUAdapterPropertiesSubgroups {
2882    pub chain: WGPUChainedStruct,
2883    pub subgroupMinSize: u32,
2884    pub subgroupMaxSize: u32,
2885}
2886#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2887const _: () = {
2888    ["Size of WGPUAdapterPropertiesSubgroups"]
2889        [::core::mem::size_of::<WGPUAdapterPropertiesSubgroups>() - 24usize];
2890    ["Alignment of WGPUAdapterPropertiesSubgroups"]
2891        [::core::mem::align_of::<WGPUAdapterPropertiesSubgroups>() - 8usize];
2892    ["Offset of field: WGPUAdapterPropertiesSubgroups::chain"]
2893        [::core::mem::offset_of!(WGPUAdapterPropertiesSubgroups, chain) - 0usize];
2894    ["Offset of field: WGPUAdapterPropertiesSubgroups::subgroupMinSize"]
2895        [::core::mem::offset_of!(WGPUAdapterPropertiesSubgroups, subgroupMinSize) - 16usize];
2896    ["Offset of field: WGPUAdapterPropertiesSubgroups::subgroupMaxSize"]
2897        [::core::mem::offset_of!(WGPUAdapterPropertiesSubgroups, subgroupMaxSize) - 20usize];
2898};
2899impl Default for WGPUAdapterPropertiesSubgroups {
2900    fn default() -> Self {
2901        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2902        unsafe {
2903            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2904            s.assume_init()
2905        }
2906    }
2907}
2908#[repr(C)]
2909#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2910pub struct WGPUAdapterPropertiesVk {
2911    pub chain: WGPUChainedStruct,
2912    pub driverVersion: u32,
2913}
2914#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2915const _: () = {
2916    ["Size of WGPUAdapterPropertiesVk"]
2917        [::core::mem::size_of::<WGPUAdapterPropertiesVk>() - 24usize];
2918    ["Alignment of WGPUAdapterPropertiesVk"]
2919        [::core::mem::align_of::<WGPUAdapterPropertiesVk>() - 8usize];
2920    ["Offset of field: WGPUAdapterPropertiesVk::chain"]
2921        [::core::mem::offset_of!(WGPUAdapterPropertiesVk, chain) - 0usize];
2922    ["Offset of field: WGPUAdapterPropertiesVk::driverVersion"]
2923        [::core::mem::offset_of!(WGPUAdapterPropertiesVk, driverVersion) - 16usize];
2924};
2925impl Default for WGPUAdapterPropertiesVk {
2926    fn default() -> Self {
2927        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2928        unsafe {
2929            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2930            s.assume_init()
2931        }
2932    }
2933}
2934#[repr(C)]
2935#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2936pub struct WGPUBindGroupLayoutEntryArraySize {
2937    pub chain: WGPUChainedStruct,
2938    pub arraySize: u32,
2939}
2940#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2941const _: () = {
2942    ["Size of WGPUBindGroupLayoutEntryArraySize"]
2943        [::core::mem::size_of::<WGPUBindGroupLayoutEntryArraySize>() - 24usize];
2944    ["Alignment of WGPUBindGroupLayoutEntryArraySize"]
2945        [::core::mem::align_of::<WGPUBindGroupLayoutEntryArraySize>() - 8usize];
2946    ["Offset of field: WGPUBindGroupLayoutEntryArraySize::chain"]
2947        [::core::mem::offset_of!(WGPUBindGroupLayoutEntryArraySize, chain) - 0usize];
2948    ["Offset of field: WGPUBindGroupLayoutEntryArraySize::arraySize"]
2949        [::core::mem::offset_of!(WGPUBindGroupLayoutEntryArraySize, arraySize) - 16usize];
2950};
2951impl Default for WGPUBindGroupLayoutEntryArraySize {
2952    fn default() -> Self {
2953        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2954        unsafe {
2955            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2956            s.assume_init()
2957        }
2958    }
2959}
2960#[repr(C)]
2961#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2962pub struct WGPUBlendComponent {
2963    pub operation: WGPUBlendOperation,
2964    pub srcFactor: WGPUBlendFactor,
2965    pub dstFactor: WGPUBlendFactor,
2966}
2967#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2968const _: () = {
2969    ["Size of WGPUBlendComponent"][::core::mem::size_of::<WGPUBlendComponent>() - 12usize];
2970    ["Alignment of WGPUBlendComponent"][::core::mem::align_of::<WGPUBlendComponent>() - 4usize];
2971    ["Offset of field: WGPUBlendComponent::operation"]
2972        [::core::mem::offset_of!(WGPUBlendComponent, operation) - 0usize];
2973    ["Offset of field: WGPUBlendComponent::srcFactor"]
2974        [::core::mem::offset_of!(WGPUBlendComponent, srcFactor) - 4usize];
2975    ["Offset of field: WGPUBlendComponent::dstFactor"]
2976        [::core::mem::offset_of!(WGPUBlendComponent, dstFactor) - 8usize];
2977};
2978impl Default for WGPUBlendComponent {
2979    fn default() -> Self {
2980        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2981        unsafe {
2982            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2983            s.assume_init()
2984        }
2985    }
2986}
2987#[repr(C)]
2988#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2989pub struct WGPUBufferBindingLayout {
2990    pub nextInChain: *mut WGPUChainedStruct,
2991    pub type_: WGPUBufferBindingType,
2992    pub hasDynamicOffset: WGPUBool,
2993    pub minBindingSize: u64,
2994}
2995#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2996const _: () = {
2997    ["Size of WGPUBufferBindingLayout"]
2998        [::core::mem::size_of::<WGPUBufferBindingLayout>() - 24usize];
2999    ["Alignment of WGPUBufferBindingLayout"]
3000        [::core::mem::align_of::<WGPUBufferBindingLayout>() - 8usize];
3001    ["Offset of field: WGPUBufferBindingLayout::nextInChain"]
3002        [::core::mem::offset_of!(WGPUBufferBindingLayout, nextInChain) - 0usize];
3003    ["Offset of field: WGPUBufferBindingLayout::type_"]
3004        [::core::mem::offset_of!(WGPUBufferBindingLayout, type_) - 8usize];
3005    ["Offset of field: WGPUBufferBindingLayout::hasDynamicOffset"]
3006        [::core::mem::offset_of!(WGPUBufferBindingLayout, hasDynamicOffset) - 12usize];
3007    ["Offset of field: WGPUBufferBindingLayout::minBindingSize"]
3008        [::core::mem::offset_of!(WGPUBufferBindingLayout, minBindingSize) - 16usize];
3009};
3010impl Default for WGPUBufferBindingLayout {
3011    fn default() -> Self {
3012        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3013        unsafe {
3014            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3015            s.assume_init()
3016        }
3017    }
3018}
3019#[repr(C)]
3020#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3021pub struct WGPUBufferHostMappedPointer {
3022    pub chain: WGPUChainedStruct,
3023    pub pointer: *mut ::core::ffi::c_void,
3024    pub disposeCallback: WGPUCallback,
3025    pub userdata: *mut ::core::ffi::c_void,
3026}
3027#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3028const _: () = {
3029    ["Size of WGPUBufferHostMappedPointer"]
3030        [::core::mem::size_of::<WGPUBufferHostMappedPointer>() - 40usize];
3031    ["Alignment of WGPUBufferHostMappedPointer"]
3032        [::core::mem::align_of::<WGPUBufferHostMappedPointer>() - 8usize];
3033    ["Offset of field: WGPUBufferHostMappedPointer::chain"]
3034        [::core::mem::offset_of!(WGPUBufferHostMappedPointer, chain) - 0usize];
3035    ["Offset of field: WGPUBufferHostMappedPointer::pointer"]
3036        [::core::mem::offset_of!(WGPUBufferHostMappedPointer, pointer) - 16usize];
3037    ["Offset of field: WGPUBufferHostMappedPointer::disposeCallback"]
3038        [::core::mem::offset_of!(WGPUBufferHostMappedPointer, disposeCallback) - 24usize];
3039    ["Offset of field: WGPUBufferHostMappedPointer::userdata"]
3040        [::core::mem::offset_of!(WGPUBufferHostMappedPointer, userdata) - 32usize];
3041};
3042impl Default for WGPUBufferHostMappedPointer {
3043    fn default() -> Self {
3044        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3045        unsafe {
3046            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3047            s.assume_init()
3048        }
3049    }
3050}
3051#[repr(C)]
3052#[derive(Debug, Default, Copy, Clone, PartialOrd, PartialEq)]
3053pub struct WGPUColor {
3054    pub r: f64,
3055    pub g: f64,
3056    pub b: f64,
3057    pub a: f64,
3058}
3059#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3060const _: () = {
3061    ["Size of WGPUColor"][::core::mem::size_of::<WGPUColor>() - 32usize];
3062    ["Alignment of WGPUColor"][::core::mem::align_of::<WGPUColor>() - 8usize];
3063    ["Offset of field: WGPUColor::r"][::core::mem::offset_of!(WGPUColor, r) - 0usize];
3064    ["Offset of field: WGPUColor::g"][::core::mem::offset_of!(WGPUColor, g) - 8usize];
3065    ["Offset of field: WGPUColor::b"][::core::mem::offset_of!(WGPUColor, b) - 16usize];
3066    ["Offset of field: WGPUColor::a"][::core::mem::offset_of!(WGPUColor, a) - 24usize];
3067};
3068#[repr(C)]
3069#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3070pub struct WGPUColorTargetStateExpandResolveTextureDawn {
3071    pub chain: WGPUChainedStruct,
3072    pub enabled: WGPUBool,
3073}
3074#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3075const _: () = {
3076    ["Size of WGPUColorTargetStateExpandResolveTextureDawn"]
3077        [::core::mem::size_of::<WGPUColorTargetStateExpandResolveTextureDawn>() - 24usize];
3078    ["Alignment of WGPUColorTargetStateExpandResolveTextureDawn"]
3079        [::core::mem::align_of::<WGPUColorTargetStateExpandResolveTextureDawn>() - 8usize];
3080    ["Offset of field: WGPUColorTargetStateExpandResolveTextureDawn::chain"]
3081        [::core::mem::offset_of!(WGPUColorTargetStateExpandResolveTextureDawn, chain) - 0usize];
3082    ["Offset of field: WGPUColorTargetStateExpandResolveTextureDawn::enabled"]
3083        [::core::mem::offset_of!(WGPUColorTargetStateExpandResolveTextureDawn, enabled) - 16usize];
3084};
3085impl Default for WGPUColorTargetStateExpandResolveTextureDawn {
3086    fn default() -> Self {
3087        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3088        unsafe {
3089            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3090            s.assume_init()
3091        }
3092    }
3093}
3094#[repr(C)]
3095#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3096pub struct WGPUCommandBufferDescriptor {
3097    pub nextInChain: *mut WGPUChainedStruct,
3098    pub label: WGPUStringView,
3099}
3100#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3101const _: () = {
3102    ["Size of WGPUCommandBufferDescriptor"]
3103        [::core::mem::size_of::<WGPUCommandBufferDescriptor>() - 24usize];
3104    ["Alignment of WGPUCommandBufferDescriptor"]
3105        [::core::mem::align_of::<WGPUCommandBufferDescriptor>() - 8usize];
3106    ["Offset of field: WGPUCommandBufferDescriptor::nextInChain"]
3107        [::core::mem::offset_of!(WGPUCommandBufferDescriptor, nextInChain) - 0usize];
3108    ["Offset of field: WGPUCommandBufferDescriptor::label"]
3109        [::core::mem::offset_of!(WGPUCommandBufferDescriptor, label) - 8usize];
3110};
3111impl Default for WGPUCommandBufferDescriptor {
3112    fn default() -> Self {
3113        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3114        unsafe {
3115            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3116            s.assume_init()
3117        }
3118    }
3119}
3120#[repr(C)]
3121#[derive(Debug, Copy, Clone, PartialOrd, PartialEq)]
3122pub struct WGPUConstantEntry {
3123    pub nextInChain: *mut WGPUChainedStruct,
3124    pub key: WGPUStringView,
3125    pub value: f64,
3126}
3127#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3128const _: () = {
3129    ["Size of WGPUConstantEntry"][::core::mem::size_of::<WGPUConstantEntry>() - 32usize];
3130    ["Alignment of WGPUConstantEntry"][::core::mem::align_of::<WGPUConstantEntry>() - 8usize];
3131    ["Offset of field: WGPUConstantEntry::nextInChain"]
3132        [::core::mem::offset_of!(WGPUConstantEntry, nextInChain) - 0usize];
3133    ["Offset of field: WGPUConstantEntry::key"]
3134        [::core::mem::offset_of!(WGPUConstantEntry, key) - 8usize];
3135    ["Offset of field: WGPUConstantEntry::value"]
3136        [::core::mem::offset_of!(WGPUConstantEntry, value) - 24usize];
3137};
3138impl Default for WGPUConstantEntry {
3139    fn default() -> Self {
3140        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3141        unsafe {
3142            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3143            s.assume_init()
3144        }
3145    }
3146}
3147#[repr(C)]
3148#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3149pub struct WGPUCopyTextureForBrowserOptions {
3150    pub nextInChain: *mut WGPUChainedStruct,
3151    pub flipY: WGPUBool,
3152    pub needsColorSpaceConversion: WGPUBool,
3153    pub srcAlphaMode: WGPUAlphaMode,
3154    pub srcTransferFunctionParameters: *const f32,
3155    pub conversionMatrix: *const f32,
3156    pub dstTransferFunctionParameters: *const f32,
3157    pub dstAlphaMode: WGPUAlphaMode,
3158    pub internalUsage: WGPUBool,
3159}
3160#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3161const _: () = {
3162    ["Size of WGPUCopyTextureForBrowserOptions"]
3163        [::core::mem::size_of::<WGPUCopyTextureForBrowserOptions>() - 56usize];
3164    ["Alignment of WGPUCopyTextureForBrowserOptions"]
3165        [::core::mem::align_of::<WGPUCopyTextureForBrowserOptions>() - 8usize];
3166    ["Offset of field: WGPUCopyTextureForBrowserOptions::nextInChain"]
3167        [::core::mem::offset_of!(WGPUCopyTextureForBrowserOptions, nextInChain) - 0usize];
3168    ["Offset of field: WGPUCopyTextureForBrowserOptions::flipY"]
3169        [::core::mem::offset_of!(WGPUCopyTextureForBrowserOptions, flipY) - 8usize];
3170    ["Offset of field: WGPUCopyTextureForBrowserOptions::needsColorSpaceConversion"][::core::mem::offset_of!(
3171        WGPUCopyTextureForBrowserOptions,
3172        needsColorSpaceConversion
3173    ) - 12usize];
3174    ["Offset of field: WGPUCopyTextureForBrowserOptions::srcAlphaMode"]
3175        [::core::mem::offset_of!(WGPUCopyTextureForBrowserOptions, srcAlphaMode) - 16usize];
3176    ["Offset of field: WGPUCopyTextureForBrowserOptions::srcTransferFunctionParameters"][::core::mem::offset_of!(
3177        WGPUCopyTextureForBrowserOptions,
3178        srcTransferFunctionParameters
3179    )
3180        - 24usize];
3181    ["Offset of field: WGPUCopyTextureForBrowserOptions::conversionMatrix"]
3182        [::core::mem::offset_of!(WGPUCopyTextureForBrowserOptions, conversionMatrix) - 32usize];
3183    ["Offset of field: WGPUCopyTextureForBrowserOptions::dstTransferFunctionParameters"][::core::mem::offset_of!(
3184        WGPUCopyTextureForBrowserOptions,
3185        dstTransferFunctionParameters
3186    )
3187        - 40usize];
3188    ["Offset of field: WGPUCopyTextureForBrowserOptions::dstAlphaMode"]
3189        [::core::mem::offset_of!(WGPUCopyTextureForBrowserOptions, dstAlphaMode) - 48usize];
3190    ["Offset of field: WGPUCopyTextureForBrowserOptions::internalUsage"]
3191        [::core::mem::offset_of!(WGPUCopyTextureForBrowserOptions, internalUsage) - 52usize];
3192};
3193impl Default for WGPUCopyTextureForBrowserOptions {
3194    fn default() -> Self {
3195        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3196        unsafe {
3197            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3198            s.assume_init()
3199        }
3200    }
3201}
3202#[repr(C)]
3203#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3204pub struct WGPUDawnAdapterPropertiesPowerPreference {
3205    pub chain: WGPUChainedStruct,
3206    pub powerPreference: WGPUPowerPreference,
3207}
3208#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3209const _: () = {
3210    ["Size of WGPUDawnAdapterPropertiesPowerPreference"]
3211        [::core::mem::size_of::<WGPUDawnAdapterPropertiesPowerPreference>() - 24usize];
3212    ["Alignment of WGPUDawnAdapterPropertiesPowerPreference"]
3213        [::core::mem::align_of::<WGPUDawnAdapterPropertiesPowerPreference>() - 8usize];
3214    ["Offset of field: WGPUDawnAdapterPropertiesPowerPreference::chain"]
3215        [::core::mem::offset_of!(WGPUDawnAdapterPropertiesPowerPreference, chain) - 0usize];
3216    ["Offset of field: WGPUDawnAdapterPropertiesPowerPreference::powerPreference"][::core::mem::offset_of!(
3217        WGPUDawnAdapterPropertiesPowerPreference,
3218        powerPreference
3219    ) - 16usize];
3220};
3221impl Default for WGPUDawnAdapterPropertiesPowerPreference {
3222    fn default() -> Self {
3223        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3224        unsafe {
3225            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3226            s.assume_init()
3227        }
3228    }
3229}
3230#[repr(C)]
3231#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3232pub struct WGPUDawnBufferDescriptorErrorInfoFromWireClient {
3233    pub chain: WGPUChainedStruct,
3234    pub outOfMemory: WGPUBool,
3235}
3236#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3237const _: () = {
3238    ["Size of WGPUDawnBufferDescriptorErrorInfoFromWireClient"]
3239        [::core::mem::size_of::<WGPUDawnBufferDescriptorErrorInfoFromWireClient>() - 24usize];
3240    ["Alignment of WGPUDawnBufferDescriptorErrorInfoFromWireClient"]
3241        [::core::mem::align_of::<WGPUDawnBufferDescriptorErrorInfoFromWireClient>() - 8usize];
3242    ["Offset of field: WGPUDawnBufferDescriptorErrorInfoFromWireClient::chain"]
3243        [::core::mem::offset_of!(WGPUDawnBufferDescriptorErrorInfoFromWireClient, chain) - 0usize];
3244    ["Offset of field: WGPUDawnBufferDescriptorErrorInfoFromWireClient::outOfMemory"][::core::mem::offset_of!(
3245        WGPUDawnBufferDescriptorErrorInfoFromWireClient,
3246        outOfMemory
3247    ) - 16usize];
3248};
3249impl Default for WGPUDawnBufferDescriptorErrorInfoFromWireClient {
3250    fn default() -> Self {
3251        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3252        unsafe {
3253            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3254            s.assume_init()
3255        }
3256    }
3257}
3258#[repr(C)]
3259#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3260pub struct WGPUDawnCacheDeviceDescriptor {
3261    pub chain: WGPUChainedStruct,
3262    pub isolationKey: WGPUStringView,
3263    pub loadDataFunction: WGPUDawnLoadCacheDataFunction,
3264    pub storeDataFunction: WGPUDawnStoreCacheDataFunction,
3265    pub functionUserdata: *mut ::core::ffi::c_void,
3266}
3267#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3268const _: () = {
3269    ["Size of WGPUDawnCacheDeviceDescriptor"]
3270        [::core::mem::size_of::<WGPUDawnCacheDeviceDescriptor>() - 56usize];
3271    ["Alignment of WGPUDawnCacheDeviceDescriptor"]
3272        [::core::mem::align_of::<WGPUDawnCacheDeviceDescriptor>() - 8usize];
3273    ["Offset of field: WGPUDawnCacheDeviceDescriptor::chain"]
3274        [::core::mem::offset_of!(WGPUDawnCacheDeviceDescriptor, chain) - 0usize];
3275    ["Offset of field: WGPUDawnCacheDeviceDescriptor::isolationKey"]
3276        [::core::mem::offset_of!(WGPUDawnCacheDeviceDescriptor, isolationKey) - 16usize];
3277    ["Offset of field: WGPUDawnCacheDeviceDescriptor::loadDataFunction"]
3278        [::core::mem::offset_of!(WGPUDawnCacheDeviceDescriptor, loadDataFunction) - 32usize];
3279    ["Offset of field: WGPUDawnCacheDeviceDescriptor::storeDataFunction"]
3280        [::core::mem::offset_of!(WGPUDawnCacheDeviceDescriptor, storeDataFunction) - 40usize];
3281    ["Offset of field: WGPUDawnCacheDeviceDescriptor::functionUserdata"]
3282        [::core::mem::offset_of!(WGPUDawnCacheDeviceDescriptor, functionUserdata) - 48usize];
3283};
3284impl Default for WGPUDawnCacheDeviceDescriptor {
3285    fn default() -> Self {
3286        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3287        unsafe {
3288            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3289            s.assume_init()
3290        }
3291    }
3292}
3293#[repr(C)]
3294#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3295pub struct WGPUDawnCompilationMessageUtf16 {
3296    pub chain: WGPUChainedStruct,
3297    pub linePos: u64,
3298    pub offset: u64,
3299    pub length: u64,
3300}
3301#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3302const _: () = {
3303    ["Size of WGPUDawnCompilationMessageUtf16"]
3304        [::core::mem::size_of::<WGPUDawnCompilationMessageUtf16>() - 40usize];
3305    ["Alignment of WGPUDawnCompilationMessageUtf16"]
3306        [::core::mem::align_of::<WGPUDawnCompilationMessageUtf16>() - 8usize];
3307    ["Offset of field: WGPUDawnCompilationMessageUtf16::chain"]
3308        [::core::mem::offset_of!(WGPUDawnCompilationMessageUtf16, chain) - 0usize];
3309    ["Offset of field: WGPUDawnCompilationMessageUtf16::linePos"]
3310        [::core::mem::offset_of!(WGPUDawnCompilationMessageUtf16, linePos) - 16usize];
3311    ["Offset of field: WGPUDawnCompilationMessageUtf16::offset"]
3312        [::core::mem::offset_of!(WGPUDawnCompilationMessageUtf16, offset) - 24usize];
3313    ["Offset of field: WGPUDawnCompilationMessageUtf16::length"]
3314        [::core::mem::offset_of!(WGPUDawnCompilationMessageUtf16, length) - 32usize];
3315};
3316impl Default for WGPUDawnCompilationMessageUtf16 {
3317    fn default() -> Self {
3318        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3319        unsafe {
3320            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3321            s.assume_init()
3322        }
3323    }
3324}
3325#[repr(C)]
3326#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3327pub struct WGPUDawnDeviceAllocatorControl {
3328    pub chain: WGPUChainedStruct,
3329    pub allocatorHeapBlockSize: usize,
3330}
3331#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3332const _: () = {
3333    ["Size of WGPUDawnDeviceAllocatorControl"]
3334        [::core::mem::size_of::<WGPUDawnDeviceAllocatorControl>() - 24usize];
3335    ["Alignment of WGPUDawnDeviceAllocatorControl"]
3336        [::core::mem::align_of::<WGPUDawnDeviceAllocatorControl>() - 8usize];
3337    ["Offset of field: WGPUDawnDeviceAllocatorControl::chain"]
3338        [::core::mem::offset_of!(WGPUDawnDeviceAllocatorControl, chain) - 0usize];
3339    ["Offset of field: WGPUDawnDeviceAllocatorControl::allocatorHeapBlockSize"]
3340        [::core::mem::offset_of!(WGPUDawnDeviceAllocatorControl, allocatorHeapBlockSize) - 16usize];
3341};
3342impl Default for WGPUDawnDeviceAllocatorControl {
3343    fn default() -> Self {
3344        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3345        unsafe {
3346            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3347            s.assume_init()
3348        }
3349    }
3350}
3351#[repr(C)]
3352#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3353pub struct WGPUDawnDrmFormatProperties {
3354    pub modifier: u64,
3355    pub modifierPlaneCount: u32,
3356}
3357#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3358const _: () = {
3359    ["Size of WGPUDawnDrmFormatProperties"]
3360        [::core::mem::size_of::<WGPUDawnDrmFormatProperties>() - 16usize];
3361    ["Alignment of WGPUDawnDrmFormatProperties"]
3362        [::core::mem::align_of::<WGPUDawnDrmFormatProperties>() - 8usize];
3363    ["Offset of field: WGPUDawnDrmFormatProperties::modifier"]
3364        [::core::mem::offset_of!(WGPUDawnDrmFormatProperties, modifier) - 0usize];
3365    ["Offset of field: WGPUDawnDrmFormatProperties::modifierPlaneCount"]
3366        [::core::mem::offset_of!(WGPUDawnDrmFormatProperties, modifierPlaneCount) - 8usize];
3367};
3368#[repr(C)]
3369#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3370pub struct WGPUDawnEncoderInternalUsageDescriptor {
3371    pub chain: WGPUChainedStruct,
3372    pub useInternalUsages: WGPUBool,
3373}
3374#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3375const _: () = {
3376    ["Size of WGPUDawnEncoderInternalUsageDescriptor"]
3377        [::core::mem::size_of::<WGPUDawnEncoderInternalUsageDescriptor>() - 24usize];
3378    ["Alignment of WGPUDawnEncoderInternalUsageDescriptor"]
3379        [::core::mem::align_of::<WGPUDawnEncoderInternalUsageDescriptor>() - 8usize];
3380    ["Offset of field: WGPUDawnEncoderInternalUsageDescriptor::chain"]
3381        [::core::mem::offset_of!(WGPUDawnEncoderInternalUsageDescriptor, chain) - 0usize];
3382    ["Offset of field: WGPUDawnEncoderInternalUsageDescriptor::useInternalUsages"][::core::mem::offset_of!(
3383        WGPUDawnEncoderInternalUsageDescriptor,
3384        useInternalUsages
3385    ) - 16usize];
3386};
3387impl Default for WGPUDawnEncoderInternalUsageDescriptor {
3388    fn default() -> Self {
3389        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3390        unsafe {
3391            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3392            s.assume_init()
3393        }
3394    }
3395}
3396#[repr(C)]
3397#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3398pub struct WGPUDawnFakeBufferOOMForTesting {
3399    pub chain: WGPUChainedStruct,
3400    pub fakeOOMAtWireClientMap: WGPUBool,
3401    pub fakeOOMAtNativeMap: WGPUBool,
3402    pub fakeOOMAtDevice: WGPUBool,
3403}
3404#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3405const _: () = {
3406    ["Size of WGPUDawnFakeBufferOOMForTesting"]
3407        [::core::mem::size_of::<WGPUDawnFakeBufferOOMForTesting>() - 32usize];
3408    ["Alignment of WGPUDawnFakeBufferOOMForTesting"]
3409        [::core::mem::align_of::<WGPUDawnFakeBufferOOMForTesting>() - 8usize];
3410    ["Offset of field: WGPUDawnFakeBufferOOMForTesting::chain"]
3411        [::core::mem::offset_of!(WGPUDawnFakeBufferOOMForTesting, chain) - 0usize];
3412    ["Offset of field: WGPUDawnFakeBufferOOMForTesting::fakeOOMAtWireClientMap"][::core::mem::offset_of!(
3413        WGPUDawnFakeBufferOOMForTesting,
3414        fakeOOMAtWireClientMap
3415    ) - 16usize];
3416    ["Offset of field: WGPUDawnFakeBufferOOMForTesting::fakeOOMAtNativeMap"]
3417        [::core::mem::offset_of!(WGPUDawnFakeBufferOOMForTesting, fakeOOMAtNativeMap) - 20usize];
3418    ["Offset of field: WGPUDawnFakeBufferOOMForTesting::fakeOOMAtDevice"]
3419        [::core::mem::offset_of!(WGPUDawnFakeBufferOOMForTesting, fakeOOMAtDevice) - 24usize];
3420};
3421impl Default for WGPUDawnFakeBufferOOMForTesting {
3422    fn default() -> Self {
3423        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3424        unsafe {
3425            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3426            s.assume_init()
3427        }
3428    }
3429}
3430#[repr(C)]
3431#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3432pub struct WGPUDawnHostMappedPointerLimits {
3433    pub chain: WGPUChainedStruct,
3434    pub hostMappedPointerAlignment: u32,
3435}
3436#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3437const _: () = {
3438    ["Size of WGPUDawnHostMappedPointerLimits"]
3439        [::core::mem::size_of::<WGPUDawnHostMappedPointerLimits>() - 24usize];
3440    ["Alignment of WGPUDawnHostMappedPointerLimits"]
3441        [::core::mem::align_of::<WGPUDawnHostMappedPointerLimits>() - 8usize];
3442    ["Offset of field: WGPUDawnHostMappedPointerLimits::chain"]
3443        [::core::mem::offset_of!(WGPUDawnHostMappedPointerLimits, chain) - 0usize];
3444    ["Offset of field: WGPUDawnHostMappedPointerLimits::hostMappedPointerAlignment"][::core::mem::offset_of!(
3445        WGPUDawnHostMappedPointerLimits,
3446        hostMappedPointerAlignment
3447    ) - 16usize];
3448};
3449impl Default for WGPUDawnHostMappedPointerLimits {
3450    fn default() -> Self {
3451        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3452        unsafe {
3453            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3454            s.assume_init()
3455        }
3456    }
3457}
3458#[repr(C)]
3459#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3460pub struct WGPUDawnInjectedInvalidSType {
3461    pub chain: WGPUChainedStruct,
3462    pub invalidSType: WGPUSType,
3463}
3464#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3465const _: () = {
3466    ["Size of WGPUDawnInjectedInvalidSType"]
3467        [::core::mem::size_of::<WGPUDawnInjectedInvalidSType>() - 24usize];
3468    ["Alignment of WGPUDawnInjectedInvalidSType"]
3469        [::core::mem::align_of::<WGPUDawnInjectedInvalidSType>() - 8usize];
3470    ["Offset of field: WGPUDawnInjectedInvalidSType::chain"]
3471        [::core::mem::offset_of!(WGPUDawnInjectedInvalidSType, chain) - 0usize];
3472    ["Offset of field: WGPUDawnInjectedInvalidSType::invalidSType"]
3473        [::core::mem::offset_of!(WGPUDawnInjectedInvalidSType, invalidSType) - 16usize];
3474};
3475impl Default for WGPUDawnInjectedInvalidSType {
3476    fn default() -> Self {
3477        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3478        unsafe {
3479            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3480            s.assume_init()
3481        }
3482    }
3483}
3484#[repr(C)]
3485#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3486pub struct WGPUDawnRenderPassColorAttachmentRenderToSingleSampled {
3487    pub chain: WGPUChainedStruct,
3488    pub implicitSampleCount: u32,
3489}
3490#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3491const _: () = {
3492    ["Size of WGPUDawnRenderPassColorAttachmentRenderToSingleSampled"][::core::mem::size_of::<
3493        WGPUDawnRenderPassColorAttachmentRenderToSingleSampled,
3494    >() - 24usize];
3495    ["Alignment of WGPUDawnRenderPassColorAttachmentRenderToSingleSampled"][::core::mem::align_of::<
3496        WGPUDawnRenderPassColorAttachmentRenderToSingleSampled,
3497    >() - 8usize];
3498    ["Offset of field: WGPUDawnRenderPassColorAttachmentRenderToSingleSampled::chain"][::core::mem::offset_of!(
3499        WGPUDawnRenderPassColorAttachmentRenderToSingleSampled,
3500        chain
3501    ) - 0usize];
3502    ["Offset of field: WGPUDawnRenderPassColorAttachmentRenderToSingleSampled::implicitSampleCount"] [:: core :: mem :: offset_of ! (WGPUDawnRenderPassColorAttachmentRenderToSingleSampled , implicitSampleCount) - 16usize] ;
3503};
3504impl Default for WGPUDawnRenderPassColorAttachmentRenderToSingleSampled {
3505    fn default() -> Self {
3506        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3507        unsafe {
3508            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3509            s.assume_init()
3510        }
3511    }
3512}
3513#[repr(C)]
3514#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3515pub struct WGPUDawnShaderModuleSPIRVOptionsDescriptor {
3516    pub chain: WGPUChainedStruct,
3517    pub allowNonUniformDerivatives: WGPUBool,
3518}
3519#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3520const _: () = {
3521    ["Size of WGPUDawnShaderModuleSPIRVOptionsDescriptor"]
3522        [::core::mem::size_of::<WGPUDawnShaderModuleSPIRVOptionsDescriptor>() - 24usize];
3523    ["Alignment of WGPUDawnShaderModuleSPIRVOptionsDescriptor"]
3524        [::core::mem::align_of::<WGPUDawnShaderModuleSPIRVOptionsDescriptor>() - 8usize];
3525    ["Offset of field: WGPUDawnShaderModuleSPIRVOptionsDescriptor::chain"]
3526        [::core::mem::offset_of!(WGPUDawnShaderModuleSPIRVOptionsDescriptor, chain) - 0usize];
3527    ["Offset of field: WGPUDawnShaderModuleSPIRVOptionsDescriptor::allowNonUniformDerivatives"][::core::mem::offset_of!(
3528        WGPUDawnShaderModuleSPIRVOptionsDescriptor,
3529        allowNonUniformDerivatives
3530    )
3531        - 16usize];
3532};
3533impl Default for WGPUDawnShaderModuleSPIRVOptionsDescriptor {
3534    fn default() -> Self {
3535        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3536        unsafe {
3537            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3538            s.assume_init()
3539        }
3540    }
3541}
3542#[repr(C)]
3543#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3544pub struct WGPUDawnTexelCopyBufferRowAlignmentLimits {
3545    pub chain: WGPUChainedStruct,
3546    pub minTexelCopyBufferRowAlignment: u32,
3547}
3548#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3549const _: () = {
3550    ["Size of WGPUDawnTexelCopyBufferRowAlignmentLimits"]
3551        [::core::mem::size_of::<WGPUDawnTexelCopyBufferRowAlignmentLimits>() - 24usize];
3552    ["Alignment of WGPUDawnTexelCopyBufferRowAlignmentLimits"]
3553        [::core::mem::align_of::<WGPUDawnTexelCopyBufferRowAlignmentLimits>() - 8usize];
3554    ["Offset of field: WGPUDawnTexelCopyBufferRowAlignmentLimits::chain"]
3555        [::core::mem::offset_of!(WGPUDawnTexelCopyBufferRowAlignmentLimits, chain) - 0usize];
3556    ["Offset of field: WGPUDawnTexelCopyBufferRowAlignmentLimits::minTexelCopyBufferRowAlignment"] [:: core :: mem :: offset_of ! (WGPUDawnTexelCopyBufferRowAlignmentLimits , minTexelCopyBufferRowAlignment) - 16usize] ;
3557};
3558impl Default for WGPUDawnTexelCopyBufferRowAlignmentLimits {
3559    fn default() -> Self {
3560        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3561        unsafe {
3562            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3563            s.assume_init()
3564        }
3565    }
3566}
3567#[repr(C)]
3568#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3569pub struct WGPUDawnTextureInternalUsageDescriptor {
3570    pub chain: WGPUChainedStruct,
3571    pub internalUsage: WGPUTextureUsage,
3572}
3573#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3574const _: () = {
3575    ["Size of WGPUDawnTextureInternalUsageDescriptor"]
3576        [::core::mem::size_of::<WGPUDawnTextureInternalUsageDescriptor>() - 24usize];
3577    ["Alignment of WGPUDawnTextureInternalUsageDescriptor"]
3578        [::core::mem::align_of::<WGPUDawnTextureInternalUsageDescriptor>() - 8usize];
3579    ["Offset of field: WGPUDawnTextureInternalUsageDescriptor::chain"]
3580        [::core::mem::offset_of!(WGPUDawnTextureInternalUsageDescriptor, chain) - 0usize];
3581    ["Offset of field: WGPUDawnTextureInternalUsageDescriptor::internalUsage"]
3582        [::core::mem::offset_of!(WGPUDawnTextureInternalUsageDescriptor, internalUsage) - 16usize];
3583};
3584impl Default for WGPUDawnTextureInternalUsageDescriptor {
3585    fn default() -> Self {
3586        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3587        unsafe {
3588            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3589            s.assume_init()
3590        }
3591    }
3592}
3593#[repr(C)]
3594#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3595pub struct WGPUDawnTogglesDescriptor {
3596    pub chain: WGPUChainedStruct,
3597    pub enabledToggleCount: usize,
3598    pub enabledToggles: *const *const ::core::ffi::c_char,
3599    pub disabledToggleCount: usize,
3600    pub disabledToggles: *const *const ::core::ffi::c_char,
3601}
3602#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3603const _: () = {
3604    ["Size of WGPUDawnTogglesDescriptor"]
3605        [::core::mem::size_of::<WGPUDawnTogglesDescriptor>() - 48usize];
3606    ["Alignment of WGPUDawnTogglesDescriptor"]
3607        [::core::mem::align_of::<WGPUDawnTogglesDescriptor>() - 8usize];
3608    ["Offset of field: WGPUDawnTogglesDescriptor::chain"]
3609        [::core::mem::offset_of!(WGPUDawnTogglesDescriptor, chain) - 0usize];
3610    ["Offset of field: WGPUDawnTogglesDescriptor::enabledToggleCount"]
3611        [::core::mem::offset_of!(WGPUDawnTogglesDescriptor, enabledToggleCount) - 16usize];
3612    ["Offset of field: WGPUDawnTogglesDescriptor::enabledToggles"]
3613        [::core::mem::offset_of!(WGPUDawnTogglesDescriptor, enabledToggles) - 24usize];
3614    ["Offset of field: WGPUDawnTogglesDescriptor::disabledToggleCount"]
3615        [::core::mem::offset_of!(WGPUDawnTogglesDescriptor, disabledToggleCount) - 32usize];
3616    ["Offset of field: WGPUDawnTogglesDescriptor::disabledToggles"]
3617        [::core::mem::offset_of!(WGPUDawnTogglesDescriptor, disabledToggles) - 40usize];
3618};
3619impl Default for WGPUDawnTogglesDescriptor {
3620    fn default() -> Self {
3621        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3622        unsafe {
3623            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3624            s.assume_init()
3625        }
3626    }
3627}
3628#[repr(C)]
3629#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3630pub struct WGPUDawnWGSLBlocklist {
3631    pub chain: WGPUChainedStruct,
3632    pub blocklistedFeatureCount: usize,
3633    pub blocklistedFeatures: *const *const ::core::ffi::c_char,
3634}
3635#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3636const _: () = {
3637    ["Size of WGPUDawnWGSLBlocklist"][::core::mem::size_of::<WGPUDawnWGSLBlocklist>() - 32usize];
3638    ["Alignment of WGPUDawnWGSLBlocklist"]
3639        [::core::mem::align_of::<WGPUDawnWGSLBlocklist>() - 8usize];
3640    ["Offset of field: WGPUDawnWGSLBlocklist::chain"]
3641        [::core::mem::offset_of!(WGPUDawnWGSLBlocklist, chain) - 0usize];
3642    ["Offset of field: WGPUDawnWGSLBlocklist::blocklistedFeatureCount"]
3643        [::core::mem::offset_of!(WGPUDawnWGSLBlocklist, blocklistedFeatureCount) - 16usize];
3644    ["Offset of field: WGPUDawnWGSLBlocklist::blocklistedFeatures"]
3645        [::core::mem::offset_of!(WGPUDawnWGSLBlocklist, blocklistedFeatures) - 24usize];
3646};
3647impl Default for WGPUDawnWGSLBlocklist {
3648    fn default() -> Self {
3649        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3650        unsafe {
3651            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3652            s.assume_init()
3653        }
3654    }
3655}
3656#[repr(C)]
3657#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3658pub struct WGPUDawnWireWGSLControl {
3659    pub chain: WGPUChainedStruct,
3660    pub enableExperimental: WGPUBool,
3661    pub enableUnsafe: WGPUBool,
3662    pub enableTesting: WGPUBool,
3663}
3664#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3665const _: () = {
3666    ["Size of WGPUDawnWireWGSLControl"]
3667        [::core::mem::size_of::<WGPUDawnWireWGSLControl>() - 32usize];
3668    ["Alignment of WGPUDawnWireWGSLControl"]
3669        [::core::mem::align_of::<WGPUDawnWireWGSLControl>() - 8usize];
3670    ["Offset of field: WGPUDawnWireWGSLControl::chain"]
3671        [::core::mem::offset_of!(WGPUDawnWireWGSLControl, chain) - 0usize];
3672    ["Offset of field: WGPUDawnWireWGSLControl::enableExperimental"]
3673        [::core::mem::offset_of!(WGPUDawnWireWGSLControl, enableExperimental) - 16usize];
3674    ["Offset of field: WGPUDawnWireWGSLControl::enableUnsafe"]
3675        [::core::mem::offset_of!(WGPUDawnWireWGSLControl, enableUnsafe) - 20usize];
3676    ["Offset of field: WGPUDawnWireWGSLControl::enableTesting"]
3677        [::core::mem::offset_of!(WGPUDawnWireWGSLControl, enableTesting) - 24usize];
3678};
3679impl Default for WGPUDawnWireWGSLControl {
3680    fn default() -> Self {
3681        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3682        unsafe {
3683            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3684            s.assume_init()
3685        }
3686    }
3687}
3688#[repr(C)]
3689#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3690pub struct WGPUEmscriptenSurfaceSourceCanvasHTMLSelector {
3691    pub chain: WGPUChainedStruct,
3692    pub selector: WGPUStringView,
3693}
3694#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3695const _: () = {
3696    ["Size of WGPUEmscriptenSurfaceSourceCanvasHTMLSelector"]
3697        [::core::mem::size_of::<WGPUEmscriptenSurfaceSourceCanvasHTMLSelector>() - 32usize];
3698    ["Alignment of WGPUEmscriptenSurfaceSourceCanvasHTMLSelector"]
3699        [::core::mem::align_of::<WGPUEmscriptenSurfaceSourceCanvasHTMLSelector>() - 8usize];
3700    ["Offset of field: WGPUEmscriptenSurfaceSourceCanvasHTMLSelector::chain"]
3701        [::core::mem::offset_of!(WGPUEmscriptenSurfaceSourceCanvasHTMLSelector, chain) - 0usize];
3702    ["Offset of field: WGPUEmscriptenSurfaceSourceCanvasHTMLSelector::selector"][::core::mem::offset_of!(
3703        WGPUEmscriptenSurfaceSourceCanvasHTMLSelector,
3704        selector
3705    ) - 16usize];
3706};
3707impl Default for WGPUEmscriptenSurfaceSourceCanvasHTMLSelector {
3708    fn default() -> Self {
3709        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3710        unsafe {
3711            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3712            s.assume_init()
3713        }
3714    }
3715}
3716#[repr(C)]
3717#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3718pub struct WGPUExtent2D {
3719    pub width: u32,
3720    pub height: u32,
3721}
3722#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3723const _: () = {
3724    ["Size of WGPUExtent2D"][::core::mem::size_of::<WGPUExtent2D>() - 8usize];
3725    ["Alignment of WGPUExtent2D"][::core::mem::align_of::<WGPUExtent2D>() - 4usize];
3726    ["Offset of field: WGPUExtent2D::width"][::core::mem::offset_of!(WGPUExtent2D, width) - 0usize];
3727    ["Offset of field: WGPUExtent2D::height"]
3728        [::core::mem::offset_of!(WGPUExtent2D, height) - 4usize];
3729};
3730#[repr(C)]
3731#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3732pub struct WGPUExtent3D {
3733    pub width: u32,
3734    pub height: u32,
3735    pub depthOrArrayLayers: u32,
3736}
3737#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3738const _: () = {
3739    ["Size of WGPUExtent3D"][::core::mem::size_of::<WGPUExtent3D>() - 12usize];
3740    ["Alignment of WGPUExtent3D"][::core::mem::align_of::<WGPUExtent3D>() - 4usize];
3741    ["Offset of field: WGPUExtent3D::width"][::core::mem::offset_of!(WGPUExtent3D, width) - 0usize];
3742    ["Offset of field: WGPUExtent3D::height"]
3743        [::core::mem::offset_of!(WGPUExtent3D, height) - 4usize];
3744    ["Offset of field: WGPUExtent3D::depthOrArrayLayers"]
3745        [::core::mem::offset_of!(WGPUExtent3D, depthOrArrayLayers) - 8usize];
3746};
3747#[repr(C)]
3748#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3749pub struct WGPUExternalTextureBindingEntry {
3750    pub chain: WGPUChainedStruct,
3751    pub externalTexture: WGPUExternalTexture,
3752}
3753#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3754const _: () = {
3755    ["Size of WGPUExternalTextureBindingEntry"]
3756        [::core::mem::size_of::<WGPUExternalTextureBindingEntry>() - 24usize];
3757    ["Alignment of WGPUExternalTextureBindingEntry"]
3758        [::core::mem::align_of::<WGPUExternalTextureBindingEntry>() - 8usize];
3759    ["Offset of field: WGPUExternalTextureBindingEntry::chain"]
3760        [::core::mem::offset_of!(WGPUExternalTextureBindingEntry, chain) - 0usize];
3761    ["Offset of field: WGPUExternalTextureBindingEntry::externalTexture"]
3762        [::core::mem::offset_of!(WGPUExternalTextureBindingEntry, externalTexture) - 16usize];
3763};
3764impl Default for WGPUExternalTextureBindingEntry {
3765    fn default() -> Self {
3766        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3767        unsafe {
3768            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3769            s.assume_init()
3770        }
3771    }
3772}
3773#[repr(C)]
3774#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3775pub struct WGPUExternalTextureBindingLayout {
3776    pub chain: WGPUChainedStruct,
3777}
3778#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3779const _: () = {
3780    ["Size of WGPUExternalTextureBindingLayout"]
3781        [::core::mem::size_of::<WGPUExternalTextureBindingLayout>() - 16usize];
3782    ["Alignment of WGPUExternalTextureBindingLayout"]
3783        [::core::mem::align_of::<WGPUExternalTextureBindingLayout>() - 8usize];
3784    ["Offset of field: WGPUExternalTextureBindingLayout::chain"]
3785        [::core::mem::offset_of!(WGPUExternalTextureBindingLayout, chain) - 0usize];
3786};
3787impl Default for WGPUExternalTextureBindingLayout {
3788    fn default() -> Self {
3789        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3790        unsafe {
3791            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3792            s.assume_init()
3793        }
3794    }
3795}
3796#[repr(C)]
3797#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3798pub struct WGPUFuture {
3799    pub id: u64,
3800}
3801#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3802const _: () = {
3803    ["Size of WGPUFuture"][::core::mem::size_of::<WGPUFuture>() - 8usize];
3804    ["Alignment of WGPUFuture"][::core::mem::align_of::<WGPUFuture>() - 8usize];
3805    ["Offset of field: WGPUFuture::id"][::core::mem::offset_of!(WGPUFuture, id) - 0usize];
3806};
3807#[repr(C)]
3808#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3809pub struct WGPUInstanceCapabilities {
3810    pub nextInChain: *mut WGPUChainedStruct,
3811    pub timedWaitAnyEnable: WGPUBool,
3812    pub timedWaitAnyMaxCount: usize,
3813}
3814#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3815const _: () = {
3816    ["Size of WGPUInstanceCapabilities"]
3817        [::core::mem::size_of::<WGPUInstanceCapabilities>() - 24usize];
3818    ["Alignment of WGPUInstanceCapabilities"]
3819        [::core::mem::align_of::<WGPUInstanceCapabilities>() - 8usize];
3820    ["Offset of field: WGPUInstanceCapabilities::nextInChain"]
3821        [::core::mem::offset_of!(WGPUInstanceCapabilities, nextInChain) - 0usize];
3822    ["Offset of field: WGPUInstanceCapabilities::timedWaitAnyEnable"]
3823        [::core::mem::offset_of!(WGPUInstanceCapabilities, timedWaitAnyEnable) - 8usize];
3824    ["Offset of field: WGPUInstanceCapabilities::timedWaitAnyMaxCount"]
3825        [::core::mem::offset_of!(WGPUInstanceCapabilities, timedWaitAnyMaxCount) - 16usize];
3826};
3827impl Default for WGPUInstanceCapabilities {
3828    fn default() -> Self {
3829        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3830        unsafe {
3831            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3832            s.assume_init()
3833        }
3834    }
3835}
3836#[repr(C)]
3837#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3838pub struct WGPUMemoryHeapInfo {
3839    pub properties: WGPUHeapProperty,
3840    pub size: u64,
3841}
3842#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3843const _: () = {
3844    ["Size of WGPUMemoryHeapInfo"][::core::mem::size_of::<WGPUMemoryHeapInfo>() - 16usize];
3845    ["Alignment of WGPUMemoryHeapInfo"][::core::mem::align_of::<WGPUMemoryHeapInfo>() - 8usize];
3846    ["Offset of field: WGPUMemoryHeapInfo::properties"]
3847        [::core::mem::offset_of!(WGPUMemoryHeapInfo, properties) - 0usize];
3848    ["Offset of field: WGPUMemoryHeapInfo::size"]
3849        [::core::mem::offset_of!(WGPUMemoryHeapInfo, size) - 8usize];
3850};
3851#[repr(C)]
3852#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3853pub struct WGPUMultisampleState {
3854    pub nextInChain: *mut WGPUChainedStruct,
3855    pub count: u32,
3856    pub mask: u32,
3857    pub alphaToCoverageEnabled: WGPUBool,
3858}
3859#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3860const _: () = {
3861    ["Size of WGPUMultisampleState"][::core::mem::size_of::<WGPUMultisampleState>() - 24usize];
3862    ["Alignment of WGPUMultisampleState"][::core::mem::align_of::<WGPUMultisampleState>() - 8usize];
3863    ["Offset of field: WGPUMultisampleState::nextInChain"]
3864        [::core::mem::offset_of!(WGPUMultisampleState, nextInChain) - 0usize];
3865    ["Offset of field: WGPUMultisampleState::count"]
3866        [::core::mem::offset_of!(WGPUMultisampleState, count) - 8usize];
3867    ["Offset of field: WGPUMultisampleState::mask"]
3868        [::core::mem::offset_of!(WGPUMultisampleState, mask) - 12usize];
3869    ["Offset of field: WGPUMultisampleState::alphaToCoverageEnabled"]
3870        [::core::mem::offset_of!(WGPUMultisampleState, alphaToCoverageEnabled) - 16usize];
3871};
3872impl Default for WGPUMultisampleState {
3873    fn default() -> Self {
3874        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3875        unsafe {
3876            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3877            s.assume_init()
3878        }
3879    }
3880}
3881#[repr(C)]
3882#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3883pub struct WGPUOrigin2D {
3884    pub x: u32,
3885    pub y: u32,
3886}
3887#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3888const _: () = {
3889    ["Size of WGPUOrigin2D"][::core::mem::size_of::<WGPUOrigin2D>() - 8usize];
3890    ["Alignment of WGPUOrigin2D"][::core::mem::align_of::<WGPUOrigin2D>() - 4usize];
3891    ["Offset of field: WGPUOrigin2D::x"][::core::mem::offset_of!(WGPUOrigin2D, x) - 0usize];
3892    ["Offset of field: WGPUOrigin2D::y"][::core::mem::offset_of!(WGPUOrigin2D, y) - 4usize];
3893};
3894#[repr(C)]
3895#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3896pub struct WGPUOrigin3D {
3897    pub x: u32,
3898    pub y: u32,
3899    pub z: u32,
3900}
3901#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3902const _: () = {
3903    ["Size of WGPUOrigin3D"][::core::mem::size_of::<WGPUOrigin3D>() - 12usize];
3904    ["Alignment of WGPUOrigin3D"][::core::mem::align_of::<WGPUOrigin3D>() - 4usize];
3905    ["Offset of field: WGPUOrigin3D::x"][::core::mem::offset_of!(WGPUOrigin3D, x) - 0usize];
3906    ["Offset of field: WGPUOrigin3D::y"][::core::mem::offset_of!(WGPUOrigin3D, y) - 4usize];
3907    ["Offset of field: WGPUOrigin3D::z"][::core::mem::offset_of!(WGPUOrigin3D, z) - 8usize];
3908};
3909#[repr(C)]
3910#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3911pub struct WGPUPassTimestampWrites {
3912    pub nextInChain: *mut WGPUChainedStruct,
3913    pub querySet: WGPUQuerySet,
3914    pub beginningOfPassWriteIndex: u32,
3915    pub endOfPassWriteIndex: u32,
3916}
3917#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3918const _: () = {
3919    ["Size of WGPUPassTimestampWrites"]
3920        [::core::mem::size_of::<WGPUPassTimestampWrites>() - 24usize];
3921    ["Alignment of WGPUPassTimestampWrites"]
3922        [::core::mem::align_of::<WGPUPassTimestampWrites>() - 8usize];
3923    ["Offset of field: WGPUPassTimestampWrites::nextInChain"]
3924        [::core::mem::offset_of!(WGPUPassTimestampWrites, nextInChain) - 0usize];
3925    ["Offset of field: WGPUPassTimestampWrites::querySet"]
3926        [::core::mem::offset_of!(WGPUPassTimestampWrites, querySet) - 8usize];
3927    ["Offset of field: WGPUPassTimestampWrites::beginningOfPassWriteIndex"]
3928        [::core::mem::offset_of!(WGPUPassTimestampWrites, beginningOfPassWriteIndex) - 16usize];
3929    ["Offset of field: WGPUPassTimestampWrites::endOfPassWriteIndex"]
3930        [::core::mem::offset_of!(WGPUPassTimestampWrites, endOfPassWriteIndex) - 20usize];
3931};
3932impl Default for WGPUPassTimestampWrites {
3933    fn default() -> Self {
3934        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3935        unsafe {
3936            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3937            s.assume_init()
3938        }
3939    }
3940}
3941#[repr(C)]
3942#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3943pub struct WGPUPipelineLayoutStorageAttachment {
3944    pub nextInChain: *mut WGPUChainedStruct,
3945    pub offset: u64,
3946    pub format: WGPUTextureFormat,
3947}
3948#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3949const _: () = {
3950    ["Size of WGPUPipelineLayoutStorageAttachment"]
3951        [::core::mem::size_of::<WGPUPipelineLayoutStorageAttachment>() - 24usize];
3952    ["Alignment of WGPUPipelineLayoutStorageAttachment"]
3953        [::core::mem::align_of::<WGPUPipelineLayoutStorageAttachment>() - 8usize];
3954    ["Offset of field: WGPUPipelineLayoutStorageAttachment::nextInChain"]
3955        [::core::mem::offset_of!(WGPUPipelineLayoutStorageAttachment, nextInChain) - 0usize];
3956    ["Offset of field: WGPUPipelineLayoutStorageAttachment::offset"]
3957        [::core::mem::offset_of!(WGPUPipelineLayoutStorageAttachment, offset) - 8usize];
3958    ["Offset of field: WGPUPipelineLayoutStorageAttachment::format"]
3959        [::core::mem::offset_of!(WGPUPipelineLayoutStorageAttachment, format) - 16usize];
3960};
3961impl Default for WGPUPipelineLayoutStorageAttachment {
3962    fn default() -> Self {
3963        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3964        unsafe {
3965            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3966            s.assume_init()
3967        }
3968    }
3969}
3970#[repr(C)]
3971#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3972pub struct WGPUPrimitiveState {
3973    pub nextInChain: *mut WGPUChainedStruct,
3974    pub topology: WGPUPrimitiveTopology,
3975    pub stripIndexFormat: WGPUIndexFormat,
3976    pub frontFace: WGPUFrontFace,
3977    pub cullMode: WGPUCullMode,
3978    pub unclippedDepth: WGPUBool,
3979}
3980#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3981const _: () = {
3982    ["Size of WGPUPrimitiveState"][::core::mem::size_of::<WGPUPrimitiveState>() - 32usize];
3983    ["Alignment of WGPUPrimitiveState"][::core::mem::align_of::<WGPUPrimitiveState>() - 8usize];
3984    ["Offset of field: WGPUPrimitiveState::nextInChain"]
3985        [::core::mem::offset_of!(WGPUPrimitiveState, nextInChain) - 0usize];
3986    ["Offset of field: WGPUPrimitiveState::topology"]
3987        [::core::mem::offset_of!(WGPUPrimitiveState, topology) - 8usize];
3988    ["Offset of field: WGPUPrimitiveState::stripIndexFormat"]
3989        [::core::mem::offset_of!(WGPUPrimitiveState, stripIndexFormat) - 12usize];
3990    ["Offset of field: WGPUPrimitiveState::frontFace"]
3991        [::core::mem::offset_of!(WGPUPrimitiveState, frontFace) - 16usize];
3992    ["Offset of field: WGPUPrimitiveState::cullMode"]
3993        [::core::mem::offset_of!(WGPUPrimitiveState, cullMode) - 20usize];
3994    ["Offset of field: WGPUPrimitiveState::unclippedDepth"]
3995        [::core::mem::offset_of!(WGPUPrimitiveState, unclippedDepth) - 24usize];
3996};
3997impl Default for WGPUPrimitiveState {
3998    fn default() -> Self {
3999        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4000        unsafe {
4001            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4002            s.assume_init()
4003        }
4004    }
4005}
4006#[repr(C)]
4007#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4008pub struct WGPUQuerySetDescriptor {
4009    pub nextInChain: *mut WGPUChainedStruct,
4010    pub label: WGPUStringView,
4011    pub type_: WGPUQueryType,
4012    pub count: u32,
4013}
4014#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4015const _: () = {
4016    ["Size of WGPUQuerySetDescriptor"][::core::mem::size_of::<WGPUQuerySetDescriptor>() - 32usize];
4017    ["Alignment of WGPUQuerySetDescriptor"]
4018        [::core::mem::align_of::<WGPUQuerySetDescriptor>() - 8usize];
4019    ["Offset of field: WGPUQuerySetDescriptor::nextInChain"]
4020        [::core::mem::offset_of!(WGPUQuerySetDescriptor, nextInChain) - 0usize];
4021    ["Offset of field: WGPUQuerySetDescriptor::label"]
4022        [::core::mem::offset_of!(WGPUQuerySetDescriptor, label) - 8usize];
4023    ["Offset of field: WGPUQuerySetDescriptor::type_"]
4024        [::core::mem::offset_of!(WGPUQuerySetDescriptor, type_) - 24usize];
4025    ["Offset of field: WGPUQuerySetDescriptor::count"]
4026        [::core::mem::offset_of!(WGPUQuerySetDescriptor, count) - 28usize];
4027};
4028impl Default for WGPUQuerySetDescriptor {
4029    fn default() -> Self {
4030        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4031        unsafe {
4032            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4033            s.assume_init()
4034        }
4035    }
4036}
4037#[repr(C)]
4038#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4039pub struct WGPUQueueDescriptor {
4040    pub nextInChain: *mut WGPUChainedStruct,
4041    pub label: WGPUStringView,
4042}
4043#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4044const _: () = {
4045    ["Size of WGPUQueueDescriptor"][::core::mem::size_of::<WGPUQueueDescriptor>() - 24usize];
4046    ["Alignment of WGPUQueueDescriptor"][::core::mem::align_of::<WGPUQueueDescriptor>() - 8usize];
4047    ["Offset of field: WGPUQueueDescriptor::nextInChain"]
4048        [::core::mem::offset_of!(WGPUQueueDescriptor, nextInChain) - 0usize];
4049    ["Offset of field: WGPUQueueDescriptor::label"]
4050        [::core::mem::offset_of!(WGPUQueueDescriptor, label) - 8usize];
4051};
4052impl Default for WGPUQueueDescriptor {
4053    fn default() -> Self {
4054        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4055        unsafe {
4056            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4057            s.assume_init()
4058        }
4059    }
4060}
4061#[repr(C)]
4062#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4063pub struct WGPURenderBundleDescriptor {
4064    pub nextInChain: *mut WGPUChainedStruct,
4065    pub label: WGPUStringView,
4066}
4067#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4068const _: () = {
4069    ["Size of WGPURenderBundleDescriptor"]
4070        [::core::mem::size_of::<WGPURenderBundleDescriptor>() - 24usize];
4071    ["Alignment of WGPURenderBundleDescriptor"]
4072        [::core::mem::align_of::<WGPURenderBundleDescriptor>() - 8usize];
4073    ["Offset of field: WGPURenderBundleDescriptor::nextInChain"]
4074        [::core::mem::offset_of!(WGPURenderBundleDescriptor, nextInChain) - 0usize];
4075    ["Offset of field: WGPURenderBundleDescriptor::label"]
4076        [::core::mem::offset_of!(WGPURenderBundleDescriptor, label) - 8usize];
4077};
4078impl Default for WGPURenderBundleDescriptor {
4079    fn default() -> Self {
4080        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4081        unsafe {
4082            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4083            s.assume_init()
4084        }
4085    }
4086}
4087#[repr(C)]
4088#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4089pub struct WGPURenderBundleEncoderDescriptor {
4090    pub nextInChain: *mut WGPUChainedStruct,
4091    pub label: WGPUStringView,
4092    pub colorFormatCount: usize,
4093    pub colorFormats: *const WGPUTextureFormat,
4094    pub depthStencilFormat: WGPUTextureFormat,
4095    pub sampleCount: u32,
4096    pub depthReadOnly: WGPUBool,
4097    pub stencilReadOnly: WGPUBool,
4098}
4099#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4100const _: () = {
4101    ["Size of WGPURenderBundleEncoderDescriptor"]
4102        [::core::mem::size_of::<WGPURenderBundleEncoderDescriptor>() - 56usize];
4103    ["Alignment of WGPURenderBundleEncoderDescriptor"]
4104        [::core::mem::align_of::<WGPURenderBundleEncoderDescriptor>() - 8usize];
4105    ["Offset of field: WGPURenderBundleEncoderDescriptor::nextInChain"]
4106        [::core::mem::offset_of!(WGPURenderBundleEncoderDescriptor, nextInChain) - 0usize];
4107    ["Offset of field: WGPURenderBundleEncoderDescriptor::label"]
4108        [::core::mem::offset_of!(WGPURenderBundleEncoderDescriptor, label) - 8usize];
4109    ["Offset of field: WGPURenderBundleEncoderDescriptor::colorFormatCount"]
4110        [::core::mem::offset_of!(WGPURenderBundleEncoderDescriptor, colorFormatCount) - 24usize];
4111    ["Offset of field: WGPURenderBundleEncoderDescriptor::colorFormats"]
4112        [::core::mem::offset_of!(WGPURenderBundleEncoderDescriptor, colorFormats) - 32usize];
4113    ["Offset of field: WGPURenderBundleEncoderDescriptor::depthStencilFormat"]
4114        [::core::mem::offset_of!(WGPURenderBundleEncoderDescriptor, depthStencilFormat) - 40usize];
4115    ["Offset of field: WGPURenderBundleEncoderDescriptor::sampleCount"]
4116        [::core::mem::offset_of!(WGPURenderBundleEncoderDescriptor, sampleCount) - 44usize];
4117    ["Offset of field: WGPURenderBundleEncoderDescriptor::depthReadOnly"]
4118        [::core::mem::offset_of!(WGPURenderBundleEncoderDescriptor, depthReadOnly) - 48usize];
4119    ["Offset of field: WGPURenderBundleEncoderDescriptor::stencilReadOnly"]
4120        [::core::mem::offset_of!(WGPURenderBundleEncoderDescriptor, stencilReadOnly) - 52usize];
4121};
4122impl Default for WGPURenderBundleEncoderDescriptor {
4123    fn default() -> Self {
4124        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4125        unsafe {
4126            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4127            s.assume_init()
4128        }
4129    }
4130}
4131#[repr(C)]
4132#[derive(Debug, Copy, Clone, PartialOrd, PartialEq)]
4133pub struct WGPURenderPassDepthStencilAttachment {
4134    pub nextInChain: *mut WGPUChainedStruct,
4135    pub view: WGPUTextureView,
4136    pub depthLoadOp: WGPULoadOp,
4137    pub depthStoreOp: WGPUStoreOp,
4138    pub depthClearValue: f32,
4139    pub depthReadOnly: WGPUBool,
4140    pub stencilLoadOp: WGPULoadOp,
4141    pub stencilStoreOp: WGPUStoreOp,
4142    pub stencilClearValue: u32,
4143    pub stencilReadOnly: WGPUBool,
4144}
4145#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4146const _: () = {
4147    ["Size of WGPURenderPassDepthStencilAttachment"]
4148        [::core::mem::size_of::<WGPURenderPassDepthStencilAttachment>() - 48usize];
4149    ["Alignment of WGPURenderPassDepthStencilAttachment"]
4150        [::core::mem::align_of::<WGPURenderPassDepthStencilAttachment>() - 8usize];
4151    ["Offset of field: WGPURenderPassDepthStencilAttachment::nextInChain"]
4152        [::core::mem::offset_of!(WGPURenderPassDepthStencilAttachment, nextInChain) - 0usize];
4153    ["Offset of field: WGPURenderPassDepthStencilAttachment::view"]
4154        [::core::mem::offset_of!(WGPURenderPassDepthStencilAttachment, view) - 8usize];
4155    ["Offset of field: WGPURenderPassDepthStencilAttachment::depthLoadOp"]
4156        [::core::mem::offset_of!(WGPURenderPassDepthStencilAttachment, depthLoadOp) - 16usize];
4157    ["Offset of field: WGPURenderPassDepthStencilAttachment::depthStoreOp"]
4158        [::core::mem::offset_of!(WGPURenderPassDepthStencilAttachment, depthStoreOp) - 20usize];
4159    ["Offset of field: WGPURenderPassDepthStencilAttachment::depthClearValue"]
4160        [::core::mem::offset_of!(WGPURenderPassDepthStencilAttachment, depthClearValue) - 24usize];
4161    ["Offset of field: WGPURenderPassDepthStencilAttachment::depthReadOnly"]
4162        [::core::mem::offset_of!(WGPURenderPassDepthStencilAttachment, depthReadOnly) - 28usize];
4163    ["Offset of field: WGPURenderPassDepthStencilAttachment::stencilLoadOp"]
4164        [::core::mem::offset_of!(WGPURenderPassDepthStencilAttachment, stencilLoadOp) - 32usize];
4165    ["Offset of field: WGPURenderPassDepthStencilAttachment::stencilStoreOp"]
4166        [::core::mem::offset_of!(WGPURenderPassDepthStencilAttachment, stencilStoreOp) - 36usize];
4167    ["Offset of field: WGPURenderPassDepthStencilAttachment::stencilClearValue"][::core::mem::offset_of!(
4168        WGPURenderPassDepthStencilAttachment,
4169        stencilClearValue
4170    ) - 40usize];
4171    ["Offset of field: WGPURenderPassDepthStencilAttachment::stencilReadOnly"]
4172        [::core::mem::offset_of!(WGPURenderPassDepthStencilAttachment, stencilReadOnly) - 44usize];
4173};
4174impl Default for WGPURenderPassDepthStencilAttachment {
4175    fn default() -> Self {
4176        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4177        unsafe {
4178            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4179            s.assume_init()
4180        }
4181    }
4182}
4183#[repr(C)]
4184#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4185pub struct WGPURenderPassDescriptorExpandResolveRect {
4186    pub chain: WGPUChainedStruct,
4187    pub x: u32,
4188    pub y: u32,
4189    pub width: u32,
4190    pub height: u32,
4191}
4192#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4193const _: () = {
4194    ["Size of WGPURenderPassDescriptorExpandResolveRect"]
4195        [::core::mem::size_of::<WGPURenderPassDescriptorExpandResolveRect>() - 32usize];
4196    ["Alignment of WGPURenderPassDescriptorExpandResolveRect"]
4197        [::core::mem::align_of::<WGPURenderPassDescriptorExpandResolveRect>() - 8usize];
4198    ["Offset of field: WGPURenderPassDescriptorExpandResolveRect::chain"]
4199        [::core::mem::offset_of!(WGPURenderPassDescriptorExpandResolveRect, chain) - 0usize];
4200    ["Offset of field: WGPURenderPassDescriptorExpandResolveRect::x"]
4201        [::core::mem::offset_of!(WGPURenderPassDescriptorExpandResolveRect, x) - 16usize];
4202    ["Offset of field: WGPURenderPassDescriptorExpandResolveRect::y"]
4203        [::core::mem::offset_of!(WGPURenderPassDescriptorExpandResolveRect, y) - 20usize];
4204    ["Offset of field: WGPURenderPassDescriptorExpandResolveRect::width"]
4205        [::core::mem::offset_of!(WGPURenderPassDescriptorExpandResolveRect, width) - 24usize];
4206    ["Offset of field: WGPURenderPassDescriptorExpandResolveRect::height"]
4207        [::core::mem::offset_of!(WGPURenderPassDescriptorExpandResolveRect, height) - 28usize];
4208};
4209impl Default for WGPURenderPassDescriptorExpandResolveRect {
4210    fn default() -> Self {
4211        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4212        unsafe {
4213            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4214            s.assume_init()
4215        }
4216    }
4217}
4218#[repr(C)]
4219#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4220pub struct WGPURenderPassDescriptorResolveRect {
4221    pub chain: WGPUChainedStruct,
4222    pub colorOffsetX: u32,
4223    pub colorOffsetY: u32,
4224    pub resolveOffsetX: u32,
4225    pub resolveOffsetY: u32,
4226    pub width: u32,
4227    pub height: u32,
4228}
4229#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4230const _: () = {
4231    ["Size of WGPURenderPassDescriptorResolveRect"]
4232        [::core::mem::size_of::<WGPURenderPassDescriptorResolveRect>() - 40usize];
4233    ["Alignment of WGPURenderPassDescriptorResolveRect"]
4234        [::core::mem::align_of::<WGPURenderPassDescriptorResolveRect>() - 8usize];
4235    ["Offset of field: WGPURenderPassDescriptorResolveRect::chain"]
4236        [::core::mem::offset_of!(WGPURenderPassDescriptorResolveRect, chain) - 0usize];
4237    ["Offset of field: WGPURenderPassDescriptorResolveRect::colorOffsetX"]
4238        [::core::mem::offset_of!(WGPURenderPassDescriptorResolveRect, colorOffsetX) - 16usize];
4239    ["Offset of field: WGPURenderPassDescriptorResolveRect::colorOffsetY"]
4240        [::core::mem::offset_of!(WGPURenderPassDescriptorResolveRect, colorOffsetY) - 20usize];
4241    ["Offset of field: WGPURenderPassDescriptorResolveRect::resolveOffsetX"]
4242        [::core::mem::offset_of!(WGPURenderPassDescriptorResolveRect, resolveOffsetX) - 24usize];
4243    ["Offset of field: WGPURenderPassDescriptorResolveRect::resolveOffsetY"]
4244        [::core::mem::offset_of!(WGPURenderPassDescriptorResolveRect, resolveOffsetY) - 28usize];
4245    ["Offset of field: WGPURenderPassDescriptorResolveRect::width"]
4246        [::core::mem::offset_of!(WGPURenderPassDescriptorResolveRect, width) - 32usize];
4247    ["Offset of field: WGPURenderPassDescriptorResolveRect::height"]
4248        [::core::mem::offset_of!(WGPURenderPassDescriptorResolveRect, height) - 36usize];
4249};
4250impl Default for WGPURenderPassDescriptorResolveRect {
4251    fn default() -> Self {
4252        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4253        unsafe {
4254            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4255            s.assume_init()
4256        }
4257    }
4258}
4259#[repr(C)]
4260#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4261pub struct WGPURenderPassMaxDrawCount {
4262    pub chain: WGPUChainedStruct,
4263    pub maxDrawCount: u64,
4264}
4265#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4266const _: () = {
4267    ["Size of WGPURenderPassMaxDrawCount"]
4268        [::core::mem::size_of::<WGPURenderPassMaxDrawCount>() - 24usize];
4269    ["Alignment of WGPURenderPassMaxDrawCount"]
4270        [::core::mem::align_of::<WGPURenderPassMaxDrawCount>() - 8usize];
4271    ["Offset of field: WGPURenderPassMaxDrawCount::chain"]
4272        [::core::mem::offset_of!(WGPURenderPassMaxDrawCount, chain) - 0usize];
4273    ["Offset of field: WGPURenderPassMaxDrawCount::maxDrawCount"]
4274        [::core::mem::offset_of!(WGPURenderPassMaxDrawCount, maxDrawCount) - 16usize];
4275};
4276impl Default for WGPURenderPassMaxDrawCount {
4277    fn default() -> Self {
4278        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4279        unsafe {
4280            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4281            s.assume_init()
4282        }
4283    }
4284}
4285#[repr(C)]
4286#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4287pub struct WGPURequestAdapterWebXROptions {
4288    pub chain: WGPUChainedStruct,
4289    pub xrCompatible: WGPUBool,
4290}
4291#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4292const _: () = {
4293    ["Size of WGPURequestAdapterWebXROptions"]
4294        [::core::mem::size_of::<WGPURequestAdapterWebXROptions>() - 24usize];
4295    ["Alignment of WGPURequestAdapterWebXROptions"]
4296        [::core::mem::align_of::<WGPURequestAdapterWebXROptions>() - 8usize];
4297    ["Offset of field: WGPURequestAdapterWebXROptions::chain"]
4298        [::core::mem::offset_of!(WGPURequestAdapterWebXROptions, chain) - 0usize];
4299    ["Offset of field: WGPURequestAdapterWebXROptions::xrCompatible"]
4300        [::core::mem::offset_of!(WGPURequestAdapterWebXROptions, xrCompatible) - 16usize];
4301};
4302impl Default for WGPURequestAdapterWebXROptions {
4303    fn default() -> Self {
4304        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4305        unsafe {
4306            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4307            s.assume_init()
4308        }
4309    }
4310}
4311#[repr(C)]
4312#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4313pub struct WGPUSamplerBindingLayout {
4314    pub nextInChain: *mut WGPUChainedStruct,
4315    pub type_: WGPUSamplerBindingType,
4316}
4317#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4318const _: () = {
4319    ["Size of WGPUSamplerBindingLayout"]
4320        [::core::mem::size_of::<WGPUSamplerBindingLayout>() - 16usize];
4321    ["Alignment of WGPUSamplerBindingLayout"]
4322        [::core::mem::align_of::<WGPUSamplerBindingLayout>() - 8usize];
4323    ["Offset of field: WGPUSamplerBindingLayout::nextInChain"]
4324        [::core::mem::offset_of!(WGPUSamplerBindingLayout, nextInChain) - 0usize];
4325    ["Offset of field: WGPUSamplerBindingLayout::type_"]
4326        [::core::mem::offset_of!(WGPUSamplerBindingLayout, type_) - 8usize];
4327};
4328impl Default for WGPUSamplerBindingLayout {
4329    fn default() -> Self {
4330        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4331        unsafe {
4332            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4333            s.assume_init()
4334        }
4335    }
4336}
4337#[repr(C)]
4338#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4339pub struct WGPUShaderModuleCompilationOptions {
4340    pub chain: WGPUChainedStruct,
4341    pub strictMath: WGPUBool,
4342}
4343#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4344const _: () = {
4345    ["Size of WGPUShaderModuleCompilationOptions"]
4346        [::core::mem::size_of::<WGPUShaderModuleCompilationOptions>() - 24usize];
4347    ["Alignment of WGPUShaderModuleCompilationOptions"]
4348        [::core::mem::align_of::<WGPUShaderModuleCompilationOptions>() - 8usize];
4349    ["Offset of field: WGPUShaderModuleCompilationOptions::chain"]
4350        [::core::mem::offset_of!(WGPUShaderModuleCompilationOptions, chain) - 0usize];
4351    ["Offset of field: WGPUShaderModuleCompilationOptions::strictMath"]
4352        [::core::mem::offset_of!(WGPUShaderModuleCompilationOptions, strictMath) - 16usize];
4353};
4354impl Default for WGPUShaderModuleCompilationOptions {
4355    fn default() -> Self {
4356        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4357        unsafe {
4358            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4359            s.assume_init()
4360        }
4361    }
4362}
4363#[repr(C)]
4364#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4365pub struct WGPUShaderSourceSPIRV {
4366    pub chain: WGPUChainedStruct,
4367    pub codeSize: u32,
4368    pub code: *const u32,
4369}
4370#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4371const _: () = {
4372    ["Size of WGPUShaderSourceSPIRV"][::core::mem::size_of::<WGPUShaderSourceSPIRV>() - 32usize];
4373    ["Alignment of WGPUShaderSourceSPIRV"]
4374        [::core::mem::align_of::<WGPUShaderSourceSPIRV>() - 8usize];
4375    ["Offset of field: WGPUShaderSourceSPIRV::chain"]
4376        [::core::mem::offset_of!(WGPUShaderSourceSPIRV, chain) - 0usize];
4377    ["Offset of field: WGPUShaderSourceSPIRV::codeSize"]
4378        [::core::mem::offset_of!(WGPUShaderSourceSPIRV, codeSize) - 16usize];
4379    ["Offset of field: WGPUShaderSourceSPIRV::code"]
4380        [::core::mem::offset_of!(WGPUShaderSourceSPIRV, code) - 24usize];
4381};
4382impl Default for WGPUShaderSourceSPIRV {
4383    fn default() -> Self {
4384        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4385        unsafe {
4386            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4387            s.assume_init()
4388        }
4389    }
4390}
4391#[repr(C)]
4392#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4393pub struct WGPUShaderSourceWGSL {
4394    pub chain: WGPUChainedStruct,
4395    pub code: WGPUStringView,
4396}
4397#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4398const _: () = {
4399    ["Size of WGPUShaderSourceWGSL"][::core::mem::size_of::<WGPUShaderSourceWGSL>() - 32usize];
4400    ["Alignment of WGPUShaderSourceWGSL"][::core::mem::align_of::<WGPUShaderSourceWGSL>() - 8usize];
4401    ["Offset of field: WGPUShaderSourceWGSL::chain"]
4402        [::core::mem::offset_of!(WGPUShaderSourceWGSL, chain) - 0usize];
4403    ["Offset of field: WGPUShaderSourceWGSL::code"]
4404        [::core::mem::offset_of!(WGPUShaderSourceWGSL, code) - 16usize];
4405};
4406impl Default for WGPUShaderSourceWGSL {
4407    fn default() -> Self {
4408        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4409        unsafe {
4410            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4411            s.assume_init()
4412        }
4413    }
4414}
4415#[repr(C)]
4416#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4417pub struct WGPUSharedBufferMemoryBeginAccessDescriptor {
4418    pub nextInChain: *mut WGPUChainedStruct,
4419    pub initialized: WGPUBool,
4420    pub fenceCount: usize,
4421    pub fences: *const WGPUSharedFence,
4422    pub signaledValues: *const u64,
4423}
4424#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4425const _: () = {
4426    ["Size of WGPUSharedBufferMemoryBeginAccessDescriptor"]
4427        [::core::mem::size_of::<WGPUSharedBufferMemoryBeginAccessDescriptor>() - 40usize];
4428    ["Alignment of WGPUSharedBufferMemoryBeginAccessDescriptor"]
4429        [::core::mem::align_of::<WGPUSharedBufferMemoryBeginAccessDescriptor>() - 8usize];
4430    ["Offset of field: WGPUSharedBufferMemoryBeginAccessDescriptor::nextInChain"][::core::mem::offset_of!(
4431        WGPUSharedBufferMemoryBeginAccessDescriptor,
4432        nextInChain
4433    ) - 0usize];
4434    ["Offset of field: WGPUSharedBufferMemoryBeginAccessDescriptor::initialized"][::core::mem::offset_of!(
4435        WGPUSharedBufferMemoryBeginAccessDescriptor,
4436        initialized
4437    ) - 8usize];
4438    ["Offset of field: WGPUSharedBufferMemoryBeginAccessDescriptor::fenceCount"][::core::mem::offset_of!(
4439        WGPUSharedBufferMemoryBeginAccessDescriptor,
4440        fenceCount
4441    ) - 16usize];
4442    ["Offset of field: WGPUSharedBufferMemoryBeginAccessDescriptor::fences"]
4443        [::core::mem::offset_of!(WGPUSharedBufferMemoryBeginAccessDescriptor, fences) - 24usize];
4444    ["Offset of field: WGPUSharedBufferMemoryBeginAccessDescriptor::signaledValues"][::core::mem::offset_of!(
4445        WGPUSharedBufferMemoryBeginAccessDescriptor,
4446        signaledValues
4447    ) - 32usize];
4448};
4449impl Default for WGPUSharedBufferMemoryBeginAccessDescriptor {
4450    fn default() -> Self {
4451        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4452        unsafe {
4453            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4454            s.assume_init()
4455        }
4456    }
4457}
4458#[repr(C)]
4459#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4460pub struct WGPUSharedBufferMemoryDescriptor {
4461    pub nextInChain: *mut WGPUChainedStruct,
4462    pub label: WGPUStringView,
4463}
4464#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4465const _: () = {
4466    ["Size of WGPUSharedBufferMemoryDescriptor"]
4467        [::core::mem::size_of::<WGPUSharedBufferMemoryDescriptor>() - 24usize];
4468    ["Alignment of WGPUSharedBufferMemoryDescriptor"]
4469        [::core::mem::align_of::<WGPUSharedBufferMemoryDescriptor>() - 8usize];
4470    ["Offset of field: WGPUSharedBufferMemoryDescriptor::nextInChain"]
4471        [::core::mem::offset_of!(WGPUSharedBufferMemoryDescriptor, nextInChain) - 0usize];
4472    ["Offset of field: WGPUSharedBufferMemoryDescriptor::label"]
4473        [::core::mem::offset_of!(WGPUSharedBufferMemoryDescriptor, label) - 8usize];
4474};
4475impl Default for WGPUSharedBufferMemoryDescriptor {
4476    fn default() -> Self {
4477        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4478        unsafe {
4479            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4480            s.assume_init()
4481        }
4482    }
4483}
4484#[repr(C)]
4485#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4486pub struct WGPUSharedBufferMemoryEndAccessState {
4487    pub nextInChain: *mut WGPUChainedStruct,
4488    pub initialized: WGPUBool,
4489    pub fenceCount: usize,
4490    pub fences: *const WGPUSharedFence,
4491    pub signaledValues: *const u64,
4492}
4493#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4494const _: () = {
4495    ["Size of WGPUSharedBufferMemoryEndAccessState"]
4496        [::core::mem::size_of::<WGPUSharedBufferMemoryEndAccessState>() - 40usize];
4497    ["Alignment of WGPUSharedBufferMemoryEndAccessState"]
4498        [::core::mem::align_of::<WGPUSharedBufferMemoryEndAccessState>() - 8usize];
4499    ["Offset of field: WGPUSharedBufferMemoryEndAccessState::nextInChain"]
4500        [::core::mem::offset_of!(WGPUSharedBufferMemoryEndAccessState, nextInChain) - 0usize];
4501    ["Offset of field: WGPUSharedBufferMemoryEndAccessState::initialized"]
4502        [::core::mem::offset_of!(WGPUSharedBufferMemoryEndAccessState, initialized) - 8usize];
4503    ["Offset of field: WGPUSharedBufferMemoryEndAccessState::fenceCount"]
4504        [::core::mem::offset_of!(WGPUSharedBufferMemoryEndAccessState, fenceCount) - 16usize];
4505    ["Offset of field: WGPUSharedBufferMemoryEndAccessState::fences"]
4506        [::core::mem::offset_of!(WGPUSharedBufferMemoryEndAccessState, fences) - 24usize];
4507    ["Offset of field: WGPUSharedBufferMemoryEndAccessState::signaledValues"]
4508        [::core::mem::offset_of!(WGPUSharedBufferMemoryEndAccessState, signaledValues) - 32usize];
4509};
4510impl Default for WGPUSharedBufferMemoryEndAccessState {
4511    fn default() -> Self {
4512        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4513        unsafe {
4514            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4515            s.assume_init()
4516        }
4517    }
4518}
4519#[repr(C)]
4520#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4521pub struct WGPUSharedBufferMemoryProperties {
4522    pub nextInChain: *mut WGPUChainedStruct,
4523    pub usage: WGPUBufferUsage,
4524    pub size: u64,
4525}
4526#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4527const _: () = {
4528    ["Size of WGPUSharedBufferMemoryProperties"]
4529        [::core::mem::size_of::<WGPUSharedBufferMemoryProperties>() - 24usize];
4530    ["Alignment of WGPUSharedBufferMemoryProperties"]
4531        [::core::mem::align_of::<WGPUSharedBufferMemoryProperties>() - 8usize];
4532    ["Offset of field: WGPUSharedBufferMemoryProperties::nextInChain"]
4533        [::core::mem::offset_of!(WGPUSharedBufferMemoryProperties, nextInChain) - 0usize];
4534    ["Offset of field: WGPUSharedBufferMemoryProperties::usage"]
4535        [::core::mem::offset_of!(WGPUSharedBufferMemoryProperties, usage) - 8usize];
4536    ["Offset of field: WGPUSharedBufferMemoryProperties::size"]
4537        [::core::mem::offset_of!(WGPUSharedBufferMemoryProperties, size) - 16usize];
4538};
4539impl Default for WGPUSharedBufferMemoryProperties {
4540    fn default() -> Self {
4541        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4542        unsafe {
4543            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4544            s.assume_init()
4545        }
4546    }
4547}
4548#[repr(C)]
4549#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4550pub struct WGPUSharedFenceDXGISharedHandleDescriptor {
4551    pub chain: WGPUChainedStruct,
4552    pub handle: *mut ::core::ffi::c_void,
4553}
4554#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4555const _: () = {
4556    ["Size of WGPUSharedFenceDXGISharedHandleDescriptor"]
4557        [::core::mem::size_of::<WGPUSharedFenceDXGISharedHandleDescriptor>() - 24usize];
4558    ["Alignment of WGPUSharedFenceDXGISharedHandleDescriptor"]
4559        [::core::mem::align_of::<WGPUSharedFenceDXGISharedHandleDescriptor>() - 8usize];
4560    ["Offset of field: WGPUSharedFenceDXGISharedHandleDescriptor::chain"]
4561        [::core::mem::offset_of!(WGPUSharedFenceDXGISharedHandleDescriptor, chain) - 0usize];
4562    ["Offset of field: WGPUSharedFenceDXGISharedHandleDescriptor::handle"]
4563        [::core::mem::offset_of!(WGPUSharedFenceDXGISharedHandleDescriptor, handle) - 16usize];
4564};
4565impl Default for WGPUSharedFenceDXGISharedHandleDescriptor {
4566    fn default() -> Self {
4567        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4568        unsafe {
4569            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4570            s.assume_init()
4571        }
4572    }
4573}
4574#[repr(C)]
4575#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4576pub struct WGPUSharedFenceDXGISharedHandleExportInfo {
4577    pub chain: WGPUChainedStruct,
4578    pub handle: *mut ::core::ffi::c_void,
4579}
4580#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4581const _: () = {
4582    ["Size of WGPUSharedFenceDXGISharedHandleExportInfo"]
4583        [::core::mem::size_of::<WGPUSharedFenceDXGISharedHandleExportInfo>() - 24usize];
4584    ["Alignment of WGPUSharedFenceDXGISharedHandleExportInfo"]
4585        [::core::mem::align_of::<WGPUSharedFenceDXGISharedHandleExportInfo>() - 8usize];
4586    ["Offset of field: WGPUSharedFenceDXGISharedHandleExportInfo::chain"]
4587        [::core::mem::offset_of!(WGPUSharedFenceDXGISharedHandleExportInfo, chain) - 0usize];
4588    ["Offset of field: WGPUSharedFenceDXGISharedHandleExportInfo::handle"]
4589        [::core::mem::offset_of!(WGPUSharedFenceDXGISharedHandleExportInfo, handle) - 16usize];
4590};
4591impl Default for WGPUSharedFenceDXGISharedHandleExportInfo {
4592    fn default() -> Self {
4593        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4594        unsafe {
4595            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4596            s.assume_init()
4597        }
4598    }
4599}
4600#[repr(C)]
4601#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4602pub struct WGPUSharedFenceEGLSyncDescriptor {
4603    pub chain: WGPUChainedStruct,
4604    pub sync: *mut ::core::ffi::c_void,
4605}
4606#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4607const _: () = {
4608    ["Size of WGPUSharedFenceEGLSyncDescriptor"]
4609        [::core::mem::size_of::<WGPUSharedFenceEGLSyncDescriptor>() - 24usize];
4610    ["Alignment of WGPUSharedFenceEGLSyncDescriptor"]
4611        [::core::mem::align_of::<WGPUSharedFenceEGLSyncDescriptor>() - 8usize];
4612    ["Offset of field: WGPUSharedFenceEGLSyncDescriptor::chain"]
4613        [::core::mem::offset_of!(WGPUSharedFenceEGLSyncDescriptor, chain) - 0usize];
4614    ["Offset of field: WGPUSharedFenceEGLSyncDescriptor::sync"]
4615        [::core::mem::offset_of!(WGPUSharedFenceEGLSyncDescriptor, sync) - 16usize];
4616};
4617impl Default for WGPUSharedFenceEGLSyncDescriptor {
4618    fn default() -> Self {
4619        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4620        unsafe {
4621            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4622            s.assume_init()
4623        }
4624    }
4625}
4626#[repr(C)]
4627#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4628pub struct WGPUSharedFenceEGLSyncExportInfo {
4629    pub chain: WGPUChainedStruct,
4630    pub sync: *mut ::core::ffi::c_void,
4631}
4632#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4633const _: () = {
4634    ["Size of WGPUSharedFenceEGLSyncExportInfo"]
4635        [::core::mem::size_of::<WGPUSharedFenceEGLSyncExportInfo>() - 24usize];
4636    ["Alignment of WGPUSharedFenceEGLSyncExportInfo"]
4637        [::core::mem::align_of::<WGPUSharedFenceEGLSyncExportInfo>() - 8usize];
4638    ["Offset of field: WGPUSharedFenceEGLSyncExportInfo::chain"]
4639        [::core::mem::offset_of!(WGPUSharedFenceEGLSyncExportInfo, chain) - 0usize];
4640    ["Offset of field: WGPUSharedFenceEGLSyncExportInfo::sync"]
4641        [::core::mem::offset_of!(WGPUSharedFenceEGLSyncExportInfo, sync) - 16usize];
4642};
4643impl Default for WGPUSharedFenceEGLSyncExportInfo {
4644    fn default() -> Self {
4645        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4646        unsafe {
4647            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4648            s.assume_init()
4649        }
4650    }
4651}
4652#[repr(C)]
4653#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4654pub struct WGPUSharedFenceMTLSharedEventDescriptor {
4655    pub chain: WGPUChainedStruct,
4656    pub sharedEvent: *mut ::core::ffi::c_void,
4657}
4658#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4659const _: () = {
4660    ["Size of WGPUSharedFenceMTLSharedEventDescriptor"]
4661        [::core::mem::size_of::<WGPUSharedFenceMTLSharedEventDescriptor>() - 24usize];
4662    ["Alignment of WGPUSharedFenceMTLSharedEventDescriptor"]
4663        [::core::mem::align_of::<WGPUSharedFenceMTLSharedEventDescriptor>() - 8usize];
4664    ["Offset of field: WGPUSharedFenceMTLSharedEventDescriptor::chain"]
4665        [::core::mem::offset_of!(WGPUSharedFenceMTLSharedEventDescriptor, chain) - 0usize];
4666    ["Offset of field: WGPUSharedFenceMTLSharedEventDescriptor::sharedEvent"]
4667        [::core::mem::offset_of!(WGPUSharedFenceMTLSharedEventDescriptor, sharedEvent) - 16usize];
4668};
4669impl Default for WGPUSharedFenceMTLSharedEventDescriptor {
4670    fn default() -> Self {
4671        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4672        unsafe {
4673            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4674            s.assume_init()
4675        }
4676    }
4677}
4678#[repr(C)]
4679#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4680pub struct WGPUSharedFenceMTLSharedEventExportInfo {
4681    pub chain: WGPUChainedStruct,
4682    pub sharedEvent: *mut ::core::ffi::c_void,
4683}
4684#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4685const _: () = {
4686    ["Size of WGPUSharedFenceMTLSharedEventExportInfo"]
4687        [::core::mem::size_of::<WGPUSharedFenceMTLSharedEventExportInfo>() - 24usize];
4688    ["Alignment of WGPUSharedFenceMTLSharedEventExportInfo"]
4689        [::core::mem::align_of::<WGPUSharedFenceMTLSharedEventExportInfo>() - 8usize];
4690    ["Offset of field: WGPUSharedFenceMTLSharedEventExportInfo::chain"]
4691        [::core::mem::offset_of!(WGPUSharedFenceMTLSharedEventExportInfo, chain) - 0usize];
4692    ["Offset of field: WGPUSharedFenceMTLSharedEventExportInfo::sharedEvent"]
4693        [::core::mem::offset_of!(WGPUSharedFenceMTLSharedEventExportInfo, sharedEvent) - 16usize];
4694};
4695impl Default for WGPUSharedFenceMTLSharedEventExportInfo {
4696    fn default() -> Self {
4697        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4698        unsafe {
4699            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4700            s.assume_init()
4701        }
4702    }
4703}
4704#[repr(C)]
4705#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4706pub struct WGPUSharedFenceSyncFDDescriptor {
4707    pub chain: WGPUChainedStruct,
4708    pub handle: ::core::ffi::c_int,
4709}
4710#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4711const _: () = {
4712    ["Size of WGPUSharedFenceSyncFDDescriptor"]
4713        [::core::mem::size_of::<WGPUSharedFenceSyncFDDescriptor>() - 24usize];
4714    ["Alignment of WGPUSharedFenceSyncFDDescriptor"]
4715        [::core::mem::align_of::<WGPUSharedFenceSyncFDDescriptor>() - 8usize];
4716    ["Offset of field: WGPUSharedFenceSyncFDDescriptor::chain"]
4717        [::core::mem::offset_of!(WGPUSharedFenceSyncFDDescriptor, chain) - 0usize];
4718    ["Offset of field: WGPUSharedFenceSyncFDDescriptor::handle"]
4719        [::core::mem::offset_of!(WGPUSharedFenceSyncFDDescriptor, handle) - 16usize];
4720};
4721impl Default for WGPUSharedFenceSyncFDDescriptor {
4722    fn default() -> Self {
4723        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4724        unsafe {
4725            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4726            s.assume_init()
4727        }
4728    }
4729}
4730#[repr(C)]
4731#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4732pub struct WGPUSharedFenceSyncFDExportInfo {
4733    pub chain: WGPUChainedStruct,
4734    pub handle: ::core::ffi::c_int,
4735}
4736#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4737const _: () = {
4738    ["Size of WGPUSharedFenceSyncFDExportInfo"]
4739        [::core::mem::size_of::<WGPUSharedFenceSyncFDExportInfo>() - 24usize];
4740    ["Alignment of WGPUSharedFenceSyncFDExportInfo"]
4741        [::core::mem::align_of::<WGPUSharedFenceSyncFDExportInfo>() - 8usize];
4742    ["Offset of field: WGPUSharedFenceSyncFDExportInfo::chain"]
4743        [::core::mem::offset_of!(WGPUSharedFenceSyncFDExportInfo, chain) - 0usize];
4744    ["Offset of field: WGPUSharedFenceSyncFDExportInfo::handle"]
4745        [::core::mem::offset_of!(WGPUSharedFenceSyncFDExportInfo, handle) - 16usize];
4746};
4747impl Default for WGPUSharedFenceSyncFDExportInfo {
4748    fn default() -> Self {
4749        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4750        unsafe {
4751            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4752            s.assume_init()
4753        }
4754    }
4755}
4756#[repr(C)]
4757#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4758pub struct WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor {
4759    pub chain: WGPUChainedStruct,
4760    pub handle: ::core::ffi::c_int,
4761}
4762#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4763const _: () = {
4764    ["Size of WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor"]
4765        [::core::mem::size_of::<WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor>() - 24usize];
4766    ["Alignment of WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor"]
4767        [::core::mem::align_of::<WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor>() - 8usize];
4768    ["Offset of field: WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor::chain"]
4769        [::core::mem::offset_of!(WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor, chain) - 0usize];
4770    ["Offset of field: WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor::handle"]
4771        [::core::mem::offset_of!(WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor, handle) - 16usize];
4772};
4773impl Default for WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor {
4774    fn default() -> Self {
4775        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4776        unsafe {
4777            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4778            s.assume_init()
4779        }
4780    }
4781}
4782#[repr(C)]
4783#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4784pub struct WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo {
4785    pub chain: WGPUChainedStruct,
4786    pub handle: ::core::ffi::c_int,
4787}
4788#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4789const _: () = {
4790    ["Size of WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo"]
4791        [::core::mem::size_of::<WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo>() - 24usize];
4792    ["Alignment of WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo"]
4793        [::core::mem::align_of::<WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo>() - 8usize];
4794    ["Offset of field: WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo::chain"]
4795        [::core::mem::offset_of!(WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo, chain) - 0usize];
4796    ["Offset of field: WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo::handle"]
4797        [::core::mem::offset_of!(WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo, handle) - 16usize];
4798};
4799impl Default for WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo {
4800    fn default() -> Self {
4801        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4802        unsafe {
4803            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4804            s.assume_init()
4805        }
4806    }
4807}
4808#[repr(C)]
4809#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4810pub struct WGPUSharedFenceVkSemaphoreZirconHandleDescriptor {
4811    pub chain: WGPUChainedStruct,
4812    pub handle: u32,
4813}
4814#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4815const _: () = {
4816    ["Size of WGPUSharedFenceVkSemaphoreZirconHandleDescriptor"]
4817        [::core::mem::size_of::<WGPUSharedFenceVkSemaphoreZirconHandleDescriptor>() - 24usize];
4818    ["Alignment of WGPUSharedFenceVkSemaphoreZirconHandleDescriptor"]
4819        [::core::mem::align_of::<WGPUSharedFenceVkSemaphoreZirconHandleDescriptor>() - 8usize];
4820    ["Offset of field: WGPUSharedFenceVkSemaphoreZirconHandleDescriptor::chain"]
4821        [::core::mem::offset_of!(WGPUSharedFenceVkSemaphoreZirconHandleDescriptor, chain) - 0usize];
4822    ["Offset of field: WGPUSharedFenceVkSemaphoreZirconHandleDescriptor::handle"][::core::mem::offset_of!(
4823        WGPUSharedFenceVkSemaphoreZirconHandleDescriptor,
4824        handle
4825    ) - 16usize];
4826};
4827impl Default for WGPUSharedFenceVkSemaphoreZirconHandleDescriptor {
4828    fn default() -> Self {
4829        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4830        unsafe {
4831            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4832            s.assume_init()
4833        }
4834    }
4835}
4836#[repr(C)]
4837#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4838pub struct WGPUSharedFenceVkSemaphoreZirconHandleExportInfo {
4839    pub chain: WGPUChainedStruct,
4840    pub handle: u32,
4841}
4842#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4843const _: () = {
4844    ["Size of WGPUSharedFenceVkSemaphoreZirconHandleExportInfo"]
4845        [::core::mem::size_of::<WGPUSharedFenceVkSemaphoreZirconHandleExportInfo>() - 24usize];
4846    ["Alignment of WGPUSharedFenceVkSemaphoreZirconHandleExportInfo"]
4847        [::core::mem::align_of::<WGPUSharedFenceVkSemaphoreZirconHandleExportInfo>() - 8usize];
4848    ["Offset of field: WGPUSharedFenceVkSemaphoreZirconHandleExportInfo::chain"]
4849        [::core::mem::offset_of!(WGPUSharedFenceVkSemaphoreZirconHandleExportInfo, chain) - 0usize];
4850    ["Offset of field: WGPUSharedFenceVkSemaphoreZirconHandleExportInfo::handle"][::core::mem::offset_of!(
4851        WGPUSharedFenceVkSemaphoreZirconHandleExportInfo,
4852        handle
4853    ) - 16usize];
4854};
4855impl Default for WGPUSharedFenceVkSemaphoreZirconHandleExportInfo {
4856    fn default() -> Self {
4857        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4858        unsafe {
4859            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4860            s.assume_init()
4861        }
4862    }
4863}
4864#[repr(C)]
4865#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4866pub struct WGPUSharedTextureMemoryAHardwareBufferDescriptor {
4867    pub chain: WGPUChainedStruct,
4868    pub handle: *mut ::core::ffi::c_void,
4869    pub useExternalFormat: WGPUBool,
4870}
4871#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4872const _: () = {
4873    ["Size of WGPUSharedTextureMemoryAHardwareBufferDescriptor"]
4874        [::core::mem::size_of::<WGPUSharedTextureMemoryAHardwareBufferDescriptor>() - 32usize];
4875    ["Alignment of WGPUSharedTextureMemoryAHardwareBufferDescriptor"]
4876        [::core::mem::align_of::<WGPUSharedTextureMemoryAHardwareBufferDescriptor>() - 8usize];
4877    ["Offset of field: WGPUSharedTextureMemoryAHardwareBufferDescriptor::chain"]
4878        [::core::mem::offset_of!(WGPUSharedTextureMemoryAHardwareBufferDescriptor, chain) - 0usize];
4879    ["Offset of field: WGPUSharedTextureMemoryAHardwareBufferDescriptor::handle"][::core::mem::offset_of!(
4880        WGPUSharedTextureMemoryAHardwareBufferDescriptor,
4881        handle
4882    ) - 16usize];
4883    ["Offset of field: WGPUSharedTextureMemoryAHardwareBufferDescriptor::useExternalFormat"][::core::mem::offset_of!(
4884        WGPUSharedTextureMemoryAHardwareBufferDescriptor,
4885        useExternalFormat
4886    )
4887        - 24usize];
4888};
4889impl Default for WGPUSharedTextureMemoryAHardwareBufferDescriptor {
4890    fn default() -> Self {
4891        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4892        unsafe {
4893            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4894            s.assume_init()
4895        }
4896    }
4897}
4898#[repr(C)]
4899#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4900pub struct WGPUSharedTextureMemoryD3DSwapchainBeginState {
4901    pub chain: WGPUChainedStruct,
4902    pub isSwapchain: WGPUBool,
4903}
4904#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4905const _: () = {
4906    ["Size of WGPUSharedTextureMemoryD3DSwapchainBeginState"]
4907        [::core::mem::size_of::<WGPUSharedTextureMemoryD3DSwapchainBeginState>() - 24usize];
4908    ["Alignment of WGPUSharedTextureMemoryD3DSwapchainBeginState"]
4909        [::core::mem::align_of::<WGPUSharedTextureMemoryD3DSwapchainBeginState>() - 8usize];
4910    ["Offset of field: WGPUSharedTextureMemoryD3DSwapchainBeginState::chain"]
4911        [::core::mem::offset_of!(WGPUSharedTextureMemoryD3DSwapchainBeginState, chain) - 0usize];
4912    ["Offset of field: WGPUSharedTextureMemoryD3DSwapchainBeginState::isSwapchain"][::core::mem::offset_of!(
4913        WGPUSharedTextureMemoryD3DSwapchainBeginState,
4914        isSwapchain
4915    ) - 16usize];
4916};
4917impl Default for WGPUSharedTextureMemoryD3DSwapchainBeginState {
4918    fn default() -> Self {
4919        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4920        unsafe {
4921            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4922            s.assume_init()
4923        }
4924    }
4925}
4926#[repr(C)]
4927#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4928pub struct WGPUSharedTextureMemoryDmaBufPlane {
4929    pub fd: ::core::ffi::c_int,
4930    pub offset: u64,
4931    pub stride: u32,
4932}
4933#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4934const _: () = {
4935    ["Size of WGPUSharedTextureMemoryDmaBufPlane"]
4936        [::core::mem::size_of::<WGPUSharedTextureMemoryDmaBufPlane>() - 24usize];
4937    ["Alignment of WGPUSharedTextureMemoryDmaBufPlane"]
4938        [::core::mem::align_of::<WGPUSharedTextureMemoryDmaBufPlane>() - 8usize];
4939    ["Offset of field: WGPUSharedTextureMemoryDmaBufPlane::fd"]
4940        [::core::mem::offset_of!(WGPUSharedTextureMemoryDmaBufPlane, fd) - 0usize];
4941    ["Offset of field: WGPUSharedTextureMemoryDmaBufPlane::offset"]
4942        [::core::mem::offset_of!(WGPUSharedTextureMemoryDmaBufPlane, offset) - 8usize];
4943    ["Offset of field: WGPUSharedTextureMemoryDmaBufPlane::stride"]
4944        [::core::mem::offset_of!(WGPUSharedTextureMemoryDmaBufPlane, stride) - 16usize];
4945};
4946#[repr(C)]
4947#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4948pub struct WGPUSharedTextureMemoryDXGISharedHandleDescriptor {
4949    pub chain: WGPUChainedStruct,
4950    pub handle: *mut ::core::ffi::c_void,
4951    pub useKeyedMutex: WGPUBool,
4952}
4953#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4954const _: () = {
4955    ["Size of WGPUSharedTextureMemoryDXGISharedHandleDescriptor"]
4956        [::core::mem::size_of::<WGPUSharedTextureMemoryDXGISharedHandleDescriptor>() - 32usize];
4957    ["Alignment of WGPUSharedTextureMemoryDXGISharedHandleDescriptor"]
4958        [::core::mem::align_of::<WGPUSharedTextureMemoryDXGISharedHandleDescriptor>() - 8usize];
4959    ["Offset of field: WGPUSharedTextureMemoryDXGISharedHandleDescriptor::chain"][::core::mem::offset_of!(
4960        WGPUSharedTextureMemoryDXGISharedHandleDescriptor,
4961        chain
4962    ) - 0usize];
4963    ["Offset of field: WGPUSharedTextureMemoryDXGISharedHandleDescriptor::handle"][::core::mem::offset_of!(
4964        WGPUSharedTextureMemoryDXGISharedHandleDescriptor,
4965        handle
4966    ) - 16usize];
4967    ["Offset of field: WGPUSharedTextureMemoryDXGISharedHandleDescriptor::useKeyedMutex"][::core::mem::offset_of!(
4968        WGPUSharedTextureMemoryDXGISharedHandleDescriptor,
4969        useKeyedMutex
4970    )
4971        - 24usize];
4972};
4973impl Default for WGPUSharedTextureMemoryDXGISharedHandleDescriptor {
4974    fn default() -> Self {
4975        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4976        unsafe {
4977            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4978            s.assume_init()
4979        }
4980    }
4981}
4982#[repr(C)]
4983#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4984pub struct WGPUSharedTextureMemoryEGLImageDescriptor {
4985    pub chain: WGPUChainedStruct,
4986    pub image: *mut ::core::ffi::c_void,
4987}
4988#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4989const _: () = {
4990    ["Size of WGPUSharedTextureMemoryEGLImageDescriptor"]
4991        [::core::mem::size_of::<WGPUSharedTextureMemoryEGLImageDescriptor>() - 24usize];
4992    ["Alignment of WGPUSharedTextureMemoryEGLImageDescriptor"]
4993        [::core::mem::align_of::<WGPUSharedTextureMemoryEGLImageDescriptor>() - 8usize];
4994    ["Offset of field: WGPUSharedTextureMemoryEGLImageDescriptor::chain"]
4995        [::core::mem::offset_of!(WGPUSharedTextureMemoryEGLImageDescriptor, chain) - 0usize];
4996    ["Offset of field: WGPUSharedTextureMemoryEGLImageDescriptor::image"]
4997        [::core::mem::offset_of!(WGPUSharedTextureMemoryEGLImageDescriptor, image) - 16usize];
4998};
4999impl Default for WGPUSharedTextureMemoryEGLImageDescriptor {
5000    fn default() -> Self {
5001        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5002        unsafe {
5003            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5004            s.assume_init()
5005        }
5006    }
5007}
5008#[repr(C)]
5009#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5010pub struct WGPUSharedTextureMemoryIOSurfaceDescriptor {
5011    pub chain: WGPUChainedStruct,
5012    pub ioSurface: *mut ::core::ffi::c_void,
5013    pub allowStorageBinding: WGPUBool,
5014}
5015#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5016const _: () = {
5017    ["Size of WGPUSharedTextureMemoryIOSurfaceDescriptor"]
5018        [::core::mem::size_of::<WGPUSharedTextureMemoryIOSurfaceDescriptor>() - 32usize];
5019    ["Alignment of WGPUSharedTextureMemoryIOSurfaceDescriptor"]
5020        [::core::mem::align_of::<WGPUSharedTextureMemoryIOSurfaceDescriptor>() - 8usize];
5021    ["Offset of field: WGPUSharedTextureMemoryIOSurfaceDescriptor::chain"]
5022        [::core::mem::offset_of!(WGPUSharedTextureMemoryIOSurfaceDescriptor, chain) - 0usize];
5023    ["Offset of field: WGPUSharedTextureMemoryIOSurfaceDescriptor::ioSurface"]
5024        [::core::mem::offset_of!(WGPUSharedTextureMemoryIOSurfaceDescriptor, ioSurface) - 16usize];
5025    ["Offset of field: WGPUSharedTextureMemoryIOSurfaceDescriptor::allowStorageBinding"][::core::mem::offset_of!(
5026        WGPUSharedTextureMemoryIOSurfaceDescriptor,
5027        allowStorageBinding
5028    )
5029        - 24usize];
5030};
5031impl Default for WGPUSharedTextureMemoryIOSurfaceDescriptor {
5032    fn default() -> Self {
5033        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5034        unsafe {
5035            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5036            s.assume_init()
5037        }
5038    }
5039}
5040#[repr(C)]
5041#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5042pub struct WGPUSharedTextureMemoryOpaqueFDDescriptor {
5043    pub chain: WGPUChainedStruct,
5044    pub vkImageCreateInfo: *const ::core::ffi::c_void,
5045    pub memoryFD: ::core::ffi::c_int,
5046    pub memoryTypeIndex: u32,
5047    pub allocationSize: u64,
5048    pub dedicatedAllocation: WGPUBool,
5049}
5050#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5051const _: () = {
5052    ["Size of WGPUSharedTextureMemoryOpaqueFDDescriptor"]
5053        [::core::mem::size_of::<WGPUSharedTextureMemoryOpaqueFDDescriptor>() - 48usize];
5054    ["Alignment of WGPUSharedTextureMemoryOpaqueFDDescriptor"]
5055        [::core::mem::align_of::<WGPUSharedTextureMemoryOpaqueFDDescriptor>() - 8usize];
5056    ["Offset of field: WGPUSharedTextureMemoryOpaqueFDDescriptor::chain"]
5057        [::core::mem::offset_of!(WGPUSharedTextureMemoryOpaqueFDDescriptor, chain) - 0usize];
5058    ["Offset of field: WGPUSharedTextureMemoryOpaqueFDDescriptor::vkImageCreateInfo"][::core::mem::offset_of!(
5059        WGPUSharedTextureMemoryOpaqueFDDescriptor,
5060        vkImageCreateInfo
5061    ) - 16usize];
5062    ["Offset of field: WGPUSharedTextureMemoryOpaqueFDDescriptor::memoryFD"]
5063        [::core::mem::offset_of!(WGPUSharedTextureMemoryOpaqueFDDescriptor, memoryFD) - 24usize];
5064    ["Offset of field: WGPUSharedTextureMemoryOpaqueFDDescriptor::memoryTypeIndex"][::core::mem::offset_of!(
5065        WGPUSharedTextureMemoryOpaqueFDDescriptor,
5066        memoryTypeIndex
5067    ) - 28usize];
5068    ["Offset of field: WGPUSharedTextureMemoryOpaqueFDDescriptor::allocationSize"][::core::mem::offset_of!(
5069        WGPUSharedTextureMemoryOpaqueFDDescriptor,
5070        allocationSize
5071    ) - 32usize];
5072    ["Offset of field: WGPUSharedTextureMemoryOpaqueFDDescriptor::dedicatedAllocation"][::core::mem::offset_of!(
5073        WGPUSharedTextureMemoryOpaqueFDDescriptor,
5074        dedicatedAllocation
5075    )
5076        - 40usize];
5077};
5078impl Default for WGPUSharedTextureMemoryOpaqueFDDescriptor {
5079    fn default() -> Self {
5080        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5081        unsafe {
5082            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5083            s.assume_init()
5084        }
5085    }
5086}
5087#[repr(C)]
5088#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5089pub struct WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor {
5090    pub chain: WGPUChainedStruct,
5091    pub dedicatedAllocation: WGPUBool,
5092}
5093#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5094const _: () = {
5095    ["Size of WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor"][::core::mem::size_of::<
5096        WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor,
5097    >() - 24usize];
5098    ["Alignment of WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor"][::core::mem::align_of::<
5099        WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor,
5100    >() - 8usize];
5101    ["Offset of field: WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor::chain"][::core::mem::offset_of!(
5102        WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor,
5103        chain
5104    ) - 0usize];
5105    ["Offset of field: WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor::dedicatedAllocation"] [:: core :: mem :: offset_of ! (WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor , dedicatedAllocation) - 16usize] ;
5106};
5107impl Default for WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor {
5108    fn default() -> Self {
5109        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5110        unsafe {
5111            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5112            s.assume_init()
5113        }
5114    }
5115}
5116#[repr(C)]
5117#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5118pub struct WGPUSharedTextureMemoryVkImageLayoutBeginState {
5119    pub chain: WGPUChainedStruct,
5120    pub oldLayout: i32,
5121    pub newLayout: i32,
5122}
5123#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5124const _: () = {
5125    ["Size of WGPUSharedTextureMemoryVkImageLayoutBeginState"]
5126        [::core::mem::size_of::<WGPUSharedTextureMemoryVkImageLayoutBeginState>() - 24usize];
5127    ["Alignment of WGPUSharedTextureMemoryVkImageLayoutBeginState"]
5128        [::core::mem::align_of::<WGPUSharedTextureMemoryVkImageLayoutBeginState>() - 8usize];
5129    ["Offset of field: WGPUSharedTextureMemoryVkImageLayoutBeginState::chain"]
5130        [::core::mem::offset_of!(WGPUSharedTextureMemoryVkImageLayoutBeginState, chain) - 0usize];
5131    ["Offset of field: WGPUSharedTextureMemoryVkImageLayoutBeginState::oldLayout"][::core::mem::offset_of!(
5132        WGPUSharedTextureMemoryVkImageLayoutBeginState,
5133        oldLayout
5134    ) - 16usize];
5135    ["Offset of field: WGPUSharedTextureMemoryVkImageLayoutBeginState::newLayout"][::core::mem::offset_of!(
5136        WGPUSharedTextureMemoryVkImageLayoutBeginState,
5137        newLayout
5138    ) - 20usize];
5139};
5140impl Default for WGPUSharedTextureMemoryVkImageLayoutBeginState {
5141    fn default() -> Self {
5142        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5143        unsafe {
5144            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5145            s.assume_init()
5146        }
5147    }
5148}
5149#[repr(C)]
5150#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5151pub struct WGPUSharedTextureMemoryVkImageLayoutEndState {
5152    pub chain: WGPUChainedStruct,
5153    pub oldLayout: i32,
5154    pub newLayout: i32,
5155}
5156#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5157const _: () = {
5158    ["Size of WGPUSharedTextureMemoryVkImageLayoutEndState"]
5159        [::core::mem::size_of::<WGPUSharedTextureMemoryVkImageLayoutEndState>() - 24usize];
5160    ["Alignment of WGPUSharedTextureMemoryVkImageLayoutEndState"]
5161        [::core::mem::align_of::<WGPUSharedTextureMemoryVkImageLayoutEndState>() - 8usize];
5162    ["Offset of field: WGPUSharedTextureMemoryVkImageLayoutEndState::chain"]
5163        [::core::mem::offset_of!(WGPUSharedTextureMemoryVkImageLayoutEndState, chain) - 0usize];
5164    ["Offset of field: WGPUSharedTextureMemoryVkImageLayoutEndState::oldLayout"][::core::mem::offset_of!(
5165        WGPUSharedTextureMemoryVkImageLayoutEndState,
5166        oldLayout
5167    ) - 16usize];
5168    ["Offset of field: WGPUSharedTextureMemoryVkImageLayoutEndState::newLayout"][::core::mem::offset_of!(
5169        WGPUSharedTextureMemoryVkImageLayoutEndState,
5170        newLayout
5171    ) - 20usize];
5172};
5173impl Default for WGPUSharedTextureMemoryVkImageLayoutEndState {
5174    fn default() -> Self {
5175        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5176        unsafe {
5177            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5178            s.assume_init()
5179        }
5180    }
5181}
5182#[repr(C)]
5183#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5184pub struct WGPUSharedTextureMemoryZirconHandleDescriptor {
5185    pub chain: WGPUChainedStruct,
5186    pub memoryFD: u32,
5187    pub allocationSize: u64,
5188}
5189#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5190const _: () = {
5191    ["Size of WGPUSharedTextureMemoryZirconHandleDescriptor"]
5192        [::core::mem::size_of::<WGPUSharedTextureMemoryZirconHandleDescriptor>() - 32usize];
5193    ["Alignment of WGPUSharedTextureMemoryZirconHandleDescriptor"]
5194        [::core::mem::align_of::<WGPUSharedTextureMemoryZirconHandleDescriptor>() - 8usize];
5195    ["Offset of field: WGPUSharedTextureMemoryZirconHandleDescriptor::chain"]
5196        [::core::mem::offset_of!(WGPUSharedTextureMemoryZirconHandleDescriptor, chain) - 0usize];
5197    ["Offset of field: WGPUSharedTextureMemoryZirconHandleDescriptor::memoryFD"][::core::mem::offset_of!(
5198        WGPUSharedTextureMemoryZirconHandleDescriptor,
5199        memoryFD
5200    ) - 16usize];
5201    ["Offset of field: WGPUSharedTextureMemoryZirconHandleDescriptor::allocationSize"][::core::mem::offset_of!(
5202        WGPUSharedTextureMemoryZirconHandleDescriptor,
5203        allocationSize
5204    ) - 24usize];
5205};
5206impl Default for WGPUSharedTextureMemoryZirconHandleDescriptor {
5207    fn default() -> Self {
5208        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5209        unsafe {
5210            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5211            s.assume_init()
5212        }
5213    }
5214}
5215#[repr(C)]
5216#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5217pub struct WGPUStaticSamplerBindingLayout {
5218    pub chain: WGPUChainedStruct,
5219    pub sampler: WGPUSampler,
5220    pub sampledTextureBinding: u32,
5221}
5222#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5223const _: () = {
5224    ["Size of WGPUStaticSamplerBindingLayout"]
5225        [::core::mem::size_of::<WGPUStaticSamplerBindingLayout>() - 32usize];
5226    ["Alignment of WGPUStaticSamplerBindingLayout"]
5227        [::core::mem::align_of::<WGPUStaticSamplerBindingLayout>() - 8usize];
5228    ["Offset of field: WGPUStaticSamplerBindingLayout::chain"]
5229        [::core::mem::offset_of!(WGPUStaticSamplerBindingLayout, chain) - 0usize];
5230    ["Offset of field: WGPUStaticSamplerBindingLayout::sampler"]
5231        [::core::mem::offset_of!(WGPUStaticSamplerBindingLayout, sampler) - 16usize];
5232    ["Offset of field: WGPUStaticSamplerBindingLayout::sampledTextureBinding"]
5233        [::core::mem::offset_of!(WGPUStaticSamplerBindingLayout, sampledTextureBinding) - 24usize];
5234};
5235impl Default for WGPUStaticSamplerBindingLayout {
5236    fn default() -> Self {
5237        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5238        unsafe {
5239            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5240            s.assume_init()
5241        }
5242    }
5243}
5244#[repr(C)]
5245#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5246pub struct WGPUStencilFaceState {
5247    pub compare: WGPUCompareFunction,
5248    pub failOp: WGPUStencilOperation,
5249    pub depthFailOp: WGPUStencilOperation,
5250    pub passOp: WGPUStencilOperation,
5251}
5252#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5253const _: () = {
5254    ["Size of WGPUStencilFaceState"][::core::mem::size_of::<WGPUStencilFaceState>() - 16usize];
5255    ["Alignment of WGPUStencilFaceState"][::core::mem::align_of::<WGPUStencilFaceState>() - 4usize];
5256    ["Offset of field: WGPUStencilFaceState::compare"]
5257        [::core::mem::offset_of!(WGPUStencilFaceState, compare) - 0usize];
5258    ["Offset of field: WGPUStencilFaceState::failOp"]
5259        [::core::mem::offset_of!(WGPUStencilFaceState, failOp) - 4usize];
5260    ["Offset of field: WGPUStencilFaceState::depthFailOp"]
5261        [::core::mem::offset_of!(WGPUStencilFaceState, depthFailOp) - 8usize];
5262    ["Offset of field: WGPUStencilFaceState::passOp"]
5263        [::core::mem::offset_of!(WGPUStencilFaceState, passOp) - 12usize];
5264};
5265impl Default for WGPUStencilFaceState {
5266    fn default() -> Self {
5267        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5268        unsafe {
5269            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5270            s.assume_init()
5271        }
5272    }
5273}
5274#[repr(C)]
5275#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5276pub struct WGPUStorageTextureBindingLayout {
5277    pub nextInChain: *mut WGPUChainedStruct,
5278    pub access: WGPUStorageTextureAccess,
5279    pub format: WGPUTextureFormat,
5280    pub viewDimension: WGPUTextureViewDimension,
5281}
5282#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5283const _: () = {
5284    ["Size of WGPUStorageTextureBindingLayout"]
5285        [::core::mem::size_of::<WGPUStorageTextureBindingLayout>() - 24usize];
5286    ["Alignment of WGPUStorageTextureBindingLayout"]
5287        [::core::mem::align_of::<WGPUStorageTextureBindingLayout>() - 8usize];
5288    ["Offset of field: WGPUStorageTextureBindingLayout::nextInChain"]
5289        [::core::mem::offset_of!(WGPUStorageTextureBindingLayout, nextInChain) - 0usize];
5290    ["Offset of field: WGPUStorageTextureBindingLayout::access"]
5291        [::core::mem::offset_of!(WGPUStorageTextureBindingLayout, access) - 8usize];
5292    ["Offset of field: WGPUStorageTextureBindingLayout::format"]
5293        [::core::mem::offset_of!(WGPUStorageTextureBindingLayout, format) - 12usize];
5294    ["Offset of field: WGPUStorageTextureBindingLayout::viewDimension"]
5295        [::core::mem::offset_of!(WGPUStorageTextureBindingLayout, viewDimension) - 16usize];
5296};
5297impl Default for WGPUStorageTextureBindingLayout {
5298    fn default() -> Self {
5299        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5300        unsafe {
5301            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5302            s.assume_init()
5303        }
5304    }
5305}
5306#[repr(C)]
5307#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5308pub struct WGPUSubgroupMatrixConfig {
5309    pub componentType: WGPUSubgroupMatrixComponentType,
5310    pub resultComponentType: WGPUSubgroupMatrixComponentType,
5311    pub M: u32,
5312    pub N: u32,
5313    pub K: u32,
5314}
5315#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5316const _: () = {
5317    ["Size of WGPUSubgroupMatrixConfig"]
5318        [::core::mem::size_of::<WGPUSubgroupMatrixConfig>() - 20usize];
5319    ["Alignment of WGPUSubgroupMatrixConfig"]
5320        [::core::mem::align_of::<WGPUSubgroupMatrixConfig>() - 4usize];
5321    ["Offset of field: WGPUSubgroupMatrixConfig::componentType"]
5322        [::core::mem::offset_of!(WGPUSubgroupMatrixConfig, componentType) - 0usize];
5323    ["Offset of field: WGPUSubgroupMatrixConfig::resultComponentType"]
5324        [::core::mem::offset_of!(WGPUSubgroupMatrixConfig, resultComponentType) - 4usize];
5325    ["Offset of field: WGPUSubgroupMatrixConfig::M"]
5326        [::core::mem::offset_of!(WGPUSubgroupMatrixConfig, M) - 8usize];
5327    ["Offset of field: WGPUSubgroupMatrixConfig::N"]
5328        [::core::mem::offset_of!(WGPUSubgroupMatrixConfig, N) - 12usize];
5329    ["Offset of field: WGPUSubgroupMatrixConfig::K"]
5330        [::core::mem::offset_of!(WGPUSubgroupMatrixConfig, K) - 16usize];
5331};
5332impl Default for WGPUSubgroupMatrixConfig {
5333    fn default() -> Self {
5334        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5335        unsafe {
5336            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5337            s.assume_init()
5338        }
5339    }
5340}
5341#[repr(C)]
5342#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5343pub struct WGPUSupportedFeatures {
5344    pub featureCount: usize,
5345    pub features: *const WGPUFeatureName,
5346}
5347#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5348const _: () = {
5349    ["Size of WGPUSupportedFeatures"][::core::mem::size_of::<WGPUSupportedFeatures>() - 16usize];
5350    ["Alignment of WGPUSupportedFeatures"]
5351        [::core::mem::align_of::<WGPUSupportedFeatures>() - 8usize];
5352    ["Offset of field: WGPUSupportedFeatures::featureCount"]
5353        [::core::mem::offset_of!(WGPUSupportedFeatures, featureCount) - 0usize];
5354    ["Offset of field: WGPUSupportedFeatures::features"]
5355        [::core::mem::offset_of!(WGPUSupportedFeatures, features) - 8usize];
5356};
5357impl Default for WGPUSupportedFeatures {
5358    fn default() -> Self {
5359        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5360        unsafe {
5361            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5362            s.assume_init()
5363        }
5364    }
5365}
5366#[repr(C)]
5367#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5368pub struct WGPUSupportedWGSLLanguageFeatures {
5369    pub featureCount: usize,
5370    pub features: *const WGPUWGSLLanguageFeatureName,
5371}
5372#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5373const _: () = {
5374    ["Size of WGPUSupportedWGSLLanguageFeatures"]
5375        [::core::mem::size_of::<WGPUSupportedWGSLLanguageFeatures>() - 16usize];
5376    ["Alignment of WGPUSupportedWGSLLanguageFeatures"]
5377        [::core::mem::align_of::<WGPUSupportedWGSLLanguageFeatures>() - 8usize];
5378    ["Offset of field: WGPUSupportedWGSLLanguageFeatures::featureCount"]
5379        [::core::mem::offset_of!(WGPUSupportedWGSLLanguageFeatures, featureCount) - 0usize];
5380    ["Offset of field: WGPUSupportedWGSLLanguageFeatures::features"]
5381        [::core::mem::offset_of!(WGPUSupportedWGSLLanguageFeatures, features) - 8usize];
5382};
5383impl Default for WGPUSupportedWGSLLanguageFeatures {
5384    fn default() -> Self {
5385        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5386        unsafe {
5387            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5388            s.assume_init()
5389        }
5390    }
5391}
5392#[repr(C)]
5393#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5394pub struct WGPUSurfaceCapabilities {
5395    pub nextInChain: *mut WGPUChainedStruct,
5396    pub usages: WGPUTextureUsage,
5397    pub formatCount: usize,
5398    pub formats: *const WGPUTextureFormat,
5399    pub presentModeCount: usize,
5400    pub presentModes: *const WGPUPresentMode,
5401    pub alphaModeCount: usize,
5402    pub alphaModes: *const WGPUCompositeAlphaMode,
5403}
5404#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5405const _: () = {
5406    ["Size of WGPUSurfaceCapabilities"]
5407        [::core::mem::size_of::<WGPUSurfaceCapabilities>() - 64usize];
5408    ["Alignment of WGPUSurfaceCapabilities"]
5409        [::core::mem::align_of::<WGPUSurfaceCapabilities>() - 8usize];
5410    ["Offset of field: WGPUSurfaceCapabilities::nextInChain"]
5411        [::core::mem::offset_of!(WGPUSurfaceCapabilities, nextInChain) - 0usize];
5412    ["Offset of field: WGPUSurfaceCapabilities::usages"]
5413        [::core::mem::offset_of!(WGPUSurfaceCapabilities, usages) - 8usize];
5414    ["Offset of field: WGPUSurfaceCapabilities::formatCount"]
5415        [::core::mem::offset_of!(WGPUSurfaceCapabilities, formatCount) - 16usize];
5416    ["Offset of field: WGPUSurfaceCapabilities::formats"]
5417        [::core::mem::offset_of!(WGPUSurfaceCapabilities, formats) - 24usize];
5418    ["Offset of field: WGPUSurfaceCapabilities::presentModeCount"]
5419        [::core::mem::offset_of!(WGPUSurfaceCapabilities, presentModeCount) - 32usize];
5420    ["Offset of field: WGPUSurfaceCapabilities::presentModes"]
5421        [::core::mem::offset_of!(WGPUSurfaceCapabilities, presentModes) - 40usize];
5422    ["Offset of field: WGPUSurfaceCapabilities::alphaModeCount"]
5423        [::core::mem::offset_of!(WGPUSurfaceCapabilities, alphaModeCount) - 48usize];
5424    ["Offset of field: WGPUSurfaceCapabilities::alphaModes"]
5425        [::core::mem::offset_of!(WGPUSurfaceCapabilities, alphaModes) - 56usize];
5426};
5427impl Default for WGPUSurfaceCapabilities {
5428    fn default() -> Self {
5429        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5430        unsafe {
5431            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5432            s.assume_init()
5433        }
5434    }
5435}
5436#[repr(C)]
5437#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5438pub struct WGPUSurfaceColorManagement {
5439    pub chain: WGPUChainedStruct,
5440    pub colorSpace: WGPUPredefinedColorSpace,
5441    pub toneMappingMode: WGPUToneMappingMode,
5442}
5443#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5444const _: () = {
5445    ["Size of WGPUSurfaceColorManagement"]
5446        [::core::mem::size_of::<WGPUSurfaceColorManagement>() - 24usize];
5447    ["Alignment of WGPUSurfaceColorManagement"]
5448        [::core::mem::align_of::<WGPUSurfaceColorManagement>() - 8usize];
5449    ["Offset of field: WGPUSurfaceColorManagement::chain"]
5450        [::core::mem::offset_of!(WGPUSurfaceColorManagement, chain) - 0usize];
5451    ["Offset of field: WGPUSurfaceColorManagement::colorSpace"]
5452        [::core::mem::offset_of!(WGPUSurfaceColorManagement, colorSpace) - 16usize];
5453    ["Offset of field: WGPUSurfaceColorManagement::toneMappingMode"]
5454        [::core::mem::offset_of!(WGPUSurfaceColorManagement, toneMappingMode) - 20usize];
5455};
5456impl Default for WGPUSurfaceColorManagement {
5457    fn default() -> Self {
5458        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5459        unsafe {
5460            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5461            s.assume_init()
5462        }
5463    }
5464}
5465#[repr(C)]
5466#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5467pub struct WGPUSurfaceConfiguration {
5468    pub nextInChain: *mut WGPUChainedStruct,
5469    pub device: WGPUDevice,
5470    pub format: WGPUTextureFormat,
5471    pub usage: WGPUTextureUsage,
5472    pub width: u32,
5473    pub height: u32,
5474    pub viewFormatCount: usize,
5475    pub viewFormats: *const WGPUTextureFormat,
5476    pub alphaMode: WGPUCompositeAlphaMode,
5477    pub presentMode: WGPUPresentMode,
5478}
5479#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5480const _: () = {
5481    ["Size of WGPUSurfaceConfiguration"]
5482        [::core::mem::size_of::<WGPUSurfaceConfiguration>() - 64usize];
5483    ["Alignment of WGPUSurfaceConfiguration"]
5484        [::core::mem::align_of::<WGPUSurfaceConfiguration>() - 8usize];
5485    ["Offset of field: WGPUSurfaceConfiguration::nextInChain"]
5486        [::core::mem::offset_of!(WGPUSurfaceConfiguration, nextInChain) - 0usize];
5487    ["Offset of field: WGPUSurfaceConfiguration::device"]
5488        [::core::mem::offset_of!(WGPUSurfaceConfiguration, device) - 8usize];
5489    ["Offset of field: WGPUSurfaceConfiguration::format"]
5490        [::core::mem::offset_of!(WGPUSurfaceConfiguration, format) - 16usize];
5491    ["Offset of field: WGPUSurfaceConfiguration::usage"]
5492        [::core::mem::offset_of!(WGPUSurfaceConfiguration, usage) - 24usize];
5493    ["Offset of field: WGPUSurfaceConfiguration::width"]
5494        [::core::mem::offset_of!(WGPUSurfaceConfiguration, width) - 32usize];
5495    ["Offset of field: WGPUSurfaceConfiguration::height"]
5496        [::core::mem::offset_of!(WGPUSurfaceConfiguration, height) - 36usize];
5497    ["Offset of field: WGPUSurfaceConfiguration::viewFormatCount"]
5498        [::core::mem::offset_of!(WGPUSurfaceConfiguration, viewFormatCount) - 40usize];
5499    ["Offset of field: WGPUSurfaceConfiguration::viewFormats"]
5500        [::core::mem::offset_of!(WGPUSurfaceConfiguration, viewFormats) - 48usize];
5501    ["Offset of field: WGPUSurfaceConfiguration::alphaMode"]
5502        [::core::mem::offset_of!(WGPUSurfaceConfiguration, alphaMode) - 56usize];
5503    ["Offset of field: WGPUSurfaceConfiguration::presentMode"]
5504        [::core::mem::offset_of!(WGPUSurfaceConfiguration, presentMode) - 60usize];
5505};
5506impl Default for WGPUSurfaceConfiguration {
5507    fn default() -> Self {
5508        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5509        unsafe {
5510            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5511            s.assume_init()
5512        }
5513    }
5514}
5515#[repr(C)]
5516#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5517pub struct WGPUSurfaceDescriptorFromWindowsCoreWindow {
5518    pub chain: WGPUChainedStruct,
5519    pub coreWindow: *mut ::core::ffi::c_void,
5520}
5521#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5522const _: () = {
5523    ["Size of WGPUSurfaceDescriptorFromWindowsCoreWindow"]
5524        [::core::mem::size_of::<WGPUSurfaceDescriptorFromWindowsCoreWindow>() - 24usize];
5525    ["Alignment of WGPUSurfaceDescriptorFromWindowsCoreWindow"]
5526        [::core::mem::align_of::<WGPUSurfaceDescriptorFromWindowsCoreWindow>() - 8usize];
5527    ["Offset of field: WGPUSurfaceDescriptorFromWindowsCoreWindow::chain"]
5528        [::core::mem::offset_of!(WGPUSurfaceDescriptorFromWindowsCoreWindow, chain) - 0usize];
5529    ["Offset of field: WGPUSurfaceDescriptorFromWindowsCoreWindow::coreWindow"]
5530        [::core::mem::offset_of!(WGPUSurfaceDescriptorFromWindowsCoreWindow, coreWindow) - 16usize];
5531};
5532impl Default for WGPUSurfaceDescriptorFromWindowsCoreWindow {
5533    fn default() -> Self {
5534        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5535        unsafe {
5536            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5537            s.assume_init()
5538        }
5539    }
5540}
5541#[repr(C)]
5542#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5543pub struct WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel {
5544    pub chain: WGPUChainedStruct,
5545    pub swapChainPanel: *mut ::core::ffi::c_void,
5546}
5547#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5548const _: () = {
5549    ["Size of WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel"]
5550        [::core::mem::size_of::<WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel>() - 24usize];
5551    ["Alignment of WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel"]
5552        [::core::mem::align_of::<WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel>() - 8usize];
5553    ["Offset of field: WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel::chain"][::core::mem::offset_of!(
5554        WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel,
5555        chain
5556    ) - 0usize];
5557    ["Offset of field: WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel::swapChainPanel"][::core::mem::offset_of!(
5558        WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel,
5559        swapChainPanel
5560    )
5561        - 16usize];
5562};
5563impl Default for WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel {
5564    fn default() -> Self {
5565        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5566        unsafe {
5567            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5568            s.assume_init()
5569        }
5570    }
5571}
5572#[repr(C)]
5573#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5574pub struct WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel {
5575    pub chain: WGPUChainedStruct,
5576    pub swapChainPanel: *mut ::core::ffi::c_void,
5577}
5578#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5579const _: () = {
5580    ["Size of WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel"]
5581        [::core::mem::size_of::<WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel>() - 24usize];
5582    ["Alignment of WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel"]
5583        [::core::mem::align_of::<WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel>() - 8usize];
5584    ["Offset of field: WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel::chain"][::core::mem::offset_of!(
5585        WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel,
5586        chain
5587    ) - 0usize];
5588    ["Offset of field: WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel::swapChainPanel"][::core::mem::offset_of!(
5589        WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel,
5590        swapChainPanel
5591    )
5592        - 16usize];
5593};
5594impl Default for WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel {
5595    fn default() -> Self {
5596        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5597        unsafe {
5598            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5599            s.assume_init()
5600        }
5601    }
5602}
5603#[repr(C)]
5604#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5605pub struct WGPUSurfaceSourceAndroidNativeWindow {
5606    pub chain: WGPUChainedStruct,
5607    pub window: *mut ::core::ffi::c_void,
5608}
5609#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5610const _: () = {
5611    ["Size of WGPUSurfaceSourceAndroidNativeWindow"]
5612        [::core::mem::size_of::<WGPUSurfaceSourceAndroidNativeWindow>() - 24usize];
5613    ["Alignment of WGPUSurfaceSourceAndroidNativeWindow"]
5614        [::core::mem::align_of::<WGPUSurfaceSourceAndroidNativeWindow>() - 8usize];
5615    ["Offset of field: WGPUSurfaceSourceAndroidNativeWindow::chain"]
5616        [::core::mem::offset_of!(WGPUSurfaceSourceAndroidNativeWindow, chain) - 0usize];
5617    ["Offset of field: WGPUSurfaceSourceAndroidNativeWindow::window"]
5618        [::core::mem::offset_of!(WGPUSurfaceSourceAndroidNativeWindow, window) - 16usize];
5619};
5620impl Default for WGPUSurfaceSourceAndroidNativeWindow {
5621    fn default() -> Self {
5622        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5623        unsafe {
5624            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5625            s.assume_init()
5626        }
5627    }
5628}
5629#[repr(C)]
5630#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5631pub struct WGPUSurfaceSourceMetalLayer {
5632    pub chain: WGPUChainedStruct,
5633    pub layer: *mut ::core::ffi::c_void,
5634}
5635#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5636const _: () = {
5637    ["Size of WGPUSurfaceSourceMetalLayer"]
5638        [::core::mem::size_of::<WGPUSurfaceSourceMetalLayer>() - 24usize];
5639    ["Alignment of WGPUSurfaceSourceMetalLayer"]
5640        [::core::mem::align_of::<WGPUSurfaceSourceMetalLayer>() - 8usize];
5641    ["Offset of field: WGPUSurfaceSourceMetalLayer::chain"]
5642        [::core::mem::offset_of!(WGPUSurfaceSourceMetalLayer, chain) - 0usize];
5643    ["Offset of field: WGPUSurfaceSourceMetalLayer::layer"]
5644        [::core::mem::offset_of!(WGPUSurfaceSourceMetalLayer, layer) - 16usize];
5645};
5646impl Default for WGPUSurfaceSourceMetalLayer {
5647    fn default() -> Self {
5648        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5649        unsafe {
5650            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5651            s.assume_init()
5652        }
5653    }
5654}
5655#[repr(C)]
5656#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5657pub struct WGPUSurfaceSourceWaylandSurface {
5658    pub chain: WGPUChainedStruct,
5659    pub display: *mut ::core::ffi::c_void,
5660    pub surface: *mut ::core::ffi::c_void,
5661}
5662#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5663const _: () = {
5664    ["Size of WGPUSurfaceSourceWaylandSurface"]
5665        [::core::mem::size_of::<WGPUSurfaceSourceWaylandSurface>() - 32usize];
5666    ["Alignment of WGPUSurfaceSourceWaylandSurface"]
5667        [::core::mem::align_of::<WGPUSurfaceSourceWaylandSurface>() - 8usize];
5668    ["Offset of field: WGPUSurfaceSourceWaylandSurface::chain"]
5669        [::core::mem::offset_of!(WGPUSurfaceSourceWaylandSurface, chain) - 0usize];
5670    ["Offset of field: WGPUSurfaceSourceWaylandSurface::display"]
5671        [::core::mem::offset_of!(WGPUSurfaceSourceWaylandSurface, display) - 16usize];
5672    ["Offset of field: WGPUSurfaceSourceWaylandSurface::surface"]
5673        [::core::mem::offset_of!(WGPUSurfaceSourceWaylandSurface, surface) - 24usize];
5674};
5675impl Default for WGPUSurfaceSourceWaylandSurface {
5676    fn default() -> Self {
5677        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5678        unsafe {
5679            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5680            s.assume_init()
5681        }
5682    }
5683}
5684#[repr(C)]
5685#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5686pub struct WGPUSurfaceSourceWindowsHWND {
5687    pub chain: WGPUChainedStruct,
5688    pub hinstance: *mut ::core::ffi::c_void,
5689    pub hwnd: *mut ::core::ffi::c_void,
5690}
5691#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5692const _: () = {
5693    ["Size of WGPUSurfaceSourceWindowsHWND"]
5694        [::core::mem::size_of::<WGPUSurfaceSourceWindowsHWND>() - 32usize];
5695    ["Alignment of WGPUSurfaceSourceWindowsHWND"]
5696        [::core::mem::align_of::<WGPUSurfaceSourceWindowsHWND>() - 8usize];
5697    ["Offset of field: WGPUSurfaceSourceWindowsHWND::chain"]
5698        [::core::mem::offset_of!(WGPUSurfaceSourceWindowsHWND, chain) - 0usize];
5699    ["Offset of field: WGPUSurfaceSourceWindowsHWND::hinstance"]
5700        [::core::mem::offset_of!(WGPUSurfaceSourceWindowsHWND, hinstance) - 16usize];
5701    ["Offset of field: WGPUSurfaceSourceWindowsHWND::hwnd"]
5702        [::core::mem::offset_of!(WGPUSurfaceSourceWindowsHWND, hwnd) - 24usize];
5703};
5704impl Default for WGPUSurfaceSourceWindowsHWND {
5705    fn default() -> Self {
5706        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5707        unsafe {
5708            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5709            s.assume_init()
5710        }
5711    }
5712}
5713#[repr(C)]
5714#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5715pub struct WGPUSurfaceSourceXCBWindow {
5716    pub chain: WGPUChainedStruct,
5717    pub connection: *mut ::core::ffi::c_void,
5718    pub window: u32,
5719}
5720#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5721const _: () = {
5722    ["Size of WGPUSurfaceSourceXCBWindow"]
5723        [::core::mem::size_of::<WGPUSurfaceSourceXCBWindow>() - 32usize];
5724    ["Alignment of WGPUSurfaceSourceXCBWindow"]
5725        [::core::mem::align_of::<WGPUSurfaceSourceXCBWindow>() - 8usize];
5726    ["Offset of field: WGPUSurfaceSourceXCBWindow::chain"]
5727        [::core::mem::offset_of!(WGPUSurfaceSourceXCBWindow, chain) - 0usize];
5728    ["Offset of field: WGPUSurfaceSourceXCBWindow::connection"]
5729        [::core::mem::offset_of!(WGPUSurfaceSourceXCBWindow, connection) - 16usize];
5730    ["Offset of field: WGPUSurfaceSourceXCBWindow::window"]
5731        [::core::mem::offset_of!(WGPUSurfaceSourceXCBWindow, window) - 24usize];
5732};
5733impl Default for WGPUSurfaceSourceXCBWindow {
5734    fn default() -> Self {
5735        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5736        unsafe {
5737            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5738            s.assume_init()
5739        }
5740    }
5741}
5742#[repr(C)]
5743#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5744pub struct WGPUSurfaceSourceXlibWindow {
5745    pub chain: WGPUChainedStruct,
5746    pub display: *mut ::core::ffi::c_void,
5747    pub window: u64,
5748}
5749#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5750const _: () = {
5751    ["Size of WGPUSurfaceSourceXlibWindow"]
5752        [::core::mem::size_of::<WGPUSurfaceSourceXlibWindow>() - 32usize];
5753    ["Alignment of WGPUSurfaceSourceXlibWindow"]
5754        [::core::mem::align_of::<WGPUSurfaceSourceXlibWindow>() - 8usize];
5755    ["Offset of field: WGPUSurfaceSourceXlibWindow::chain"]
5756        [::core::mem::offset_of!(WGPUSurfaceSourceXlibWindow, chain) - 0usize];
5757    ["Offset of field: WGPUSurfaceSourceXlibWindow::display"]
5758        [::core::mem::offset_of!(WGPUSurfaceSourceXlibWindow, display) - 16usize];
5759    ["Offset of field: WGPUSurfaceSourceXlibWindow::window"]
5760        [::core::mem::offset_of!(WGPUSurfaceSourceXlibWindow, window) - 24usize];
5761};
5762impl Default for WGPUSurfaceSourceXlibWindow {
5763    fn default() -> Self {
5764        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5765        unsafe {
5766            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5767            s.assume_init()
5768        }
5769    }
5770}
5771#[repr(C)]
5772#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5773pub struct WGPUSurfaceTexture {
5774    pub nextInChain: *mut WGPUChainedStruct,
5775    pub texture: WGPUTexture,
5776    pub status: WGPUSurfaceGetCurrentTextureStatus,
5777}
5778#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5779const _: () = {
5780    ["Size of WGPUSurfaceTexture"][::core::mem::size_of::<WGPUSurfaceTexture>() - 24usize];
5781    ["Alignment of WGPUSurfaceTexture"][::core::mem::align_of::<WGPUSurfaceTexture>() - 8usize];
5782    ["Offset of field: WGPUSurfaceTexture::nextInChain"]
5783        [::core::mem::offset_of!(WGPUSurfaceTexture, nextInChain) - 0usize];
5784    ["Offset of field: WGPUSurfaceTexture::texture"]
5785        [::core::mem::offset_of!(WGPUSurfaceTexture, texture) - 8usize];
5786    ["Offset of field: WGPUSurfaceTexture::status"]
5787        [::core::mem::offset_of!(WGPUSurfaceTexture, status) - 16usize];
5788};
5789impl Default for WGPUSurfaceTexture {
5790    fn default() -> Self {
5791        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5792        unsafe {
5793            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5794            s.assume_init()
5795        }
5796    }
5797}
5798#[repr(C)]
5799#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5800pub struct WGPUTexelCopyBufferLayout {
5801    pub offset: u64,
5802    pub bytesPerRow: u32,
5803    pub rowsPerImage: u32,
5804}
5805#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5806const _: () = {
5807    ["Size of WGPUTexelCopyBufferLayout"]
5808        [::core::mem::size_of::<WGPUTexelCopyBufferLayout>() - 16usize];
5809    ["Alignment of WGPUTexelCopyBufferLayout"]
5810        [::core::mem::align_of::<WGPUTexelCopyBufferLayout>() - 8usize];
5811    ["Offset of field: WGPUTexelCopyBufferLayout::offset"]
5812        [::core::mem::offset_of!(WGPUTexelCopyBufferLayout, offset) - 0usize];
5813    ["Offset of field: WGPUTexelCopyBufferLayout::bytesPerRow"]
5814        [::core::mem::offset_of!(WGPUTexelCopyBufferLayout, bytesPerRow) - 8usize];
5815    ["Offset of field: WGPUTexelCopyBufferLayout::rowsPerImage"]
5816        [::core::mem::offset_of!(WGPUTexelCopyBufferLayout, rowsPerImage) - 12usize];
5817};
5818#[repr(C)]
5819#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5820pub struct WGPUTextureBindingLayout {
5821    pub nextInChain: *mut WGPUChainedStruct,
5822    pub sampleType: WGPUTextureSampleType,
5823    pub viewDimension: WGPUTextureViewDimension,
5824    pub multisampled: WGPUBool,
5825}
5826#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5827const _: () = {
5828    ["Size of WGPUTextureBindingLayout"]
5829        [::core::mem::size_of::<WGPUTextureBindingLayout>() - 24usize];
5830    ["Alignment of WGPUTextureBindingLayout"]
5831        [::core::mem::align_of::<WGPUTextureBindingLayout>() - 8usize];
5832    ["Offset of field: WGPUTextureBindingLayout::nextInChain"]
5833        [::core::mem::offset_of!(WGPUTextureBindingLayout, nextInChain) - 0usize];
5834    ["Offset of field: WGPUTextureBindingLayout::sampleType"]
5835        [::core::mem::offset_of!(WGPUTextureBindingLayout, sampleType) - 8usize];
5836    ["Offset of field: WGPUTextureBindingLayout::viewDimension"]
5837        [::core::mem::offset_of!(WGPUTextureBindingLayout, viewDimension) - 12usize];
5838    ["Offset of field: WGPUTextureBindingLayout::multisampled"]
5839        [::core::mem::offset_of!(WGPUTextureBindingLayout, multisampled) - 16usize];
5840};
5841impl Default for WGPUTextureBindingLayout {
5842    fn default() -> Self {
5843        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5844        unsafe {
5845            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5846            s.assume_init()
5847        }
5848    }
5849}
5850#[repr(C)]
5851#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5852pub struct WGPUTextureBindingViewDimensionDescriptor {
5853    pub chain: WGPUChainedStruct,
5854    pub textureBindingViewDimension: WGPUTextureViewDimension,
5855}
5856#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5857const _: () = {
5858    ["Size of WGPUTextureBindingViewDimensionDescriptor"]
5859        [::core::mem::size_of::<WGPUTextureBindingViewDimensionDescriptor>() - 24usize];
5860    ["Alignment of WGPUTextureBindingViewDimensionDescriptor"]
5861        [::core::mem::align_of::<WGPUTextureBindingViewDimensionDescriptor>() - 8usize];
5862    ["Offset of field: WGPUTextureBindingViewDimensionDescriptor::chain"]
5863        [::core::mem::offset_of!(WGPUTextureBindingViewDimensionDescriptor, chain) - 0usize];
5864    ["Offset of field: WGPUTextureBindingViewDimensionDescriptor::textureBindingViewDimension"][::core::mem::offset_of!(
5865        WGPUTextureBindingViewDimensionDescriptor,
5866        textureBindingViewDimension
5867    )
5868        - 16usize];
5869};
5870impl Default for WGPUTextureBindingViewDimensionDescriptor {
5871    fn default() -> Self {
5872        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5873        unsafe {
5874            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5875            s.assume_init()
5876        }
5877    }
5878}
5879#[repr(C)]
5880#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5881pub struct WGPUVertexAttribute {
5882    pub nextInChain: *mut WGPUChainedStruct,
5883    pub format: WGPUVertexFormat,
5884    pub offset: u64,
5885    pub shaderLocation: u32,
5886}
5887#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5888const _: () = {
5889    ["Size of WGPUVertexAttribute"][::core::mem::size_of::<WGPUVertexAttribute>() - 32usize];
5890    ["Alignment of WGPUVertexAttribute"][::core::mem::align_of::<WGPUVertexAttribute>() - 8usize];
5891    ["Offset of field: WGPUVertexAttribute::nextInChain"]
5892        [::core::mem::offset_of!(WGPUVertexAttribute, nextInChain) - 0usize];
5893    ["Offset of field: WGPUVertexAttribute::format"]
5894        [::core::mem::offset_of!(WGPUVertexAttribute, format) - 8usize];
5895    ["Offset of field: WGPUVertexAttribute::offset"]
5896        [::core::mem::offset_of!(WGPUVertexAttribute, offset) - 16usize];
5897    ["Offset of field: WGPUVertexAttribute::shaderLocation"]
5898        [::core::mem::offset_of!(WGPUVertexAttribute, shaderLocation) - 24usize];
5899};
5900impl Default for WGPUVertexAttribute {
5901    fn default() -> Self {
5902        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5903        unsafe {
5904            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5905            s.assume_init()
5906        }
5907    }
5908}
5909#[repr(C)]
5910#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5911pub struct WGPUYCbCrVkDescriptor {
5912    pub chain: WGPUChainedStruct,
5913    pub vkFormat: u32,
5914    pub vkYCbCrModel: u32,
5915    pub vkYCbCrRange: u32,
5916    pub vkComponentSwizzleRed: u32,
5917    pub vkComponentSwizzleGreen: u32,
5918    pub vkComponentSwizzleBlue: u32,
5919    pub vkComponentSwizzleAlpha: u32,
5920    pub vkXChromaOffset: u32,
5921    pub vkYChromaOffset: u32,
5922    pub vkChromaFilter: WGPUFilterMode,
5923    pub forceExplicitReconstruction: WGPUBool,
5924    pub externalFormat: u64,
5925}
5926#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5927const _: () = {
5928    ["Size of WGPUYCbCrVkDescriptor"][::core::mem::size_of::<WGPUYCbCrVkDescriptor>() - 72usize];
5929    ["Alignment of WGPUYCbCrVkDescriptor"]
5930        [::core::mem::align_of::<WGPUYCbCrVkDescriptor>() - 8usize];
5931    ["Offset of field: WGPUYCbCrVkDescriptor::chain"]
5932        [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, chain) - 0usize];
5933    ["Offset of field: WGPUYCbCrVkDescriptor::vkFormat"]
5934        [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkFormat) - 16usize];
5935    ["Offset of field: WGPUYCbCrVkDescriptor::vkYCbCrModel"]
5936        [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkYCbCrModel) - 20usize];
5937    ["Offset of field: WGPUYCbCrVkDescriptor::vkYCbCrRange"]
5938        [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkYCbCrRange) - 24usize];
5939    ["Offset of field: WGPUYCbCrVkDescriptor::vkComponentSwizzleRed"]
5940        [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkComponentSwizzleRed) - 28usize];
5941    ["Offset of field: WGPUYCbCrVkDescriptor::vkComponentSwizzleGreen"]
5942        [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkComponentSwizzleGreen) - 32usize];
5943    ["Offset of field: WGPUYCbCrVkDescriptor::vkComponentSwizzleBlue"]
5944        [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkComponentSwizzleBlue) - 36usize];
5945    ["Offset of field: WGPUYCbCrVkDescriptor::vkComponentSwizzleAlpha"]
5946        [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkComponentSwizzleAlpha) - 40usize];
5947    ["Offset of field: WGPUYCbCrVkDescriptor::vkXChromaOffset"]
5948        [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkXChromaOffset) - 44usize];
5949    ["Offset of field: WGPUYCbCrVkDescriptor::vkYChromaOffset"]
5950        [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkYChromaOffset) - 48usize];
5951    ["Offset of field: WGPUYCbCrVkDescriptor::vkChromaFilter"]
5952        [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkChromaFilter) - 52usize];
5953    ["Offset of field: WGPUYCbCrVkDescriptor::forceExplicitReconstruction"]
5954        [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, forceExplicitReconstruction) - 56usize];
5955    ["Offset of field: WGPUYCbCrVkDescriptor::externalFormat"]
5956        [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, externalFormat) - 64usize];
5957};
5958impl Default for WGPUYCbCrVkDescriptor {
5959    fn default() -> Self {
5960        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5961        unsafe {
5962            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5963            s.assume_init()
5964        }
5965    }
5966}
5967#[repr(C)]
5968#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5969pub struct WGPUAdapterPropertiesMemoryHeaps {
5970    pub chain: WGPUChainedStruct,
5971    pub heapCount: usize,
5972    pub heapInfo: *const WGPUMemoryHeapInfo,
5973}
5974#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5975const _: () = {
5976    ["Size of WGPUAdapterPropertiesMemoryHeaps"]
5977        [::core::mem::size_of::<WGPUAdapterPropertiesMemoryHeaps>() - 32usize];
5978    ["Alignment of WGPUAdapterPropertiesMemoryHeaps"]
5979        [::core::mem::align_of::<WGPUAdapterPropertiesMemoryHeaps>() - 8usize];
5980    ["Offset of field: WGPUAdapterPropertiesMemoryHeaps::chain"]
5981        [::core::mem::offset_of!(WGPUAdapterPropertiesMemoryHeaps, chain) - 0usize];
5982    ["Offset of field: WGPUAdapterPropertiesMemoryHeaps::heapCount"]
5983        [::core::mem::offset_of!(WGPUAdapterPropertiesMemoryHeaps, heapCount) - 16usize];
5984    ["Offset of field: WGPUAdapterPropertiesMemoryHeaps::heapInfo"]
5985        [::core::mem::offset_of!(WGPUAdapterPropertiesMemoryHeaps, heapInfo) - 24usize];
5986};
5987impl Default for WGPUAdapterPropertiesMemoryHeaps {
5988    fn default() -> Self {
5989        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5990        unsafe {
5991            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5992            s.assume_init()
5993        }
5994    }
5995}
5996#[repr(C)]
5997#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5998pub struct WGPUAdapterPropertiesSubgroupMatrixConfigs {
5999    pub chain: WGPUChainedStruct,
6000    pub configCount: usize,
6001    pub configs: *const WGPUSubgroupMatrixConfig,
6002}
6003#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6004const _: () = {
6005    ["Size of WGPUAdapterPropertiesSubgroupMatrixConfigs"]
6006        [::core::mem::size_of::<WGPUAdapterPropertiesSubgroupMatrixConfigs>() - 32usize];
6007    ["Alignment of WGPUAdapterPropertiesSubgroupMatrixConfigs"]
6008        [::core::mem::align_of::<WGPUAdapterPropertiesSubgroupMatrixConfigs>() - 8usize];
6009    ["Offset of field: WGPUAdapterPropertiesSubgroupMatrixConfigs::chain"]
6010        [::core::mem::offset_of!(WGPUAdapterPropertiesSubgroupMatrixConfigs, chain) - 0usize];
6011    ["Offset of field: WGPUAdapterPropertiesSubgroupMatrixConfigs::configCount"][::core::mem::offset_of!(
6012        WGPUAdapterPropertiesSubgroupMatrixConfigs,
6013        configCount
6014    ) - 16usize];
6015    ["Offset of field: WGPUAdapterPropertiesSubgroupMatrixConfigs::configs"]
6016        [::core::mem::offset_of!(WGPUAdapterPropertiesSubgroupMatrixConfigs, configs) - 24usize];
6017};
6018impl Default for WGPUAdapterPropertiesSubgroupMatrixConfigs {
6019    fn default() -> Self {
6020        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6021        unsafe {
6022            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6023            s.assume_init()
6024        }
6025    }
6026}
6027#[repr(C)]
6028#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6029pub struct WGPUAHardwareBufferProperties {
6030    pub yCbCrInfo: WGPUYCbCrVkDescriptor,
6031}
6032#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6033const _: () = {
6034    ["Size of WGPUAHardwareBufferProperties"]
6035        [::core::mem::size_of::<WGPUAHardwareBufferProperties>() - 72usize];
6036    ["Alignment of WGPUAHardwareBufferProperties"]
6037        [::core::mem::align_of::<WGPUAHardwareBufferProperties>() - 8usize];
6038    ["Offset of field: WGPUAHardwareBufferProperties::yCbCrInfo"]
6039        [::core::mem::offset_of!(WGPUAHardwareBufferProperties, yCbCrInfo) - 0usize];
6040};
6041impl Default for WGPUAHardwareBufferProperties {
6042    fn default() -> Self {
6043        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6044        unsafe {
6045            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6046            s.assume_init()
6047        }
6048    }
6049}
6050#[repr(C)]
6051#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6052pub struct WGPUBindGroupEntry {
6053    pub nextInChain: *mut WGPUChainedStruct,
6054    pub binding: u32,
6055    pub buffer: WGPUBuffer,
6056    pub offset: u64,
6057    pub size: u64,
6058    pub sampler: WGPUSampler,
6059    pub textureView: WGPUTextureView,
6060}
6061#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6062const _: () = {
6063    ["Size of WGPUBindGroupEntry"][::core::mem::size_of::<WGPUBindGroupEntry>() - 56usize];
6064    ["Alignment of WGPUBindGroupEntry"][::core::mem::align_of::<WGPUBindGroupEntry>() - 8usize];
6065    ["Offset of field: WGPUBindGroupEntry::nextInChain"]
6066        [::core::mem::offset_of!(WGPUBindGroupEntry, nextInChain) - 0usize];
6067    ["Offset of field: WGPUBindGroupEntry::binding"]
6068        [::core::mem::offset_of!(WGPUBindGroupEntry, binding) - 8usize];
6069    ["Offset of field: WGPUBindGroupEntry::buffer"]
6070        [::core::mem::offset_of!(WGPUBindGroupEntry, buffer) - 16usize];
6071    ["Offset of field: WGPUBindGroupEntry::offset"]
6072        [::core::mem::offset_of!(WGPUBindGroupEntry, offset) - 24usize];
6073    ["Offset of field: WGPUBindGroupEntry::size"]
6074        [::core::mem::offset_of!(WGPUBindGroupEntry, size) - 32usize];
6075    ["Offset of field: WGPUBindGroupEntry::sampler"]
6076        [::core::mem::offset_of!(WGPUBindGroupEntry, sampler) - 40usize];
6077    ["Offset of field: WGPUBindGroupEntry::textureView"]
6078        [::core::mem::offset_of!(WGPUBindGroupEntry, textureView) - 48usize];
6079};
6080impl Default for WGPUBindGroupEntry {
6081    fn default() -> Self {
6082        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6083        unsafe {
6084            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6085            s.assume_init()
6086        }
6087    }
6088}
6089#[repr(C)]
6090#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6091pub struct WGPUBindGroupLayoutEntry {
6092    pub nextInChain: *mut WGPUChainedStruct,
6093    pub binding: u32,
6094    pub visibility: WGPUShaderStage,
6095    pub buffer: WGPUBufferBindingLayout,
6096    pub sampler: WGPUSamplerBindingLayout,
6097    pub texture: WGPUTextureBindingLayout,
6098    pub storageTexture: WGPUStorageTextureBindingLayout,
6099}
6100#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6101const _: () = {
6102    ["Size of WGPUBindGroupLayoutEntry"]
6103        [::core::mem::size_of::<WGPUBindGroupLayoutEntry>() - 112usize];
6104    ["Alignment of WGPUBindGroupLayoutEntry"]
6105        [::core::mem::align_of::<WGPUBindGroupLayoutEntry>() - 8usize];
6106    ["Offset of field: WGPUBindGroupLayoutEntry::nextInChain"]
6107        [::core::mem::offset_of!(WGPUBindGroupLayoutEntry, nextInChain) - 0usize];
6108    ["Offset of field: WGPUBindGroupLayoutEntry::binding"]
6109        [::core::mem::offset_of!(WGPUBindGroupLayoutEntry, binding) - 8usize];
6110    ["Offset of field: WGPUBindGroupLayoutEntry::visibility"]
6111        [::core::mem::offset_of!(WGPUBindGroupLayoutEntry, visibility) - 16usize];
6112    ["Offset of field: WGPUBindGroupLayoutEntry::buffer"]
6113        [::core::mem::offset_of!(WGPUBindGroupLayoutEntry, buffer) - 24usize];
6114    ["Offset of field: WGPUBindGroupLayoutEntry::sampler"]
6115        [::core::mem::offset_of!(WGPUBindGroupLayoutEntry, sampler) - 48usize];
6116    ["Offset of field: WGPUBindGroupLayoutEntry::texture"]
6117        [::core::mem::offset_of!(WGPUBindGroupLayoutEntry, texture) - 64usize];
6118    ["Offset of field: WGPUBindGroupLayoutEntry::storageTexture"]
6119        [::core::mem::offset_of!(WGPUBindGroupLayoutEntry, storageTexture) - 88usize];
6120};
6121impl Default for WGPUBindGroupLayoutEntry {
6122    fn default() -> Self {
6123        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6124        unsafe {
6125            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6126            s.assume_init()
6127        }
6128    }
6129}
6130#[repr(C)]
6131#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6132pub struct WGPUBlendState {
6133    pub color: WGPUBlendComponent,
6134    pub alpha: WGPUBlendComponent,
6135}
6136#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6137const _: () = {
6138    ["Size of WGPUBlendState"][::core::mem::size_of::<WGPUBlendState>() - 24usize];
6139    ["Alignment of WGPUBlendState"][::core::mem::align_of::<WGPUBlendState>() - 4usize];
6140    ["Offset of field: WGPUBlendState::color"]
6141        [::core::mem::offset_of!(WGPUBlendState, color) - 0usize];
6142    ["Offset of field: WGPUBlendState::alpha"]
6143        [::core::mem::offset_of!(WGPUBlendState, alpha) - 12usize];
6144};
6145impl Default for WGPUBlendState {
6146    fn default() -> Self {
6147        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6148        unsafe {
6149            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6150            s.assume_init()
6151        }
6152    }
6153}
6154#[repr(C)]
6155#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6156pub struct WGPUBufferDescriptor {
6157    pub nextInChain: *mut WGPUChainedStruct,
6158    pub label: WGPUStringView,
6159    pub usage: WGPUBufferUsage,
6160    pub size: u64,
6161    pub mappedAtCreation: WGPUBool,
6162}
6163#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6164const _: () = {
6165    ["Size of WGPUBufferDescriptor"][::core::mem::size_of::<WGPUBufferDescriptor>() - 48usize];
6166    ["Alignment of WGPUBufferDescriptor"][::core::mem::align_of::<WGPUBufferDescriptor>() - 8usize];
6167    ["Offset of field: WGPUBufferDescriptor::nextInChain"]
6168        [::core::mem::offset_of!(WGPUBufferDescriptor, nextInChain) - 0usize];
6169    ["Offset of field: WGPUBufferDescriptor::label"]
6170        [::core::mem::offset_of!(WGPUBufferDescriptor, label) - 8usize];
6171    ["Offset of field: WGPUBufferDescriptor::usage"]
6172        [::core::mem::offset_of!(WGPUBufferDescriptor, usage) - 24usize];
6173    ["Offset of field: WGPUBufferDescriptor::size"]
6174        [::core::mem::offset_of!(WGPUBufferDescriptor, size) - 32usize];
6175    ["Offset of field: WGPUBufferDescriptor::mappedAtCreation"]
6176        [::core::mem::offset_of!(WGPUBufferDescriptor, mappedAtCreation) - 40usize];
6177};
6178impl Default for WGPUBufferDescriptor {
6179    fn default() -> Self {
6180        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6181        unsafe {
6182            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6183            s.assume_init()
6184        }
6185    }
6186}
6187#[repr(C)]
6188#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6189pub struct WGPUCommandEncoderDescriptor {
6190    pub nextInChain: *mut WGPUChainedStruct,
6191    pub label: WGPUStringView,
6192}
6193#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6194const _: () = {
6195    ["Size of WGPUCommandEncoderDescriptor"]
6196        [::core::mem::size_of::<WGPUCommandEncoderDescriptor>() - 24usize];
6197    ["Alignment of WGPUCommandEncoderDescriptor"]
6198        [::core::mem::align_of::<WGPUCommandEncoderDescriptor>() - 8usize];
6199    ["Offset of field: WGPUCommandEncoderDescriptor::nextInChain"]
6200        [::core::mem::offset_of!(WGPUCommandEncoderDescriptor, nextInChain) - 0usize];
6201    ["Offset of field: WGPUCommandEncoderDescriptor::label"]
6202        [::core::mem::offset_of!(WGPUCommandEncoderDescriptor, label) - 8usize];
6203};
6204impl Default for WGPUCommandEncoderDescriptor {
6205    fn default() -> Self {
6206        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6207        unsafe {
6208            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6209            s.assume_init()
6210        }
6211    }
6212}
6213#[repr(C)]
6214#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6215pub struct WGPUCompilationMessage {
6216    pub nextInChain: *mut WGPUChainedStruct,
6217    pub message: WGPUStringView,
6218    pub type_: WGPUCompilationMessageType,
6219    pub lineNum: u64,
6220    pub linePos: u64,
6221    pub offset: u64,
6222    pub length: u64,
6223}
6224#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6225const _: () = {
6226    ["Size of WGPUCompilationMessage"][::core::mem::size_of::<WGPUCompilationMessage>() - 64usize];
6227    ["Alignment of WGPUCompilationMessage"]
6228        [::core::mem::align_of::<WGPUCompilationMessage>() - 8usize];
6229    ["Offset of field: WGPUCompilationMessage::nextInChain"]
6230        [::core::mem::offset_of!(WGPUCompilationMessage, nextInChain) - 0usize];
6231    ["Offset of field: WGPUCompilationMessage::message"]
6232        [::core::mem::offset_of!(WGPUCompilationMessage, message) - 8usize];
6233    ["Offset of field: WGPUCompilationMessage::type_"]
6234        [::core::mem::offset_of!(WGPUCompilationMessage, type_) - 24usize];
6235    ["Offset of field: WGPUCompilationMessage::lineNum"]
6236        [::core::mem::offset_of!(WGPUCompilationMessage, lineNum) - 32usize];
6237    ["Offset of field: WGPUCompilationMessage::linePos"]
6238        [::core::mem::offset_of!(WGPUCompilationMessage, linePos) - 40usize];
6239    ["Offset of field: WGPUCompilationMessage::offset"]
6240        [::core::mem::offset_of!(WGPUCompilationMessage, offset) - 48usize];
6241    ["Offset of field: WGPUCompilationMessage::length"]
6242        [::core::mem::offset_of!(WGPUCompilationMessage, length) - 56usize];
6243};
6244impl Default for WGPUCompilationMessage {
6245    fn default() -> Self {
6246        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6247        unsafe {
6248            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6249            s.assume_init()
6250        }
6251    }
6252}
6253#[repr(C)]
6254#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6255pub struct WGPUComputePassDescriptor {
6256    pub nextInChain: *mut WGPUChainedStruct,
6257    pub label: WGPUStringView,
6258    pub timestampWrites: *const WGPUPassTimestampWrites,
6259}
6260#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6261const _: () = {
6262    ["Size of WGPUComputePassDescriptor"]
6263        [::core::mem::size_of::<WGPUComputePassDescriptor>() - 32usize];
6264    ["Alignment of WGPUComputePassDescriptor"]
6265        [::core::mem::align_of::<WGPUComputePassDescriptor>() - 8usize];
6266    ["Offset of field: WGPUComputePassDescriptor::nextInChain"]
6267        [::core::mem::offset_of!(WGPUComputePassDescriptor, nextInChain) - 0usize];
6268    ["Offset of field: WGPUComputePassDescriptor::label"]
6269        [::core::mem::offset_of!(WGPUComputePassDescriptor, label) - 8usize];
6270    ["Offset of field: WGPUComputePassDescriptor::timestampWrites"]
6271        [::core::mem::offset_of!(WGPUComputePassDescriptor, timestampWrites) - 24usize];
6272};
6273impl Default for WGPUComputePassDescriptor {
6274    fn default() -> Self {
6275        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6276        unsafe {
6277            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6278            s.assume_init()
6279        }
6280    }
6281}
6282#[repr(C)]
6283#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6284pub struct WGPUComputeState {
6285    pub nextInChain: *mut WGPUChainedStruct,
6286    pub module: WGPUShaderModule,
6287    pub entryPoint: WGPUStringView,
6288    pub constantCount: usize,
6289    pub constants: *const WGPUConstantEntry,
6290}
6291#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6292const _: () = {
6293    ["Size of WGPUComputeState"][::core::mem::size_of::<WGPUComputeState>() - 48usize];
6294    ["Alignment of WGPUComputeState"][::core::mem::align_of::<WGPUComputeState>() - 8usize];
6295    ["Offset of field: WGPUComputeState::nextInChain"]
6296        [::core::mem::offset_of!(WGPUComputeState, nextInChain) - 0usize];
6297    ["Offset of field: WGPUComputeState::module"]
6298        [::core::mem::offset_of!(WGPUComputeState, module) - 8usize];
6299    ["Offset of field: WGPUComputeState::entryPoint"]
6300        [::core::mem::offset_of!(WGPUComputeState, entryPoint) - 16usize];
6301    ["Offset of field: WGPUComputeState::constantCount"]
6302        [::core::mem::offset_of!(WGPUComputeState, constantCount) - 32usize];
6303    ["Offset of field: WGPUComputeState::constants"]
6304        [::core::mem::offset_of!(WGPUComputeState, constants) - 40usize];
6305};
6306impl Default for WGPUComputeState {
6307    fn default() -> Self {
6308        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6309        unsafe {
6310            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6311            s.assume_init()
6312        }
6313    }
6314}
6315#[repr(C)]
6316#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6317pub struct WGPUDawnDrmFormatCapabilities {
6318    pub chain: WGPUChainedStruct,
6319    pub propertiesCount: usize,
6320    pub properties: *const WGPUDawnDrmFormatProperties,
6321}
6322#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6323const _: () = {
6324    ["Size of WGPUDawnDrmFormatCapabilities"]
6325        [::core::mem::size_of::<WGPUDawnDrmFormatCapabilities>() - 32usize];
6326    ["Alignment of WGPUDawnDrmFormatCapabilities"]
6327        [::core::mem::align_of::<WGPUDawnDrmFormatCapabilities>() - 8usize];
6328    ["Offset of field: WGPUDawnDrmFormatCapabilities::chain"]
6329        [::core::mem::offset_of!(WGPUDawnDrmFormatCapabilities, chain) - 0usize];
6330    ["Offset of field: WGPUDawnDrmFormatCapabilities::propertiesCount"]
6331        [::core::mem::offset_of!(WGPUDawnDrmFormatCapabilities, propertiesCount) - 16usize];
6332    ["Offset of field: WGPUDawnDrmFormatCapabilities::properties"]
6333        [::core::mem::offset_of!(WGPUDawnDrmFormatCapabilities, properties) - 24usize];
6334};
6335impl Default for WGPUDawnDrmFormatCapabilities {
6336    fn default() -> Self {
6337        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6338        unsafe {
6339            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6340            s.assume_init()
6341        }
6342    }
6343}
6344#[repr(C)]
6345#[derive(Debug, Copy, Clone, PartialOrd, PartialEq)]
6346pub struct WGPUDepthStencilState {
6347    pub nextInChain: *mut WGPUChainedStruct,
6348    pub format: WGPUTextureFormat,
6349    pub depthWriteEnabled: WGPUOptionalBool,
6350    pub depthCompare: WGPUCompareFunction,
6351    pub stencilFront: WGPUStencilFaceState,
6352    pub stencilBack: WGPUStencilFaceState,
6353    pub stencilReadMask: u32,
6354    pub stencilWriteMask: u32,
6355    pub depthBias: i32,
6356    pub depthBiasSlopeScale: f32,
6357    pub depthBiasClamp: f32,
6358}
6359#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6360const _: () = {
6361    ["Size of WGPUDepthStencilState"][::core::mem::size_of::<WGPUDepthStencilState>() - 72usize];
6362    ["Alignment of WGPUDepthStencilState"]
6363        [::core::mem::align_of::<WGPUDepthStencilState>() - 8usize];
6364    ["Offset of field: WGPUDepthStencilState::nextInChain"]
6365        [::core::mem::offset_of!(WGPUDepthStencilState, nextInChain) - 0usize];
6366    ["Offset of field: WGPUDepthStencilState::format"]
6367        [::core::mem::offset_of!(WGPUDepthStencilState, format) - 8usize];
6368    ["Offset of field: WGPUDepthStencilState::depthWriteEnabled"]
6369        [::core::mem::offset_of!(WGPUDepthStencilState, depthWriteEnabled) - 12usize];
6370    ["Offset of field: WGPUDepthStencilState::depthCompare"]
6371        [::core::mem::offset_of!(WGPUDepthStencilState, depthCompare) - 16usize];
6372    ["Offset of field: WGPUDepthStencilState::stencilFront"]
6373        [::core::mem::offset_of!(WGPUDepthStencilState, stencilFront) - 20usize];
6374    ["Offset of field: WGPUDepthStencilState::stencilBack"]
6375        [::core::mem::offset_of!(WGPUDepthStencilState, stencilBack) - 36usize];
6376    ["Offset of field: WGPUDepthStencilState::stencilReadMask"]
6377        [::core::mem::offset_of!(WGPUDepthStencilState, stencilReadMask) - 52usize];
6378    ["Offset of field: WGPUDepthStencilState::stencilWriteMask"]
6379        [::core::mem::offset_of!(WGPUDepthStencilState, stencilWriteMask) - 56usize];
6380    ["Offset of field: WGPUDepthStencilState::depthBias"]
6381        [::core::mem::offset_of!(WGPUDepthStencilState, depthBias) - 60usize];
6382    ["Offset of field: WGPUDepthStencilState::depthBiasSlopeScale"]
6383        [::core::mem::offset_of!(WGPUDepthStencilState, depthBiasSlopeScale) - 64usize];
6384    ["Offset of field: WGPUDepthStencilState::depthBiasClamp"]
6385        [::core::mem::offset_of!(WGPUDepthStencilState, depthBiasClamp) - 68usize];
6386};
6387impl Default for WGPUDepthStencilState {
6388    fn default() -> Self {
6389        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6390        unsafe {
6391            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6392            s.assume_init()
6393        }
6394    }
6395}
6396#[repr(C)]
6397#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6398pub struct WGPUExternalTextureDescriptor {
6399    pub nextInChain: *mut WGPUChainedStruct,
6400    pub label: WGPUStringView,
6401    pub plane0: WGPUTextureView,
6402    pub plane1: WGPUTextureView,
6403    pub cropOrigin: WGPUOrigin2D,
6404    pub cropSize: WGPUExtent2D,
6405    pub apparentSize: WGPUExtent2D,
6406    pub doYuvToRgbConversionOnly: WGPUBool,
6407    pub yuvToRgbConversionMatrix: *const f32,
6408    pub srcTransferFunctionParameters: *const f32,
6409    pub dstTransferFunctionParameters: *const f32,
6410    pub gamutConversionMatrix: *const f32,
6411    pub mirrored: WGPUBool,
6412    pub rotation: WGPUExternalTextureRotation,
6413}
6414#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6415const _: () = {
6416    ["Size of WGPUExternalTextureDescriptor"]
6417        [::core::mem::size_of::<WGPUExternalTextureDescriptor>() - 112usize];
6418    ["Alignment of WGPUExternalTextureDescriptor"]
6419        [::core::mem::align_of::<WGPUExternalTextureDescriptor>() - 8usize];
6420    ["Offset of field: WGPUExternalTextureDescriptor::nextInChain"]
6421        [::core::mem::offset_of!(WGPUExternalTextureDescriptor, nextInChain) - 0usize];
6422    ["Offset of field: WGPUExternalTextureDescriptor::label"]
6423        [::core::mem::offset_of!(WGPUExternalTextureDescriptor, label) - 8usize];
6424    ["Offset of field: WGPUExternalTextureDescriptor::plane0"]
6425        [::core::mem::offset_of!(WGPUExternalTextureDescriptor, plane0) - 24usize];
6426    ["Offset of field: WGPUExternalTextureDescriptor::plane1"]
6427        [::core::mem::offset_of!(WGPUExternalTextureDescriptor, plane1) - 32usize];
6428    ["Offset of field: WGPUExternalTextureDescriptor::cropOrigin"]
6429        [::core::mem::offset_of!(WGPUExternalTextureDescriptor, cropOrigin) - 40usize];
6430    ["Offset of field: WGPUExternalTextureDescriptor::cropSize"]
6431        [::core::mem::offset_of!(WGPUExternalTextureDescriptor, cropSize) - 48usize];
6432    ["Offset of field: WGPUExternalTextureDescriptor::apparentSize"]
6433        [::core::mem::offset_of!(WGPUExternalTextureDescriptor, apparentSize) - 56usize];
6434    ["Offset of field: WGPUExternalTextureDescriptor::doYuvToRgbConversionOnly"][::core::mem::offset_of!(
6435        WGPUExternalTextureDescriptor,
6436        doYuvToRgbConversionOnly
6437    ) - 64usize];
6438    ["Offset of field: WGPUExternalTextureDescriptor::yuvToRgbConversionMatrix"][::core::mem::offset_of!(
6439        WGPUExternalTextureDescriptor,
6440        yuvToRgbConversionMatrix
6441    ) - 72usize];
6442    ["Offset of field: WGPUExternalTextureDescriptor::srcTransferFunctionParameters"][::core::mem::offset_of!(
6443        WGPUExternalTextureDescriptor,
6444        srcTransferFunctionParameters
6445    ) - 80usize];
6446    ["Offset of field: WGPUExternalTextureDescriptor::dstTransferFunctionParameters"][::core::mem::offset_of!(
6447        WGPUExternalTextureDescriptor,
6448        dstTransferFunctionParameters
6449    ) - 88usize];
6450    ["Offset of field: WGPUExternalTextureDescriptor::gamutConversionMatrix"]
6451        [::core::mem::offset_of!(WGPUExternalTextureDescriptor, gamutConversionMatrix) - 96usize];
6452    ["Offset of field: WGPUExternalTextureDescriptor::mirrored"]
6453        [::core::mem::offset_of!(WGPUExternalTextureDescriptor, mirrored) - 104usize];
6454    ["Offset of field: WGPUExternalTextureDescriptor::rotation"]
6455        [::core::mem::offset_of!(WGPUExternalTextureDescriptor, rotation) - 108usize];
6456};
6457impl Default for WGPUExternalTextureDescriptor {
6458    fn default() -> Self {
6459        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6460        unsafe {
6461            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6462            s.assume_init()
6463        }
6464    }
6465}
6466#[repr(C)]
6467#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6468pub struct WGPUFutureWaitInfo {
6469    pub future: WGPUFuture,
6470    pub completed: WGPUBool,
6471}
6472#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6473const _: () = {
6474    ["Size of WGPUFutureWaitInfo"][::core::mem::size_of::<WGPUFutureWaitInfo>() - 16usize];
6475    ["Alignment of WGPUFutureWaitInfo"][::core::mem::align_of::<WGPUFutureWaitInfo>() - 8usize];
6476    ["Offset of field: WGPUFutureWaitInfo::future"]
6477        [::core::mem::offset_of!(WGPUFutureWaitInfo, future) - 0usize];
6478    ["Offset of field: WGPUFutureWaitInfo::completed"]
6479        [::core::mem::offset_of!(WGPUFutureWaitInfo, completed) - 8usize];
6480};
6481#[repr(C)]
6482#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6483pub struct WGPUImageCopyExternalTexture {
6484    pub nextInChain: *mut WGPUChainedStruct,
6485    pub externalTexture: WGPUExternalTexture,
6486    pub origin: WGPUOrigin3D,
6487    pub naturalSize: WGPUExtent2D,
6488}
6489#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6490const _: () = {
6491    ["Size of WGPUImageCopyExternalTexture"]
6492        [::core::mem::size_of::<WGPUImageCopyExternalTexture>() - 40usize];
6493    ["Alignment of WGPUImageCopyExternalTexture"]
6494        [::core::mem::align_of::<WGPUImageCopyExternalTexture>() - 8usize];
6495    ["Offset of field: WGPUImageCopyExternalTexture::nextInChain"]
6496        [::core::mem::offset_of!(WGPUImageCopyExternalTexture, nextInChain) - 0usize];
6497    ["Offset of field: WGPUImageCopyExternalTexture::externalTexture"]
6498        [::core::mem::offset_of!(WGPUImageCopyExternalTexture, externalTexture) - 8usize];
6499    ["Offset of field: WGPUImageCopyExternalTexture::origin"]
6500        [::core::mem::offset_of!(WGPUImageCopyExternalTexture, origin) - 16usize];
6501    ["Offset of field: WGPUImageCopyExternalTexture::naturalSize"]
6502        [::core::mem::offset_of!(WGPUImageCopyExternalTexture, naturalSize) - 28usize];
6503};
6504impl Default for WGPUImageCopyExternalTexture {
6505    fn default() -> Self {
6506        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6507        unsafe {
6508            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6509            s.assume_init()
6510        }
6511    }
6512}
6513#[repr(C)]
6514#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6515pub struct WGPUInstanceDescriptor {
6516    pub nextInChain: *mut WGPUChainedStruct,
6517    pub capabilities: WGPUInstanceCapabilities,
6518}
6519#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6520const _: () = {
6521    ["Size of WGPUInstanceDescriptor"][::core::mem::size_of::<WGPUInstanceDescriptor>() - 32usize];
6522    ["Alignment of WGPUInstanceDescriptor"]
6523        [::core::mem::align_of::<WGPUInstanceDescriptor>() - 8usize];
6524    ["Offset of field: WGPUInstanceDescriptor::nextInChain"]
6525        [::core::mem::offset_of!(WGPUInstanceDescriptor, nextInChain) - 0usize];
6526    ["Offset of field: WGPUInstanceDescriptor::capabilities"]
6527        [::core::mem::offset_of!(WGPUInstanceDescriptor, capabilities) - 8usize];
6528};
6529impl Default for WGPUInstanceDescriptor {
6530    fn default() -> Self {
6531        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6532        unsafe {
6533            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6534            s.assume_init()
6535        }
6536    }
6537}
6538#[repr(C)]
6539#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6540pub struct WGPULimits {
6541    pub nextInChain: *mut WGPUChainedStruct,
6542    pub maxTextureDimension1D: u32,
6543    pub maxTextureDimension2D: u32,
6544    pub maxTextureDimension3D: u32,
6545    pub maxTextureArrayLayers: u32,
6546    pub maxBindGroups: u32,
6547    pub maxBindGroupsPlusVertexBuffers: u32,
6548    pub maxBindingsPerBindGroup: u32,
6549    pub maxDynamicUniformBuffersPerPipelineLayout: u32,
6550    pub maxDynamicStorageBuffersPerPipelineLayout: u32,
6551    pub maxSampledTexturesPerShaderStage: u32,
6552    pub maxSamplersPerShaderStage: u32,
6553    pub maxStorageBuffersPerShaderStage: u32,
6554    pub maxStorageTexturesPerShaderStage: u32,
6555    pub maxUniformBuffersPerShaderStage: u32,
6556    pub maxUniformBufferBindingSize: u64,
6557    pub maxStorageBufferBindingSize: u64,
6558    pub minUniformBufferOffsetAlignment: u32,
6559    pub minStorageBufferOffsetAlignment: u32,
6560    pub maxVertexBuffers: u32,
6561    pub maxBufferSize: u64,
6562    pub maxVertexAttributes: u32,
6563    pub maxVertexBufferArrayStride: u32,
6564    pub maxInterStageShaderVariables: u32,
6565    pub maxColorAttachments: u32,
6566    pub maxColorAttachmentBytesPerSample: u32,
6567    pub maxComputeWorkgroupStorageSize: u32,
6568    pub maxComputeInvocationsPerWorkgroup: u32,
6569    pub maxComputeWorkgroupSizeX: u32,
6570    pub maxComputeWorkgroupSizeY: u32,
6571    pub maxComputeWorkgroupSizeZ: u32,
6572    pub maxComputeWorkgroupsPerDimension: u32,
6573    pub maxImmediateSize: u32,
6574    pub maxStorageBuffersInVertexStage: u32,
6575    pub maxStorageTexturesInVertexStage: u32,
6576    pub maxStorageBuffersInFragmentStage: u32,
6577    pub maxStorageTexturesInFragmentStage: u32,
6578}
6579#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6580const _: () = {
6581    ["Size of WGPULimits"][::core::mem::size_of::<WGPULimits>() - 168usize];
6582    ["Alignment of WGPULimits"][::core::mem::align_of::<WGPULimits>() - 8usize];
6583    ["Offset of field: WGPULimits::nextInChain"]
6584        [::core::mem::offset_of!(WGPULimits, nextInChain) - 0usize];
6585    ["Offset of field: WGPULimits::maxTextureDimension1D"]
6586        [::core::mem::offset_of!(WGPULimits, maxTextureDimension1D) - 8usize];
6587    ["Offset of field: WGPULimits::maxTextureDimension2D"]
6588        [::core::mem::offset_of!(WGPULimits, maxTextureDimension2D) - 12usize];
6589    ["Offset of field: WGPULimits::maxTextureDimension3D"]
6590        [::core::mem::offset_of!(WGPULimits, maxTextureDimension3D) - 16usize];
6591    ["Offset of field: WGPULimits::maxTextureArrayLayers"]
6592        [::core::mem::offset_of!(WGPULimits, maxTextureArrayLayers) - 20usize];
6593    ["Offset of field: WGPULimits::maxBindGroups"]
6594        [::core::mem::offset_of!(WGPULimits, maxBindGroups) - 24usize];
6595    ["Offset of field: WGPULimits::maxBindGroupsPlusVertexBuffers"]
6596        [::core::mem::offset_of!(WGPULimits, maxBindGroupsPlusVertexBuffers) - 28usize];
6597    ["Offset of field: WGPULimits::maxBindingsPerBindGroup"]
6598        [::core::mem::offset_of!(WGPULimits, maxBindingsPerBindGroup) - 32usize];
6599    ["Offset of field: WGPULimits::maxDynamicUniformBuffersPerPipelineLayout"]
6600        [::core::mem::offset_of!(WGPULimits, maxDynamicUniformBuffersPerPipelineLayout) - 36usize];
6601    ["Offset of field: WGPULimits::maxDynamicStorageBuffersPerPipelineLayout"]
6602        [::core::mem::offset_of!(WGPULimits, maxDynamicStorageBuffersPerPipelineLayout) - 40usize];
6603    ["Offset of field: WGPULimits::maxSampledTexturesPerShaderStage"]
6604        [::core::mem::offset_of!(WGPULimits, maxSampledTexturesPerShaderStage) - 44usize];
6605    ["Offset of field: WGPULimits::maxSamplersPerShaderStage"]
6606        [::core::mem::offset_of!(WGPULimits, maxSamplersPerShaderStage) - 48usize];
6607    ["Offset of field: WGPULimits::maxStorageBuffersPerShaderStage"]
6608        [::core::mem::offset_of!(WGPULimits, maxStorageBuffersPerShaderStage) - 52usize];
6609    ["Offset of field: WGPULimits::maxStorageTexturesPerShaderStage"]
6610        [::core::mem::offset_of!(WGPULimits, maxStorageTexturesPerShaderStage) - 56usize];
6611    ["Offset of field: WGPULimits::maxUniformBuffersPerShaderStage"]
6612        [::core::mem::offset_of!(WGPULimits, maxUniformBuffersPerShaderStage) - 60usize];
6613    ["Offset of field: WGPULimits::maxUniformBufferBindingSize"]
6614        [::core::mem::offset_of!(WGPULimits, maxUniformBufferBindingSize) - 64usize];
6615    ["Offset of field: WGPULimits::maxStorageBufferBindingSize"]
6616        [::core::mem::offset_of!(WGPULimits, maxStorageBufferBindingSize) - 72usize];
6617    ["Offset of field: WGPULimits::minUniformBufferOffsetAlignment"]
6618        [::core::mem::offset_of!(WGPULimits, minUniformBufferOffsetAlignment) - 80usize];
6619    ["Offset of field: WGPULimits::minStorageBufferOffsetAlignment"]
6620        [::core::mem::offset_of!(WGPULimits, minStorageBufferOffsetAlignment) - 84usize];
6621    ["Offset of field: WGPULimits::maxVertexBuffers"]
6622        [::core::mem::offset_of!(WGPULimits, maxVertexBuffers) - 88usize];
6623    ["Offset of field: WGPULimits::maxBufferSize"]
6624        [::core::mem::offset_of!(WGPULimits, maxBufferSize) - 96usize];
6625    ["Offset of field: WGPULimits::maxVertexAttributes"]
6626        [::core::mem::offset_of!(WGPULimits, maxVertexAttributes) - 104usize];
6627    ["Offset of field: WGPULimits::maxVertexBufferArrayStride"]
6628        [::core::mem::offset_of!(WGPULimits, maxVertexBufferArrayStride) - 108usize];
6629    ["Offset of field: WGPULimits::maxInterStageShaderVariables"]
6630        [::core::mem::offset_of!(WGPULimits, maxInterStageShaderVariables) - 112usize];
6631    ["Offset of field: WGPULimits::maxColorAttachments"]
6632        [::core::mem::offset_of!(WGPULimits, maxColorAttachments) - 116usize];
6633    ["Offset of field: WGPULimits::maxColorAttachmentBytesPerSample"]
6634        [::core::mem::offset_of!(WGPULimits, maxColorAttachmentBytesPerSample) - 120usize];
6635    ["Offset of field: WGPULimits::maxComputeWorkgroupStorageSize"]
6636        [::core::mem::offset_of!(WGPULimits, maxComputeWorkgroupStorageSize) - 124usize];
6637    ["Offset of field: WGPULimits::maxComputeInvocationsPerWorkgroup"]
6638        [::core::mem::offset_of!(WGPULimits, maxComputeInvocationsPerWorkgroup) - 128usize];
6639    ["Offset of field: WGPULimits::maxComputeWorkgroupSizeX"]
6640        [::core::mem::offset_of!(WGPULimits, maxComputeWorkgroupSizeX) - 132usize];
6641    ["Offset of field: WGPULimits::maxComputeWorkgroupSizeY"]
6642        [::core::mem::offset_of!(WGPULimits, maxComputeWorkgroupSizeY) - 136usize];
6643    ["Offset of field: WGPULimits::maxComputeWorkgroupSizeZ"]
6644        [::core::mem::offset_of!(WGPULimits, maxComputeWorkgroupSizeZ) - 140usize];
6645    ["Offset of field: WGPULimits::maxComputeWorkgroupsPerDimension"]
6646        [::core::mem::offset_of!(WGPULimits, maxComputeWorkgroupsPerDimension) - 144usize];
6647    ["Offset of field: WGPULimits::maxImmediateSize"]
6648        [::core::mem::offset_of!(WGPULimits, maxImmediateSize) - 148usize];
6649    ["Offset of field: WGPULimits::maxStorageBuffersInVertexStage"]
6650        [::core::mem::offset_of!(WGPULimits, maxStorageBuffersInVertexStage) - 152usize];
6651    ["Offset of field: WGPULimits::maxStorageTexturesInVertexStage"]
6652        [::core::mem::offset_of!(WGPULimits, maxStorageTexturesInVertexStage) - 156usize];
6653    ["Offset of field: WGPULimits::maxStorageBuffersInFragmentStage"]
6654        [::core::mem::offset_of!(WGPULimits, maxStorageBuffersInFragmentStage) - 160usize];
6655    ["Offset of field: WGPULimits::maxStorageTexturesInFragmentStage"]
6656        [::core::mem::offset_of!(WGPULimits, maxStorageTexturesInFragmentStage) - 164usize];
6657};
6658impl Default for WGPULimits {
6659    fn default() -> Self {
6660        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6661        unsafe {
6662            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6663            s.assume_init()
6664        }
6665    }
6666}
6667#[repr(C)]
6668#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6669pub struct WGPUPipelineLayoutPixelLocalStorage {
6670    pub chain: WGPUChainedStruct,
6671    pub totalPixelLocalStorageSize: u64,
6672    pub storageAttachmentCount: usize,
6673    pub storageAttachments: *const WGPUPipelineLayoutStorageAttachment,
6674}
6675#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6676const _: () = {
6677    ["Size of WGPUPipelineLayoutPixelLocalStorage"]
6678        [::core::mem::size_of::<WGPUPipelineLayoutPixelLocalStorage>() - 40usize];
6679    ["Alignment of WGPUPipelineLayoutPixelLocalStorage"]
6680        [::core::mem::align_of::<WGPUPipelineLayoutPixelLocalStorage>() - 8usize];
6681    ["Offset of field: WGPUPipelineLayoutPixelLocalStorage::chain"]
6682        [::core::mem::offset_of!(WGPUPipelineLayoutPixelLocalStorage, chain) - 0usize];
6683    ["Offset of field: WGPUPipelineLayoutPixelLocalStorage::totalPixelLocalStorageSize"][::core::mem::offset_of!(
6684        WGPUPipelineLayoutPixelLocalStorage,
6685        totalPixelLocalStorageSize
6686    )
6687        - 16usize];
6688    ["Offset of field: WGPUPipelineLayoutPixelLocalStorage::storageAttachmentCount"][::core::mem::offset_of!(
6689        WGPUPipelineLayoutPixelLocalStorage,
6690        storageAttachmentCount
6691    ) - 24usize];
6692    ["Offset of field: WGPUPipelineLayoutPixelLocalStorage::storageAttachments"][::core::mem::offset_of!(
6693        WGPUPipelineLayoutPixelLocalStorage,
6694        storageAttachments
6695    ) - 32usize];
6696};
6697impl Default for WGPUPipelineLayoutPixelLocalStorage {
6698    fn default() -> Self {
6699        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6700        unsafe {
6701            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6702            s.assume_init()
6703        }
6704    }
6705}
6706#[repr(C)]
6707#[derive(Debug, Copy, Clone, PartialOrd, PartialEq)]
6708pub struct WGPURenderPassColorAttachment {
6709    pub nextInChain: *mut WGPUChainedStruct,
6710    pub view: WGPUTextureView,
6711    pub depthSlice: u32,
6712    pub resolveTarget: WGPUTextureView,
6713    pub loadOp: WGPULoadOp,
6714    pub storeOp: WGPUStoreOp,
6715    pub clearValue: WGPUColor,
6716}
6717#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6718const _: () = {
6719    ["Size of WGPURenderPassColorAttachment"]
6720        [::core::mem::size_of::<WGPURenderPassColorAttachment>() - 72usize];
6721    ["Alignment of WGPURenderPassColorAttachment"]
6722        [::core::mem::align_of::<WGPURenderPassColorAttachment>() - 8usize];
6723    ["Offset of field: WGPURenderPassColorAttachment::nextInChain"]
6724        [::core::mem::offset_of!(WGPURenderPassColorAttachment, nextInChain) - 0usize];
6725    ["Offset of field: WGPURenderPassColorAttachment::view"]
6726        [::core::mem::offset_of!(WGPURenderPassColorAttachment, view) - 8usize];
6727    ["Offset of field: WGPURenderPassColorAttachment::depthSlice"]
6728        [::core::mem::offset_of!(WGPURenderPassColorAttachment, depthSlice) - 16usize];
6729    ["Offset of field: WGPURenderPassColorAttachment::resolveTarget"]
6730        [::core::mem::offset_of!(WGPURenderPassColorAttachment, resolveTarget) - 24usize];
6731    ["Offset of field: WGPURenderPassColorAttachment::loadOp"]
6732        [::core::mem::offset_of!(WGPURenderPassColorAttachment, loadOp) - 32usize];
6733    ["Offset of field: WGPURenderPassColorAttachment::storeOp"]
6734        [::core::mem::offset_of!(WGPURenderPassColorAttachment, storeOp) - 36usize];
6735    ["Offset of field: WGPURenderPassColorAttachment::clearValue"]
6736        [::core::mem::offset_of!(WGPURenderPassColorAttachment, clearValue) - 40usize];
6737};
6738impl Default for WGPURenderPassColorAttachment {
6739    fn default() -> Self {
6740        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6741        unsafe {
6742            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6743            s.assume_init()
6744        }
6745    }
6746}
6747#[repr(C)]
6748#[derive(Debug, Copy, Clone, PartialOrd, PartialEq)]
6749pub struct WGPURenderPassStorageAttachment {
6750    pub nextInChain: *mut WGPUChainedStruct,
6751    pub offset: u64,
6752    pub storage: WGPUTextureView,
6753    pub loadOp: WGPULoadOp,
6754    pub storeOp: WGPUStoreOp,
6755    pub clearValue: WGPUColor,
6756}
6757#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6758const _: () = {
6759    ["Size of WGPURenderPassStorageAttachment"]
6760        [::core::mem::size_of::<WGPURenderPassStorageAttachment>() - 64usize];
6761    ["Alignment of WGPURenderPassStorageAttachment"]
6762        [::core::mem::align_of::<WGPURenderPassStorageAttachment>() - 8usize];
6763    ["Offset of field: WGPURenderPassStorageAttachment::nextInChain"]
6764        [::core::mem::offset_of!(WGPURenderPassStorageAttachment, nextInChain) - 0usize];
6765    ["Offset of field: WGPURenderPassStorageAttachment::offset"]
6766        [::core::mem::offset_of!(WGPURenderPassStorageAttachment, offset) - 8usize];
6767    ["Offset of field: WGPURenderPassStorageAttachment::storage"]
6768        [::core::mem::offset_of!(WGPURenderPassStorageAttachment, storage) - 16usize];
6769    ["Offset of field: WGPURenderPassStorageAttachment::loadOp"]
6770        [::core::mem::offset_of!(WGPURenderPassStorageAttachment, loadOp) - 24usize];
6771    ["Offset of field: WGPURenderPassStorageAttachment::storeOp"]
6772        [::core::mem::offset_of!(WGPURenderPassStorageAttachment, storeOp) - 28usize];
6773    ["Offset of field: WGPURenderPassStorageAttachment::clearValue"]
6774        [::core::mem::offset_of!(WGPURenderPassStorageAttachment, clearValue) - 32usize];
6775};
6776impl Default for WGPURenderPassStorageAttachment {
6777    fn default() -> Self {
6778        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6779        unsafe {
6780            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6781            s.assume_init()
6782        }
6783    }
6784}
6785#[repr(C)]
6786#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6787pub struct WGPURequestAdapterOptions {
6788    pub nextInChain: *mut WGPUChainedStruct,
6789    pub featureLevel: WGPUFeatureLevel,
6790    pub powerPreference: WGPUPowerPreference,
6791    pub forceFallbackAdapter: WGPUBool,
6792    pub backendType: WGPUBackendType,
6793    pub compatibleSurface: WGPUSurface,
6794}
6795#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6796const _: () = {
6797    ["Size of WGPURequestAdapterOptions"]
6798        [::core::mem::size_of::<WGPURequestAdapterOptions>() - 32usize];
6799    ["Alignment of WGPURequestAdapterOptions"]
6800        [::core::mem::align_of::<WGPURequestAdapterOptions>() - 8usize];
6801    ["Offset of field: WGPURequestAdapterOptions::nextInChain"]
6802        [::core::mem::offset_of!(WGPURequestAdapterOptions, nextInChain) - 0usize];
6803    ["Offset of field: WGPURequestAdapterOptions::featureLevel"]
6804        [::core::mem::offset_of!(WGPURequestAdapterOptions, featureLevel) - 8usize];
6805    ["Offset of field: WGPURequestAdapterOptions::powerPreference"]
6806        [::core::mem::offset_of!(WGPURequestAdapterOptions, powerPreference) - 12usize];
6807    ["Offset of field: WGPURequestAdapterOptions::forceFallbackAdapter"]
6808        [::core::mem::offset_of!(WGPURequestAdapterOptions, forceFallbackAdapter) - 16usize];
6809    ["Offset of field: WGPURequestAdapterOptions::backendType"]
6810        [::core::mem::offset_of!(WGPURequestAdapterOptions, backendType) - 20usize];
6811    ["Offset of field: WGPURequestAdapterOptions::compatibleSurface"]
6812        [::core::mem::offset_of!(WGPURequestAdapterOptions, compatibleSurface) - 24usize];
6813};
6814impl Default for WGPURequestAdapterOptions {
6815    fn default() -> Self {
6816        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6817        unsafe {
6818            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6819            s.assume_init()
6820        }
6821    }
6822}
6823#[repr(C)]
6824#[derive(Debug, Copy, Clone, PartialOrd, PartialEq)]
6825pub struct WGPUSamplerDescriptor {
6826    pub nextInChain: *mut WGPUChainedStruct,
6827    pub label: WGPUStringView,
6828    pub addressModeU: WGPUAddressMode,
6829    pub addressModeV: WGPUAddressMode,
6830    pub addressModeW: WGPUAddressMode,
6831    pub magFilter: WGPUFilterMode,
6832    pub minFilter: WGPUFilterMode,
6833    pub mipmapFilter: WGPUMipmapFilterMode,
6834    pub lodMinClamp: f32,
6835    pub lodMaxClamp: f32,
6836    pub compare: WGPUCompareFunction,
6837    pub maxAnisotropy: u16,
6838}
6839#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6840const _: () = {
6841    ["Size of WGPUSamplerDescriptor"][::core::mem::size_of::<WGPUSamplerDescriptor>() - 64usize];
6842    ["Alignment of WGPUSamplerDescriptor"]
6843        [::core::mem::align_of::<WGPUSamplerDescriptor>() - 8usize];
6844    ["Offset of field: WGPUSamplerDescriptor::nextInChain"]
6845        [::core::mem::offset_of!(WGPUSamplerDescriptor, nextInChain) - 0usize];
6846    ["Offset of field: WGPUSamplerDescriptor::label"]
6847        [::core::mem::offset_of!(WGPUSamplerDescriptor, label) - 8usize];
6848    ["Offset of field: WGPUSamplerDescriptor::addressModeU"]
6849        [::core::mem::offset_of!(WGPUSamplerDescriptor, addressModeU) - 24usize];
6850    ["Offset of field: WGPUSamplerDescriptor::addressModeV"]
6851        [::core::mem::offset_of!(WGPUSamplerDescriptor, addressModeV) - 28usize];
6852    ["Offset of field: WGPUSamplerDescriptor::addressModeW"]
6853        [::core::mem::offset_of!(WGPUSamplerDescriptor, addressModeW) - 32usize];
6854    ["Offset of field: WGPUSamplerDescriptor::magFilter"]
6855        [::core::mem::offset_of!(WGPUSamplerDescriptor, magFilter) - 36usize];
6856    ["Offset of field: WGPUSamplerDescriptor::minFilter"]
6857        [::core::mem::offset_of!(WGPUSamplerDescriptor, minFilter) - 40usize];
6858    ["Offset of field: WGPUSamplerDescriptor::mipmapFilter"]
6859        [::core::mem::offset_of!(WGPUSamplerDescriptor, mipmapFilter) - 44usize];
6860    ["Offset of field: WGPUSamplerDescriptor::lodMinClamp"]
6861        [::core::mem::offset_of!(WGPUSamplerDescriptor, lodMinClamp) - 48usize];
6862    ["Offset of field: WGPUSamplerDescriptor::lodMaxClamp"]
6863        [::core::mem::offset_of!(WGPUSamplerDescriptor, lodMaxClamp) - 52usize];
6864    ["Offset of field: WGPUSamplerDescriptor::compare"]
6865        [::core::mem::offset_of!(WGPUSamplerDescriptor, compare) - 56usize];
6866    ["Offset of field: WGPUSamplerDescriptor::maxAnisotropy"]
6867        [::core::mem::offset_of!(WGPUSamplerDescriptor, maxAnisotropy) - 60usize];
6868};
6869impl Default for WGPUSamplerDescriptor {
6870    fn default() -> Self {
6871        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6872        unsafe {
6873            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6874            s.assume_init()
6875        }
6876    }
6877}
6878#[repr(C)]
6879#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6880pub struct WGPUShaderModuleDescriptor {
6881    pub nextInChain: *mut WGPUChainedStruct,
6882    pub label: WGPUStringView,
6883}
6884#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6885const _: () = {
6886    ["Size of WGPUShaderModuleDescriptor"]
6887        [::core::mem::size_of::<WGPUShaderModuleDescriptor>() - 24usize];
6888    ["Alignment of WGPUShaderModuleDescriptor"]
6889        [::core::mem::align_of::<WGPUShaderModuleDescriptor>() - 8usize];
6890    ["Offset of field: WGPUShaderModuleDescriptor::nextInChain"]
6891        [::core::mem::offset_of!(WGPUShaderModuleDescriptor, nextInChain) - 0usize];
6892    ["Offset of field: WGPUShaderModuleDescriptor::label"]
6893        [::core::mem::offset_of!(WGPUShaderModuleDescriptor, label) - 8usize];
6894};
6895impl Default for WGPUShaderModuleDescriptor {
6896    fn default() -> Self {
6897        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6898        unsafe {
6899            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6900            s.assume_init()
6901        }
6902    }
6903}
6904#[repr(C)]
6905#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6906pub struct WGPUSharedFenceDescriptor {
6907    pub nextInChain: *mut WGPUChainedStruct,
6908    pub label: WGPUStringView,
6909}
6910#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6911const _: () = {
6912    ["Size of WGPUSharedFenceDescriptor"]
6913        [::core::mem::size_of::<WGPUSharedFenceDescriptor>() - 24usize];
6914    ["Alignment of WGPUSharedFenceDescriptor"]
6915        [::core::mem::align_of::<WGPUSharedFenceDescriptor>() - 8usize];
6916    ["Offset of field: WGPUSharedFenceDescriptor::nextInChain"]
6917        [::core::mem::offset_of!(WGPUSharedFenceDescriptor, nextInChain) - 0usize];
6918    ["Offset of field: WGPUSharedFenceDescriptor::label"]
6919        [::core::mem::offset_of!(WGPUSharedFenceDescriptor, label) - 8usize];
6920};
6921impl Default for WGPUSharedFenceDescriptor {
6922    fn default() -> Self {
6923        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6924        unsafe {
6925            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6926            s.assume_init()
6927        }
6928    }
6929}
6930#[repr(C)]
6931#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6932pub struct WGPUSharedFenceExportInfo {
6933    pub nextInChain: *mut WGPUChainedStruct,
6934    pub type_: WGPUSharedFenceType,
6935}
6936#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6937const _: () = {
6938    ["Size of WGPUSharedFenceExportInfo"]
6939        [::core::mem::size_of::<WGPUSharedFenceExportInfo>() - 16usize];
6940    ["Alignment of WGPUSharedFenceExportInfo"]
6941        [::core::mem::align_of::<WGPUSharedFenceExportInfo>() - 8usize];
6942    ["Offset of field: WGPUSharedFenceExportInfo::nextInChain"]
6943        [::core::mem::offset_of!(WGPUSharedFenceExportInfo, nextInChain) - 0usize];
6944    ["Offset of field: WGPUSharedFenceExportInfo::type_"]
6945        [::core::mem::offset_of!(WGPUSharedFenceExportInfo, type_) - 8usize];
6946};
6947impl Default for WGPUSharedFenceExportInfo {
6948    fn default() -> Self {
6949        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6950        unsafe {
6951            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6952            s.assume_init()
6953        }
6954    }
6955}
6956#[repr(C)]
6957#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6958pub struct WGPUSharedTextureMemoryAHardwareBufferProperties {
6959    pub chain: WGPUChainedStruct,
6960    pub yCbCrInfo: WGPUYCbCrVkDescriptor,
6961}
6962#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6963const _: () = {
6964    ["Size of WGPUSharedTextureMemoryAHardwareBufferProperties"]
6965        [::core::mem::size_of::<WGPUSharedTextureMemoryAHardwareBufferProperties>() - 88usize];
6966    ["Alignment of WGPUSharedTextureMemoryAHardwareBufferProperties"]
6967        [::core::mem::align_of::<WGPUSharedTextureMemoryAHardwareBufferProperties>() - 8usize];
6968    ["Offset of field: WGPUSharedTextureMemoryAHardwareBufferProperties::chain"]
6969        [::core::mem::offset_of!(WGPUSharedTextureMemoryAHardwareBufferProperties, chain) - 0usize];
6970    ["Offset of field: WGPUSharedTextureMemoryAHardwareBufferProperties::yCbCrInfo"][::core::mem::offset_of!(
6971        WGPUSharedTextureMemoryAHardwareBufferProperties,
6972        yCbCrInfo
6973    ) - 16usize];
6974};
6975impl Default for WGPUSharedTextureMemoryAHardwareBufferProperties {
6976    fn default() -> Self {
6977        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6978        unsafe {
6979            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6980            s.assume_init()
6981        }
6982    }
6983}
6984#[repr(C)]
6985#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6986pub struct WGPUSharedTextureMemoryBeginAccessDescriptor {
6987    pub nextInChain: *mut WGPUChainedStruct,
6988    pub concurrentRead: WGPUBool,
6989    pub initialized: WGPUBool,
6990    pub fenceCount: usize,
6991    pub fences: *const WGPUSharedFence,
6992    pub signaledValues: *const u64,
6993}
6994#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6995const _: () = {
6996    ["Size of WGPUSharedTextureMemoryBeginAccessDescriptor"]
6997        [::core::mem::size_of::<WGPUSharedTextureMemoryBeginAccessDescriptor>() - 40usize];
6998    ["Alignment of WGPUSharedTextureMemoryBeginAccessDescriptor"]
6999        [::core::mem::align_of::<WGPUSharedTextureMemoryBeginAccessDescriptor>() - 8usize];
7000    ["Offset of field: WGPUSharedTextureMemoryBeginAccessDescriptor::nextInChain"][::core::mem::offset_of!(
7001        WGPUSharedTextureMemoryBeginAccessDescriptor,
7002        nextInChain
7003    ) - 0usize];
7004    ["Offset of field: WGPUSharedTextureMemoryBeginAccessDescriptor::concurrentRead"][::core::mem::offset_of!(
7005        WGPUSharedTextureMemoryBeginAccessDescriptor,
7006        concurrentRead
7007    ) - 8usize];
7008    ["Offset of field: WGPUSharedTextureMemoryBeginAccessDescriptor::initialized"][::core::mem::offset_of!(
7009        WGPUSharedTextureMemoryBeginAccessDescriptor,
7010        initialized
7011    ) - 12usize];
7012    ["Offset of field: WGPUSharedTextureMemoryBeginAccessDescriptor::fenceCount"][::core::mem::offset_of!(
7013        WGPUSharedTextureMemoryBeginAccessDescriptor,
7014        fenceCount
7015    ) - 16usize];
7016    ["Offset of field: WGPUSharedTextureMemoryBeginAccessDescriptor::fences"]
7017        [::core::mem::offset_of!(WGPUSharedTextureMemoryBeginAccessDescriptor, fences) - 24usize];
7018    ["Offset of field: WGPUSharedTextureMemoryBeginAccessDescriptor::signaledValues"][::core::mem::offset_of!(
7019        WGPUSharedTextureMemoryBeginAccessDescriptor,
7020        signaledValues
7021    ) - 32usize];
7022};
7023impl Default for WGPUSharedTextureMemoryBeginAccessDescriptor {
7024    fn default() -> Self {
7025        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7026        unsafe {
7027            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7028            s.assume_init()
7029        }
7030    }
7031}
7032#[repr(C)]
7033#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7034pub struct WGPUSharedTextureMemoryDmaBufDescriptor {
7035    pub chain: WGPUChainedStruct,
7036    pub size: WGPUExtent3D,
7037    pub drmFormat: u32,
7038    pub drmModifier: u64,
7039    pub planeCount: usize,
7040    pub planes: *const WGPUSharedTextureMemoryDmaBufPlane,
7041}
7042#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7043const _: () = {
7044    ["Size of WGPUSharedTextureMemoryDmaBufDescriptor"]
7045        [::core::mem::size_of::<WGPUSharedTextureMemoryDmaBufDescriptor>() - 56usize];
7046    ["Alignment of WGPUSharedTextureMemoryDmaBufDescriptor"]
7047        [::core::mem::align_of::<WGPUSharedTextureMemoryDmaBufDescriptor>() - 8usize];
7048    ["Offset of field: WGPUSharedTextureMemoryDmaBufDescriptor::chain"]
7049        [::core::mem::offset_of!(WGPUSharedTextureMemoryDmaBufDescriptor, chain) - 0usize];
7050    ["Offset of field: WGPUSharedTextureMemoryDmaBufDescriptor::size"]
7051        [::core::mem::offset_of!(WGPUSharedTextureMemoryDmaBufDescriptor, size) - 16usize];
7052    ["Offset of field: WGPUSharedTextureMemoryDmaBufDescriptor::drmFormat"]
7053        [::core::mem::offset_of!(WGPUSharedTextureMemoryDmaBufDescriptor, drmFormat) - 28usize];
7054    ["Offset of field: WGPUSharedTextureMemoryDmaBufDescriptor::drmModifier"]
7055        [::core::mem::offset_of!(WGPUSharedTextureMemoryDmaBufDescriptor, drmModifier) - 32usize];
7056    ["Offset of field: WGPUSharedTextureMemoryDmaBufDescriptor::planeCount"]
7057        [::core::mem::offset_of!(WGPUSharedTextureMemoryDmaBufDescriptor, planeCount) - 40usize];
7058    ["Offset of field: WGPUSharedTextureMemoryDmaBufDescriptor::planes"]
7059        [::core::mem::offset_of!(WGPUSharedTextureMemoryDmaBufDescriptor, planes) - 48usize];
7060};
7061impl Default for WGPUSharedTextureMemoryDmaBufDescriptor {
7062    fn default() -> Self {
7063        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7064        unsafe {
7065            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7066            s.assume_init()
7067        }
7068    }
7069}
7070#[repr(C)]
7071#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7072pub struct WGPUSharedTextureMemoryEndAccessState {
7073    pub nextInChain: *mut WGPUChainedStruct,
7074    pub initialized: WGPUBool,
7075    pub fenceCount: usize,
7076    pub fences: *const WGPUSharedFence,
7077    pub signaledValues: *const u64,
7078}
7079#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7080const _: () = {
7081    ["Size of WGPUSharedTextureMemoryEndAccessState"]
7082        [::core::mem::size_of::<WGPUSharedTextureMemoryEndAccessState>() - 40usize];
7083    ["Alignment of WGPUSharedTextureMemoryEndAccessState"]
7084        [::core::mem::align_of::<WGPUSharedTextureMemoryEndAccessState>() - 8usize];
7085    ["Offset of field: WGPUSharedTextureMemoryEndAccessState::nextInChain"]
7086        [::core::mem::offset_of!(WGPUSharedTextureMemoryEndAccessState, nextInChain) - 0usize];
7087    ["Offset of field: WGPUSharedTextureMemoryEndAccessState::initialized"]
7088        [::core::mem::offset_of!(WGPUSharedTextureMemoryEndAccessState, initialized) - 8usize];
7089    ["Offset of field: WGPUSharedTextureMemoryEndAccessState::fenceCount"]
7090        [::core::mem::offset_of!(WGPUSharedTextureMemoryEndAccessState, fenceCount) - 16usize];
7091    ["Offset of field: WGPUSharedTextureMemoryEndAccessState::fences"]
7092        [::core::mem::offset_of!(WGPUSharedTextureMemoryEndAccessState, fences) - 24usize];
7093    ["Offset of field: WGPUSharedTextureMemoryEndAccessState::signaledValues"]
7094        [::core::mem::offset_of!(WGPUSharedTextureMemoryEndAccessState, signaledValues) - 32usize];
7095};
7096impl Default for WGPUSharedTextureMemoryEndAccessState {
7097    fn default() -> Self {
7098        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7099        unsafe {
7100            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7101            s.assume_init()
7102        }
7103    }
7104}
7105#[repr(C)]
7106#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7107pub struct WGPUSurfaceDescriptor {
7108    pub nextInChain: *mut WGPUChainedStruct,
7109    pub label: WGPUStringView,
7110}
7111#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7112const _: () = {
7113    ["Size of WGPUSurfaceDescriptor"][::core::mem::size_of::<WGPUSurfaceDescriptor>() - 24usize];
7114    ["Alignment of WGPUSurfaceDescriptor"]
7115        [::core::mem::align_of::<WGPUSurfaceDescriptor>() - 8usize];
7116    ["Offset of field: WGPUSurfaceDescriptor::nextInChain"]
7117        [::core::mem::offset_of!(WGPUSurfaceDescriptor, nextInChain) - 0usize];
7118    ["Offset of field: WGPUSurfaceDescriptor::label"]
7119        [::core::mem::offset_of!(WGPUSurfaceDescriptor, label) - 8usize];
7120};
7121impl Default for WGPUSurfaceDescriptor {
7122    fn default() -> Self {
7123        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7124        unsafe {
7125            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7126            s.assume_init()
7127        }
7128    }
7129}
7130#[repr(C)]
7131#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7132pub struct WGPUTexelCopyBufferInfo {
7133    pub layout: WGPUTexelCopyBufferLayout,
7134    pub buffer: WGPUBuffer,
7135}
7136#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7137const _: () = {
7138    ["Size of WGPUTexelCopyBufferInfo"]
7139        [::core::mem::size_of::<WGPUTexelCopyBufferInfo>() - 24usize];
7140    ["Alignment of WGPUTexelCopyBufferInfo"]
7141        [::core::mem::align_of::<WGPUTexelCopyBufferInfo>() - 8usize];
7142    ["Offset of field: WGPUTexelCopyBufferInfo::layout"]
7143        [::core::mem::offset_of!(WGPUTexelCopyBufferInfo, layout) - 0usize];
7144    ["Offset of field: WGPUTexelCopyBufferInfo::buffer"]
7145        [::core::mem::offset_of!(WGPUTexelCopyBufferInfo, buffer) - 16usize];
7146};
7147impl Default for WGPUTexelCopyBufferInfo {
7148    fn default() -> Self {
7149        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7150        unsafe {
7151            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7152            s.assume_init()
7153        }
7154    }
7155}
7156#[repr(C)]
7157#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7158pub struct WGPUTexelCopyTextureInfo {
7159    pub texture: WGPUTexture,
7160    pub mipLevel: u32,
7161    pub origin: WGPUOrigin3D,
7162    pub aspect: WGPUTextureAspect,
7163}
7164#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7165const _: () = {
7166    ["Size of WGPUTexelCopyTextureInfo"]
7167        [::core::mem::size_of::<WGPUTexelCopyTextureInfo>() - 32usize];
7168    ["Alignment of WGPUTexelCopyTextureInfo"]
7169        [::core::mem::align_of::<WGPUTexelCopyTextureInfo>() - 8usize];
7170    ["Offset of field: WGPUTexelCopyTextureInfo::texture"]
7171        [::core::mem::offset_of!(WGPUTexelCopyTextureInfo, texture) - 0usize];
7172    ["Offset of field: WGPUTexelCopyTextureInfo::mipLevel"]
7173        [::core::mem::offset_of!(WGPUTexelCopyTextureInfo, mipLevel) - 8usize];
7174    ["Offset of field: WGPUTexelCopyTextureInfo::origin"]
7175        [::core::mem::offset_of!(WGPUTexelCopyTextureInfo, origin) - 12usize];
7176    ["Offset of field: WGPUTexelCopyTextureInfo::aspect"]
7177        [::core::mem::offset_of!(WGPUTexelCopyTextureInfo, aspect) - 24usize];
7178};
7179impl Default for WGPUTexelCopyTextureInfo {
7180    fn default() -> Self {
7181        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7182        unsafe {
7183            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7184            s.assume_init()
7185        }
7186    }
7187}
7188#[repr(C)]
7189#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7190pub struct WGPUTextureDescriptor {
7191    pub nextInChain: *mut WGPUChainedStruct,
7192    pub label: WGPUStringView,
7193    pub usage: WGPUTextureUsage,
7194    pub dimension: WGPUTextureDimension,
7195    pub size: WGPUExtent3D,
7196    pub format: WGPUTextureFormat,
7197    pub mipLevelCount: u32,
7198    pub sampleCount: u32,
7199    pub viewFormatCount: usize,
7200    pub viewFormats: *const WGPUTextureFormat,
7201}
7202#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7203const _: () = {
7204    ["Size of WGPUTextureDescriptor"][::core::mem::size_of::<WGPUTextureDescriptor>() - 80usize];
7205    ["Alignment of WGPUTextureDescriptor"]
7206        [::core::mem::align_of::<WGPUTextureDescriptor>() - 8usize];
7207    ["Offset of field: WGPUTextureDescriptor::nextInChain"]
7208        [::core::mem::offset_of!(WGPUTextureDescriptor, nextInChain) - 0usize];
7209    ["Offset of field: WGPUTextureDescriptor::label"]
7210        [::core::mem::offset_of!(WGPUTextureDescriptor, label) - 8usize];
7211    ["Offset of field: WGPUTextureDescriptor::usage"]
7212        [::core::mem::offset_of!(WGPUTextureDescriptor, usage) - 24usize];
7213    ["Offset of field: WGPUTextureDescriptor::dimension"]
7214        [::core::mem::offset_of!(WGPUTextureDescriptor, dimension) - 32usize];
7215    ["Offset of field: WGPUTextureDescriptor::size"]
7216        [::core::mem::offset_of!(WGPUTextureDescriptor, size) - 36usize];
7217    ["Offset of field: WGPUTextureDescriptor::format"]
7218        [::core::mem::offset_of!(WGPUTextureDescriptor, format) - 48usize];
7219    ["Offset of field: WGPUTextureDescriptor::mipLevelCount"]
7220        [::core::mem::offset_of!(WGPUTextureDescriptor, mipLevelCount) - 52usize];
7221    ["Offset of field: WGPUTextureDescriptor::sampleCount"]
7222        [::core::mem::offset_of!(WGPUTextureDescriptor, sampleCount) - 56usize];
7223    ["Offset of field: WGPUTextureDescriptor::viewFormatCount"]
7224        [::core::mem::offset_of!(WGPUTextureDescriptor, viewFormatCount) - 64usize];
7225    ["Offset of field: WGPUTextureDescriptor::viewFormats"]
7226        [::core::mem::offset_of!(WGPUTextureDescriptor, viewFormats) - 72usize];
7227};
7228impl Default for WGPUTextureDescriptor {
7229    fn default() -> Self {
7230        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7231        unsafe {
7232            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7233            s.assume_init()
7234        }
7235    }
7236}
7237#[repr(C)]
7238#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7239pub struct WGPUTextureViewDescriptor {
7240    pub nextInChain: *mut WGPUChainedStruct,
7241    pub label: WGPUStringView,
7242    pub format: WGPUTextureFormat,
7243    pub dimension: WGPUTextureViewDimension,
7244    pub baseMipLevel: u32,
7245    pub mipLevelCount: u32,
7246    pub baseArrayLayer: u32,
7247    pub arrayLayerCount: u32,
7248    pub aspect: WGPUTextureAspect,
7249    pub usage: WGPUTextureUsage,
7250}
7251#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7252const _: () = {
7253    ["Size of WGPUTextureViewDescriptor"]
7254        [::core::mem::size_of::<WGPUTextureViewDescriptor>() - 64usize];
7255    ["Alignment of WGPUTextureViewDescriptor"]
7256        [::core::mem::align_of::<WGPUTextureViewDescriptor>() - 8usize];
7257    ["Offset of field: WGPUTextureViewDescriptor::nextInChain"]
7258        [::core::mem::offset_of!(WGPUTextureViewDescriptor, nextInChain) - 0usize];
7259    ["Offset of field: WGPUTextureViewDescriptor::label"]
7260        [::core::mem::offset_of!(WGPUTextureViewDescriptor, label) - 8usize];
7261    ["Offset of field: WGPUTextureViewDescriptor::format"]
7262        [::core::mem::offset_of!(WGPUTextureViewDescriptor, format) - 24usize];
7263    ["Offset of field: WGPUTextureViewDescriptor::dimension"]
7264        [::core::mem::offset_of!(WGPUTextureViewDescriptor, dimension) - 28usize];
7265    ["Offset of field: WGPUTextureViewDescriptor::baseMipLevel"]
7266        [::core::mem::offset_of!(WGPUTextureViewDescriptor, baseMipLevel) - 32usize];
7267    ["Offset of field: WGPUTextureViewDescriptor::mipLevelCount"]
7268        [::core::mem::offset_of!(WGPUTextureViewDescriptor, mipLevelCount) - 36usize];
7269    ["Offset of field: WGPUTextureViewDescriptor::baseArrayLayer"]
7270        [::core::mem::offset_of!(WGPUTextureViewDescriptor, baseArrayLayer) - 40usize];
7271    ["Offset of field: WGPUTextureViewDescriptor::arrayLayerCount"]
7272        [::core::mem::offset_of!(WGPUTextureViewDescriptor, arrayLayerCount) - 44usize];
7273    ["Offset of field: WGPUTextureViewDescriptor::aspect"]
7274        [::core::mem::offset_of!(WGPUTextureViewDescriptor, aspect) - 48usize];
7275    ["Offset of field: WGPUTextureViewDescriptor::usage"]
7276        [::core::mem::offset_of!(WGPUTextureViewDescriptor, usage) - 56usize];
7277};
7278impl Default for WGPUTextureViewDescriptor {
7279    fn default() -> Self {
7280        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7281        unsafe {
7282            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7283            s.assume_init()
7284        }
7285    }
7286}
7287#[repr(C)]
7288#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7289pub struct WGPUVertexBufferLayout {
7290    pub nextInChain: *mut WGPUChainedStruct,
7291    pub stepMode: WGPUVertexStepMode,
7292    pub arrayStride: u64,
7293    pub attributeCount: usize,
7294    pub attributes: *const WGPUVertexAttribute,
7295}
7296#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7297const _: () = {
7298    ["Size of WGPUVertexBufferLayout"][::core::mem::size_of::<WGPUVertexBufferLayout>() - 40usize];
7299    ["Alignment of WGPUVertexBufferLayout"]
7300        [::core::mem::align_of::<WGPUVertexBufferLayout>() - 8usize];
7301    ["Offset of field: WGPUVertexBufferLayout::nextInChain"]
7302        [::core::mem::offset_of!(WGPUVertexBufferLayout, nextInChain) - 0usize];
7303    ["Offset of field: WGPUVertexBufferLayout::stepMode"]
7304        [::core::mem::offset_of!(WGPUVertexBufferLayout, stepMode) - 8usize];
7305    ["Offset of field: WGPUVertexBufferLayout::arrayStride"]
7306        [::core::mem::offset_of!(WGPUVertexBufferLayout, arrayStride) - 16usize];
7307    ["Offset of field: WGPUVertexBufferLayout::attributeCount"]
7308        [::core::mem::offset_of!(WGPUVertexBufferLayout, attributeCount) - 24usize];
7309    ["Offset of field: WGPUVertexBufferLayout::attributes"]
7310        [::core::mem::offset_of!(WGPUVertexBufferLayout, attributes) - 32usize];
7311};
7312impl Default for WGPUVertexBufferLayout {
7313    fn default() -> Self {
7314        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7315        unsafe {
7316            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7317            s.assume_init()
7318        }
7319    }
7320}
7321#[repr(C)]
7322#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7323pub struct WGPUAdapterInfo {
7324    pub nextInChain: *mut WGPUChainedStruct,
7325    pub vendor: WGPUStringView,
7326    pub architecture: WGPUStringView,
7327    pub device: WGPUStringView,
7328    pub description: WGPUStringView,
7329    pub backendType: WGPUBackendType,
7330    pub adapterType: WGPUAdapterType,
7331    pub vendorID: u32,
7332    pub deviceID: u32,
7333    pub subgroupMinSize: u32,
7334    pub subgroupMaxSize: u32,
7335}
7336#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7337const _: () = {
7338    ["Size of WGPUAdapterInfo"][::core::mem::size_of::<WGPUAdapterInfo>() - 96usize];
7339    ["Alignment of WGPUAdapterInfo"][::core::mem::align_of::<WGPUAdapterInfo>() - 8usize];
7340    ["Offset of field: WGPUAdapterInfo::nextInChain"]
7341        [::core::mem::offset_of!(WGPUAdapterInfo, nextInChain) - 0usize];
7342    ["Offset of field: WGPUAdapterInfo::vendor"]
7343        [::core::mem::offset_of!(WGPUAdapterInfo, vendor) - 8usize];
7344    ["Offset of field: WGPUAdapterInfo::architecture"]
7345        [::core::mem::offset_of!(WGPUAdapterInfo, architecture) - 24usize];
7346    ["Offset of field: WGPUAdapterInfo::device"]
7347        [::core::mem::offset_of!(WGPUAdapterInfo, device) - 40usize];
7348    ["Offset of field: WGPUAdapterInfo::description"]
7349        [::core::mem::offset_of!(WGPUAdapterInfo, description) - 56usize];
7350    ["Offset of field: WGPUAdapterInfo::backendType"]
7351        [::core::mem::offset_of!(WGPUAdapterInfo, backendType) - 72usize];
7352    ["Offset of field: WGPUAdapterInfo::adapterType"]
7353        [::core::mem::offset_of!(WGPUAdapterInfo, adapterType) - 76usize];
7354    ["Offset of field: WGPUAdapterInfo::vendorID"]
7355        [::core::mem::offset_of!(WGPUAdapterInfo, vendorID) - 80usize];
7356    ["Offset of field: WGPUAdapterInfo::deviceID"]
7357        [::core::mem::offset_of!(WGPUAdapterInfo, deviceID) - 84usize];
7358    ["Offset of field: WGPUAdapterInfo::subgroupMinSize"]
7359        [::core::mem::offset_of!(WGPUAdapterInfo, subgroupMinSize) - 88usize];
7360    ["Offset of field: WGPUAdapterInfo::subgroupMaxSize"]
7361        [::core::mem::offset_of!(WGPUAdapterInfo, subgroupMaxSize) - 92usize];
7362};
7363impl Default for WGPUAdapterInfo {
7364    fn default() -> Self {
7365        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7366        unsafe {
7367            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7368            s.assume_init()
7369        }
7370    }
7371}
7372#[repr(C)]
7373#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7374pub struct WGPUBindGroupDescriptor {
7375    pub nextInChain: *mut WGPUChainedStruct,
7376    pub label: WGPUStringView,
7377    pub layout: WGPUBindGroupLayout,
7378    pub entryCount: usize,
7379    pub entries: *const WGPUBindGroupEntry,
7380}
7381#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7382const _: () = {
7383    ["Size of WGPUBindGroupDescriptor"]
7384        [::core::mem::size_of::<WGPUBindGroupDescriptor>() - 48usize];
7385    ["Alignment of WGPUBindGroupDescriptor"]
7386        [::core::mem::align_of::<WGPUBindGroupDescriptor>() - 8usize];
7387    ["Offset of field: WGPUBindGroupDescriptor::nextInChain"]
7388        [::core::mem::offset_of!(WGPUBindGroupDescriptor, nextInChain) - 0usize];
7389    ["Offset of field: WGPUBindGroupDescriptor::label"]
7390        [::core::mem::offset_of!(WGPUBindGroupDescriptor, label) - 8usize];
7391    ["Offset of field: WGPUBindGroupDescriptor::layout"]
7392        [::core::mem::offset_of!(WGPUBindGroupDescriptor, layout) - 24usize];
7393    ["Offset of field: WGPUBindGroupDescriptor::entryCount"]
7394        [::core::mem::offset_of!(WGPUBindGroupDescriptor, entryCount) - 32usize];
7395    ["Offset of field: WGPUBindGroupDescriptor::entries"]
7396        [::core::mem::offset_of!(WGPUBindGroupDescriptor, entries) - 40usize];
7397};
7398impl Default for WGPUBindGroupDescriptor {
7399    fn default() -> Self {
7400        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7401        unsafe {
7402            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7403            s.assume_init()
7404        }
7405    }
7406}
7407#[repr(C)]
7408#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7409pub struct WGPUBindGroupLayoutDescriptor {
7410    pub nextInChain: *mut WGPUChainedStruct,
7411    pub label: WGPUStringView,
7412    pub entryCount: usize,
7413    pub entries: *const WGPUBindGroupLayoutEntry,
7414}
7415#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7416const _: () = {
7417    ["Size of WGPUBindGroupLayoutDescriptor"]
7418        [::core::mem::size_of::<WGPUBindGroupLayoutDescriptor>() - 40usize];
7419    ["Alignment of WGPUBindGroupLayoutDescriptor"]
7420        [::core::mem::align_of::<WGPUBindGroupLayoutDescriptor>() - 8usize];
7421    ["Offset of field: WGPUBindGroupLayoutDescriptor::nextInChain"]
7422        [::core::mem::offset_of!(WGPUBindGroupLayoutDescriptor, nextInChain) - 0usize];
7423    ["Offset of field: WGPUBindGroupLayoutDescriptor::label"]
7424        [::core::mem::offset_of!(WGPUBindGroupLayoutDescriptor, label) - 8usize];
7425    ["Offset of field: WGPUBindGroupLayoutDescriptor::entryCount"]
7426        [::core::mem::offset_of!(WGPUBindGroupLayoutDescriptor, entryCount) - 24usize];
7427    ["Offset of field: WGPUBindGroupLayoutDescriptor::entries"]
7428        [::core::mem::offset_of!(WGPUBindGroupLayoutDescriptor, entries) - 32usize];
7429};
7430impl Default for WGPUBindGroupLayoutDescriptor {
7431    fn default() -> Self {
7432        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7433        unsafe {
7434            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7435            s.assume_init()
7436        }
7437    }
7438}
7439#[repr(C)]
7440#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7441pub struct WGPUColorTargetState {
7442    pub nextInChain: *mut WGPUChainedStruct,
7443    pub format: WGPUTextureFormat,
7444    pub blend: *const WGPUBlendState,
7445    pub writeMask: WGPUColorWriteMask,
7446}
7447#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7448const _: () = {
7449    ["Size of WGPUColorTargetState"][::core::mem::size_of::<WGPUColorTargetState>() - 32usize];
7450    ["Alignment of WGPUColorTargetState"][::core::mem::align_of::<WGPUColorTargetState>() - 8usize];
7451    ["Offset of field: WGPUColorTargetState::nextInChain"]
7452        [::core::mem::offset_of!(WGPUColorTargetState, nextInChain) - 0usize];
7453    ["Offset of field: WGPUColorTargetState::format"]
7454        [::core::mem::offset_of!(WGPUColorTargetState, format) - 8usize];
7455    ["Offset of field: WGPUColorTargetState::blend"]
7456        [::core::mem::offset_of!(WGPUColorTargetState, blend) - 16usize];
7457    ["Offset of field: WGPUColorTargetState::writeMask"]
7458        [::core::mem::offset_of!(WGPUColorTargetState, writeMask) - 24usize];
7459};
7460impl Default for WGPUColorTargetState {
7461    fn default() -> Self {
7462        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7463        unsafe {
7464            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7465            s.assume_init()
7466        }
7467    }
7468}
7469#[repr(C)]
7470#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7471pub struct WGPUCompilationInfo {
7472    pub nextInChain: *mut WGPUChainedStruct,
7473    pub messageCount: usize,
7474    pub messages: *const WGPUCompilationMessage,
7475}
7476#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7477const _: () = {
7478    ["Size of WGPUCompilationInfo"][::core::mem::size_of::<WGPUCompilationInfo>() - 24usize];
7479    ["Alignment of WGPUCompilationInfo"][::core::mem::align_of::<WGPUCompilationInfo>() - 8usize];
7480    ["Offset of field: WGPUCompilationInfo::nextInChain"]
7481        [::core::mem::offset_of!(WGPUCompilationInfo, nextInChain) - 0usize];
7482    ["Offset of field: WGPUCompilationInfo::messageCount"]
7483        [::core::mem::offset_of!(WGPUCompilationInfo, messageCount) - 8usize];
7484    ["Offset of field: WGPUCompilationInfo::messages"]
7485        [::core::mem::offset_of!(WGPUCompilationInfo, messages) - 16usize];
7486};
7487impl Default for WGPUCompilationInfo {
7488    fn default() -> Self {
7489        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7490        unsafe {
7491            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7492            s.assume_init()
7493        }
7494    }
7495}
7496#[repr(C)]
7497#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7498pub struct WGPUComputePipelineDescriptor {
7499    pub nextInChain: *mut WGPUChainedStruct,
7500    pub label: WGPUStringView,
7501    pub layout: WGPUPipelineLayout,
7502    pub compute: WGPUComputeState,
7503}
7504#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7505const _: () = {
7506    ["Size of WGPUComputePipelineDescriptor"]
7507        [::core::mem::size_of::<WGPUComputePipelineDescriptor>() - 80usize];
7508    ["Alignment of WGPUComputePipelineDescriptor"]
7509        [::core::mem::align_of::<WGPUComputePipelineDescriptor>() - 8usize];
7510    ["Offset of field: WGPUComputePipelineDescriptor::nextInChain"]
7511        [::core::mem::offset_of!(WGPUComputePipelineDescriptor, nextInChain) - 0usize];
7512    ["Offset of field: WGPUComputePipelineDescriptor::label"]
7513        [::core::mem::offset_of!(WGPUComputePipelineDescriptor, label) - 8usize];
7514    ["Offset of field: WGPUComputePipelineDescriptor::layout"]
7515        [::core::mem::offset_of!(WGPUComputePipelineDescriptor, layout) - 24usize];
7516    ["Offset of field: WGPUComputePipelineDescriptor::compute"]
7517        [::core::mem::offset_of!(WGPUComputePipelineDescriptor, compute) - 32usize];
7518};
7519impl Default for WGPUComputePipelineDescriptor {
7520    fn default() -> Self {
7521        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7522        unsafe {
7523            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7524            s.assume_init()
7525        }
7526    }
7527}
7528#[repr(C)]
7529#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7530pub struct WGPUDawnFormatCapabilities {
7531    pub nextInChain: *mut WGPUChainedStruct,
7532}
7533#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7534const _: () = {
7535    ["Size of WGPUDawnFormatCapabilities"]
7536        [::core::mem::size_of::<WGPUDawnFormatCapabilities>() - 8usize];
7537    ["Alignment of WGPUDawnFormatCapabilities"]
7538        [::core::mem::align_of::<WGPUDawnFormatCapabilities>() - 8usize];
7539    ["Offset of field: WGPUDawnFormatCapabilities::nextInChain"]
7540        [::core::mem::offset_of!(WGPUDawnFormatCapabilities, nextInChain) - 0usize];
7541};
7542impl Default for WGPUDawnFormatCapabilities {
7543    fn default() -> Self {
7544        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7545        unsafe {
7546            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7547            s.assume_init()
7548        }
7549    }
7550}
7551#[repr(C)]
7552#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7553pub struct WGPUDeviceDescriptor {
7554    pub nextInChain: *mut WGPUChainedStruct,
7555    pub label: WGPUStringView,
7556    pub requiredFeatureCount: usize,
7557    pub requiredFeatures: *const WGPUFeatureName,
7558    pub requiredLimits: *const WGPULimits,
7559    pub defaultQueue: WGPUQueueDescriptor,
7560    pub deviceLostCallbackInfo: WGPUDeviceLostCallbackInfo,
7561    pub uncapturedErrorCallbackInfo: WGPUUncapturedErrorCallbackInfo,
7562}
7563#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7564const _: () = {
7565    ["Size of WGPUDeviceDescriptor"][::core::mem::size_of::<WGPUDeviceDescriptor>() - 144usize];
7566    ["Alignment of WGPUDeviceDescriptor"][::core::mem::align_of::<WGPUDeviceDescriptor>() - 8usize];
7567    ["Offset of field: WGPUDeviceDescriptor::nextInChain"]
7568        [::core::mem::offset_of!(WGPUDeviceDescriptor, nextInChain) - 0usize];
7569    ["Offset of field: WGPUDeviceDescriptor::label"]
7570        [::core::mem::offset_of!(WGPUDeviceDescriptor, label) - 8usize];
7571    ["Offset of field: WGPUDeviceDescriptor::requiredFeatureCount"]
7572        [::core::mem::offset_of!(WGPUDeviceDescriptor, requiredFeatureCount) - 24usize];
7573    ["Offset of field: WGPUDeviceDescriptor::requiredFeatures"]
7574        [::core::mem::offset_of!(WGPUDeviceDescriptor, requiredFeatures) - 32usize];
7575    ["Offset of field: WGPUDeviceDescriptor::requiredLimits"]
7576        [::core::mem::offset_of!(WGPUDeviceDescriptor, requiredLimits) - 40usize];
7577    ["Offset of field: WGPUDeviceDescriptor::defaultQueue"]
7578        [::core::mem::offset_of!(WGPUDeviceDescriptor, defaultQueue) - 48usize];
7579    ["Offset of field: WGPUDeviceDescriptor::deviceLostCallbackInfo"]
7580        [::core::mem::offset_of!(WGPUDeviceDescriptor, deviceLostCallbackInfo) - 72usize];
7581    ["Offset of field: WGPUDeviceDescriptor::uncapturedErrorCallbackInfo"]
7582        [::core::mem::offset_of!(WGPUDeviceDescriptor, uncapturedErrorCallbackInfo) - 112usize];
7583};
7584impl Default for WGPUDeviceDescriptor {
7585    fn default() -> Self {
7586        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7587        unsafe {
7588            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7589            s.assume_init()
7590        }
7591    }
7592}
7593#[repr(C)]
7594#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7595pub struct WGPUPipelineLayoutDescriptor {
7596    pub nextInChain: *mut WGPUChainedStruct,
7597    pub label: WGPUStringView,
7598    pub bindGroupLayoutCount: usize,
7599    pub bindGroupLayouts: *const WGPUBindGroupLayout,
7600    pub immediateSize: u32,
7601}
7602#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7603const _: () = {
7604    ["Size of WGPUPipelineLayoutDescriptor"]
7605        [::core::mem::size_of::<WGPUPipelineLayoutDescriptor>() - 48usize];
7606    ["Alignment of WGPUPipelineLayoutDescriptor"]
7607        [::core::mem::align_of::<WGPUPipelineLayoutDescriptor>() - 8usize];
7608    ["Offset of field: WGPUPipelineLayoutDescriptor::nextInChain"]
7609        [::core::mem::offset_of!(WGPUPipelineLayoutDescriptor, nextInChain) - 0usize];
7610    ["Offset of field: WGPUPipelineLayoutDescriptor::label"]
7611        [::core::mem::offset_of!(WGPUPipelineLayoutDescriptor, label) - 8usize];
7612    ["Offset of field: WGPUPipelineLayoutDescriptor::bindGroupLayoutCount"]
7613        [::core::mem::offset_of!(WGPUPipelineLayoutDescriptor, bindGroupLayoutCount) - 24usize];
7614    ["Offset of field: WGPUPipelineLayoutDescriptor::bindGroupLayouts"]
7615        [::core::mem::offset_of!(WGPUPipelineLayoutDescriptor, bindGroupLayouts) - 32usize];
7616    ["Offset of field: WGPUPipelineLayoutDescriptor::immediateSize"]
7617        [::core::mem::offset_of!(WGPUPipelineLayoutDescriptor, immediateSize) - 40usize];
7618};
7619impl Default for WGPUPipelineLayoutDescriptor {
7620    fn default() -> Self {
7621        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7622        unsafe {
7623            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7624            s.assume_init()
7625        }
7626    }
7627}
7628#[repr(C)]
7629#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7630pub struct WGPURenderPassPixelLocalStorage {
7631    pub chain: WGPUChainedStruct,
7632    pub totalPixelLocalStorageSize: u64,
7633    pub storageAttachmentCount: usize,
7634    pub storageAttachments: *const WGPURenderPassStorageAttachment,
7635}
7636#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7637const _: () = {
7638    ["Size of WGPURenderPassPixelLocalStorage"]
7639        [::core::mem::size_of::<WGPURenderPassPixelLocalStorage>() - 40usize];
7640    ["Alignment of WGPURenderPassPixelLocalStorage"]
7641        [::core::mem::align_of::<WGPURenderPassPixelLocalStorage>() - 8usize];
7642    ["Offset of field: WGPURenderPassPixelLocalStorage::chain"]
7643        [::core::mem::offset_of!(WGPURenderPassPixelLocalStorage, chain) - 0usize];
7644    ["Offset of field: WGPURenderPassPixelLocalStorage::totalPixelLocalStorageSize"][::core::mem::offset_of!(
7645        WGPURenderPassPixelLocalStorage,
7646        totalPixelLocalStorageSize
7647    ) - 16usize];
7648    ["Offset of field: WGPURenderPassPixelLocalStorage::storageAttachmentCount"][::core::mem::offset_of!(
7649        WGPURenderPassPixelLocalStorage,
7650        storageAttachmentCount
7651    ) - 24usize];
7652    ["Offset of field: WGPURenderPassPixelLocalStorage::storageAttachments"]
7653        [::core::mem::offset_of!(WGPURenderPassPixelLocalStorage, storageAttachments) - 32usize];
7654};
7655impl Default for WGPURenderPassPixelLocalStorage {
7656    fn default() -> Self {
7657        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7658        unsafe {
7659            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7660            s.assume_init()
7661        }
7662    }
7663}
7664#[repr(C)]
7665#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7666pub struct WGPUSharedTextureMemoryDescriptor {
7667    pub nextInChain: *mut WGPUChainedStruct,
7668    pub label: WGPUStringView,
7669}
7670#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7671const _: () = {
7672    ["Size of WGPUSharedTextureMemoryDescriptor"]
7673        [::core::mem::size_of::<WGPUSharedTextureMemoryDescriptor>() - 24usize];
7674    ["Alignment of WGPUSharedTextureMemoryDescriptor"]
7675        [::core::mem::align_of::<WGPUSharedTextureMemoryDescriptor>() - 8usize];
7676    ["Offset of field: WGPUSharedTextureMemoryDescriptor::nextInChain"]
7677        [::core::mem::offset_of!(WGPUSharedTextureMemoryDescriptor, nextInChain) - 0usize];
7678    ["Offset of field: WGPUSharedTextureMemoryDescriptor::label"]
7679        [::core::mem::offset_of!(WGPUSharedTextureMemoryDescriptor, label) - 8usize];
7680};
7681impl Default for WGPUSharedTextureMemoryDescriptor {
7682    fn default() -> Self {
7683        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7684        unsafe {
7685            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7686            s.assume_init()
7687        }
7688    }
7689}
7690#[repr(C)]
7691#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7692pub struct WGPUSharedTextureMemoryProperties {
7693    pub nextInChain: *mut WGPUChainedStruct,
7694    pub usage: WGPUTextureUsage,
7695    pub size: WGPUExtent3D,
7696    pub format: WGPUTextureFormat,
7697}
7698#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7699const _: () = {
7700    ["Size of WGPUSharedTextureMemoryProperties"]
7701        [::core::mem::size_of::<WGPUSharedTextureMemoryProperties>() - 32usize];
7702    ["Alignment of WGPUSharedTextureMemoryProperties"]
7703        [::core::mem::align_of::<WGPUSharedTextureMemoryProperties>() - 8usize];
7704    ["Offset of field: WGPUSharedTextureMemoryProperties::nextInChain"]
7705        [::core::mem::offset_of!(WGPUSharedTextureMemoryProperties, nextInChain) - 0usize];
7706    ["Offset of field: WGPUSharedTextureMemoryProperties::usage"]
7707        [::core::mem::offset_of!(WGPUSharedTextureMemoryProperties, usage) - 8usize];
7708    ["Offset of field: WGPUSharedTextureMemoryProperties::size"]
7709        [::core::mem::offset_of!(WGPUSharedTextureMemoryProperties, size) - 16usize];
7710    ["Offset of field: WGPUSharedTextureMemoryProperties::format"]
7711        [::core::mem::offset_of!(WGPUSharedTextureMemoryProperties, format) - 28usize];
7712};
7713impl Default for WGPUSharedTextureMemoryProperties {
7714    fn default() -> Self {
7715        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7716        unsafe {
7717            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7718            s.assume_init()
7719        }
7720    }
7721}
7722#[repr(C)]
7723#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7724pub struct WGPUVertexState {
7725    pub nextInChain: *mut WGPUChainedStruct,
7726    pub module: WGPUShaderModule,
7727    pub entryPoint: WGPUStringView,
7728    pub constantCount: usize,
7729    pub constants: *const WGPUConstantEntry,
7730    pub bufferCount: usize,
7731    pub buffers: *const WGPUVertexBufferLayout,
7732}
7733#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7734const _: () = {
7735    ["Size of WGPUVertexState"][::core::mem::size_of::<WGPUVertexState>() - 64usize];
7736    ["Alignment of WGPUVertexState"][::core::mem::align_of::<WGPUVertexState>() - 8usize];
7737    ["Offset of field: WGPUVertexState::nextInChain"]
7738        [::core::mem::offset_of!(WGPUVertexState, nextInChain) - 0usize];
7739    ["Offset of field: WGPUVertexState::module"]
7740        [::core::mem::offset_of!(WGPUVertexState, module) - 8usize];
7741    ["Offset of field: WGPUVertexState::entryPoint"]
7742        [::core::mem::offset_of!(WGPUVertexState, entryPoint) - 16usize];
7743    ["Offset of field: WGPUVertexState::constantCount"]
7744        [::core::mem::offset_of!(WGPUVertexState, constantCount) - 32usize];
7745    ["Offset of field: WGPUVertexState::constants"]
7746        [::core::mem::offset_of!(WGPUVertexState, constants) - 40usize];
7747    ["Offset of field: WGPUVertexState::bufferCount"]
7748        [::core::mem::offset_of!(WGPUVertexState, bufferCount) - 48usize];
7749    ["Offset of field: WGPUVertexState::buffers"]
7750        [::core::mem::offset_of!(WGPUVertexState, buffers) - 56usize];
7751};
7752impl Default for WGPUVertexState {
7753    fn default() -> Self {
7754        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7755        unsafe {
7756            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7757            s.assume_init()
7758        }
7759    }
7760}
7761#[repr(C)]
7762#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7763pub struct WGPUFragmentState {
7764    pub nextInChain: *mut WGPUChainedStruct,
7765    pub module: WGPUShaderModule,
7766    pub entryPoint: WGPUStringView,
7767    pub constantCount: usize,
7768    pub constants: *const WGPUConstantEntry,
7769    pub targetCount: usize,
7770    pub targets: *const WGPUColorTargetState,
7771}
7772#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7773const _: () = {
7774    ["Size of WGPUFragmentState"][::core::mem::size_of::<WGPUFragmentState>() - 64usize];
7775    ["Alignment of WGPUFragmentState"][::core::mem::align_of::<WGPUFragmentState>() - 8usize];
7776    ["Offset of field: WGPUFragmentState::nextInChain"]
7777        [::core::mem::offset_of!(WGPUFragmentState, nextInChain) - 0usize];
7778    ["Offset of field: WGPUFragmentState::module"]
7779        [::core::mem::offset_of!(WGPUFragmentState, module) - 8usize];
7780    ["Offset of field: WGPUFragmentState::entryPoint"]
7781        [::core::mem::offset_of!(WGPUFragmentState, entryPoint) - 16usize];
7782    ["Offset of field: WGPUFragmentState::constantCount"]
7783        [::core::mem::offset_of!(WGPUFragmentState, constantCount) - 32usize];
7784    ["Offset of field: WGPUFragmentState::constants"]
7785        [::core::mem::offset_of!(WGPUFragmentState, constants) - 40usize];
7786    ["Offset of field: WGPUFragmentState::targetCount"]
7787        [::core::mem::offset_of!(WGPUFragmentState, targetCount) - 48usize];
7788    ["Offset of field: WGPUFragmentState::targets"]
7789        [::core::mem::offset_of!(WGPUFragmentState, targets) - 56usize];
7790};
7791impl Default for WGPUFragmentState {
7792    fn default() -> Self {
7793        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7794        unsafe {
7795            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7796            s.assume_init()
7797        }
7798    }
7799}
7800#[repr(C)]
7801#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7802pub struct WGPURenderPassDescriptor {
7803    pub nextInChain: *mut WGPUChainedStruct,
7804    pub label: WGPUStringView,
7805    pub colorAttachmentCount: usize,
7806    pub colorAttachments: *const WGPURenderPassColorAttachment,
7807    pub depthStencilAttachment: *const WGPURenderPassDepthStencilAttachment,
7808    pub occlusionQuerySet: WGPUQuerySet,
7809    pub timestampWrites: *const WGPUPassTimestampWrites,
7810}
7811#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7812const _: () = {
7813    ["Size of WGPURenderPassDescriptor"]
7814        [::core::mem::size_of::<WGPURenderPassDescriptor>() - 64usize];
7815    ["Alignment of WGPURenderPassDescriptor"]
7816        [::core::mem::align_of::<WGPURenderPassDescriptor>() - 8usize];
7817    ["Offset of field: WGPURenderPassDescriptor::nextInChain"]
7818        [::core::mem::offset_of!(WGPURenderPassDescriptor, nextInChain) - 0usize];
7819    ["Offset of field: WGPURenderPassDescriptor::label"]
7820        [::core::mem::offset_of!(WGPURenderPassDescriptor, label) - 8usize];
7821    ["Offset of field: WGPURenderPassDescriptor::colorAttachmentCount"]
7822        [::core::mem::offset_of!(WGPURenderPassDescriptor, colorAttachmentCount) - 24usize];
7823    ["Offset of field: WGPURenderPassDescriptor::colorAttachments"]
7824        [::core::mem::offset_of!(WGPURenderPassDescriptor, colorAttachments) - 32usize];
7825    ["Offset of field: WGPURenderPassDescriptor::depthStencilAttachment"]
7826        [::core::mem::offset_of!(WGPURenderPassDescriptor, depthStencilAttachment) - 40usize];
7827    ["Offset of field: WGPURenderPassDescriptor::occlusionQuerySet"]
7828        [::core::mem::offset_of!(WGPURenderPassDescriptor, occlusionQuerySet) - 48usize];
7829    ["Offset of field: WGPURenderPassDescriptor::timestampWrites"]
7830        [::core::mem::offset_of!(WGPURenderPassDescriptor, timestampWrites) - 56usize];
7831};
7832impl Default for WGPURenderPassDescriptor {
7833    fn default() -> Self {
7834        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7835        unsafe {
7836            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7837            s.assume_init()
7838        }
7839    }
7840}
7841#[repr(C)]
7842#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7843pub struct WGPURenderPipelineDescriptor {
7844    pub nextInChain: *mut WGPUChainedStruct,
7845    pub label: WGPUStringView,
7846    pub layout: WGPUPipelineLayout,
7847    pub vertex: WGPUVertexState,
7848    pub primitive: WGPUPrimitiveState,
7849    pub depthStencil: *const WGPUDepthStencilState,
7850    pub multisample: WGPUMultisampleState,
7851    pub fragment: *const WGPUFragmentState,
7852}
7853#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7854const _: () = {
7855    ["Size of WGPURenderPipelineDescriptor"]
7856        [::core::mem::size_of::<WGPURenderPipelineDescriptor>() - 168usize];
7857    ["Alignment of WGPURenderPipelineDescriptor"]
7858        [::core::mem::align_of::<WGPURenderPipelineDescriptor>() - 8usize];
7859    ["Offset of field: WGPURenderPipelineDescriptor::nextInChain"]
7860        [::core::mem::offset_of!(WGPURenderPipelineDescriptor, nextInChain) - 0usize];
7861    ["Offset of field: WGPURenderPipelineDescriptor::label"]
7862        [::core::mem::offset_of!(WGPURenderPipelineDescriptor, label) - 8usize];
7863    ["Offset of field: WGPURenderPipelineDescriptor::layout"]
7864        [::core::mem::offset_of!(WGPURenderPipelineDescriptor, layout) - 24usize];
7865    ["Offset of field: WGPURenderPipelineDescriptor::vertex"]
7866        [::core::mem::offset_of!(WGPURenderPipelineDescriptor, vertex) - 32usize];
7867    ["Offset of field: WGPURenderPipelineDescriptor::primitive"]
7868        [::core::mem::offset_of!(WGPURenderPipelineDescriptor, primitive) - 96usize];
7869    ["Offset of field: WGPURenderPipelineDescriptor::depthStencil"]
7870        [::core::mem::offset_of!(WGPURenderPipelineDescriptor, depthStencil) - 128usize];
7871    ["Offset of field: WGPURenderPipelineDescriptor::multisample"]
7872        [::core::mem::offset_of!(WGPURenderPipelineDescriptor, multisample) - 136usize];
7873    ["Offset of field: WGPURenderPipelineDescriptor::fragment"]
7874        [::core::mem::offset_of!(WGPURenderPipelineDescriptor, fragment) - 160usize];
7875};
7876impl Default for WGPURenderPipelineDescriptor {
7877    fn default() -> Self {
7878        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7879        unsafe {
7880            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7881            s.assume_init()
7882        }
7883    }
7884}
7885pub type WGPURenderPassDescriptorMaxDrawCount = WGPURenderPassMaxDrawCount;
7886pub type WGPUShaderModuleSPIRVDescriptor = WGPUShaderSourceSPIRV;
7887pub type WGPUShaderModuleWGSLDescriptor = WGPUShaderSourceWGSL;
7888pub type WGPUSurfaceDescriptorFromAndroidNativeWindow = WGPUSurfaceSourceAndroidNativeWindow;
7889pub type WGPUSurfaceDescriptorFromMetalLayer = WGPUSurfaceSourceMetalLayer;
7890pub type WGPUSurfaceDescriptorFromWaylandSurface = WGPUSurfaceSourceWaylandSurface;
7891pub type WGPUSurfaceDescriptorFromWindowsHWND = WGPUSurfaceSourceWindowsHWND;
7892pub type WGPUSurfaceDescriptorFromXcbWindow = WGPUSurfaceSourceXCBWindow;
7893pub type WGPUSurfaceDescriptorFromXlibWindow = WGPUSurfaceSourceXlibWindow;
7894pub type WGPUProcAdapterInfoFreeMembers =
7895    ::core::option::Option<unsafe extern "C" fn(value: WGPUAdapterInfo)>;
7896pub type WGPUProcAdapterPropertiesMemoryHeapsFreeMembers =
7897    ::core::option::Option<unsafe extern "C" fn(value: WGPUAdapterPropertiesMemoryHeaps)>;
7898pub type WGPUProcAdapterPropertiesSubgroupMatrixConfigsFreeMembers =
7899    ::core::option::Option<unsafe extern "C" fn(value: WGPUAdapterPropertiesSubgroupMatrixConfigs)>;
7900pub type WGPUProcCreateInstance = ::core::option::Option<
7901    unsafe extern "C" fn(descriptor: *const WGPUInstanceDescriptor) -> WGPUInstance,
7902>;
7903pub type WGPUProcDawnDrmFormatCapabilitiesFreeMembers =
7904    ::core::option::Option<unsafe extern "C" fn(value: WGPUDawnDrmFormatCapabilities)>;
7905pub type WGPUProcGetInstanceCapabilities = ::core::option::Option<
7906    unsafe extern "C" fn(capabilities: *mut WGPUInstanceCapabilities) -> WGPUStatus,
7907>;
7908pub type WGPUProcGetProcAddress =
7909    ::core::option::Option<unsafe extern "C" fn(procName: WGPUStringView) -> WGPUProc>;
7910pub type WGPUProcSharedBufferMemoryEndAccessStateFreeMembers =
7911    ::core::option::Option<unsafe extern "C" fn(value: WGPUSharedBufferMemoryEndAccessState)>;
7912pub type WGPUProcSharedTextureMemoryEndAccessStateFreeMembers =
7913    ::core::option::Option<unsafe extern "C" fn(value: WGPUSharedTextureMemoryEndAccessState)>;
7914pub type WGPUProcSupportedFeaturesFreeMembers =
7915    ::core::option::Option<unsafe extern "C" fn(value: WGPUSupportedFeatures)>;
7916pub type WGPUProcSupportedWGSLLanguageFeaturesFreeMembers =
7917    ::core::option::Option<unsafe extern "C" fn(value: WGPUSupportedWGSLLanguageFeatures)>;
7918pub type WGPUProcSurfaceCapabilitiesFreeMembers =
7919    ::core::option::Option<unsafe extern "C" fn(value: WGPUSurfaceCapabilities)>;
7920pub type WGPUProcAdapterCreateDevice = ::core::option::Option<
7921    unsafe extern "C" fn(
7922        adapter: WGPUAdapter,
7923        descriptor: *const WGPUDeviceDescriptor,
7924    ) -> WGPUDevice,
7925>;
7926pub type WGPUProcAdapterGetFeatures = ::core::option::Option<
7927    unsafe extern "C" fn(adapter: WGPUAdapter, features: *mut WGPUSupportedFeatures),
7928>;
7929pub type WGPUProcAdapterGetFormatCapabilities = ::core::option::Option<
7930    unsafe extern "C" fn(
7931        adapter: WGPUAdapter,
7932        format: WGPUTextureFormat,
7933        capabilities: *mut WGPUDawnFormatCapabilities,
7934    ) -> WGPUStatus,
7935>;
7936pub type WGPUProcAdapterGetInfo = ::core::option::Option<
7937    unsafe extern "C" fn(adapter: WGPUAdapter, info: *mut WGPUAdapterInfo) -> WGPUStatus,
7938>;
7939pub type WGPUProcAdapterGetInstance =
7940    ::core::option::Option<unsafe extern "C" fn(adapter: WGPUAdapter) -> WGPUInstance>;
7941pub type WGPUProcAdapterGetLimits = ::core::option::Option<
7942    unsafe extern "C" fn(adapter: WGPUAdapter, limits: *mut WGPULimits) -> WGPUStatus,
7943>;
7944pub type WGPUProcAdapterHasFeature = ::core::option::Option<
7945    unsafe extern "C" fn(adapter: WGPUAdapter, feature: WGPUFeatureName) -> WGPUBool,
7946>;
7947pub type WGPUProcAdapterRequestDevice = ::core::option::Option<
7948    unsafe extern "C" fn(
7949        adapter: WGPUAdapter,
7950        options: *const WGPUDeviceDescriptor,
7951        callbackInfo: WGPURequestDeviceCallbackInfo,
7952    ) -> WGPUFuture,
7953>;
7954pub type WGPUProcAdapterAddRef = ::core::option::Option<unsafe extern "C" fn(adapter: WGPUAdapter)>;
7955pub type WGPUProcAdapterRelease =
7956    ::core::option::Option<unsafe extern "C" fn(adapter: WGPUAdapter)>;
7957pub type WGPUProcBindGroupSetLabel =
7958    ::core::option::Option<unsafe extern "C" fn(bindGroup: WGPUBindGroup, label: WGPUStringView)>;
7959pub type WGPUProcBindGroupAddRef =
7960    ::core::option::Option<unsafe extern "C" fn(bindGroup: WGPUBindGroup)>;
7961pub type WGPUProcBindGroupRelease =
7962    ::core::option::Option<unsafe extern "C" fn(bindGroup: WGPUBindGroup)>;
7963pub type WGPUProcBindGroupLayoutSetLabel = ::core::option::Option<
7964    unsafe extern "C" fn(bindGroupLayout: WGPUBindGroupLayout, label: WGPUStringView),
7965>;
7966pub type WGPUProcBindGroupLayoutAddRef =
7967    ::core::option::Option<unsafe extern "C" fn(bindGroupLayout: WGPUBindGroupLayout)>;
7968pub type WGPUProcBindGroupLayoutRelease =
7969    ::core::option::Option<unsafe extern "C" fn(bindGroupLayout: WGPUBindGroupLayout)>;
7970pub type WGPUProcBufferDestroy = ::core::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer)>;
7971pub type WGPUProcBufferGetConstMappedRange = ::core::option::Option<
7972    unsafe extern "C" fn(
7973        buffer: WGPUBuffer,
7974        offset: usize,
7975        size: usize,
7976    ) -> *const ::core::ffi::c_void,
7977>;
7978pub type WGPUProcBufferGetMappedRange = ::core::option::Option<
7979    unsafe extern "C" fn(
7980        buffer: WGPUBuffer,
7981        offset: usize,
7982        size: usize,
7983    ) -> *mut ::core::ffi::c_void,
7984>;
7985pub type WGPUProcBufferGetMapState =
7986    ::core::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer) -> WGPUBufferMapState>;
7987pub type WGPUProcBufferGetSize =
7988    ::core::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer) -> u64>;
7989pub type WGPUProcBufferGetUsage =
7990    ::core::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer) -> WGPUBufferUsage>;
7991pub type WGPUProcBufferMapAsync = ::core::option::Option<
7992    unsafe extern "C" fn(
7993        buffer: WGPUBuffer,
7994        mode: WGPUMapMode,
7995        offset: usize,
7996        size: usize,
7997        callbackInfo: WGPUBufferMapCallbackInfo,
7998    ) -> WGPUFuture,
7999>;
8000pub type WGPUProcBufferReadMappedRange = ::core::option::Option<
8001    unsafe extern "C" fn(
8002        buffer: WGPUBuffer,
8003        offset: usize,
8004        data: *mut ::core::ffi::c_void,
8005        size: usize,
8006    ) -> WGPUStatus,
8007>;
8008pub type WGPUProcBufferSetLabel =
8009    ::core::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer, label: WGPUStringView)>;
8010pub type WGPUProcBufferUnmap = ::core::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer)>;
8011pub type WGPUProcBufferWriteMappedRange = ::core::option::Option<
8012    unsafe extern "C" fn(
8013        buffer: WGPUBuffer,
8014        offset: usize,
8015        data: *const ::core::ffi::c_void,
8016        size: usize,
8017    ) -> WGPUStatus,
8018>;
8019pub type WGPUProcBufferAddRef = ::core::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer)>;
8020pub type WGPUProcBufferRelease = ::core::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer)>;
8021pub type WGPUProcCommandBufferSetLabel = ::core::option::Option<
8022    unsafe extern "C" fn(commandBuffer: WGPUCommandBuffer, label: WGPUStringView),
8023>;
8024pub type WGPUProcCommandBufferAddRef =
8025    ::core::option::Option<unsafe extern "C" fn(commandBuffer: WGPUCommandBuffer)>;
8026pub type WGPUProcCommandBufferRelease =
8027    ::core::option::Option<unsafe extern "C" fn(commandBuffer: WGPUCommandBuffer)>;
8028pub type WGPUProcCommandEncoderBeginComputePass = ::core::option::Option<
8029    unsafe extern "C" fn(
8030        commandEncoder: WGPUCommandEncoder,
8031        descriptor: *const WGPUComputePassDescriptor,
8032    ) -> WGPUComputePassEncoder,
8033>;
8034pub type WGPUProcCommandEncoderBeginRenderPass = ::core::option::Option<
8035    unsafe extern "C" fn(
8036        commandEncoder: WGPUCommandEncoder,
8037        descriptor: *const WGPURenderPassDescriptor,
8038    ) -> WGPURenderPassEncoder,
8039>;
8040pub type WGPUProcCommandEncoderClearBuffer = ::core::option::Option<
8041    unsafe extern "C" fn(
8042        commandEncoder: WGPUCommandEncoder,
8043        buffer: WGPUBuffer,
8044        offset: u64,
8045        size: u64,
8046    ),
8047>;
8048pub type WGPUProcCommandEncoderCopyBufferToBuffer = ::core::option::Option<
8049    unsafe extern "C" fn(
8050        commandEncoder: WGPUCommandEncoder,
8051        source: WGPUBuffer,
8052        sourceOffset: u64,
8053        destination: WGPUBuffer,
8054        destinationOffset: u64,
8055        size: u64,
8056    ),
8057>;
8058pub type WGPUProcCommandEncoderCopyBufferToTexture = ::core::option::Option<
8059    unsafe extern "C" fn(
8060        commandEncoder: WGPUCommandEncoder,
8061        source: *const WGPUTexelCopyBufferInfo,
8062        destination: *const WGPUTexelCopyTextureInfo,
8063        copySize: *const WGPUExtent3D,
8064    ),
8065>;
8066pub type WGPUProcCommandEncoderCopyTextureToBuffer = ::core::option::Option<
8067    unsafe extern "C" fn(
8068        commandEncoder: WGPUCommandEncoder,
8069        source: *const WGPUTexelCopyTextureInfo,
8070        destination: *const WGPUTexelCopyBufferInfo,
8071        copySize: *const WGPUExtent3D,
8072    ),
8073>;
8074pub type WGPUProcCommandEncoderCopyTextureToTexture = ::core::option::Option<
8075    unsafe extern "C" fn(
8076        commandEncoder: WGPUCommandEncoder,
8077        source: *const WGPUTexelCopyTextureInfo,
8078        destination: *const WGPUTexelCopyTextureInfo,
8079        copySize: *const WGPUExtent3D,
8080    ),
8081>;
8082pub type WGPUProcCommandEncoderFinish = ::core::option::Option<
8083    unsafe extern "C" fn(
8084        commandEncoder: WGPUCommandEncoder,
8085        descriptor: *const WGPUCommandBufferDescriptor,
8086    ) -> WGPUCommandBuffer,
8087>;
8088pub type WGPUProcCommandEncoderInjectValidationError = ::core::option::Option<
8089    unsafe extern "C" fn(commandEncoder: WGPUCommandEncoder, message: WGPUStringView),
8090>;
8091pub type WGPUProcCommandEncoderInsertDebugMarker = ::core::option::Option<
8092    unsafe extern "C" fn(commandEncoder: WGPUCommandEncoder, markerLabel: WGPUStringView),
8093>;
8094pub type WGPUProcCommandEncoderPopDebugGroup =
8095    ::core::option::Option<unsafe extern "C" fn(commandEncoder: WGPUCommandEncoder)>;
8096pub type WGPUProcCommandEncoderPushDebugGroup = ::core::option::Option<
8097    unsafe extern "C" fn(commandEncoder: WGPUCommandEncoder, groupLabel: WGPUStringView),
8098>;
8099pub type WGPUProcCommandEncoderResolveQuerySet = ::core::option::Option<
8100    unsafe extern "C" fn(
8101        commandEncoder: WGPUCommandEncoder,
8102        querySet: WGPUQuerySet,
8103        firstQuery: u32,
8104        queryCount: u32,
8105        destination: WGPUBuffer,
8106        destinationOffset: u64,
8107    ),
8108>;
8109pub type WGPUProcCommandEncoderSetLabel = ::core::option::Option<
8110    unsafe extern "C" fn(commandEncoder: WGPUCommandEncoder, label: WGPUStringView),
8111>;
8112pub type WGPUProcCommandEncoderWriteBuffer = ::core::option::Option<
8113    unsafe extern "C" fn(
8114        commandEncoder: WGPUCommandEncoder,
8115        buffer: WGPUBuffer,
8116        bufferOffset: u64,
8117        data: *const u8,
8118        size: u64,
8119    ),
8120>;
8121pub type WGPUProcCommandEncoderWriteTimestamp = ::core::option::Option<
8122    unsafe extern "C" fn(
8123        commandEncoder: WGPUCommandEncoder,
8124        querySet: WGPUQuerySet,
8125        queryIndex: u32,
8126    ),
8127>;
8128pub type WGPUProcCommandEncoderAddRef =
8129    ::core::option::Option<unsafe extern "C" fn(commandEncoder: WGPUCommandEncoder)>;
8130pub type WGPUProcCommandEncoderRelease =
8131    ::core::option::Option<unsafe extern "C" fn(commandEncoder: WGPUCommandEncoder)>;
8132pub type WGPUProcComputePassEncoderDispatchWorkgroups = ::core::option::Option<
8133    unsafe extern "C" fn(
8134        computePassEncoder: WGPUComputePassEncoder,
8135        workgroupCountX: u32,
8136        workgroupCountY: u32,
8137        workgroupCountZ: u32,
8138    ),
8139>;
8140pub type WGPUProcComputePassEncoderDispatchWorkgroupsIndirect = ::core::option::Option<
8141    unsafe extern "C" fn(
8142        computePassEncoder: WGPUComputePassEncoder,
8143        indirectBuffer: WGPUBuffer,
8144        indirectOffset: u64,
8145    ),
8146>;
8147pub type WGPUProcComputePassEncoderEnd =
8148    ::core::option::Option<unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder)>;
8149pub type WGPUProcComputePassEncoderInsertDebugMarker = ::core::option::Option<
8150    unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder, markerLabel: WGPUStringView),
8151>;
8152pub type WGPUProcComputePassEncoderPopDebugGroup =
8153    ::core::option::Option<unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder)>;
8154pub type WGPUProcComputePassEncoderPushDebugGroup = ::core::option::Option<
8155    unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder, groupLabel: WGPUStringView),
8156>;
8157pub type WGPUProcComputePassEncoderSetBindGroup = ::core::option::Option<
8158    unsafe extern "C" fn(
8159        computePassEncoder: WGPUComputePassEncoder,
8160        groupIndex: u32,
8161        group: WGPUBindGroup,
8162        dynamicOffsetCount: usize,
8163        dynamicOffsets: *const u32,
8164    ),
8165>;
8166pub type WGPUProcComputePassEncoderSetImmediateData = ::core::option::Option<
8167    unsafe extern "C" fn(
8168        computePassEncoder: WGPUComputePassEncoder,
8169        offset: u32,
8170        data: *const ::core::ffi::c_void,
8171        size: usize,
8172    ),
8173>;
8174pub type WGPUProcComputePassEncoderSetLabel = ::core::option::Option<
8175    unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder, label: WGPUStringView),
8176>;
8177pub type WGPUProcComputePassEncoderSetPipeline = ::core::option::Option<
8178    unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder, pipeline: WGPUComputePipeline),
8179>;
8180pub type WGPUProcComputePassEncoderWriteTimestamp = ::core::option::Option<
8181    unsafe extern "C" fn(
8182        computePassEncoder: WGPUComputePassEncoder,
8183        querySet: WGPUQuerySet,
8184        queryIndex: u32,
8185    ),
8186>;
8187pub type WGPUProcComputePassEncoderAddRef =
8188    ::core::option::Option<unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder)>;
8189pub type WGPUProcComputePassEncoderRelease =
8190    ::core::option::Option<unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder)>;
8191pub type WGPUProcComputePipelineGetBindGroupLayout = ::core::option::Option<
8192    unsafe extern "C" fn(
8193        computePipeline: WGPUComputePipeline,
8194        groupIndex: u32,
8195    ) -> WGPUBindGroupLayout,
8196>;
8197pub type WGPUProcComputePipelineSetLabel = ::core::option::Option<
8198    unsafe extern "C" fn(computePipeline: WGPUComputePipeline, label: WGPUStringView),
8199>;
8200pub type WGPUProcComputePipelineAddRef =
8201    ::core::option::Option<unsafe extern "C" fn(computePipeline: WGPUComputePipeline)>;
8202pub type WGPUProcComputePipelineRelease =
8203    ::core::option::Option<unsafe extern "C" fn(computePipeline: WGPUComputePipeline)>;
8204pub type WGPUProcDeviceCreateBindGroup = ::core::option::Option<
8205    unsafe extern "C" fn(
8206        device: WGPUDevice,
8207        descriptor: *const WGPUBindGroupDescriptor,
8208    ) -> WGPUBindGroup,
8209>;
8210pub type WGPUProcDeviceCreateBindGroupLayout = ::core::option::Option<
8211    unsafe extern "C" fn(
8212        device: WGPUDevice,
8213        descriptor: *const WGPUBindGroupLayoutDescriptor,
8214    ) -> WGPUBindGroupLayout,
8215>;
8216pub type WGPUProcDeviceCreateBuffer = ::core::option::Option<
8217    unsafe extern "C" fn(device: WGPUDevice, descriptor: *const WGPUBufferDescriptor) -> WGPUBuffer,
8218>;
8219pub type WGPUProcDeviceCreateCommandEncoder = ::core::option::Option<
8220    unsafe extern "C" fn(
8221        device: WGPUDevice,
8222        descriptor: *const WGPUCommandEncoderDescriptor,
8223    ) -> WGPUCommandEncoder,
8224>;
8225pub type WGPUProcDeviceCreateComputePipeline = ::core::option::Option<
8226    unsafe extern "C" fn(
8227        device: WGPUDevice,
8228        descriptor: *const WGPUComputePipelineDescriptor,
8229    ) -> WGPUComputePipeline,
8230>;
8231pub type WGPUProcDeviceCreateComputePipelineAsync = ::core::option::Option<
8232    unsafe extern "C" fn(
8233        device: WGPUDevice,
8234        descriptor: *const WGPUComputePipelineDescriptor,
8235        callbackInfo: WGPUCreateComputePipelineAsyncCallbackInfo,
8236    ) -> WGPUFuture,
8237>;
8238pub type WGPUProcDeviceCreateErrorBuffer = ::core::option::Option<
8239    unsafe extern "C" fn(device: WGPUDevice, descriptor: *const WGPUBufferDescriptor) -> WGPUBuffer,
8240>;
8241pub type WGPUProcDeviceCreateErrorExternalTexture =
8242    ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice) -> WGPUExternalTexture>;
8243pub type WGPUProcDeviceCreateErrorShaderModule = ::core::option::Option<
8244    unsafe extern "C" fn(
8245        device: WGPUDevice,
8246        descriptor: *const WGPUShaderModuleDescriptor,
8247        errorMessage: WGPUStringView,
8248    ) -> WGPUShaderModule,
8249>;
8250pub type WGPUProcDeviceCreateErrorTexture = ::core::option::Option<
8251    unsafe extern "C" fn(
8252        device: WGPUDevice,
8253        descriptor: *const WGPUTextureDescriptor,
8254    ) -> WGPUTexture,
8255>;
8256pub type WGPUProcDeviceCreateExternalTexture = ::core::option::Option<
8257    unsafe extern "C" fn(
8258        device: WGPUDevice,
8259        externalTextureDescriptor: *const WGPUExternalTextureDescriptor,
8260    ) -> WGPUExternalTexture,
8261>;
8262pub type WGPUProcDeviceCreatePipelineLayout = ::core::option::Option<
8263    unsafe extern "C" fn(
8264        device: WGPUDevice,
8265        descriptor: *const WGPUPipelineLayoutDescriptor,
8266    ) -> WGPUPipelineLayout,
8267>;
8268pub type WGPUProcDeviceCreateQuerySet = ::core::option::Option<
8269    unsafe extern "C" fn(
8270        device: WGPUDevice,
8271        descriptor: *const WGPUQuerySetDescriptor,
8272    ) -> WGPUQuerySet,
8273>;
8274pub type WGPUProcDeviceCreateRenderBundleEncoder = ::core::option::Option<
8275    unsafe extern "C" fn(
8276        device: WGPUDevice,
8277        descriptor: *const WGPURenderBundleEncoderDescriptor,
8278    ) -> WGPURenderBundleEncoder,
8279>;
8280pub type WGPUProcDeviceCreateRenderPipeline = ::core::option::Option<
8281    unsafe extern "C" fn(
8282        device: WGPUDevice,
8283        descriptor: *const WGPURenderPipelineDescriptor,
8284    ) -> WGPURenderPipeline,
8285>;
8286pub type WGPUProcDeviceCreateRenderPipelineAsync = ::core::option::Option<
8287    unsafe extern "C" fn(
8288        device: WGPUDevice,
8289        descriptor: *const WGPURenderPipelineDescriptor,
8290        callbackInfo: WGPUCreateRenderPipelineAsyncCallbackInfo,
8291    ) -> WGPUFuture,
8292>;
8293pub type WGPUProcDeviceCreateSampler = ::core::option::Option<
8294    unsafe extern "C" fn(
8295        device: WGPUDevice,
8296        descriptor: *const WGPUSamplerDescriptor,
8297    ) -> WGPUSampler,
8298>;
8299pub type WGPUProcDeviceCreateShaderModule = ::core::option::Option<
8300    unsafe extern "C" fn(
8301        device: WGPUDevice,
8302        descriptor: *const WGPUShaderModuleDescriptor,
8303    ) -> WGPUShaderModule,
8304>;
8305pub type WGPUProcDeviceCreateTexture = ::core::option::Option<
8306    unsafe extern "C" fn(
8307        device: WGPUDevice,
8308        descriptor: *const WGPUTextureDescriptor,
8309    ) -> WGPUTexture,
8310>;
8311pub type WGPUProcDeviceDestroy = ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice)>;
8312pub type WGPUProcDeviceForceLoss = ::core::option::Option<
8313    unsafe extern "C" fn(device: WGPUDevice, type_: WGPUDeviceLostReason, message: WGPUStringView),
8314>;
8315pub type WGPUProcDeviceGetAdapter =
8316    ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice) -> WGPUAdapter>;
8317pub type WGPUProcDeviceGetAdapterInfo = ::core::option::Option<
8318    unsafe extern "C" fn(device: WGPUDevice, adapterInfo: *mut WGPUAdapterInfo) -> WGPUStatus,
8319>;
8320pub type WGPUProcDeviceGetAHardwareBufferProperties = ::core::option::Option<
8321    unsafe extern "C" fn(
8322        device: WGPUDevice,
8323        handle: *mut ::core::ffi::c_void,
8324        properties: *mut WGPUAHardwareBufferProperties,
8325    ) -> WGPUStatus,
8326>;
8327pub type WGPUProcDeviceGetFeatures = ::core::option::Option<
8328    unsafe extern "C" fn(device: WGPUDevice, features: *mut WGPUSupportedFeatures),
8329>;
8330pub type WGPUProcDeviceGetLimits = ::core::option::Option<
8331    unsafe extern "C" fn(device: WGPUDevice, limits: *mut WGPULimits) -> WGPUStatus,
8332>;
8333pub type WGPUProcDeviceGetLostFuture =
8334    ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice) -> WGPUFuture>;
8335pub type WGPUProcDeviceGetQueue =
8336    ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice) -> WGPUQueue>;
8337pub type WGPUProcDeviceHasFeature = ::core::option::Option<
8338    unsafe extern "C" fn(device: WGPUDevice, feature: WGPUFeatureName) -> WGPUBool,
8339>;
8340pub type WGPUProcDeviceImportSharedBufferMemory = ::core::option::Option<
8341    unsafe extern "C" fn(
8342        device: WGPUDevice,
8343        descriptor: *const WGPUSharedBufferMemoryDescriptor,
8344    ) -> WGPUSharedBufferMemory,
8345>;
8346pub type WGPUProcDeviceImportSharedFence = ::core::option::Option<
8347    unsafe extern "C" fn(
8348        device: WGPUDevice,
8349        descriptor: *const WGPUSharedFenceDescriptor,
8350    ) -> WGPUSharedFence,
8351>;
8352pub type WGPUProcDeviceImportSharedTextureMemory = ::core::option::Option<
8353    unsafe extern "C" fn(
8354        device: WGPUDevice,
8355        descriptor: *const WGPUSharedTextureMemoryDescriptor,
8356    ) -> WGPUSharedTextureMemory,
8357>;
8358pub type WGPUProcDeviceInjectError = ::core::option::Option<
8359    unsafe extern "C" fn(device: WGPUDevice, type_: WGPUErrorType, message: WGPUStringView),
8360>;
8361pub type WGPUProcDevicePopErrorScope = ::core::option::Option<
8362    unsafe extern "C" fn(
8363        device: WGPUDevice,
8364        callbackInfo: WGPUPopErrorScopeCallbackInfo,
8365    ) -> WGPUFuture,
8366>;
8367pub type WGPUProcDevicePushErrorScope =
8368    ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice, filter: WGPUErrorFilter)>;
8369pub type WGPUProcDeviceSetLabel =
8370    ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice, label: WGPUStringView)>;
8371pub type WGPUProcDeviceSetLoggingCallback = ::core::option::Option<
8372    unsafe extern "C" fn(device: WGPUDevice, callbackInfo: WGPULoggingCallbackInfo),
8373>;
8374pub type WGPUProcDeviceTick = ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice)>;
8375pub type WGPUProcDeviceValidateTextureDescriptor = ::core::option::Option<
8376    unsafe extern "C" fn(device: WGPUDevice, descriptor: *const WGPUTextureDescriptor),
8377>;
8378pub type WGPUProcDeviceAddRef = ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice)>;
8379pub type WGPUProcDeviceRelease = ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice)>;
8380pub type WGPUProcExternalTextureDestroy =
8381    ::core::option::Option<unsafe extern "C" fn(externalTexture: WGPUExternalTexture)>;
8382pub type WGPUProcExternalTextureExpire =
8383    ::core::option::Option<unsafe extern "C" fn(externalTexture: WGPUExternalTexture)>;
8384pub type WGPUProcExternalTextureRefresh =
8385    ::core::option::Option<unsafe extern "C" fn(externalTexture: WGPUExternalTexture)>;
8386pub type WGPUProcExternalTextureSetLabel = ::core::option::Option<
8387    unsafe extern "C" fn(externalTexture: WGPUExternalTexture, label: WGPUStringView),
8388>;
8389pub type WGPUProcExternalTextureAddRef =
8390    ::core::option::Option<unsafe extern "C" fn(externalTexture: WGPUExternalTexture)>;
8391pub type WGPUProcExternalTextureRelease =
8392    ::core::option::Option<unsafe extern "C" fn(externalTexture: WGPUExternalTexture)>;
8393pub type WGPUProcInstanceCreateSurface = ::core::option::Option<
8394    unsafe extern "C" fn(
8395        instance: WGPUInstance,
8396        descriptor: *const WGPUSurfaceDescriptor,
8397    ) -> WGPUSurface,
8398>;
8399pub type WGPUProcInstanceGetWGSLLanguageFeatures = ::core::option::Option<
8400    unsafe extern "C" fn(
8401        instance: WGPUInstance,
8402        features: *mut WGPUSupportedWGSLLanguageFeatures,
8403    ) -> WGPUStatus,
8404>;
8405pub type WGPUProcInstanceHasWGSLLanguageFeature = ::core::option::Option<
8406    unsafe extern "C" fn(instance: WGPUInstance, feature: WGPUWGSLLanguageFeatureName) -> WGPUBool,
8407>;
8408pub type WGPUProcInstanceProcessEvents =
8409    ::core::option::Option<unsafe extern "C" fn(instance: WGPUInstance)>;
8410pub type WGPUProcInstanceRequestAdapter = ::core::option::Option<
8411    unsafe extern "C" fn(
8412        instance: WGPUInstance,
8413        options: *const WGPURequestAdapterOptions,
8414        callbackInfo: WGPURequestAdapterCallbackInfo,
8415    ) -> WGPUFuture,
8416>;
8417pub type WGPUProcInstanceWaitAny = ::core::option::Option<
8418    unsafe extern "C" fn(
8419        instance: WGPUInstance,
8420        futureCount: usize,
8421        futures: *mut WGPUFutureWaitInfo,
8422        timeoutNS: u64,
8423    ) -> WGPUWaitStatus,
8424>;
8425pub type WGPUProcInstanceAddRef =
8426    ::core::option::Option<unsafe extern "C" fn(instance: WGPUInstance)>;
8427pub type WGPUProcInstanceRelease =
8428    ::core::option::Option<unsafe extern "C" fn(instance: WGPUInstance)>;
8429pub type WGPUProcPipelineLayoutSetLabel = ::core::option::Option<
8430    unsafe extern "C" fn(pipelineLayout: WGPUPipelineLayout, label: WGPUStringView),
8431>;
8432pub type WGPUProcPipelineLayoutAddRef =
8433    ::core::option::Option<unsafe extern "C" fn(pipelineLayout: WGPUPipelineLayout)>;
8434pub type WGPUProcPipelineLayoutRelease =
8435    ::core::option::Option<unsafe extern "C" fn(pipelineLayout: WGPUPipelineLayout)>;
8436pub type WGPUProcQuerySetDestroy =
8437    ::core::option::Option<unsafe extern "C" fn(querySet: WGPUQuerySet)>;
8438pub type WGPUProcQuerySetGetCount =
8439    ::core::option::Option<unsafe extern "C" fn(querySet: WGPUQuerySet) -> u32>;
8440pub type WGPUProcQuerySetGetType =
8441    ::core::option::Option<unsafe extern "C" fn(querySet: WGPUQuerySet) -> WGPUQueryType>;
8442pub type WGPUProcQuerySetSetLabel =
8443    ::core::option::Option<unsafe extern "C" fn(querySet: WGPUQuerySet, label: WGPUStringView)>;
8444pub type WGPUProcQuerySetAddRef =
8445    ::core::option::Option<unsafe extern "C" fn(querySet: WGPUQuerySet)>;
8446pub type WGPUProcQuerySetRelease =
8447    ::core::option::Option<unsafe extern "C" fn(querySet: WGPUQuerySet)>;
8448pub type WGPUProcQueueCopyExternalTextureForBrowser = ::core::option::Option<
8449    unsafe extern "C" fn(
8450        queue: WGPUQueue,
8451        source: *const WGPUImageCopyExternalTexture,
8452        destination: *const WGPUTexelCopyTextureInfo,
8453        copySize: *const WGPUExtent3D,
8454        options: *const WGPUCopyTextureForBrowserOptions,
8455    ),
8456>;
8457pub type WGPUProcQueueCopyTextureForBrowser = ::core::option::Option<
8458    unsafe extern "C" fn(
8459        queue: WGPUQueue,
8460        source: *const WGPUTexelCopyTextureInfo,
8461        destination: *const WGPUTexelCopyTextureInfo,
8462        copySize: *const WGPUExtent3D,
8463        options: *const WGPUCopyTextureForBrowserOptions,
8464    ),
8465>;
8466pub type WGPUProcQueueOnSubmittedWorkDone = ::core::option::Option<
8467    unsafe extern "C" fn(
8468        queue: WGPUQueue,
8469        callbackInfo: WGPUQueueWorkDoneCallbackInfo,
8470    ) -> WGPUFuture,
8471>;
8472pub type WGPUProcQueueSetLabel =
8473    ::core::option::Option<unsafe extern "C" fn(queue: WGPUQueue, label: WGPUStringView)>;
8474pub type WGPUProcQueueSubmit = ::core::option::Option<
8475    unsafe extern "C" fn(queue: WGPUQueue, commandCount: usize, commands: *const WGPUCommandBuffer),
8476>;
8477pub type WGPUProcQueueWriteBuffer = ::core::option::Option<
8478    unsafe extern "C" fn(
8479        queue: WGPUQueue,
8480        buffer: WGPUBuffer,
8481        bufferOffset: u64,
8482        data: *const ::core::ffi::c_void,
8483        size: usize,
8484    ),
8485>;
8486pub type WGPUProcQueueWriteTexture = ::core::option::Option<
8487    unsafe extern "C" fn(
8488        queue: WGPUQueue,
8489        destination: *const WGPUTexelCopyTextureInfo,
8490        data: *const ::core::ffi::c_void,
8491        dataSize: usize,
8492        dataLayout: *const WGPUTexelCopyBufferLayout,
8493        writeSize: *const WGPUExtent3D,
8494    ),
8495>;
8496pub type WGPUProcQueueAddRef = ::core::option::Option<unsafe extern "C" fn(queue: WGPUQueue)>;
8497pub type WGPUProcQueueRelease = ::core::option::Option<unsafe extern "C" fn(queue: WGPUQueue)>;
8498pub type WGPUProcRenderBundleSetLabel = ::core::option::Option<
8499    unsafe extern "C" fn(renderBundle: WGPURenderBundle, label: WGPUStringView),
8500>;
8501pub type WGPUProcRenderBundleAddRef =
8502    ::core::option::Option<unsafe extern "C" fn(renderBundle: WGPURenderBundle)>;
8503pub type WGPUProcRenderBundleRelease =
8504    ::core::option::Option<unsafe extern "C" fn(renderBundle: WGPURenderBundle)>;
8505pub type WGPUProcRenderBundleEncoderDraw = ::core::option::Option<
8506    unsafe extern "C" fn(
8507        renderBundleEncoder: WGPURenderBundleEncoder,
8508        vertexCount: u32,
8509        instanceCount: u32,
8510        firstVertex: u32,
8511        firstInstance: u32,
8512    ),
8513>;
8514pub type WGPUProcRenderBundleEncoderDrawIndexed = ::core::option::Option<
8515    unsafe extern "C" fn(
8516        renderBundleEncoder: WGPURenderBundleEncoder,
8517        indexCount: u32,
8518        instanceCount: u32,
8519        firstIndex: u32,
8520        baseVertex: i32,
8521        firstInstance: u32,
8522    ),
8523>;
8524pub type WGPUProcRenderBundleEncoderDrawIndexedIndirect = ::core::option::Option<
8525    unsafe extern "C" fn(
8526        renderBundleEncoder: WGPURenderBundleEncoder,
8527        indirectBuffer: WGPUBuffer,
8528        indirectOffset: u64,
8529    ),
8530>;
8531pub type WGPUProcRenderBundleEncoderDrawIndirect = ::core::option::Option<
8532    unsafe extern "C" fn(
8533        renderBundleEncoder: WGPURenderBundleEncoder,
8534        indirectBuffer: WGPUBuffer,
8535        indirectOffset: u64,
8536    ),
8537>;
8538pub type WGPUProcRenderBundleEncoderFinish = ::core::option::Option<
8539    unsafe extern "C" fn(
8540        renderBundleEncoder: WGPURenderBundleEncoder,
8541        descriptor: *const WGPURenderBundleDescriptor,
8542    ) -> WGPURenderBundle,
8543>;
8544pub type WGPUProcRenderBundleEncoderInsertDebugMarker = ::core::option::Option<
8545    unsafe extern "C" fn(renderBundleEncoder: WGPURenderBundleEncoder, markerLabel: WGPUStringView),
8546>;
8547pub type WGPUProcRenderBundleEncoderPopDebugGroup =
8548    ::core::option::Option<unsafe extern "C" fn(renderBundleEncoder: WGPURenderBundleEncoder)>;
8549pub type WGPUProcRenderBundleEncoderPushDebugGroup = ::core::option::Option<
8550    unsafe extern "C" fn(renderBundleEncoder: WGPURenderBundleEncoder, groupLabel: WGPUStringView),
8551>;
8552pub type WGPUProcRenderBundleEncoderSetBindGroup = ::core::option::Option<
8553    unsafe extern "C" fn(
8554        renderBundleEncoder: WGPURenderBundleEncoder,
8555        groupIndex: u32,
8556        group: WGPUBindGroup,
8557        dynamicOffsetCount: usize,
8558        dynamicOffsets: *const u32,
8559    ),
8560>;
8561pub type WGPUProcRenderBundleEncoderSetImmediateData = ::core::option::Option<
8562    unsafe extern "C" fn(
8563        renderBundleEncoder: WGPURenderBundleEncoder,
8564        offset: u32,
8565        data: *const ::core::ffi::c_void,
8566        size: usize,
8567    ),
8568>;
8569pub type WGPUProcRenderBundleEncoderSetIndexBuffer = ::core::option::Option<
8570    unsafe extern "C" fn(
8571        renderBundleEncoder: WGPURenderBundleEncoder,
8572        buffer: WGPUBuffer,
8573        format: WGPUIndexFormat,
8574        offset: u64,
8575        size: u64,
8576    ),
8577>;
8578pub type WGPUProcRenderBundleEncoderSetLabel = ::core::option::Option<
8579    unsafe extern "C" fn(renderBundleEncoder: WGPURenderBundleEncoder, label: WGPUStringView),
8580>;
8581pub type WGPUProcRenderBundleEncoderSetPipeline = ::core::option::Option<
8582    unsafe extern "C" fn(
8583        renderBundleEncoder: WGPURenderBundleEncoder,
8584        pipeline: WGPURenderPipeline,
8585    ),
8586>;
8587pub type WGPUProcRenderBundleEncoderSetVertexBuffer = ::core::option::Option<
8588    unsafe extern "C" fn(
8589        renderBundleEncoder: WGPURenderBundleEncoder,
8590        slot: u32,
8591        buffer: WGPUBuffer,
8592        offset: u64,
8593        size: u64,
8594    ),
8595>;
8596pub type WGPUProcRenderBundleEncoderAddRef =
8597    ::core::option::Option<unsafe extern "C" fn(renderBundleEncoder: WGPURenderBundleEncoder)>;
8598pub type WGPUProcRenderBundleEncoderRelease =
8599    ::core::option::Option<unsafe extern "C" fn(renderBundleEncoder: WGPURenderBundleEncoder)>;
8600pub type WGPUProcRenderPassEncoderBeginOcclusionQuery = ::core::option::Option<
8601    unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder, queryIndex: u32),
8602>;
8603pub type WGPUProcRenderPassEncoderDraw = ::core::option::Option<
8604    unsafe extern "C" fn(
8605        renderPassEncoder: WGPURenderPassEncoder,
8606        vertexCount: u32,
8607        instanceCount: u32,
8608        firstVertex: u32,
8609        firstInstance: u32,
8610    ),
8611>;
8612pub type WGPUProcRenderPassEncoderDrawIndexed = ::core::option::Option<
8613    unsafe extern "C" fn(
8614        renderPassEncoder: WGPURenderPassEncoder,
8615        indexCount: u32,
8616        instanceCount: u32,
8617        firstIndex: u32,
8618        baseVertex: i32,
8619        firstInstance: u32,
8620    ),
8621>;
8622pub type WGPUProcRenderPassEncoderDrawIndexedIndirect = ::core::option::Option<
8623    unsafe extern "C" fn(
8624        renderPassEncoder: WGPURenderPassEncoder,
8625        indirectBuffer: WGPUBuffer,
8626        indirectOffset: u64,
8627    ),
8628>;
8629pub type WGPUProcRenderPassEncoderDrawIndirect = ::core::option::Option<
8630    unsafe extern "C" fn(
8631        renderPassEncoder: WGPURenderPassEncoder,
8632        indirectBuffer: WGPUBuffer,
8633        indirectOffset: u64,
8634    ),
8635>;
8636pub type WGPUProcRenderPassEncoderEnd =
8637    ::core::option::Option<unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder)>;
8638pub type WGPUProcRenderPassEncoderEndOcclusionQuery =
8639    ::core::option::Option<unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder)>;
8640pub type WGPUProcRenderPassEncoderExecuteBundles = ::core::option::Option<
8641    unsafe extern "C" fn(
8642        renderPassEncoder: WGPURenderPassEncoder,
8643        bundleCount: usize,
8644        bundles: *const WGPURenderBundle,
8645    ),
8646>;
8647pub type WGPUProcRenderPassEncoderInsertDebugMarker = ::core::option::Option<
8648    unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder, markerLabel: WGPUStringView),
8649>;
8650pub type WGPUProcRenderPassEncoderMultiDrawIndexedIndirect = ::core::option::Option<
8651    unsafe extern "C" fn(
8652        renderPassEncoder: WGPURenderPassEncoder,
8653        indirectBuffer: WGPUBuffer,
8654        indirectOffset: u64,
8655        maxDrawCount: u32,
8656        drawCountBuffer: WGPUBuffer,
8657        drawCountBufferOffset: u64,
8658    ),
8659>;
8660pub type WGPUProcRenderPassEncoderMultiDrawIndirect = ::core::option::Option<
8661    unsafe extern "C" fn(
8662        renderPassEncoder: WGPURenderPassEncoder,
8663        indirectBuffer: WGPUBuffer,
8664        indirectOffset: u64,
8665        maxDrawCount: u32,
8666        drawCountBuffer: WGPUBuffer,
8667        drawCountBufferOffset: u64,
8668    ),
8669>;
8670pub type WGPUProcRenderPassEncoderPixelLocalStorageBarrier =
8671    ::core::option::Option<unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder)>;
8672pub type WGPUProcRenderPassEncoderPopDebugGroup =
8673    ::core::option::Option<unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder)>;
8674pub type WGPUProcRenderPassEncoderPushDebugGroup = ::core::option::Option<
8675    unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder, groupLabel: WGPUStringView),
8676>;
8677pub type WGPUProcRenderPassEncoderSetBindGroup = ::core::option::Option<
8678    unsafe extern "C" fn(
8679        renderPassEncoder: WGPURenderPassEncoder,
8680        groupIndex: u32,
8681        group: WGPUBindGroup,
8682        dynamicOffsetCount: usize,
8683        dynamicOffsets: *const u32,
8684    ),
8685>;
8686pub type WGPUProcRenderPassEncoderSetBlendConstant = ::core::option::Option<
8687    unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder, color: *const WGPUColor),
8688>;
8689pub type WGPUProcRenderPassEncoderSetImmediateData = ::core::option::Option<
8690    unsafe extern "C" fn(
8691        renderPassEncoder: WGPURenderPassEncoder,
8692        offset: u32,
8693        data: *const ::core::ffi::c_void,
8694        size: usize,
8695    ),
8696>;
8697pub type WGPUProcRenderPassEncoderSetIndexBuffer = ::core::option::Option<
8698    unsafe extern "C" fn(
8699        renderPassEncoder: WGPURenderPassEncoder,
8700        buffer: WGPUBuffer,
8701        format: WGPUIndexFormat,
8702        offset: u64,
8703        size: u64,
8704    ),
8705>;
8706pub type WGPUProcRenderPassEncoderSetLabel = ::core::option::Option<
8707    unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder, label: WGPUStringView),
8708>;
8709pub type WGPUProcRenderPassEncoderSetPipeline = ::core::option::Option<
8710    unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder, pipeline: WGPURenderPipeline),
8711>;
8712pub type WGPUProcRenderPassEncoderSetScissorRect = ::core::option::Option<
8713    unsafe extern "C" fn(
8714        renderPassEncoder: WGPURenderPassEncoder,
8715        x: u32,
8716        y: u32,
8717        width: u32,
8718        height: u32,
8719    ),
8720>;
8721pub type WGPUProcRenderPassEncoderSetStencilReference = ::core::option::Option<
8722    unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder, reference: u32),
8723>;
8724pub type WGPUProcRenderPassEncoderSetVertexBuffer = ::core::option::Option<
8725    unsafe extern "C" fn(
8726        renderPassEncoder: WGPURenderPassEncoder,
8727        slot: u32,
8728        buffer: WGPUBuffer,
8729        offset: u64,
8730        size: u64,
8731    ),
8732>;
8733pub type WGPUProcRenderPassEncoderSetViewport = ::core::option::Option<
8734    unsafe extern "C" fn(
8735        renderPassEncoder: WGPURenderPassEncoder,
8736        x: f32,
8737        y: f32,
8738        width: f32,
8739        height: f32,
8740        minDepth: f32,
8741        maxDepth: f32,
8742    ),
8743>;
8744pub type WGPUProcRenderPassEncoderWriteTimestamp = ::core::option::Option<
8745    unsafe extern "C" fn(
8746        renderPassEncoder: WGPURenderPassEncoder,
8747        querySet: WGPUQuerySet,
8748        queryIndex: u32,
8749    ),
8750>;
8751pub type WGPUProcRenderPassEncoderAddRef =
8752    ::core::option::Option<unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder)>;
8753pub type WGPUProcRenderPassEncoderRelease =
8754    ::core::option::Option<unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder)>;
8755pub type WGPUProcRenderPipelineGetBindGroupLayout = ::core::option::Option<
8756    unsafe extern "C" fn(
8757        renderPipeline: WGPURenderPipeline,
8758        groupIndex: u32,
8759    ) -> WGPUBindGroupLayout,
8760>;
8761pub type WGPUProcRenderPipelineSetLabel = ::core::option::Option<
8762    unsafe extern "C" fn(renderPipeline: WGPURenderPipeline, label: WGPUStringView),
8763>;
8764pub type WGPUProcRenderPipelineAddRef =
8765    ::core::option::Option<unsafe extern "C" fn(renderPipeline: WGPURenderPipeline)>;
8766pub type WGPUProcRenderPipelineRelease =
8767    ::core::option::Option<unsafe extern "C" fn(renderPipeline: WGPURenderPipeline)>;
8768pub type WGPUProcSamplerSetLabel =
8769    ::core::option::Option<unsafe extern "C" fn(sampler: WGPUSampler, label: WGPUStringView)>;
8770pub type WGPUProcSamplerAddRef = ::core::option::Option<unsafe extern "C" fn(sampler: WGPUSampler)>;
8771pub type WGPUProcSamplerRelease =
8772    ::core::option::Option<unsafe extern "C" fn(sampler: WGPUSampler)>;
8773pub type WGPUProcShaderModuleGetCompilationInfo = ::core::option::Option<
8774    unsafe extern "C" fn(
8775        shaderModule: WGPUShaderModule,
8776        callbackInfo: WGPUCompilationInfoCallbackInfo,
8777    ) -> WGPUFuture,
8778>;
8779pub type WGPUProcShaderModuleSetLabel = ::core::option::Option<
8780    unsafe extern "C" fn(shaderModule: WGPUShaderModule, label: WGPUStringView),
8781>;
8782pub type WGPUProcShaderModuleAddRef =
8783    ::core::option::Option<unsafe extern "C" fn(shaderModule: WGPUShaderModule)>;
8784pub type WGPUProcShaderModuleRelease =
8785    ::core::option::Option<unsafe extern "C" fn(shaderModule: WGPUShaderModule)>;
8786pub type WGPUProcSharedBufferMemoryBeginAccess = ::core::option::Option<
8787    unsafe extern "C" fn(
8788        sharedBufferMemory: WGPUSharedBufferMemory,
8789        buffer: WGPUBuffer,
8790        descriptor: *const WGPUSharedBufferMemoryBeginAccessDescriptor,
8791    ) -> WGPUStatus,
8792>;
8793pub type WGPUProcSharedBufferMemoryCreateBuffer = ::core::option::Option<
8794    unsafe extern "C" fn(
8795        sharedBufferMemory: WGPUSharedBufferMemory,
8796        descriptor: *const WGPUBufferDescriptor,
8797    ) -> WGPUBuffer,
8798>;
8799pub type WGPUProcSharedBufferMemoryEndAccess = ::core::option::Option<
8800    unsafe extern "C" fn(
8801        sharedBufferMemory: WGPUSharedBufferMemory,
8802        buffer: WGPUBuffer,
8803        descriptor: *mut WGPUSharedBufferMemoryEndAccessState,
8804    ) -> WGPUStatus,
8805>;
8806pub type WGPUProcSharedBufferMemoryGetProperties = ::core::option::Option<
8807    unsafe extern "C" fn(
8808        sharedBufferMemory: WGPUSharedBufferMemory,
8809        properties: *mut WGPUSharedBufferMemoryProperties,
8810    ) -> WGPUStatus,
8811>;
8812pub type WGPUProcSharedBufferMemoryIsDeviceLost = ::core::option::Option<
8813    unsafe extern "C" fn(sharedBufferMemory: WGPUSharedBufferMemory) -> WGPUBool,
8814>;
8815pub type WGPUProcSharedBufferMemorySetLabel = ::core::option::Option<
8816    unsafe extern "C" fn(sharedBufferMemory: WGPUSharedBufferMemory, label: WGPUStringView),
8817>;
8818pub type WGPUProcSharedBufferMemoryAddRef =
8819    ::core::option::Option<unsafe extern "C" fn(sharedBufferMemory: WGPUSharedBufferMemory)>;
8820pub type WGPUProcSharedBufferMemoryRelease =
8821    ::core::option::Option<unsafe extern "C" fn(sharedBufferMemory: WGPUSharedBufferMemory)>;
8822pub type WGPUProcSharedFenceExportInfo = ::core::option::Option<
8823    unsafe extern "C" fn(sharedFence: WGPUSharedFence, info: *mut WGPUSharedFenceExportInfo),
8824>;
8825pub type WGPUProcSharedFenceAddRef =
8826    ::core::option::Option<unsafe extern "C" fn(sharedFence: WGPUSharedFence)>;
8827pub type WGPUProcSharedFenceRelease =
8828    ::core::option::Option<unsafe extern "C" fn(sharedFence: WGPUSharedFence)>;
8829pub type WGPUProcSharedTextureMemoryBeginAccess = ::core::option::Option<
8830    unsafe extern "C" fn(
8831        sharedTextureMemory: WGPUSharedTextureMemory,
8832        texture: WGPUTexture,
8833        descriptor: *const WGPUSharedTextureMemoryBeginAccessDescriptor,
8834    ) -> WGPUStatus,
8835>;
8836pub type WGPUProcSharedTextureMemoryCreateTexture = ::core::option::Option<
8837    unsafe extern "C" fn(
8838        sharedTextureMemory: WGPUSharedTextureMemory,
8839        descriptor: *const WGPUTextureDescriptor,
8840    ) -> WGPUTexture,
8841>;
8842pub type WGPUProcSharedTextureMemoryEndAccess = ::core::option::Option<
8843    unsafe extern "C" fn(
8844        sharedTextureMemory: WGPUSharedTextureMemory,
8845        texture: WGPUTexture,
8846        descriptor: *mut WGPUSharedTextureMemoryEndAccessState,
8847    ) -> WGPUStatus,
8848>;
8849pub type WGPUProcSharedTextureMemoryGetProperties = ::core::option::Option<
8850    unsafe extern "C" fn(
8851        sharedTextureMemory: WGPUSharedTextureMemory,
8852        properties: *mut WGPUSharedTextureMemoryProperties,
8853    ) -> WGPUStatus,
8854>;
8855pub type WGPUProcSharedTextureMemoryIsDeviceLost = ::core::option::Option<
8856    unsafe extern "C" fn(sharedTextureMemory: WGPUSharedTextureMemory) -> WGPUBool,
8857>;
8858pub type WGPUProcSharedTextureMemorySetLabel = ::core::option::Option<
8859    unsafe extern "C" fn(sharedTextureMemory: WGPUSharedTextureMemory, label: WGPUStringView),
8860>;
8861pub type WGPUProcSharedTextureMemoryAddRef =
8862    ::core::option::Option<unsafe extern "C" fn(sharedTextureMemory: WGPUSharedTextureMemory)>;
8863pub type WGPUProcSharedTextureMemoryRelease =
8864    ::core::option::Option<unsafe extern "C" fn(sharedTextureMemory: WGPUSharedTextureMemory)>;
8865pub type WGPUProcSurfaceConfigure = ::core::option::Option<
8866    unsafe extern "C" fn(surface: WGPUSurface, config: *const WGPUSurfaceConfiguration),
8867>;
8868pub type WGPUProcSurfaceGetCapabilities = ::core::option::Option<
8869    unsafe extern "C" fn(
8870        surface: WGPUSurface,
8871        adapter: WGPUAdapter,
8872        capabilities: *mut WGPUSurfaceCapabilities,
8873    ) -> WGPUStatus,
8874>;
8875pub type WGPUProcSurfaceGetCurrentTexture = ::core::option::Option<
8876    unsafe extern "C" fn(surface: WGPUSurface, surfaceTexture: *mut WGPUSurfaceTexture),
8877>;
8878pub type WGPUProcSurfacePresent =
8879    ::core::option::Option<unsafe extern "C" fn(surface: WGPUSurface)>;
8880pub type WGPUProcSurfaceSetLabel =
8881    ::core::option::Option<unsafe extern "C" fn(surface: WGPUSurface, label: WGPUStringView)>;
8882pub type WGPUProcSurfaceUnconfigure =
8883    ::core::option::Option<unsafe extern "C" fn(surface: WGPUSurface)>;
8884pub type WGPUProcSurfaceAddRef = ::core::option::Option<unsafe extern "C" fn(surface: WGPUSurface)>;
8885pub type WGPUProcSurfaceRelease =
8886    ::core::option::Option<unsafe extern "C" fn(surface: WGPUSurface)>;
8887pub type WGPUProcTextureCreateErrorView = ::core::option::Option<
8888    unsafe extern "C" fn(
8889        texture: WGPUTexture,
8890        descriptor: *const WGPUTextureViewDescriptor,
8891    ) -> WGPUTextureView,
8892>;
8893pub type WGPUProcTextureCreateView = ::core::option::Option<
8894    unsafe extern "C" fn(
8895        texture: WGPUTexture,
8896        descriptor: *const WGPUTextureViewDescriptor,
8897    ) -> WGPUTextureView,
8898>;
8899pub type WGPUProcTextureDestroy =
8900    ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture)>;
8901pub type WGPUProcTextureGetDepthOrArrayLayers =
8902    ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> u32>;
8903pub type WGPUProcTextureGetDimension =
8904    ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> WGPUTextureDimension>;
8905pub type WGPUProcTextureGetFormat =
8906    ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> WGPUTextureFormat>;
8907pub type WGPUProcTextureGetHeight =
8908    ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> u32>;
8909pub type WGPUProcTextureGetMipLevelCount =
8910    ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> u32>;
8911pub type WGPUProcTextureGetSampleCount =
8912    ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> u32>;
8913pub type WGPUProcTextureGetUsage =
8914    ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> WGPUTextureUsage>;
8915pub type WGPUProcTextureGetWidth =
8916    ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> u32>;
8917pub type WGPUProcTextureSetLabel =
8918    ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture, label: WGPUStringView)>;
8919pub type WGPUProcTextureAddRef = ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture)>;
8920pub type WGPUProcTextureRelease =
8921    ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture)>;
8922pub type WGPUProcTextureViewSetLabel = ::core::option::Option<
8923    unsafe extern "C" fn(textureView: WGPUTextureView, label: WGPUStringView),
8924>;
8925pub type WGPUProcTextureViewAddRef =
8926    ::core::option::Option<unsafe extern "C" fn(textureView: WGPUTextureView)>;
8927pub type WGPUProcTextureViewRelease =
8928    ::core::option::Option<unsafe extern "C" fn(textureView: WGPUTextureView)>;
8929unsafe extern "C" {
8930    pub fn wgpuAdapterInfoFreeMembers(value: WGPUAdapterInfo);
8931}
8932unsafe extern "C" {
8933    pub fn wgpuAdapterPropertiesMemoryHeapsFreeMembers(value: WGPUAdapterPropertiesMemoryHeaps);
8934}
8935unsafe extern "C" {
8936    pub fn wgpuAdapterPropertiesSubgroupMatrixConfigsFreeMembers(
8937        value: WGPUAdapterPropertiesSubgroupMatrixConfigs,
8938    );
8939}
8940unsafe extern "C" {
8941    pub fn wgpuCreateInstance(descriptor: *const WGPUInstanceDescriptor) -> WGPUInstance;
8942}
8943unsafe extern "C" {
8944    pub fn wgpuDawnDrmFormatCapabilitiesFreeMembers(value: WGPUDawnDrmFormatCapabilities);
8945}
8946unsafe extern "C" {
8947    pub fn wgpuGetInstanceCapabilities(capabilities: *mut WGPUInstanceCapabilities) -> WGPUStatus;
8948}
8949unsafe extern "C" {
8950    pub fn wgpuGetProcAddress(procName: WGPUStringView) -> WGPUProc;
8951}
8952unsafe extern "C" {
8953    pub fn wgpuSharedBufferMemoryEndAccessStateFreeMembers(
8954        value: WGPUSharedBufferMemoryEndAccessState,
8955    );
8956}
8957unsafe extern "C" {
8958    pub fn wgpuSharedTextureMemoryEndAccessStateFreeMembers(
8959        value: WGPUSharedTextureMemoryEndAccessState,
8960    );
8961}
8962unsafe extern "C" {
8963    pub fn wgpuSupportedFeaturesFreeMembers(value: WGPUSupportedFeatures);
8964}
8965unsafe extern "C" {
8966    pub fn wgpuSupportedWGSLLanguageFeaturesFreeMembers(value: WGPUSupportedWGSLLanguageFeatures);
8967}
8968unsafe extern "C" {
8969    pub fn wgpuSurfaceCapabilitiesFreeMembers(value: WGPUSurfaceCapabilities);
8970}
8971unsafe extern "C" {
8972    pub fn wgpuAdapterCreateDevice(
8973        adapter: WGPUAdapter,
8974        descriptor: *const WGPUDeviceDescriptor,
8975    ) -> WGPUDevice;
8976}
8977unsafe extern "C" {
8978    pub fn wgpuAdapterGetFeatures(adapter: WGPUAdapter, features: *mut WGPUSupportedFeatures);
8979}
8980unsafe extern "C" {
8981    pub fn wgpuAdapterGetFormatCapabilities(
8982        adapter: WGPUAdapter,
8983        format: WGPUTextureFormat,
8984        capabilities: *mut WGPUDawnFormatCapabilities,
8985    ) -> WGPUStatus;
8986}
8987unsafe extern "C" {
8988    pub fn wgpuAdapterGetInfo(adapter: WGPUAdapter, info: *mut WGPUAdapterInfo) -> WGPUStatus;
8989}
8990unsafe extern "C" {
8991    pub fn wgpuAdapterGetInstance(adapter: WGPUAdapter) -> WGPUInstance;
8992}
8993unsafe extern "C" {
8994    pub fn wgpuAdapterGetLimits(adapter: WGPUAdapter, limits: *mut WGPULimits) -> WGPUStatus;
8995}
8996unsafe extern "C" {
8997    pub fn wgpuAdapterHasFeature(adapter: WGPUAdapter, feature: WGPUFeatureName) -> WGPUBool;
8998}
8999unsafe extern "C" {
9000    pub fn wgpuAdapterRequestDevice(
9001        adapter: WGPUAdapter,
9002        options: *const WGPUDeviceDescriptor,
9003        callbackInfo: WGPURequestDeviceCallbackInfo,
9004    ) -> WGPUFuture;
9005}
9006unsafe extern "C" {
9007    pub fn wgpuAdapterAddRef(adapter: WGPUAdapter);
9008}
9009unsafe extern "C" {
9010    pub fn wgpuAdapterRelease(adapter: WGPUAdapter);
9011}
9012unsafe extern "C" {
9013    pub fn wgpuBindGroupSetLabel(bindGroup: WGPUBindGroup, label: WGPUStringView);
9014}
9015unsafe extern "C" {
9016    pub fn wgpuBindGroupAddRef(bindGroup: WGPUBindGroup);
9017}
9018unsafe extern "C" {
9019    pub fn wgpuBindGroupRelease(bindGroup: WGPUBindGroup);
9020}
9021unsafe extern "C" {
9022    pub fn wgpuBindGroupLayoutSetLabel(bindGroupLayout: WGPUBindGroupLayout, label: WGPUStringView);
9023}
9024unsafe extern "C" {
9025    pub fn wgpuBindGroupLayoutAddRef(bindGroupLayout: WGPUBindGroupLayout);
9026}
9027unsafe extern "C" {
9028    pub fn wgpuBindGroupLayoutRelease(bindGroupLayout: WGPUBindGroupLayout);
9029}
9030unsafe extern "C" {
9031    pub fn wgpuBufferDestroy(buffer: WGPUBuffer);
9032}
9033unsafe extern "C" {
9034    pub fn wgpuBufferGetConstMappedRange(
9035        buffer: WGPUBuffer,
9036        offset: usize,
9037        size: usize,
9038    ) -> *const ::core::ffi::c_void;
9039}
9040unsafe extern "C" {
9041    pub fn wgpuBufferGetMappedRange(
9042        buffer: WGPUBuffer,
9043        offset: usize,
9044        size: usize,
9045    ) -> *mut ::core::ffi::c_void;
9046}
9047unsafe extern "C" {
9048    pub fn wgpuBufferGetMapState(buffer: WGPUBuffer) -> WGPUBufferMapState;
9049}
9050unsafe extern "C" {
9051    pub fn wgpuBufferGetSize(buffer: WGPUBuffer) -> u64;
9052}
9053unsafe extern "C" {
9054    pub fn wgpuBufferGetUsage(buffer: WGPUBuffer) -> WGPUBufferUsage;
9055}
9056unsafe extern "C" {
9057    pub fn wgpuBufferMapAsync(
9058        buffer: WGPUBuffer,
9059        mode: WGPUMapMode,
9060        offset: usize,
9061        size: usize,
9062        callbackInfo: WGPUBufferMapCallbackInfo,
9063    ) -> WGPUFuture;
9064}
9065unsafe extern "C" {
9066    pub fn wgpuBufferReadMappedRange(
9067        buffer: WGPUBuffer,
9068        offset: usize,
9069        data: *mut ::core::ffi::c_void,
9070        size: usize,
9071    ) -> WGPUStatus;
9072}
9073unsafe extern "C" {
9074    pub fn wgpuBufferSetLabel(buffer: WGPUBuffer, label: WGPUStringView);
9075}
9076unsafe extern "C" {
9077    pub fn wgpuBufferUnmap(buffer: WGPUBuffer);
9078}
9079unsafe extern "C" {
9080    pub fn wgpuBufferWriteMappedRange(
9081        buffer: WGPUBuffer,
9082        offset: usize,
9083        data: *const ::core::ffi::c_void,
9084        size: usize,
9085    ) -> WGPUStatus;
9086}
9087unsafe extern "C" {
9088    pub fn wgpuBufferAddRef(buffer: WGPUBuffer);
9089}
9090unsafe extern "C" {
9091    pub fn wgpuBufferRelease(buffer: WGPUBuffer);
9092}
9093unsafe extern "C" {
9094    pub fn wgpuCommandBufferSetLabel(commandBuffer: WGPUCommandBuffer, label: WGPUStringView);
9095}
9096unsafe extern "C" {
9097    pub fn wgpuCommandBufferAddRef(commandBuffer: WGPUCommandBuffer);
9098}
9099unsafe extern "C" {
9100    pub fn wgpuCommandBufferRelease(commandBuffer: WGPUCommandBuffer);
9101}
9102unsafe extern "C" {
9103    pub fn wgpuCommandEncoderBeginComputePass(
9104        commandEncoder: WGPUCommandEncoder,
9105        descriptor: *const WGPUComputePassDescriptor,
9106    ) -> WGPUComputePassEncoder;
9107}
9108unsafe extern "C" {
9109    pub fn wgpuCommandEncoderBeginRenderPass(
9110        commandEncoder: WGPUCommandEncoder,
9111        descriptor: *const WGPURenderPassDescriptor,
9112    ) -> WGPURenderPassEncoder;
9113}
9114unsafe extern "C" {
9115    pub fn wgpuCommandEncoderClearBuffer(
9116        commandEncoder: WGPUCommandEncoder,
9117        buffer: WGPUBuffer,
9118        offset: u64,
9119        size: u64,
9120    );
9121}
9122unsafe extern "C" {
9123    pub fn wgpuCommandEncoderCopyBufferToBuffer(
9124        commandEncoder: WGPUCommandEncoder,
9125        source: WGPUBuffer,
9126        sourceOffset: u64,
9127        destination: WGPUBuffer,
9128        destinationOffset: u64,
9129        size: u64,
9130    );
9131}
9132unsafe extern "C" {
9133    pub fn wgpuCommandEncoderCopyBufferToTexture(
9134        commandEncoder: WGPUCommandEncoder,
9135        source: *const WGPUTexelCopyBufferInfo,
9136        destination: *const WGPUTexelCopyTextureInfo,
9137        copySize: *const WGPUExtent3D,
9138    );
9139}
9140unsafe extern "C" {
9141    pub fn wgpuCommandEncoderCopyTextureToBuffer(
9142        commandEncoder: WGPUCommandEncoder,
9143        source: *const WGPUTexelCopyTextureInfo,
9144        destination: *const WGPUTexelCopyBufferInfo,
9145        copySize: *const WGPUExtent3D,
9146    );
9147}
9148unsafe extern "C" {
9149    pub fn wgpuCommandEncoderCopyTextureToTexture(
9150        commandEncoder: WGPUCommandEncoder,
9151        source: *const WGPUTexelCopyTextureInfo,
9152        destination: *const WGPUTexelCopyTextureInfo,
9153        copySize: *const WGPUExtent3D,
9154    );
9155}
9156unsafe extern "C" {
9157    pub fn wgpuCommandEncoderFinish(
9158        commandEncoder: WGPUCommandEncoder,
9159        descriptor: *const WGPUCommandBufferDescriptor,
9160    ) -> WGPUCommandBuffer;
9161}
9162unsafe extern "C" {
9163    pub fn wgpuCommandEncoderInjectValidationError(
9164        commandEncoder: WGPUCommandEncoder,
9165        message: WGPUStringView,
9166    );
9167}
9168unsafe extern "C" {
9169    pub fn wgpuCommandEncoderInsertDebugMarker(
9170        commandEncoder: WGPUCommandEncoder,
9171        markerLabel: WGPUStringView,
9172    );
9173}
9174unsafe extern "C" {
9175    pub fn wgpuCommandEncoderPopDebugGroup(commandEncoder: WGPUCommandEncoder);
9176}
9177unsafe extern "C" {
9178    pub fn wgpuCommandEncoderPushDebugGroup(
9179        commandEncoder: WGPUCommandEncoder,
9180        groupLabel: WGPUStringView,
9181    );
9182}
9183unsafe extern "C" {
9184    pub fn wgpuCommandEncoderResolveQuerySet(
9185        commandEncoder: WGPUCommandEncoder,
9186        querySet: WGPUQuerySet,
9187        firstQuery: u32,
9188        queryCount: u32,
9189        destination: WGPUBuffer,
9190        destinationOffset: u64,
9191    );
9192}
9193unsafe extern "C" {
9194    pub fn wgpuCommandEncoderSetLabel(commandEncoder: WGPUCommandEncoder, label: WGPUStringView);
9195}
9196unsafe extern "C" {
9197    pub fn wgpuCommandEncoderWriteBuffer(
9198        commandEncoder: WGPUCommandEncoder,
9199        buffer: WGPUBuffer,
9200        bufferOffset: u64,
9201        data: *const u8,
9202        size: u64,
9203    );
9204}
9205unsafe extern "C" {
9206    pub fn wgpuCommandEncoderWriteTimestamp(
9207        commandEncoder: WGPUCommandEncoder,
9208        querySet: WGPUQuerySet,
9209        queryIndex: u32,
9210    );
9211}
9212unsafe extern "C" {
9213    pub fn wgpuCommandEncoderAddRef(commandEncoder: WGPUCommandEncoder);
9214}
9215unsafe extern "C" {
9216    pub fn wgpuCommandEncoderRelease(commandEncoder: WGPUCommandEncoder);
9217}
9218unsafe extern "C" {
9219    pub fn wgpuComputePassEncoderDispatchWorkgroups(
9220        computePassEncoder: WGPUComputePassEncoder,
9221        workgroupCountX: u32,
9222        workgroupCountY: u32,
9223        workgroupCountZ: u32,
9224    );
9225}
9226unsafe extern "C" {
9227    pub fn wgpuComputePassEncoderDispatchWorkgroupsIndirect(
9228        computePassEncoder: WGPUComputePassEncoder,
9229        indirectBuffer: WGPUBuffer,
9230        indirectOffset: u64,
9231    );
9232}
9233unsafe extern "C" {
9234    pub fn wgpuComputePassEncoderEnd(computePassEncoder: WGPUComputePassEncoder);
9235}
9236unsafe extern "C" {
9237    pub fn wgpuComputePassEncoderInsertDebugMarker(
9238        computePassEncoder: WGPUComputePassEncoder,
9239        markerLabel: WGPUStringView,
9240    );
9241}
9242unsafe extern "C" {
9243    pub fn wgpuComputePassEncoderPopDebugGroup(computePassEncoder: WGPUComputePassEncoder);
9244}
9245unsafe extern "C" {
9246    pub fn wgpuComputePassEncoderPushDebugGroup(
9247        computePassEncoder: WGPUComputePassEncoder,
9248        groupLabel: WGPUStringView,
9249    );
9250}
9251unsafe extern "C" {
9252    pub fn wgpuComputePassEncoderSetBindGroup(
9253        computePassEncoder: WGPUComputePassEncoder,
9254        groupIndex: u32,
9255        group: WGPUBindGroup,
9256        dynamicOffsetCount: usize,
9257        dynamicOffsets: *const u32,
9258    );
9259}
9260unsafe extern "C" {
9261    pub fn wgpuComputePassEncoderSetImmediateData(
9262        computePassEncoder: WGPUComputePassEncoder,
9263        offset: u32,
9264        data: *const ::core::ffi::c_void,
9265        size: usize,
9266    );
9267}
9268unsafe extern "C" {
9269    pub fn wgpuComputePassEncoderSetLabel(
9270        computePassEncoder: WGPUComputePassEncoder,
9271        label: WGPUStringView,
9272    );
9273}
9274unsafe extern "C" {
9275    pub fn wgpuComputePassEncoderSetPipeline(
9276        computePassEncoder: WGPUComputePassEncoder,
9277        pipeline: WGPUComputePipeline,
9278    );
9279}
9280unsafe extern "C" {
9281    pub fn wgpuComputePassEncoderWriteTimestamp(
9282        computePassEncoder: WGPUComputePassEncoder,
9283        querySet: WGPUQuerySet,
9284        queryIndex: u32,
9285    );
9286}
9287unsafe extern "C" {
9288    pub fn wgpuComputePassEncoderAddRef(computePassEncoder: WGPUComputePassEncoder);
9289}
9290unsafe extern "C" {
9291    pub fn wgpuComputePassEncoderRelease(computePassEncoder: WGPUComputePassEncoder);
9292}
9293unsafe extern "C" {
9294    pub fn wgpuComputePipelineGetBindGroupLayout(
9295        computePipeline: WGPUComputePipeline,
9296        groupIndex: u32,
9297    ) -> WGPUBindGroupLayout;
9298}
9299unsafe extern "C" {
9300    pub fn wgpuComputePipelineSetLabel(computePipeline: WGPUComputePipeline, label: WGPUStringView);
9301}
9302unsafe extern "C" {
9303    pub fn wgpuComputePipelineAddRef(computePipeline: WGPUComputePipeline);
9304}
9305unsafe extern "C" {
9306    pub fn wgpuComputePipelineRelease(computePipeline: WGPUComputePipeline);
9307}
9308unsafe extern "C" {
9309    pub fn wgpuDeviceCreateBindGroup(
9310        device: WGPUDevice,
9311        descriptor: *const WGPUBindGroupDescriptor,
9312    ) -> WGPUBindGroup;
9313}
9314unsafe extern "C" {
9315    pub fn wgpuDeviceCreateBindGroupLayout(
9316        device: WGPUDevice,
9317        descriptor: *const WGPUBindGroupLayoutDescriptor,
9318    ) -> WGPUBindGroupLayout;
9319}
9320unsafe extern "C" {
9321    pub fn wgpuDeviceCreateBuffer(
9322        device: WGPUDevice,
9323        descriptor: *const WGPUBufferDescriptor,
9324    ) -> WGPUBuffer;
9325}
9326unsafe extern "C" {
9327    pub fn wgpuDeviceCreateCommandEncoder(
9328        device: WGPUDevice,
9329        descriptor: *const WGPUCommandEncoderDescriptor,
9330    ) -> WGPUCommandEncoder;
9331}
9332unsafe extern "C" {
9333    pub fn wgpuDeviceCreateComputePipeline(
9334        device: WGPUDevice,
9335        descriptor: *const WGPUComputePipelineDescriptor,
9336    ) -> WGPUComputePipeline;
9337}
9338unsafe extern "C" {
9339    pub fn wgpuDeviceCreateComputePipelineAsync(
9340        device: WGPUDevice,
9341        descriptor: *const WGPUComputePipelineDescriptor,
9342        callbackInfo: WGPUCreateComputePipelineAsyncCallbackInfo,
9343    ) -> WGPUFuture;
9344}
9345unsafe extern "C" {
9346    pub fn wgpuDeviceCreateErrorBuffer(
9347        device: WGPUDevice,
9348        descriptor: *const WGPUBufferDescriptor,
9349    ) -> WGPUBuffer;
9350}
9351unsafe extern "C" {
9352    pub fn wgpuDeviceCreateErrorExternalTexture(device: WGPUDevice) -> WGPUExternalTexture;
9353}
9354unsafe extern "C" {
9355    pub fn wgpuDeviceCreateErrorShaderModule(
9356        device: WGPUDevice,
9357        descriptor: *const WGPUShaderModuleDescriptor,
9358        errorMessage: WGPUStringView,
9359    ) -> WGPUShaderModule;
9360}
9361unsafe extern "C" {
9362    pub fn wgpuDeviceCreateErrorTexture(
9363        device: WGPUDevice,
9364        descriptor: *const WGPUTextureDescriptor,
9365    ) -> WGPUTexture;
9366}
9367unsafe extern "C" {
9368    pub fn wgpuDeviceCreateExternalTexture(
9369        device: WGPUDevice,
9370        externalTextureDescriptor: *const WGPUExternalTextureDescriptor,
9371    ) -> WGPUExternalTexture;
9372}
9373unsafe extern "C" {
9374    pub fn wgpuDeviceCreatePipelineLayout(
9375        device: WGPUDevice,
9376        descriptor: *const WGPUPipelineLayoutDescriptor,
9377    ) -> WGPUPipelineLayout;
9378}
9379unsafe extern "C" {
9380    pub fn wgpuDeviceCreateQuerySet(
9381        device: WGPUDevice,
9382        descriptor: *const WGPUQuerySetDescriptor,
9383    ) -> WGPUQuerySet;
9384}
9385unsafe extern "C" {
9386    pub fn wgpuDeviceCreateRenderBundleEncoder(
9387        device: WGPUDevice,
9388        descriptor: *const WGPURenderBundleEncoderDescriptor,
9389    ) -> WGPURenderBundleEncoder;
9390}
9391unsafe extern "C" {
9392    pub fn wgpuDeviceCreateRenderPipeline(
9393        device: WGPUDevice,
9394        descriptor: *const WGPURenderPipelineDescriptor,
9395    ) -> WGPURenderPipeline;
9396}
9397unsafe extern "C" {
9398    pub fn wgpuDeviceCreateRenderPipelineAsync(
9399        device: WGPUDevice,
9400        descriptor: *const WGPURenderPipelineDescriptor,
9401        callbackInfo: WGPUCreateRenderPipelineAsyncCallbackInfo,
9402    ) -> WGPUFuture;
9403}
9404unsafe extern "C" {
9405    pub fn wgpuDeviceCreateSampler(
9406        device: WGPUDevice,
9407        descriptor: *const WGPUSamplerDescriptor,
9408    ) -> WGPUSampler;
9409}
9410unsafe extern "C" {
9411    pub fn wgpuDeviceCreateShaderModule(
9412        device: WGPUDevice,
9413        descriptor: *const WGPUShaderModuleDescriptor,
9414    ) -> WGPUShaderModule;
9415}
9416unsafe extern "C" {
9417    pub fn wgpuDeviceCreateTexture(
9418        device: WGPUDevice,
9419        descriptor: *const WGPUTextureDescriptor,
9420    ) -> WGPUTexture;
9421}
9422unsafe extern "C" {
9423    pub fn wgpuDeviceDestroy(device: WGPUDevice);
9424}
9425unsafe extern "C" {
9426    pub fn wgpuDeviceForceLoss(
9427        device: WGPUDevice,
9428        type_: WGPUDeviceLostReason,
9429        message: WGPUStringView,
9430    );
9431}
9432unsafe extern "C" {
9433    pub fn wgpuDeviceGetAdapter(device: WGPUDevice) -> WGPUAdapter;
9434}
9435unsafe extern "C" {
9436    pub fn wgpuDeviceGetAdapterInfo(
9437        device: WGPUDevice,
9438        adapterInfo: *mut WGPUAdapterInfo,
9439    ) -> WGPUStatus;
9440}
9441unsafe extern "C" {
9442    pub fn wgpuDeviceGetAHardwareBufferProperties(
9443        device: WGPUDevice,
9444        handle: *mut ::core::ffi::c_void,
9445        properties: *mut WGPUAHardwareBufferProperties,
9446    ) -> WGPUStatus;
9447}
9448unsafe extern "C" {
9449    pub fn wgpuDeviceGetFeatures(device: WGPUDevice, features: *mut WGPUSupportedFeatures);
9450}
9451unsafe extern "C" {
9452    pub fn wgpuDeviceGetLimits(device: WGPUDevice, limits: *mut WGPULimits) -> WGPUStatus;
9453}
9454unsafe extern "C" {
9455    pub fn wgpuDeviceGetLostFuture(device: WGPUDevice) -> WGPUFuture;
9456}
9457unsafe extern "C" {
9458    pub fn wgpuDeviceGetQueue(device: WGPUDevice) -> WGPUQueue;
9459}
9460unsafe extern "C" {
9461    pub fn wgpuDeviceHasFeature(device: WGPUDevice, feature: WGPUFeatureName) -> WGPUBool;
9462}
9463unsafe extern "C" {
9464    pub fn wgpuDeviceImportSharedBufferMemory(
9465        device: WGPUDevice,
9466        descriptor: *const WGPUSharedBufferMemoryDescriptor,
9467    ) -> WGPUSharedBufferMemory;
9468}
9469unsafe extern "C" {
9470    pub fn wgpuDeviceImportSharedFence(
9471        device: WGPUDevice,
9472        descriptor: *const WGPUSharedFenceDescriptor,
9473    ) -> WGPUSharedFence;
9474}
9475unsafe extern "C" {
9476    pub fn wgpuDeviceImportSharedTextureMemory(
9477        device: WGPUDevice,
9478        descriptor: *const WGPUSharedTextureMemoryDescriptor,
9479    ) -> WGPUSharedTextureMemory;
9480}
9481unsafe extern "C" {
9482    pub fn wgpuDeviceInjectError(device: WGPUDevice, type_: WGPUErrorType, message: WGPUStringView);
9483}
9484unsafe extern "C" {
9485    pub fn wgpuDevicePopErrorScope(
9486        device: WGPUDevice,
9487        callbackInfo: WGPUPopErrorScopeCallbackInfo,
9488    ) -> WGPUFuture;
9489}
9490unsafe extern "C" {
9491    pub fn wgpuDevicePushErrorScope(device: WGPUDevice, filter: WGPUErrorFilter);
9492}
9493unsafe extern "C" {
9494    pub fn wgpuDeviceSetLabel(device: WGPUDevice, label: WGPUStringView);
9495}
9496unsafe extern "C" {
9497    pub fn wgpuDeviceSetLoggingCallback(device: WGPUDevice, callbackInfo: WGPULoggingCallbackInfo);
9498}
9499unsafe extern "C" {
9500    pub fn wgpuDeviceTick(device: WGPUDevice);
9501}
9502unsafe extern "C" {
9503    pub fn wgpuDeviceValidateTextureDescriptor(
9504        device: WGPUDevice,
9505        descriptor: *const WGPUTextureDescriptor,
9506    );
9507}
9508unsafe extern "C" {
9509    pub fn wgpuDeviceAddRef(device: WGPUDevice);
9510}
9511unsafe extern "C" {
9512    pub fn wgpuDeviceRelease(device: WGPUDevice);
9513}
9514unsafe extern "C" {
9515    pub fn wgpuExternalTextureDestroy(externalTexture: WGPUExternalTexture);
9516}
9517unsafe extern "C" {
9518    pub fn wgpuExternalTextureExpire(externalTexture: WGPUExternalTexture);
9519}
9520unsafe extern "C" {
9521    pub fn wgpuExternalTextureRefresh(externalTexture: WGPUExternalTexture);
9522}
9523unsafe extern "C" {
9524    pub fn wgpuExternalTextureSetLabel(externalTexture: WGPUExternalTexture, label: WGPUStringView);
9525}
9526unsafe extern "C" {
9527    pub fn wgpuExternalTextureAddRef(externalTexture: WGPUExternalTexture);
9528}
9529unsafe extern "C" {
9530    pub fn wgpuExternalTextureRelease(externalTexture: WGPUExternalTexture);
9531}
9532unsafe extern "C" {
9533    pub fn wgpuInstanceCreateSurface(
9534        instance: WGPUInstance,
9535        descriptor: *const WGPUSurfaceDescriptor,
9536    ) -> WGPUSurface;
9537}
9538unsafe extern "C" {
9539    pub fn wgpuInstanceGetWGSLLanguageFeatures(
9540        instance: WGPUInstance,
9541        features: *mut WGPUSupportedWGSLLanguageFeatures,
9542    ) -> WGPUStatus;
9543}
9544unsafe extern "C" {
9545    pub fn wgpuInstanceHasWGSLLanguageFeature(
9546        instance: WGPUInstance,
9547        feature: WGPUWGSLLanguageFeatureName,
9548    ) -> WGPUBool;
9549}
9550unsafe extern "C" {
9551    pub fn wgpuInstanceProcessEvents(instance: WGPUInstance);
9552}
9553unsafe extern "C" {
9554    pub fn wgpuInstanceRequestAdapter(
9555        instance: WGPUInstance,
9556        options: *const WGPURequestAdapterOptions,
9557        callbackInfo: WGPURequestAdapterCallbackInfo,
9558    ) -> WGPUFuture;
9559}
9560unsafe extern "C" {
9561    pub fn wgpuInstanceWaitAny(
9562        instance: WGPUInstance,
9563        futureCount: usize,
9564        futures: *mut WGPUFutureWaitInfo,
9565        timeoutNS: u64,
9566    ) -> WGPUWaitStatus;
9567}
9568unsafe extern "C" {
9569    pub fn wgpuInstanceAddRef(instance: WGPUInstance);
9570}
9571unsafe extern "C" {
9572    pub fn wgpuInstanceRelease(instance: WGPUInstance);
9573}
9574unsafe extern "C" {
9575    pub fn wgpuPipelineLayoutSetLabel(pipelineLayout: WGPUPipelineLayout, label: WGPUStringView);
9576}
9577unsafe extern "C" {
9578    pub fn wgpuPipelineLayoutAddRef(pipelineLayout: WGPUPipelineLayout);
9579}
9580unsafe extern "C" {
9581    pub fn wgpuPipelineLayoutRelease(pipelineLayout: WGPUPipelineLayout);
9582}
9583unsafe extern "C" {
9584    pub fn wgpuQuerySetDestroy(querySet: WGPUQuerySet);
9585}
9586unsafe extern "C" {
9587    pub fn wgpuQuerySetGetCount(querySet: WGPUQuerySet) -> u32;
9588}
9589unsafe extern "C" {
9590    pub fn wgpuQuerySetGetType(querySet: WGPUQuerySet) -> WGPUQueryType;
9591}
9592unsafe extern "C" {
9593    pub fn wgpuQuerySetSetLabel(querySet: WGPUQuerySet, label: WGPUStringView);
9594}
9595unsafe extern "C" {
9596    pub fn wgpuQuerySetAddRef(querySet: WGPUQuerySet);
9597}
9598unsafe extern "C" {
9599    pub fn wgpuQuerySetRelease(querySet: WGPUQuerySet);
9600}
9601unsafe extern "C" {
9602    pub fn wgpuQueueCopyExternalTextureForBrowser(
9603        queue: WGPUQueue,
9604        source: *const WGPUImageCopyExternalTexture,
9605        destination: *const WGPUTexelCopyTextureInfo,
9606        copySize: *const WGPUExtent3D,
9607        options: *const WGPUCopyTextureForBrowserOptions,
9608    );
9609}
9610unsafe extern "C" {
9611    pub fn wgpuQueueCopyTextureForBrowser(
9612        queue: WGPUQueue,
9613        source: *const WGPUTexelCopyTextureInfo,
9614        destination: *const WGPUTexelCopyTextureInfo,
9615        copySize: *const WGPUExtent3D,
9616        options: *const WGPUCopyTextureForBrowserOptions,
9617    );
9618}
9619unsafe extern "C" {
9620    pub fn wgpuQueueOnSubmittedWorkDone(
9621        queue: WGPUQueue,
9622        callbackInfo: WGPUQueueWorkDoneCallbackInfo,
9623    ) -> WGPUFuture;
9624}
9625unsafe extern "C" {
9626    pub fn wgpuQueueSetLabel(queue: WGPUQueue, label: WGPUStringView);
9627}
9628unsafe extern "C" {
9629    pub fn wgpuQueueSubmit(
9630        queue: WGPUQueue,
9631        commandCount: usize,
9632        commands: *const WGPUCommandBuffer,
9633    );
9634}
9635unsafe extern "C" {
9636    pub fn wgpuQueueWriteBuffer(
9637        queue: WGPUQueue,
9638        buffer: WGPUBuffer,
9639        bufferOffset: u64,
9640        data: *const ::core::ffi::c_void,
9641        size: usize,
9642    );
9643}
9644unsafe extern "C" {
9645    pub fn wgpuQueueWriteTexture(
9646        queue: WGPUQueue,
9647        destination: *const WGPUTexelCopyTextureInfo,
9648        data: *const ::core::ffi::c_void,
9649        dataSize: usize,
9650        dataLayout: *const WGPUTexelCopyBufferLayout,
9651        writeSize: *const WGPUExtent3D,
9652    );
9653}
9654unsafe extern "C" {
9655    pub fn wgpuQueueAddRef(queue: WGPUQueue);
9656}
9657unsafe extern "C" {
9658    pub fn wgpuQueueRelease(queue: WGPUQueue);
9659}
9660unsafe extern "C" {
9661    pub fn wgpuRenderBundleSetLabel(renderBundle: WGPURenderBundle, label: WGPUStringView);
9662}
9663unsafe extern "C" {
9664    pub fn wgpuRenderBundleAddRef(renderBundle: WGPURenderBundle);
9665}
9666unsafe extern "C" {
9667    pub fn wgpuRenderBundleRelease(renderBundle: WGPURenderBundle);
9668}
9669unsafe extern "C" {
9670    pub fn wgpuRenderBundleEncoderDraw(
9671        renderBundleEncoder: WGPURenderBundleEncoder,
9672        vertexCount: u32,
9673        instanceCount: u32,
9674        firstVertex: u32,
9675        firstInstance: u32,
9676    );
9677}
9678unsafe extern "C" {
9679    pub fn wgpuRenderBundleEncoderDrawIndexed(
9680        renderBundleEncoder: WGPURenderBundleEncoder,
9681        indexCount: u32,
9682        instanceCount: u32,
9683        firstIndex: u32,
9684        baseVertex: i32,
9685        firstInstance: u32,
9686    );
9687}
9688unsafe extern "C" {
9689    pub fn wgpuRenderBundleEncoderDrawIndexedIndirect(
9690        renderBundleEncoder: WGPURenderBundleEncoder,
9691        indirectBuffer: WGPUBuffer,
9692        indirectOffset: u64,
9693    );
9694}
9695unsafe extern "C" {
9696    pub fn wgpuRenderBundleEncoderDrawIndirect(
9697        renderBundleEncoder: WGPURenderBundleEncoder,
9698        indirectBuffer: WGPUBuffer,
9699        indirectOffset: u64,
9700    );
9701}
9702unsafe extern "C" {
9703    pub fn wgpuRenderBundleEncoderFinish(
9704        renderBundleEncoder: WGPURenderBundleEncoder,
9705        descriptor: *const WGPURenderBundleDescriptor,
9706    ) -> WGPURenderBundle;
9707}
9708unsafe extern "C" {
9709    pub fn wgpuRenderBundleEncoderInsertDebugMarker(
9710        renderBundleEncoder: WGPURenderBundleEncoder,
9711        markerLabel: WGPUStringView,
9712    );
9713}
9714unsafe extern "C" {
9715    pub fn wgpuRenderBundleEncoderPopDebugGroup(renderBundleEncoder: WGPURenderBundleEncoder);
9716}
9717unsafe extern "C" {
9718    pub fn wgpuRenderBundleEncoderPushDebugGroup(
9719        renderBundleEncoder: WGPURenderBundleEncoder,
9720        groupLabel: WGPUStringView,
9721    );
9722}
9723unsafe extern "C" {
9724    pub fn wgpuRenderBundleEncoderSetBindGroup(
9725        renderBundleEncoder: WGPURenderBundleEncoder,
9726        groupIndex: u32,
9727        group: WGPUBindGroup,
9728        dynamicOffsetCount: usize,
9729        dynamicOffsets: *const u32,
9730    );
9731}
9732unsafe extern "C" {
9733    pub fn wgpuRenderBundleEncoderSetImmediateData(
9734        renderBundleEncoder: WGPURenderBundleEncoder,
9735        offset: u32,
9736        data: *const ::core::ffi::c_void,
9737        size: usize,
9738    );
9739}
9740unsafe extern "C" {
9741    pub fn wgpuRenderBundleEncoderSetIndexBuffer(
9742        renderBundleEncoder: WGPURenderBundleEncoder,
9743        buffer: WGPUBuffer,
9744        format: WGPUIndexFormat,
9745        offset: u64,
9746        size: u64,
9747    );
9748}
9749unsafe extern "C" {
9750    pub fn wgpuRenderBundleEncoderSetLabel(
9751        renderBundleEncoder: WGPURenderBundleEncoder,
9752        label: WGPUStringView,
9753    );
9754}
9755unsafe extern "C" {
9756    pub fn wgpuRenderBundleEncoderSetPipeline(
9757        renderBundleEncoder: WGPURenderBundleEncoder,
9758        pipeline: WGPURenderPipeline,
9759    );
9760}
9761unsafe extern "C" {
9762    pub fn wgpuRenderBundleEncoderSetVertexBuffer(
9763        renderBundleEncoder: WGPURenderBundleEncoder,
9764        slot: u32,
9765        buffer: WGPUBuffer,
9766        offset: u64,
9767        size: u64,
9768    );
9769}
9770unsafe extern "C" {
9771    pub fn wgpuRenderBundleEncoderAddRef(renderBundleEncoder: WGPURenderBundleEncoder);
9772}
9773unsafe extern "C" {
9774    pub fn wgpuRenderBundleEncoderRelease(renderBundleEncoder: WGPURenderBundleEncoder);
9775}
9776unsafe extern "C" {
9777    pub fn wgpuRenderPassEncoderBeginOcclusionQuery(
9778        renderPassEncoder: WGPURenderPassEncoder,
9779        queryIndex: u32,
9780    );
9781}
9782unsafe extern "C" {
9783    pub fn wgpuRenderPassEncoderDraw(
9784        renderPassEncoder: WGPURenderPassEncoder,
9785        vertexCount: u32,
9786        instanceCount: u32,
9787        firstVertex: u32,
9788        firstInstance: u32,
9789    );
9790}
9791unsafe extern "C" {
9792    pub fn wgpuRenderPassEncoderDrawIndexed(
9793        renderPassEncoder: WGPURenderPassEncoder,
9794        indexCount: u32,
9795        instanceCount: u32,
9796        firstIndex: u32,
9797        baseVertex: i32,
9798        firstInstance: u32,
9799    );
9800}
9801unsafe extern "C" {
9802    pub fn wgpuRenderPassEncoderDrawIndexedIndirect(
9803        renderPassEncoder: WGPURenderPassEncoder,
9804        indirectBuffer: WGPUBuffer,
9805        indirectOffset: u64,
9806    );
9807}
9808unsafe extern "C" {
9809    pub fn wgpuRenderPassEncoderDrawIndirect(
9810        renderPassEncoder: WGPURenderPassEncoder,
9811        indirectBuffer: WGPUBuffer,
9812        indirectOffset: u64,
9813    );
9814}
9815unsafe extern "C" {
9816    pub fn wgpuRenderPassEncoderEnd(renderPassEncoder: WGPURenderPassEncoder);
9817}
9818unsafe extern "C" {
9819    pub fn wgpuRenderPassEncoderEndOcclusionQuery(renderPassEncoder: WGPURenderPassEncoder);
9820}
9821unsafe extern "C" {
9822    pub fn wgpuRenderPassEncoderExecuteBundles(
9823        renderPassEncoder: WGPURenderPassEncoder,
9824        bundleCount: usize,
9825        bundles: *const WGPURenderBundle,
9826    );
9827}
9828unsafe extern "C" {
9829    pub fn wgpuRenderPassEncoderInsertDebugMarker(
9830        renderPassEncoder: WGPURenderPassEncoder,
9831        markerLabel: WGPUStringView,
9832    );
9833}
9834unsafe extern "C" {
9835    pub fn wgpuRenderPassEncoderMultiDrawIndexedIndirect(
9836        renderPassEncoder: WGPURenderPassEncoder,
9837        indirectBuffer: WGPUBuffer,
9838        indirectOffset: u64,
9839        maxDrawCount: u32,
9840        drawCountBuffer: WGPUBuffer,
9841        drawCountBufferOffset: u64,
9842    );
9843}
9844unsafe extern "C" {
9845    pub fn wgpuRenderPassEncoderMultiDrawIndirect(
9846        renderPassEncoder: WGPURenderPassEncoder,
9847        indirectBuffer: WGPUBuffer,
9848        indirectOffset: u64,
9849        maxDrawCount: u32,
9850        drawCountBuffer: WGPUBuffer,
9851        drawCountBufferOffset: u64,
9852    );
9853}
9854unsafe extern "C" {
9855    pub fn wgpuRenderPassEncoderPixelLocalStorageBarrier(renderPassEncoder: WGPURenderPassEncoder);
9856}
9857unsafe extern "C" {
9858    pub fn wgpuRenderPassEncoderPopDebugGroup(renderPassEncoder: WGPURenderPassEncoder);
9859}
9860unsafe extern "C" {
9861    pub fn wgpuRenderPassEncoderPushDebugGroup(
9862        renderPassEncoder: WGPURenderPassEncoder,
9863        groupLabel: WGPUStringView,
9864    );
9865}
9866unsafe extern "C" {
9867    pub fn wgpuRenderPassEncoderSetBindGroup(
9868        renderPassEncoder: WGPURenderPassEncoder,
9869        groupIndex: u32,
9870        group: WGPUBindGroup,
9871        dynamicOffsetCount: usize,
9872        dynamicOffsets: *const u32,
9873    );
9874}
9875unsafe extern "C" {
9876    pub fn wgpuRenderPassEncoderSetBlendConstant(
9877        renderPassEncoder: WGPURenderPassEncoder,
9878        color: *const WGPUColor,
9879    );
9880}
9881unsafe extern "C" {
9882    pub fn wgpuRenderPassEncoderSetImmediateData(
9883        renderPassEncoder: WGPURenderPassEncoder,
9884        offset: u32,
9885        data: *const ::core::ffi::c_void,
9886        size: usize,
9887    );
9888}
9889unsafe extern "C" {
9890    pub fn wgpuRenderPassEncoderSetIndexBuffer(
9891        renderPassEncoder: WGPURenderPassEncoder,
9892        buffer: WGPUBuffer,
9893        format: WGPUIndexFormat,
9894        offset: u64,
9895        size: u64,
9896    );
9897}
9898unsafe extern "C" {
9899    pub fn wgpuRenderPassEncoderSetLabel(
9900        renderPassEncoder: WGPURenderPassEncoder,
9901        label: WGPUStringView,
9902    );
9903}
9904unsafe extern "C" {
9905    pub fn wgpuRenderPassEncoderSetPipeline(
9906        renderPassEncoder: WGPURenderPassEncoder,
9907        pipeline: WGPURenderPipeline,
9908    );
9909}
9910unsafe extern "C" {
9911    pub fn wgpuRenderPassEncoderSetScissorRect(
9912        renderPassEncoder: WGPURenderPassEncoder,
9913        x: u32,
9914        y: u32,
9915        width: u32,
9916        height: u32,
9917    );
9918}
9919unsafe extern "C" {
9920    pub fn wgpuRenderPassEncoderSetStencilReference(
9921        renderPassEncoder: WGPURenderPassEncoder,
9922        reference: u32,
9923    );
9924}
9925unsafe extern "C" {
9926    pub fn wgpuRenderPassEncoderSetVertexBuffer(
9927        renderPassEncoder: WGPURenderPassEncoder,
9928        slot: u32,
9929        buffer: WGPUBuffer,
9930        offset: u64,
9931        size: u64,
9932    );
9933}
9934unsafe extern "C" {
9935    pub fn wgpuRenderPassEncoderSetViewport(
9936        renderPassEncoder: WGPURenderPassEncoder,
9937        x: f32,
9938        y: f32,
9939        width: f32,
9940        height: f32,
9941        minDepth: f32,
9942        maxDepth: f32,
9943    );
9944}
9945unsafe extern "C" {
9946    pub fn wgpuRenderPassEncoderWriteTimestamp(
9947        renderPassEncoder: WGPURenderPassEncoder,
9948        querySet: WGPUQuerySet,
9949        queryIndex: u32,
9950    );
9951}
9952unsafe extern "C" {
9953    pub fn wgpuRenderPassEncoderAddRef(renderPassEncoder: WGPURenderPassEncoder);
9954}
9955unsafe extern "C" {
9956    pub fn wgpuRenderPassEncoderRelease(renderPassEncoder: WGPURenderPassEncoder);
9957}
9958unsafe extern "C" {
9959    pub fn wgpuRenderPipelineGetBindGroupLayout(
9960        renderPipeline: WGPURenderPipeline,
9961        groupIndex: u32,
9962    ) -> WGPUBindGroupLayout;
9963}
9964unsafe extern "C" {
9965    pub fn wgpuRenderPipelineSetLabel(renderPipeline: WGPURenderPipeline, label: WGPUStringView);
9966}
9967unsafe extern "C" {
9968    pub fn wgpuRenderPipelineAddRef(renderPipeline: WGPURenderPipeline);
9969}
9970unsafe extern "C" {
9971    pub fn wgpuRenderPipelineRelease(renderPipeline: WGPURenderPipeline);
9972}
9973unsafe extern "C" {
9974    pub fn wgpuSamplerSetLabel(sampler: WGPUSampler, label: WGPUStringView);
9975}
9976unsafe extern "C" {
9977    pub fn wgpuSamplerAddRef(sampler: WGPUSampler);
9978}
9979unsafe extern "C" {
9980    pub fn wgpuSamplerRelease(sampler: WGPUSampler);
9981}
9982unsafe extern "C" {
9983    pub fn wgpuShaderModuleGetCompilationInfo(
9984        shaderModule: WGPUShaderModule,
9985        callbackInfo: WGPUCompilationInfoCallbackInfo,
9986    ) -> WGPUFuture;
9987}
9988unsafe extern "C" {
9989    pub fn wgpuShaderModuleSetLabel(shaderModule: WGPUShaderModule, label: WGPUStringView);
9990}
9991unsafe extern "C" {
9992    pub fn wgpuShaderModuleAddRef(shaderModule: WGPUShaderModule);
9993}
9994unsafe extern "C" {
9995    pub fn wgpuShaderModuleRelease(shaderModule: WGPUShaderModule);
9996}
9997unsafe extern "C" {
9998    pub fn wgpuSharedBufferMemoryBeginAccess(
9999        sharedBufferMemory: WGPUSharedBufferMemory,
10000        buffer: WGPUBuffer,
10001        descriptor: *const WGPUSharedBufferMemoryBeginAccessDescriptor,
10002    ) -> WGPUStatus;
10003}
10004unsafe extern "C" {
10005    pub fn wgpuSharedBufferMemoryCreateBuffer(
10006        sharedBufferMemory: WGPUSharedBufferMemory,
10007        descriptor: *const WGPUBufferDescriptor,
10008    ) -> WGPUBuffer;
10009}
10010unsafe extern "C" {
10011    pub fn wgpuSharedBufferMemoryEndAccess(
10012        sharedBufferMemory: WGPUSharedBufferMemory,
10013        buffer: WGPUBuffer,
10014        descriptor: *mut WGPUSharedBufferMemoryEndAccessState,
10015    ) -> WGPUStatus;
10016}
10017unsafe extern "C" {
10018    pub fn wgpuSharedBufferMemoryGetProperties(
10019        sharedBufferMemory: WGPUSharedBufferMemory,
10020        properties: *mut WGPUSharedBufferMemoryProperties,
10021    ) -> WGPUStatus;
10022}
10023unsafe extern "C" {
10024    pub fn wgpuSharedBufferMemoryIsDeviceLost(
10025        sharedBufferMemory: WGPUSharedBufferMemory,
10026    ) -> WGPUBool;
10027}
10028unsafe extern "C" {
10029    pub fn wgpuSharedBufferMemorySetLabel(
10030        sharedBufferMemory: WGPUSharedBufferMemory,
10031        label: WGPUStringView,
10032    );
10033}
10034unsafe extern "C" {
10035    pub fn wgpuSharedBufferMemoryAddRef(sharedBufferMemory: WGPUSharedBufferMemory);
10036}
10037unsafe extern "C" {
10038    pub fn wgpuSharedBufferMemoryRelease(sharedBufferMemory: WGPUSharedBufferMemory);
10039}
10040unsafe extern "C" {
10041    pub fn wgpuSharedFenceExportInfo(
10042        sharedFence: WGPUSharedFence,
10043        info: *mut WGPUSharedFenceExportInfo,
10044    );
10045}
10046unsafe extern "C" {
10047    pub fn wgpuSharedFenceAddRef(sharedFence: WGPUSharedFence);
10048}
10049unsafe extern "C" {
10050    pub fn wgpuSharedFenceRelease(sharedFence: WGPUSharedFence);
10051}
10052unsafe extern "C" {
10053    pub fn wgpuSharedTextureMemoryBeginAccess(
10054        sharedTextureMemory: WGPUSharedTextureMemory,
10055        texture: WGPUTexture,
10056        descriptor: *const WGPUSharedTextureMemoryBeginAccessDescriptor,
10057    ) -> WGPUStatus;
10058}
10059unsafe extern "C" {
10060    pub fn wgpuSharedTextureMemoryCreateTexture(
10061        sharedTextureMemory: WGPUSharedTextureMemory,
10062        descriptor: *const WGPUTextureDescriptor,
10063    ) -> WGPUTexture;
10064}
10065unsafe extern "C" {
10066    pub fn wgpuSharedTextureMemoryEndAccess(
10067        sharedTextureMemory: WGPUSharedTextureMemory,
10068        texture: WGPUTexture,
10069        descriptor: *mut WGPUSharedTextureMemoryEndAccessState,
10070    ) -> WGPUStatus;
10071}
10072unsafe extern "C" {
10073    pub fn wgpuSharedTextureMemoryGetProperties(
10074        sharedTextureMemory: WGPUSharedTextureMemory,
10075        properties: *mut WGPUSharedTextureMemoryProperties,
10076    ) -> WGPUStatus;
10077}
10078unsafe extern "C" {
10079    pub fn wgpuSharedTextureMemoryIsDeviceLost(
10080        sharedTextureMemory: WGPUSharedTextureMemory,
10081    ) -> WGPUBool;
10082}
10083unsafe extern "C" {
10084    pub fn wgpuSharedTextureMemorySetLabel(
10085        sharedTextureMemory: WGPUSharedTextureMemory,
10086        label: WGPUStringView,
10087    );
10088}
10089unsafe extern "C" {
10090    pub fn wgpuSharedTextureMemoryAddRef(sharedTextureMemory: WGPUSharedTextureMemory);
10091}
10092unsafe extern "C" {
10093    pub fn wgpuSharedTextureMemoryRelease(sharedTextureMemory: WGPUSharedTextureMemory);
10094}
10095unsafe extern "C" {
10096    pub fn wgpuSurfaceConfigure(surface: WGPUSurface, config: *const WGPUSurfaceConfiguration);
10097}
10098unsafe extern "C" {
10099    pub fn wgpuSurfaceGetCapabilities(
10100        surface: WGPUSurface,
10101        adapter: WGPUAdapter,
10102        capabilities: *mut WGPUSurfaceCapabilities,
10103    ) -> WGPUStatus;
10104}
10105unsafe extern "C" {
10106    pub fn wgpuSurfaceGetCurrentTexture(
10107        surface: WGPUSurface,
10108        surfaceTexture: *mut WGPUSurfaceTexture,
10109    );
10110}
10111unsafe extern "C" {
10112    pub fn wgpuSurfacePresent(surface: WGPUSurface);
10113}
10114unsafe extern "C" {
10115    pub fn wgpuSurfaceSetLabel(surface: WGPUSurface, label: WGPUStringView);
10116}
10117unsafe extern "C" {
10118    pub fn wgpuSurfaceUnconfigure(surface: WGPUSurface);
10119}
10120unsafe extern "C" {
10121    pub fn wgpuSurfaceAddRef(surface: WGPUSurface);
10122}
10123unsafe extern "C" {
10124    pub fn wgpuSurfaceRelease(surface: WGPUSurface);
10125}
10126unsafe extern "C" {
10127    pub fn wgpuTextureCreateErrorView(
10128        texture: WGPUTexture,
10129        descriptor: *const WGPUTextureViewDescriptor,
10130    ) -> WGPUTextureView;
10131}
10132unsafe extern "C" {
10133    pub fn wgpuTextureCreateView(
10134        texture: WGPUTexture,
10135        descriptor: *const WGPUTextureViewDescriptor,
10136    ) -> WGPUTextureView;
10137}
10138unsafe extern "C" {
10139    pub fn wgpuTextureDestroy(texture: WGPUTexture);
10140}
10141unsafe extern "C" {
10142    pub fn wgpuTextureGetDepthOrArrayLayers(texture: WGPUTexture) -> u32;
10143}
10144unsafe extern "C" {
10145    pub fn wgpuTextureGetDimension(texture: WGPUTexture) -> WGPUTextureDimension;
10146}
10147unsafe extern "C" {
10148    pub fn wgpuTextureGetFormat(texture: WGPUTexture) -> WGPUTextureFormat;
10149}
10150unsafe extern "C" {
10151    pub fn wgpuTextureGetHeight(texture: WGPUTexture) -> u32;
10152}
10153unsafe extern "C" {
10154    pub fn wgpuTextureGetMipLevelCount(texture: WGPUTexture) -> u32;
10155}
10156unsafe extern "C" {
10157    pub fn wgpuTextureGetSampleCount(texture: WGPUTexture) -> u32;
10158}
10159unsafe extern "C" {
10160    pub fn wgpuTextureGetUsage(texture: WGPUTexture) -> WGPUTextureUsage;
10161}
10162unsafe extern "C" {
10163    pub fn wgpuTextureGetWidth(texture: WGPUTexture) -> u32;
10164}
10165unsafe extern "C" {
10166    pub fn wgpuTextureSetLabel(texture: WGPUTexture, label: WGPUStringView);
10167}
10168unsafe extern "C" {
10169    pub fn wgpuTextureAddRef(texture: WGPUTexture);
10170}
10171unsafe extern "C" {
10172    pub fn wgpuTextureRelease(texture: WGPUTexture);
10173}
10174unsafe extern "C" {
10175    pub fn wgpuTextureViewSetLabel(textureView: WGPUTextureView, label: WGPUStringView);
10176}
10177unsafe extern "C" {
10178    pub fn wgpuTextureViewAddRef(textureView: WGPUTextureView);
10179}
10180unsafe extern "C" {
10181    pub fn wgpuTextureViewRelease(textureView: WGPUTextureView);
10182}