dawn_sys/generated/
bindings.rs

1/* automatically generated by rust-bindgen 0.71.1 */
2
3pub const _VCRT_COMPILER_PREPROCESSOR: u32 = 1;
4pub const _SAL_VERSION: u32 = 20;
5pub const __SAL_H_VERSION: u32 = 180000000;
6pub const _USE_DECLSPECS_FOR_SAL: u32 = 0;
7pub const _USE_ATTRIBUTES_FOR_SAL: u32 = 0;
8pub const _CRT_PACKING: u32 = 8;
9pub const _HAS_EXCEPTIONS: u32 = 1;
10pub const _STL_LANG: u32 = 0;
11pub const _HAS_CXX17: u32 = 0;
12pub const _HAS_CXX20: u32 = 0;
13pub const _HAS_CXX23: u32 = 0;
14pub const _HAS_CXX26: u32 = 0;
15pub const _HAS_NODISCARD: u32 = 0;
16pub const WCHAR_MIN: u32 = 0;
17pub const WCHAR_MAX: u32 = 65535;
18pub const WINT_MIN: u32 = 0;
19pub const WINT_MAX: u32 = 65535;
20pub const _ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE: u32 = 1;
21pub const _CRT_BUILD_DESKTOP_APP: u32 = 1;
22pub const _ARGMAX: u32 = 100;
23pub const _CRT_INT_MAX: u32 = 2147483647;
24pub const _CRT_FUNCTIONS_REQUIRED: u32 = 1;
25pub const _CRT_HAS_CXX17: u32 = 0;
26pub const _CRT_HAS_C11: u32 = 1;
27pub const _CRT_INTERNAL_NONSTDC_NAMES: u32 = 1;
28pub const __STDC_SECURE_LIB__: u32 = 200411;
29pub const __GOT_SECURE_LIB__: u32 = 200411;
30pub const __STDC_WANT_SECURE_LIB__: u32 = 1;
31pub const _SECURECRT_FILL_BUFFER_PATTERN: u32 = 254;
32pub const _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES: u32 = 0;
33pub const _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT: u32 = 0;
34pub const _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES: u32 = 1;
35pub const _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY: u32 = 0;
36pub const _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY: u32 = 0;
37pub const _DOMAIN: u32 = 1;
38pub const _SING: u32 = 2;
39pub const _OVERFLOW: u32 = 3;
40pub const _UNDERFLOW: u32 = 4;
41pub const _TLOSS: u32 = 5;
42pub const _PLOSS: u32 = 6;
43pub const _HUGE_ENUF : f64 = 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0 ;
44pub const _DENORM: i32 = -2;
45pub const _FINITE: i32 = -1;
46pub const _INFCODE: u32 = 1;
47pub const _NANCODE: u32 = 2;
48pub const FP_INFINITE: u32 = 1;
49pub const FP_NAN: u32 = 2;
50pub const FP_NORMAL: i32 = -1;
51pub const FP_SUBNORMAL: i32 = -2;
52pub const FP_ZERO: u32 = 0;
53pub const _C2: u32 = 1;
54pub const FP_ILOGB0: i32 = -2147483648;
55pub const FP_ILOGBNAN: u32 = 2147483647;
56pub const MATH_ERRNO: u32 = 1;
57pub const MATH_ERREXCEPT: u32 = 2;
58pub const math_errhandling: u32 = 3;
59pub const _FE_DIVBYZERO: u32 = 4;
60pub const _FE_INEXACT: u32 = 32;
61pub const _FE_INVALID: u32 = 1;
62pub const _FE_OVERFLOW: u32 = 8;
63pub const _FE_UNDERFLOW: u32 = 16;
64pub const _D0_C: u32 = 3;
65pub const _D1_C: u32 = 2;
66pub const _D2_C: u32 = 1;
67pub const _D3_C: u32 = 0;
68pub const _DBIAS: u32 = 1022;
69pub const _DOFF: u32 = 4;
70pub const _F0_C: u32 = 1;
71pub const _F1_C: u32 = 0;
72pub const _FBIAS: u32 = 126;
73pub const _FOFF: u32 = 7;
74pub const _FRND: u32 = 1;
75pub const _L0_C: u32 = 3;
76pub const _L1_C: u32 = 2;
77pub const _L2_C: u32 = 1;
78pub const _L3_C: u32 = 0;
79pub const _LBIAS: u32 = 1022;
80pub const _LOFF: u32 = 4;
81pub const _FP_LT: u32 = 1;
82pub const _FP_EQ: u32 = 2;
83pub const _FP_GT: u32 = 4;
84pub const DOMAIN: u32 = 1;
85pub const SING: u32 = 2;
86pub const OVERFLOW: u32 = 3;
87pub const UNDERFLOW: u32 = 4;
88pub const TLOSS: u32 = 5;
89pub const PLOSS: u32 = 6;
90pub type va_list = *mut ::core::ffi::c_char;
91unsafe extern "C" {
92    pub fn __va_start(arg1: *mut *mut ::core::ffi::c_char, ...);
93}
94pub type __vcrt_bool = bool;
95pub type wchar_t = ::core::ffi::c_ushort;
96unsafe extern "C" {
97    pub fn __security_init_cookie();
98}
99unsafe extern "C" {
100    pub fn __security_check_cookie(_StackCookie: usize);
101}
102unsafe extern "C" {
103    pub fn __report_gsfailure(_StackCookie: usize) -> !;
104}
105unsafe extern "C" {
106    pub static mut __security_cookie: usize;
107}
108pub type int_least8_t = ::core::ffi::c_schar;
109pub type int_least16_t = ::core::ffi::c_short;
110pub type int_least32_t = ::core::ffi::c_int;
111pub type int_least64_t = ::core::ffi::c_longlong;
112pub type uint_least8_t = ::core::ffi::c_uchar;
113pub type uint_least16_t = ::core::ffi::c_ushort;
114pub type uint_least32_t = ::core::ffi::c_uint;
115pub type uint_least64_t = ::core::ffi::c_ulonglong;
116pub type int_fast8_t = ::core::ffi::c_schar;
117pub type int_fast16_t = ::core::ffi::c_int;
118pub type int_fast32_t = ::core::ffi::c_int;
119pub type int_fast64_t = ::core::ffi::c_longlong;
120pub type uint_fast8_t = ::core::ffi::c_uchar;
121pub type uint_fast16_t = ::core::ffi::c_uint;
122pub type uint_fast32_t = ::core::ffi::c_uint;
123pub type uint_fast64_t = ::core::ffi::c_ulonglong;
124pub type intmax_t = ::core::ffi::c_longlong;
125pub type uintmax_t = ::core::ffi::c_ulonglong;
126pub type __crt_bool = bool;
127unsafe extern "C" {
128    pub fn _invalid_parameter_noinfo();
129}
130unsafe extern "C" {
131    pub fn _invalid_parameter_noinfo_noreturn() -> !;
132}
133unsafe extern "C" {
134    pub fn _invoke_watson(
135        _Expression: *const wchar_t,
136        _FunctionName: *const wchar_t,
137        _FileName: *const wchar_t,
138        _LineNo: ::core::ffi::c_uint,
139        _Reserved: usize,
140    ) -> !;
141}
142pub type errno_t = ::core::ffi::c_int;
143pub type wint_t = ::core::ffi::c_ushort;
144pub type wctype_t = ::core::ffi::c_ushort;
145pub type __time32_t = ::core::ffi::c_long;
146pub type __time64_t = ::core::ffi::c_longlong;
147#[repr(C)]
148#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
149pub struct __crt_locale_data_public {
150    pub _locale_pctype: *const ::core::ffi::c_ushort,
151    pub _locale_mb_cur_max: ::core::ffi::c_int,
152    pub _locale_lc_codepage: ::core::ffi::c_uint,
153}
154#[allow(clippy::unnecessary_operation, clippy::identity_op)]
155const _: () = {
156    ["Size of __crt_locale_data_public"]
157        [::core::mem::size_of::<__crt_locale_data_public>() - 16usize];
158    ["Alignment of __crt_locale_data_public"]
159        [::core::mem::align_of::<__crt_locale_data_public>() - 8usize];
160    ["Offset of field: __crt_locale_data_public::_locale_pctype"]
161        [::core::mem::offset_of!(__crt_locale_data_public, _locale_pctype) - 0usize];
162    ["Offset of field: __crt_locale_data_public::_locale_mb_cur_max"]
163        [::core::mem::offset_of!(__crt_locale_data_public, _locale_mb_cur_max) - 8usize];
164    ["Offset of field: __crt_locale_data_public::_locale_lc_codepage"]
165        [::core::mem::offset_of!(__crt_locale_data_public, _locale_lc_codepage) - 12usize];
166};
167impl Default for __crt_locale_data_public {
168    fn default() -> Self {
169        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
170        unsafe {
171            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
172            s.assume_init()
173        }
174    }
175}
176#[repr(C)]
177#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
178pub struct __crt_locale_pointers {
179    pub locinfo: *mut __crt_locale_data,
180    pub mbcinfo: *mut __crt_multibyte_data,
181}
182#[allow(clippy::unnecessary_operation, clippy::identity_op)]
183const _: () = {
184    ["Size of __crt_locale_pointers"][::core::mem::size_of::<__crt_locale_pointers>() - 16usize];
185    ["Alignment of __crt_locale_pointers"]
186        [::core::mem::align_of::<__crt_locale_pointers>() - 8usize];
187    ["Offset of field: __crt_locale_pointers::locinfo"]
188        [::core::mem::offset_of!(__crt_locale_pointers, locinfo) - 0usize];
189    ["Offset of field: __crt_locale_pointers::mbcinfo"]
190        [::core::mem::offset_of!(__crt_locale_pointers, mbcinfo) - 8usize];
191};
192impl Default for __crt_locale_pointers {
193    fn default() -> Self {
194        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
195        unsafe {
196            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
197            s.assume_init()
198        }
199    }
200}
201pub type _locale_t = *mut __crt_locale_pointers;
202#[repr(C)]
203#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
204pub struct _Mbstatet {
205    pub _Wchar: ::core::ffi::c_ulong,
206    pub _Byte: ::core::ffi::c_ushort,
207    pub _State: ::core::ffi::c_ushort,
208}
209#[allow(clippy::unnecessary_operation, clippy::identity_op)]
210const _: () = {
211    ["Size of _Mbstatet"][::core::mem::size_of::<_Mbstatet>() - 8usize];
212    ["Alignment of _Mbstatet"][::core::mem::align_of::<_Mbstatet>() - 4usize];
213    ["Offset of field: _Mbstatet::_Wchar"][::core::mem::offset_of!(_Mbstatet, _Wchar) - 0usize];
214    ["Offset of field: _Mbstatet::_Byte"][::core::mem::offset_of!(_Mbstatet, _Byte) - 4usize];
215    ["Offset of field: _Mbstatet::_State"][::core::mem::offset_of!(_Mbstatet, _State) - 6usize];
216};
217pub type mbstate_t = _Mbstatet;
218pub type time_t = __time64_t;
219pub type rsize_t = usize;
220unsafe extern "C" {
221    pub fn _errno() -> *mut ::core::ffi::c_int;
222}
223unsafe extern "C" {
224    pub fn _set_errno(_Value: ::core::ffi::c_int) -> errno_t;
225}
226unsafe extern "C" {
227    pub fn _get_errno(_Value: *mut ::core::ffi::c_int) -> errno_t;
228}
229unsafe extern "C" {
230    pub fn __threadid() -> ::core::ffi::c_ulong;
231}
232unsafe extern "C" {
233    pub fn __threadhandle() -> usize;
234}
235#[repr(C)]
236#[derive(Debug, Copy, Clone, PartialOrd, PartialEq)]
237pub struct _exception {
238    pub type_: ::core::ffi::c_int,
239    pub name: *mut ::core::ffi::c_char,
240    pub arg1: f64,
241    pub arg2: f64,
242    pub retval: f64,
243}
244#[allow(clippy::unnecessary_operation, clippy::identity_op)]
245const _: () = {
246    ["Size of _exception"][::core::mem::size_of::<_exception>() - 40usize];
247    ["Alignment of _exception"][::core::mem::align_of::<_exception>() - 8usize];
248    ["Offset of field: _exception::type_"][::core::mem::offset_of!(_exception, type_) - 0usize];
249    ["Offset of field: _exception::name"][::core::mem::offset_of!(_exception, name) - 8usize];
250    ["Offset of field: _exception::arg1"][::core::mem::offset_of!(_exception, arg1) - 16usize];
251    ["Offset of field: _exception::arg2"][::core::mem::offset_of!(_exception, arg2) - 24usize];
252    ["Offset of field: _exception::retval"][::core::mem::offset_of!(_exception, retval) - 32usize];
253};
254impl Default for _exception {
255    fn default() -> Self {
256        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
257        unsafe {
258            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
259            s.assume_init()
260        }
261    }
262}
263#[repr(C)]
264#[derive(Debug, Default, Copy, Clone, PartialOrd, PartialEq)]
265pub struct _complex {
266    pub x: f64,
267    pub y: f64,
268}
269#[allow(clippy::unnecessary_operation, clippy::identity_op)]
270const _: () = {
271    ["Size of _complex"][::core::mem::size_of::<_complex>() - 16usize];
272    ["Alignment of _complex"][::core::mem::align_of::<_complex>() - 8usize];
273    ["Offset of field: _complex::x"][::core::mem::offset_of!(_complex, x) - 0usize];
274    ["Offset of field: _complex::y"][::core::mem::offset_of!(_complex, y) - 8usize];
275};
276pub type float_t = f32;
277pub type double_t = f64;
278unsafe extern "C" {
279    pub static _HUGE: f64;
280}
281unsafe extern "C" {
282    pub fn _fperrraise(_Except: ::core::ffi::c_int);
283}
284unsafe extern "C" {
285    pub fn _dclass(_X: f64) -> ::core::ffi::c_short;
286}
287unsafe extern "C" {
288    pub fn _ldclass(_X: f64) -> ::core::ffi::c_short;
289}
290unsafe extern "C" {
291    pub fn _fdclass(_X: f32) -> ::core::ffi::c_short;
292}
293unsafe extern "C" {
294    pub fn _dsign(_X: f64) -> ::core::ffi::c_int;
295}
296unsafe extern "C" {
297    pub fn _ldsign(_X: f64) -> ::core::ffi::c_int;
298}
299unsafe extern "C" {
300    pub fn _fdsign(_X: f32) -> ::core::ffi::c_int;
301}
302unsafe extern "C" {
303    pub fn _dpcomp(_X: f64, _Y: f64) -> ::core::ffi::c_int;
304}
305unsafe extern "C" {
306    pub fn _ldpcomp(_X: f64, _Y: f64) -> ::core::ffi::c_int;
307}
308unsafe extern "C" {
309    pub fn _fdpcomp(_X: f32, _Y: f32) -> ::core::ffi::c_int;
310}
311unsafe extern "C" {
312    pub fn _dtest(_Px: *mut f64) -> ::core::ffi::c_short;
313}
314unsafe extern "C" {
315    pub fn _ldtest(_Px: *mut f64) -> ::core::ffi::c_short;
316}
317unsafe extern "C" {
318    pub fn _fdtest(_Px: *mut f32) -> ::core::ffi::c_short;
319}
320unsafe extern "C" {
321    pub fn _d_int(_Px: *mut f64, _Xexp: ::core::ffi::c_short) -> ::core::ffi::c_short;
322}
323unsafe extern "C" {
324    pub fn _ld_int(_Px: *mut f64, _Xexp: ::core::ffi::c_short) -> ::core::ffi::c_short;
325}
326unsafe extern "C" {
327    pub fn _fd_int(_Px: *mut f32, _Xexp: ::core::ffi::c_short) -> ::core::ffi::c_short;
328}
329unsafe extern "C" {
330    pub fn _dscale(_Px: *mut f64, _Lexp: ::core::ffi::c_long) -> ::core::ffi::c_short;
331}
332unsafe extern "C" {
333    pub fn _ldscale(_Px: *mut f64, _Lexp: ::core::ffi::c_long) -> ::core::ffi::c_short;
334}
335unsafe extern "C" {
336    pub fn _fdscale(_Px: *mut f32, _Lexp: ::core::ffi::c_long) -> ::core::ffi::c_short;
337}
338unsafe extern "C" {
339    pub fn _dunscale(_Pex: *mut ::core::ffi::c_short, _Px: *mut f64) -> ::core::ffi::c_short;
340}
341unsafe extern "C" {
342    pub fn _ldunscale(_Pex: *mut ::core::ffi::c_short, _Px: *mut f64) -> ::core::ffi::c_short;
343}
344unsafe extern "C" {
345    pub fn _fdunscale(_Pex: *mut ::core::ffi::c_short, _Px: *mut f32) -> ::core::ffi::c_short;
346}
347unsafe extern "C" {
348    pub fn _dexp(_Px: *mut f64, _Y: f64, _Eoff: ::core::ffi::c_long) -> ::core::ffi::c_short;
349}
350unsafe extern "C" {
351    pub fn _ldexp(_Px: *mut f64, _Y: f64, _Eoff: ::core::ffi::c_long) -> ::core::ffi::c_short;
352}
353unsafe extern "C" {
354    pub fn _fdexp(_Px: *mut f32, _Y: f32, _Eoff: ::core::ffi::c_long) -> ::core::ffi::c_short;
355}
356unsafe extern "C" {
357    pub fn _dnorm(_Ps: *mut ::core::ffi::c_ushort) -> ::core::ffi::c_short;
358}
359unsafe extern "C" {
360    pub fn _fdnorm(_Ps: *mut ::core::ffi::c_ushort) -> ::core::ffi::c_short;
361}
362unsafe extern "C" {
363    pub fn _dpoly(_X: f64, _Tab: *const f64, _N: ::core::ffi::c_int) -> f64;
364}
365unsafe extern "C" {
366    pub fn _ldpoly(_X: f64, _Tab: *const f64, _N: ::core::ffi::c_int) -> f64;
367}
368unsafe extern "C" {
369    pub fn _fdpoly(_X: f32, _Tab: *const f32, _N: ::core::ffi::c_int) -> f32;
370}
371unsafe extern "C" {
372    pub fn _dlog(_X: f64, _Baseflag: ::core::ffi::c_int) -> f64;
373}
374unsafe extern "C" {
375    pub fn _ldlog(_X: f64, _Baseflag: ::core::ffi::c_int) -> f64;
376}
377unsafe extern "C" {
378    pub fn _fdlog(_X: f32, _Baseflag: ::core::ffi::c_int) -> f32;
379}
380unsafe extern "C" {
381    pub fn _dsin(_X: f64, _Qoff: ::core::ffi::c_uint) -> f64;
382}
383unsafe extern "C" {
384    pub fn _ldsin(_X: f64, _Qoff: ::core::ffi::c_uint) -> f64;
385}
386unsafe extern "C" {
387    pub fn _fdsin(_X: f32, _Qoff: ::core::ffi::c_uint) -> f32;
388}
389#[repr(C)]
390#[derive(Copy, Clone)]
391pub union _double_val {
392    pub _Sh: [::core::ffi::c_ushort; 4usize],
393    pub _Val: f64,
394}
395#[allow(clippy::unnecessary_operation, clippy::identity_op)]
396const _: () = {
397    ["Size of _double_val"][::core::mem::size_of::<_double_val>() - 8usize];
398    ["Alignment of _double_val"][::core::mem::align_of::<_double_val>() - 8usize];
399    ["Offset of field: _double_val::_Sh"][::core::mem::offset_of!(_double_val, _Sh) - 0usize];
400    ["Offset of field: _double_val::_Val"][::core::mem::offset_of!(_double_val, _Val) - 0usize];
401};
402impl Default for _double_val {
403    fn default() -> Self {
404        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
405        unsafe {
406            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
407            s.assume_init()
408        }
409    }
410}
411#[repr(C)]
412#[derive(Copy, Clone)]
413pub union _float_val {
414    pub _Sh: [::core::ffi::c_ushort; 2usize],
415    pub _Val: f32,
416}
417#[allow(clippy::unnecessary_operation, clippy::identity_op)]
418const _: () = {
419    ["Size of _float_val"][::core::mem::size_of::<_float_val>() - 4usize];
420    ["Alignment of _float_val"][::core::mem::align_of::<_float_val>() - 4usize];
421    ["Offset of field: _float_val::_Sh"][::core::mem::offset_of!(_float_val, _Sh) - 0usize];
422    ["Offset of field: _float_val::_Val"][::core::mem::offset_of!(_float_val, _Val) - 0usize];
423};
424impl Default for _float_val {
425    fn default() -> Self {
426        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
427        unsafe {
428            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
429            s.assume_init()
430        }
431    }
432}
433#[repr(C)]
434#[derive(Copy, Clone)]
435pub union _ldouble_val {
436    pub _Sh: [::core::ffi::c_ushort; 4usize],
437    pub _Val: f64,
438}
439#[allow(clippy::unnecessary_operation, clippy::identity_op)]
440const _: () = {
441    ["Size of _ldouble_val"][::core::mem::size_of::<_ldouble_val>() - 8usize];
442    ["Alignment of _ldouble_val"][::core::mem::align_of::<_ldouble_val>() - 8usize];
443    ["Offset of field: _ldouble_val::_Sh"][::core::mem::offset_of!(_ldouble_val, _Sh) - 0usize];
444    ["Offset of field: _ldouble_val::_Val"][::core::mem::offset_of!(_ldouble_val, _Val) - 0usize];
445};
446impl Default for _ldouble_val {
447    fn default() -> Self {
448        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
449        unsafe {
450            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
451            s.assume_init()
452        }
453    }
454}
455#[repr(C)]
456#[derive(Copy, Clone)]
457pub union _float_const {
458    pub _Word: [::core::ffi::c_ushort; 4usize],
459    pub _Float: f32,
460    pub _Double: f64,
461    pub _Long_double: f64,
462}
463#[allow(clippy::unnecessary_operation, clippy::identity_op)]
464const _: () = {
465    ["Size of _float_const"][::core::mem::size_of::<_float_const>() - 8usize];
466    ["Alignment of _float_const"][::core::mem::align_of::<_float_const>() - 8usize];
467    ["Offset of field: _float_const::_Word"][::core::mem::offset_of!(_float_const, _Word) - 0usize];
468    ["Offset of field: _float_const::_Float"]
469        [::core::mem::offset_of!(_float_const, _Float) - 0usize];
470    ["Offset of field: _float_const::_Double"]
471        [::core::mem::offset_of!(_float_const, _Double) - 0usize];
472    ["Offset of field: _float_const::_Long_double"]
473        [::core::mem::offset_of!(_float_const, _Long_double) - 0usize];
474};
475impl Default for _float_const {
476    fn default() -> Self {
477        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
478        unsafe {
479            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
480            s.assume_init()
481        }
482    }
483}
484unsafe extern "C" {
485    pub static _Denorm_C: _float_const;
486}
487unsafe extern "C" {
488    pub static _Inf_C: _float_const;
489}
490unsafe extern "C" {
491    pub static _Nan_C: _float_const;
492}
493unsafe extern "C" {
494    pub static _Snan_C: _float_const;
495}
496unsafe extern "C" {
497    pub static _Hugeval_C: _float_const;
498}
499unsafe extern "C" {
500    pub static _FDenorm_C: _float_const;
501}
502unsafe extern "C" {
503    pub static _FInf_C: _float_const;
504}
505unsafe extern "C" {
506    pub static _FNan_C: _float_const;
507}
508unsafe extern "C" {
509    pub static _FSnan_C: _float_const;
510}
511unsafe extern "C" {
512    pub static _LDenorm_C: _float_const;
513}
514unsafe extern "C" {
515    pub static _LInf_C: _float_const;
516}
517unsafe extern "C" {
518    pub static _LNan_C: _float_const;
519}
520unsafe extern "C" {
521    pub static _LSnan_C: _float_const;
522}
523unsafe extern "C" {
524    pub static _Eps_C: _float_const;
525}
526unsafe extern "C" {
527    pub static _Rteps_C: _float_const;
528}
529unsafe extern "C" {
530    pub static _FEps_C: _float_const;
531}
532unsafe extern "C" {
533    pub static _FRteps_C: _float_const;
534}
535unsafe extern "C" {
536    pub static _LEps_C: _float_const;
537}
538unsafe extern "C" {
539    pub static _LRteps_C: _float_const;
540}
541unsafe extern "C" {
542    pub static _Zero_C: f64;
543}
544unsafe extern "C" {
545    pub static _Xbig_C: f64;
546}
547unsafe extern "C" {
548    pub static _FZero_C: f32;
549}
550unsafe extern "C" {
551    pub static _FXbig_C: f32;
552}
553unsafe extern "C" {
554    pub static _LZero_C: f64;
555}
556unsafe extern "C" {
557    pub static _LXbig_C: f64;
558}
559unsafe extern "C" {
560    pub fn abs(_X: ::core::ffi::c_int) -> ::core::ffi::c_int;
561}
562unsafe extern "C" {
563    pub fn labs(_X: ::core::ffi::c_long) -> ::core::ffi::c_long;
564}
565unsafe extern "C" {
566    pub fn llabs(_X: ::core::ffi::c_longlong) -> ::core::ffi::c_longlong;
567}
568unsafe extern "C" {
569    pub fn acos(_X: f64) -> f64;
570}
571unsafe extern "C" {
572    pub fn asin(_X: f64) -> f64;
573}
574unsafe extern "C" {
575    pub fn atan(_X: f64) -> f64;
576}
577unsafe extern "C" {
578    pub fn atan2(_Y: f64, _X: f64) -> f64;
579}
580unsafe extern "C" {
581    pub fn cos(_X: f64) -> f64;
582}
583unsafe extern "C" {
584    pub fn cosh(_X: f64) -> f64;
585}
586unsafe extern "C" {
587    pub fn exp(_X: f64) -> f64;
588}
589unsafe extern "C" {
590    pub fn fabs(_X: f64) -> f64;
591}
592unsafe extern "C" {
593    pub fn fmod(_X: f64, _Y: f64) -> f64;
594}
595unsafe extern "C" {
596    pub fn log(_X: f64) -> f64;
597}
598unsafe extern "C" {
599    pub fn log10(_X: f64) -> f64;
600}
601unsafe extern "C" {
602    pub fn pow(_X: f64, _Y: f64) -> f64;
603}
604unsafe extern "C" {
605    pub fn sin(_X: f64) -> f64;
606}
607unsafe extern "C" {
608    pub fn sinh(_X: f64) -> f64;
609}
610unsafe extern "C" {
611    pub fn sqrt(_X: f64) -> f64;
612}
613unsafe extern "C" {
614    pub fn tan(_X: f64) -> f64;
615}
616unsafe extern "C" {
617    pub fn tanh(_X: f64) -> f64;
618}
619unsafe extern "C" {
620    pub fn acosh(_X: f64) -> f64;
621}
622unsafe extern "C" {
623    pub fn asinh(_X: f64) -> f64;
624}
625unsafe extern "C" {
626    pub fn atanh(_X: f64) -> f64;
627}
628unsafe extern "C" {
629    pub fn atof(_String: *const ::core::ffi::c_char) -> f64;
630}
631unsafe extern "C" {
632    pub fn _atof_l(_String: *const ::core::ffi::c_char, _Locale: _locale_t) -> f64;
633}
634unsafe extern "C" {
635    pub fn _cabs(_Complex_value: _complex) -> f64;
636}
637unsafe extern "C" {
638    pub fn cbrt(_X: f64) -> f64;
639}
640unsafe extern "C" {
641    pub fn ceil(_X: f64) -> f64;
642}
643unsafe extern "C" {
644    pub fn _chgsign(_X: f64) -> f64;
645}
646unsafe extern "C" {
647    pub fn copysign(_Number: f64, _Sign: f64) -> f64;
648}
649unsafe extern "C" {
650    pub fn _copysign(_Number: f64, _Sign: f64) -> f64;
651}
652unsafe extern "C" {
653    pub fn erf(_X: f64) -> f64;
654}
655unsafe extern "C" {
656    pub fn erfc(_X: f64) -> f64;
657}
658unsafe extern "C" {
659    pub fn exp2(_X: f64) -> f64;
660}
661unsafe extern "C" {
662    pub fn expm1(_X: f64) -> f64;
663}
664unsafe extern "C" {
665    pub fn fdim(_X: f64, _Y: f64) -> f64;
666}
667unsafe extern "C" {
668    pub fn floor(_X: f64) -> f64;
669}
670unsafe extern "C" {
671    pub fn fma(_X: f64, _Y: f64, _Z: f64) -> f64;
672}
673unsafe extern "C" {
674    pub fn fmax(_X: f64, _Y: f64) -> f64;
675}
676unsafe extern "C" {
677    pub fn fmin(_X: f64, _Y: f64) -> f64;
678}
679unsafe extern "C" {
680    pub fn frexp(_X: f64, _Y: *mut ::core::ffi::c_int) -> f64;
681}
682unsafe extern "C" {
683    pub fn hypot(_X: f64, _Y: f64) -> f64;
684}
685unsafe extern "C" {
686    pub fn _hypot(_X: f64, _Y: f64) -> f64;
687}
688unsafe extern "C" {
689    pub fn ilogb(_X: f64) -> ::core::ffi::c_int;
690}
691unsafe extern "C" {
692    pub fn ldexp(_X: f64, _Y: ::core::ffi::c_int) -> f64;
693}
694unsafe extern "C" {
695    pub fn lgamma(_X: f64) -> f64;
696}
697unsafe extern "C" {
698    pub fn llrint(_X: f64) -> ::core::ffi::c_longlong;
699}
700unsafe extern "C" {
701    pub fn llround(_X: f64) -> ::core::ffi::c_longlong;
702}
703unsafe extern "C" {
704    pub fn log1p(_X: f64) -> f64;
705}
706unsafe extern "C" {
707    pub fn log2(_X: f64) -> f64;
708}
709unsafe extern "C" {
710    pub fn logb(_X: f64) -> f64;
711}
712unsafe extern "C" {
713    pub fn lrint(_X: f64) -> ::core::ffi::c_long;
714}
715unsafe extern "C" {
716    pub fn lround(_X: f64) -> ::core::ffi::c_long;
717}
718unsafe extern "C" {
719    pub fn _matherr(_Except: *mut _exception) -> ::core::ffi::c_int;
720}
721unsafe extern "C" {
722    pub fn modf(_X: f64, _Y: *mut f64) -> f64;
723}
724unsafe extern "C" {
725    pub fn nan(_X: *const ::core::ffi::c_char) -> f64;
726}
727unsafe extern "C" {
728    pub fn nearbyint(_X: f64) -> f64;
729}
730unsafe extern "C" {
731    pub fn nextafter(_X: f64, _Y: f64) -> f64;
732}
733unsafe extern "C" {
734    pub fn nexttoward(_X: f64, _Y: f64) -> f64;
735}
736unsafe extern "C" {
737    pub fn remainder(_X: f64, _Y: f64) -> f64;
738}
739unsafe extern "C" {
740    pub fn remquo(_X: f64, _Y: f64, _Z: *mut ::core::ffi::c_int) -> f64;
741}
742unsafe extern "C" {
743    pub fn rint(_X: f64) -> f64;
744}
745unsafe extern "C" {
746    pub fn round(_X: f64) -> f64;
747}
748unsafe extern "C" {
749    pub fn scalbln(_X: f64, _Y: ::core::ffi::c_long) -> f64;
750}
751unsafe extern "C" {
752    pub fn scalbn(_X: f64, _Y: ::core::ffi::c_int) -> f64;
753}
754unsafe extern "C" {
755    pub fn tgamma(_X: f64) -> f64;
756}
757unsafe extern "C" {
758    pub fn trunc(_X: f64) -> f64;
759}
760unsafe extern "C" {
761    pub fn _j0(_X: f64) -> f64;
762}
763unsafe extern "C" {
764    pub fn _j1(_X: f64) -> f64;
765}
766unsafe extern "C" {
767    pub fn _jn(_X: ::core::ffi::c_int, _Y: f64) -> f64;
768}
769unsafe extern "C" {
770    pub fn _y0(_X: f64) -> f64;
771}
772unsafe extern "C" {
773    pub fn _y1(_X: f64) -> f64;
774}
775unsafe extern "C" {
776    pub fn _yn(_X: ::core::ffi::c_int, _Y: f64) -> f64;
777}
778unsafe extern "C" {
779    pub fn acoshf(_X: f32) -> f32;
780}
781unsafe extern "C" {
782    pub fn asinhf(_X: f32) -> f32;
783}
784unsafe extern "C" {
785    pub fn atanhf(_X: f32) -> f32;
786}
787unsafe extern "C" {
788    pub fn cbrtf(_X: f32) -> f32;
789}
790unsafe extern "C" {
791    pub fn _chgsignf(_X: f32) -> f32;
792}
793unsafe extern "C" {
794    pub fn copysignf(_Number: f32, _Sign: f32) -> f32;
795}
796unsafe extern "C" {
797    pub fn _copysignf(_Number: f32, _Sign: f32) -> f32;
798}
799unsafe extern "C" {
800    pub fn erff(_X: f32) -> f32;
801}
802unsafe extern "C" {
803    pub fn erfcf(_X: f32) -> f32;
804}
805unsafe extern "C" {
806    pub fn expm1f(_X: f32) -> f32;
807}
808unsafe extern "C" {
809    pub fn exp2f(_X: f32) -> f32;
810}
811unsafe extern "C" {
812    pub fn fdimf(_X: f32, _Y: f32) -> f32;
813}
814unsafe extern "C" {
815    pub fn fmaf(_X: f32, _Y: f32, _Z: f32) -> f32;
816}
817unsafe extern "C" {
818    pub fn fmaxf(_X: f32, _Y: f32) -> f32;
819}
820unsafe extern "C" {
821    pub fn fminf(_X: f32, _Y: f32) -> f32;
822}
823unsafe extern "C" {
824    pub fn _hypotf(_X: f32, _Y: f32) -> f32;
825}
826unsafe extern "C" {
827    pub fn ilogbf(_X: f32) -> ::core::ffi::c_int;
828}
829unsafe extern "C" {
830    pub fn lgammaf(_X: f32) -> f32;
831}
832unsafe extern "C" {
833    pub fn llrintf(_X: f32) -> ::core::ffi::c_longlong;
834}
835unsafe extern "C" {
836    pub fn llroundf(_X: f32) -> ::core::ffi::c_longlong;
837}
838unsafe extern "C" {
839    pub fn log1pf(_X: f32) -> f32;
840}
841unsafe extern "C" {
842    pub fn log2f(_X: f32) -> f32;
843}
844unsafe extern "C" {
845    pub fn logbf(_X: f32) -> f32;
846}
847unsafe extern "C" {
848    pub fn lrintf(_X: f32) -> ::core::ffi::c_long;
849}
850unsafe extern "C" {
851    pub fn lroundf(_X: f32) -> ::core::ffi::c_long;
852}
853unsafe extern "C" {
854    pub fn nanf(_X: *const ::core::ffi::c_char) -> f32;
855}
856unsafe extern "C" {
857    pub fn nearbyintf(_X: f32) -> f32;
858}
859unsafe extern "C" {
860    pub fn nextafterf(_X: f32, _Y: f32) -> f32;
861}
862unsafe extern "C" {
863    pub fn nexttowardf(_X: f32, _Y: f64) -> f32;
864}
865unsafe extern "C" {
866    pub fn remainderf(_X: f32, _Y: f32) -> f32;
867}
868unsafe extern "C" {
869    pub fn remquof(_X: f32, _Y: f32, _Z: *mut ::core::ffi::c_int) -> f32;
870}
871unsafe extern "C" {
872    pub fn rintf(_X: f32) -> f32;
873}
874unsafe extern "C" {
875    pub fn roundf(_X: f32) -> f32;
876}
877unsafe extern "C" {
878    pub fn scalblnf(_X: f32, _Y: ::core::ffi::c_long) -> f32;
879}
880unsafe extern "C" {
881    pub fn scalbnf(_X: f32, _Y: ::core::ffi::c_int) -> f32;
882}
883unsafe extern "C" {
884    pub fn tgammaf(_X: f32) -> f32;
885}
886unsafe extern "C" {
887    pub fn truncf(_X: f32) -> f32;
888}
889unsafe extern "C" {
890    pub fn _logbf(_X: f32) -> f32;
891}
892unsafe extern "C" {
893    pub fn _nextafterf(_X: f32, _Y: f32) -> f32;
894}
895unsafe extern "C" {
896    pub fn _finitef(_X: f32) -> ::core::ffi::c_int;
897}
898unsafe extern "C" {
899    pub fn _isnanf(_X: f32) -> ::core::ffi::c_int;
900}
901unsafe extern "C" {
902    pub fn _fpclassf(_X: f32) -> ::core::ffi::c_int;
903}
904unsafe extern "C" {
905    pub fn _set_FMA3_enable(_Flag: ::core::ffi::c_int) -> ::core::ffi::c_int;
906}
907unsafe extern "C" {
908    pub fn _get_FMA3_enable() -> ::core::ffi::c_int;
909}
910unsafe extern "C" {
911    pub fn acosf(_X: f32) -> f32;
912}
913unsafe extern "C" {
914    pub fn asinf(_X: f32) -> f32;
915}
916unsafe extern "C" {
917    pub fn atan2f(_Y: f32, _X: f32) -> f32;
918}
919unsafe extern "C" {
920    pub fn atanf(_X: f32) -> f32;
921}
922unsafe extern "C" {
923    pub fn ceilf(_X: f32) -> f32;
924}
925unsafe extern "C" {
926    pub fn cosf(_X: f32) -> f32;
927}
928unsafe extern "C" {
929    pub fn coshf(_X: f32) -> f32;
930}
931unsafe extern "C" {
932    pub fn expf(_X: f32) -> f32;
933}
934unsafe extern "C" {
935    pub fn floorf(_X: f32) -> f32;
936}
937unsafe extern "C" {
938    pub fn fmodf(_X: f32, _Y: f32) -> f32;
939}
940unsafe extern "C" {
941    pub fn log10f(_X: f32) -> f32;
942}
943unsafe extern "C" {
944    pub fn logf(_X: f32) -> f32;
945}
946unsafe extern "C" {
947    pub fn modff(_X: f32, _Y: *mut f32) -> f32;
948}
949unsafe extern "C" {
950    pub fn powf(_X: f32, _Y: f32) -> f32;
951}
952unsafe extern "C" {
953    pub fn sinf(_X: f32) -> f32;
954}
955unsafe extern "C" {
956    pub fn sinhf(_X: f32) -> f32;
957}
958unsafe extern "C" {
959    pub fn sqrtf(_X: f32) -> f32;
960}
961unsafe extern "C" {
962    pub fn tanf(_X: f32) -> f32;
963}
964unsafe extern "C" {
965    pub fn tanhf(_X: f32) -> f32;
966}
967unsafe extern "C" {
968    pub fn acoshl(_X: f64) -> f64;
969}
970unsafe extern "C" {
971    pub fn asinhl(_X: f64) -> f64;
972}
973unsafe extern "C" {
974    pub fn atanhl(_X: f64) -> f64;
975}
976unsafe extern "C" {
977    pub fn cbrtl(_X: f64) -> f64;
978}
979unsafe extern "C" {
980    pub fn copysignl(_Number: f64, _Sign: f64) -> f64;
981}
982unsafe extern "C" {
983    pub fn erfl(_X: f64) -> f64;
984}
985unsafe extern "C" {
986    pub fn erfcl(_X: f64) -> f64;
987}
988unsafe extern "C" {
989    pub fn exp2l(_X: f64) -> f64;
990}
991unsafe extern "C" {
992    pub fn expm1l(_X: f64) -> f64;
993}
994unsafe extern "C" {
995    pub fn fdiml(_X: f64, _Y: f64) -> f64;
996}
997unsafe extern "C" {
998    pub fn fmal(_X: f64, _Y: f64, _Z: f64) -> f64;
999}
1000unsafe extern "C" {
1001    pub fn fmaxl(_X: f64, _Y: f64) -> f64;
1002}
1003unsafe extern "C" {
1004    pub fn fminl(_X: f64, _Y: f64) -> f64;
1005}
1006unsafe extern "C" {
1007    pub fn ilogbl(_X: f64) -> ::core::ffi::c_int;
1008}
1009unsafe extern "C" {
1010    pub fn lgammal(_X: f64) -> f64;
1011}
1012unsafe extern "C" {
1013    pub fn llrintl(_X: f64) -> ::core::ffi::c_longlong;
1014}
1015unsafe extern "C" {
1016    pub fn llroundl(_X: f64) -> ::core::ffi::c_longlong;
1017}
1018unsafe extern "C" {
1019    pub fn log1pl(_X: f64) -> f64;
1020}
1021unsafe extern "C" {
1022    pub fn log2l(_X: f64) -> f64;
1023}
1024unsafe extern "C" {
1025    pub fn logbl(_X: f64) -> f64;
1026}
1027unsafe extern "C" {
1028    pub fn lrintl(_X: f64) -> ::core::ffi::c_long;
1029}
1030unsafe extern "C" {
1031    pub fn lroundl(_X: f64) -> ::core::ffi::c_long;
1032}
1033unsafe extern "C" {
1034    pub fn nanl(_X: *const ::core::ffi::c_char) -> f64;
1035}
1036unsafe extern "C" {
1037    pub fn nearbyintl(_X: f64) -> f64;
1038}
1039unsafe extern "C" {
1040    pub fn nextafterl(_X: f64, _Y: f64) -> f64;
1041}
1042unsafe extern "C" {
1043    pub fn nexttowardl(_X: f64, _Y: f64) -> f64;
1044}
1045unsafe extern "C" {
1046    pub fn remainderl(_X: f64, _Y: f64) -> f64;
1047}
1048unsafe extern "C" {
1049    pub fn remquol(_X: f64, _Y: f64, _Z: *mut ::core::ffi::c_int) -> f64;
1050}
1051unsafe extern "C" {
1052    pub fn rintl(_X: f64) -> f64;
1053}
1054unsafe extern "C" {
1055    pub fn roundl(_X: f64) -> f64;
1056}
1057unsafe extern "C" {
1058    pub fn scalblnl(_X: f64, _Y: ::core::ffi::c_long) -> f64;
1059}
1060unsafe extern "C" {
1061    pub fn scalbnl(_X: f64, _Y: ::core::ffi::c_int) -> f64;
1062}
1063unsafe extern "C" {
1064    pub fn tgammal(_X: f64) -> f64;
1065}
1066unsafe extern "C" {
1067    pub fn truncl(_X: f64) -> f64;
1068}
1069unsafe extern "C" {
1070    pub static mut HUGE: f64;
1071}
1072unsafe extern "C" {
1073    pub fn j0(_X: f64) -> f64;
1074}
1075unsafe extern "C" {
1076    pub fn j1(_X: f64) -> f64;
1077}
1078unsafe extern "C" {
1079    pub fn jn(_X: ::core::ffi::c_int, _Y: f64) -> f64;
1080}
1081unsafe extern "C" {
1082    pub fn y0(_X: f64) -> f64;
1083}
1084unsafe extern "C" {
1085    pub fn y1(_X: f64) -> f64;
1086}
1087unsafe extern "C" {
1088    pub fn yn(_X: ::core::ffi::c_int, _Y: f64) -> f64;
1089}
1090#[repr(C)]
1091#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1092pub struct WGPUStringView {
1093    pub data: *const ::core::ffi::c_char,
1094    pub length: usize,
1095}
1096#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1097const _: () = {
1098    ["Size of WGPUStringView"][::core::mem::size_of::<WGPUStringView>() - 16usize];
1099    ["Alignment of WGPUStringView"][::core::mem::align_of::<WGPUStringView>() - 8usize];
1100    ["Offset of field: WGPUStringView::data"]
1101        [::core::mem::offset_of!(WGPUStringView, data) - 0usize];
1102    ["Offset of field: WGPUStringView::length"]
1103        [::core::mem::offset_of!(WGPUStringView, length) - 8usize];
1104};
1105impl Default for WGPUStringView {
1106    fn default() -> Self {
1107        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
1108        unsafe {
1109            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1110            s.assume_init()
1111        }
1112    }
1113}
1114pub type WGPUFlags = u64;
1115pub type WGPUBool = u32;
1116#[repr(C)]
1117#[derive(Debug, Copy, Clone)]
1118pub struct WGPUAdapterImpl {
1119    _unused: [u8; 0],
1120}
1121pub type WGPUAdapter = *mut WGPUAdapterImpl;
1122#[repr(C)]
1123#[derive(Debug, Copy, Clone)]
1124pub struct WGPUBindGroupImpl {
1125    _unused: [u8; 0],
1126}
1127pub type WGPUBindGroup = *mut WGPUBindGroupImpl;
1128#[repr(C)]
1129#[derive(Debug, Copy, Clone)]
1130pub struct WGPUBindGroupLayoutImpl {
1131    _unused: [u8; 0],
1132}
1133pub type WGPUBindGroupLayout = *mut WGPUBindGroupLayoutImpl;
1134#[repr(C)]
1135#[derive(Debug, Copy, Clone)]
1136pub struct WGPUBufferImpl {
1137    _unused: [u8; 0],
1138}
1139pub type WGPUBuffer = *mut WGPUBufferImpl;
1140#[repr(C)]
1141#[derive(Debug, Copy, Clone)]
1142pub struct WGPUCommandBufferImpl {
1143    _unused: [u8; 0],
1144}
1145pub type WGPUCommandBuffer = *mut WGPUCommandBufferImpl;
1146#[repr(C)]
1147#[derive(Debug, Copy, Clone)]
1148pub struct WGPUCommandEncoderImpl {
1149    _unused: [u8; 0],
1150}
1151pub type WGPUCommandEncoder = *mut WGPUCommandEncoderImpl;
1152#[repr(C)]
1153#[derive(Debug, Copy, Clone)]
1154pub struct WGPUComputePassEncoderImpl {
1155    _unused: [u8; 0],
1156}
1157pub type WGPUComputePassEncoder = *mut WGPUComputePassEncoderImpl;
1158#[repr(C)]
1159#[derive(Debug, Copy, Clone)]
1160pub struct WGPUComputePipelineImpl {
1161    _unused: [u8; 0],
1162}
1163pub type WGPUComputePipeline = *mut WGPUComputePipelineImpl;
1164#[repr(C)]
1165#[derive(Debug, Copy, Clone)]
1166pub struct WGPUDeviceImpl {
1167    _unused: [u8; 0],
1168}
1169pub type WGPUDevice = *mut WGPUDeviceImpl;
1170#[repr(C)]
1171#[derive(Debug, Copy, Clone)]
1172pub struct WGPUExternalTextureImpl {
1173    _unused: [u8; 0],
1174}
1175pub type WGPUExternalTexture = *mut WGPUExternalTextureImpl;
1176#[repr(C)]
1177#[derive(Debug, Copy, Clone)]
1178pub struct WGPUInstanceImpl {
1179    _unused: [u8; 0],
1180}
1181pub type WGPUInstance = *mut WGPUInstanceImpl;
1182#[repr(C)]
1183#[derive(Debug, Copy, Clone)]
1184pub struct WGPUPipelineLayoutImpl {
1185    _unused: [u8; 0],
1186}
1187pub type WGPUPipelineLayout = *mut WGPUPipelineLayoutImpl;
1188#[repr(C)]
1189#[derive(Debug, Copy, Clone)]
1190pub struct WGPUQuerySetImpl {
1191    _unused: [u8; 0],
1192}
1193pub type WGPUQuerySet = *mut WGPUQuerySetImpl;
1194#[repr(C)]
1195#[derive(Debug, Copy, Clone)]
1196pub struct WGPUQueueImpl {
1197    _unused: [u8; 0],
1198}
1199pub type WGPUQueue = *mut WGPUQueueImpl;
1200#[repr(C)]
1201#[derive(Debug, Copy, Clone)]
1202pub struct WGPURenderBundleImpl {
1203    _unused: [u8; 0],
1204}
1205pub type WGPURenderBundle = *mut WGPURenderBundleImpl;
1206#[repr(C)]
1207#[derive(Debug, Copy, Clone)]
1208pub struct WGPURenderBundleEncoderImpl {
1209    _unused: [u8; 0],
1210}
1211pub type WGPURenderBundleEncoder = *mut WGPURenderBundleEncoderImpl;
1212#[repr(C)]
1213#[derive(Debug, Copy, Clone)]
1214pub struct WGPURenderPassEncoderImpl {
1215    _unused: [u8; 0],
1216}
1217pub type WGPURenderPassEncoder = *mut WGPURenderPassEncoderImpl;
1218#[repr(C)]
1219#[derive(Debug, Copy, Clone)]
1220pub struct WGPURenderPipelineImpl {
1221    _unused: [u8; 0],
1222}
1223pub type WGPURenderPipeline = *mut WGPURenderPipelineImpl;
1224#[repr(C)]
1225#[derive(Debug, Copy, Clone)]
1226pub struct WGPUSamplerImpl {
1227    _unused: [u8; 0],
1228}
1229pub type WGPUSampler = *mut WGPUSamplerImpl;
1230#[repr(C)]
1231#[derive(Debug, Copy, Clone)]
1232pub struct WGPUShaderModuleImpl {
1233    _unused: [u8; 0],
1234}
1235pub type WGPUShaderModule = *mut WGPUShaderModuleImpl;
1236#[repr(C)]
1237#[derive(Debug, Copy, Clone)]
1238pub struct WGPUSharedBufferMemoryImpl {
1239    _unused: [u8; 0],
1240}
1241pub type WGPUSharedBufferMemory = *mut WGPUSharedBufferMemoryImpl;
1242#[repr(C)]
1243#[derive(Debug, Copy, Clone)]
1244pub struct WGPUSharedFenceImpl {
1245    _unused: [u8; 0],
1246}
1247pub type WGPUSharedFence = *mut WGPUSharedFenceImpl;
1248#[repr(C)]
1249#[derive(Debug, Copy, Clone)]
1250pub struct WGPUSharedTextureMemoryImpl {
1251    _unused: [u8; 0],
1252}
1253pub type WGPUSharedTextureMemory = *mut WGPUSharedTextureMemoryImpl;
1254#[repr(C)]
1255#[derive(Debug, Copy, Clone)]
1256pub struct WGPUSurfaceImpl {
1257    _unused: [u8; 0],
1258}
1259pub type WGPUSurface = *mut WGPUSurfaceImpl;
1260#[repr(C)]
1261#[derive(Debug, Copy, Clone)]
1262pub struct WGPUTextureImpl {
1263    _unused: [u8; 0],
1264}
1265pub type WGPUTexture = *mut WGPUTextureImpl;
1266#[repr(C)]
1267#[derive(Debug, Copy, Clone)]
1268pub struct WGPUTextureViewImpl {
1269    _unused: [u8; 0],
1270}
1271pub type WGPUTextureView = *mut WGPUTextureViewImpl;
1272pub const WGPUAdapterType_WGPUAdapterType_DiscreteGPU: WGPUAdapterType = WGPUAdapterType(1);
1273pub const WGPUAdapterType_WGPUAdapterType_IntegratedGPU: WGPUAdapterType = WGPUAdapterType(2);
1274pub const WGPUAdapterType_WGPUAdapterType_CPU: WGPUAdapterType = WGPUAdapterType(3);
1275pub const WGPUAdapterType_WGPUAdapterType_Unknown: WGPUAdapterType = WGPUAdapterType(4);
1276pub const WGPUAdapterType_WGPUAdapterType_Force32: WGPUAdapterType = WGPUAdapterType(2147483647);
1277#[repr(transparent)]
1278#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1279pub struct WGPUAdapterType(pub ::core::ffi::c_int);
1280pub const WGPUAddressMode_WGPUAddressMode_Undefined: WGPUAddressMode = WGPUAddressMode(0);
1281pub const WGPUAddressMode_WGPUAddressMode_ClampToEdge: WGPUAddressMode = WGPUAddressMode(1);
1282pub const WGPUAddressMode_WGPUAddressMode_Repeat: WGPUAddressMode = WGPUAddressMode(2);
1283pub const WGPUAddressMode_WGPUAddressMode_MirrorRepeat: WGPUAddressMode = WGPUAddressMode(3);
1284pub const WGPUAddressMode_WGPUAddressMode_Force32: WGPUAddressMode = WGPUAddressMode(2147483647);
1285#[repr(transparent)]
1286#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1287pub struct WGPUAddressMode(pub ::core::ffi::c_int);
1288pub const WGPUAlphaMode_WGPUAlphaMode_Opaque: WGPUAlphaMode = WGPUAlphaMode(1);
1289pub const WGPUAlphaMode_WGPUAlphaMode_Premultiplied: WGPUAlphaMode = WGPUAlphaMode(2);
1290pub const WGPUAlphaMode_WGPUAlphaMode_Unpremultiplied: WGPUAlphaMode = WGPUAlphaMode(3);
1291pub const WGPUAlphaMode_WGPUAlphaMode_Force32: WGPUAlphaMode = WGPUAlphaMode(2147483647);
1292#[repr(transparent)]
1293#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1294pub struct WGPUAlphaMode(pub ::core::ffi::c_int);
1295pub const WGPUBackendType_WGPUBackendType_Undefined: WGPUBackendType = WGPUBackendType(0);
1296pub const WGPUBackendType_WGPUBackendType_Null: WGPUBackendType = WGPUBackendType(1);
1297pub const WGPUBackendType_WGPUBackendType_WebGPU: WGPUBackendType = WGPUBackendType(2);
1298pub const WGPUBackendType_WGPUBackendType_D3D11: WGPUBackendType = WGPUBackendType(3);
1299pub const WGPUBackendType_WGPUBackendType_D3D12: WGPUBackendType = WGPUBackendType(4);
1300pub const WGPUBackendType_WGPUBackendType_Metal: WGPUBackendType = WGPUBackendType(5);
1301pub const WGPUBackendType_WGPUBackendType_Vulkan: WGPUBackendType = WGPUBackendType(6);
1302pub const WGPUBackendType_WGPUBackendType_OpenGL: WGPUBackendType = WGPUBackendType(7);
1303pub const WGPUBackendType_WGPUBackendType_OpenGLES: WGPUBackendType = WGPUBackendType(8);
1304pub const WGPUBackendType_WGPUBackendType_Force32: WGPUBackendType = WGPUBackendType(2147483647);
1305#[repr(transparent)]
1306#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1307pub struct WGPUBackendType(pub ::core::ffi::c_int);
1308pub const WGPUBlendFactor_WGPUBlendFactor_Undefined: WGPUBlendFactor = WGPUBlendFactor(0);
1309pub const WGPUBlendFactor_WGPUBlendFactor_Zero: WGPUBlendFactor = WGPUBlendFactor(1);
1310pub const WGPUBlendFactor_WGPUBlendFactor_One: WGPUBlendFactor = WGPUBlendFactor(2);
1311pub const WGPUBlendFactor_WGPUBlendFactor_Src: WGPUBlendFactor = WGPUBlendFactor(3);
1312pub const WGPUBlendFactor_WGPUBlendFactor_OneMinusSrc: WGPUBlendFactor = WGPUBlendFactor(4);
1313pub const WGPUBlendFactor_WGPUBlendFactor_SrcAlpha: WGPUBlendFactor = WGPUBlendFactor(5);
1314pub const WGPUBlendFactor_WGPUBlendFactor_OneMinusSrcAlpha: WGPUBlendFactor = WGPUBlendFactor(6);
1315pub const WGPUBlendFactor_WGPUBlendFactor_Dst: WGPUBlendFactor = WGPUBlendFactor(7);
1316pub const WGPUBlendFactor_WGPUBlendFactor_OneMinusDst: WGPUBlendFactor = WGPUBlendFactor(8);
1317pub const WGPUBlendFactor_WGPUBlendFactor_DstAlpha: WGPUBlendFactor = WGPUBlendFactor(9);
1318pub const WGPUBlendFactor_WGPUBlendFactor_OneMinusDstAlpha: WGPUBlendFactor = WGPUBlendFactor(10);
1319pub const WGPUBlendFactor_WGPUBlendFactor_SrcAlphaSaturated: WGPUBlendFactor = WGPUBlendFactor(11);
1320pub const WGPUBlendFactor_WGPUBlendFactor_Constant: WGPUBlendFactor = WGPUBlendFactor(12);
1321pub const WGPUBlendFactor_WGPUBlendFactor_OneMinusConstant: WGPUBlendFactor = WGPUBlendFactor(13);
1322pub const WGPUBlendFactor_WGPUBlendFactor_Src1: WGPUBlendFactor = WGPUBlendFactor(14);
1323pub const WGPUBlendFactor_WGPUBlendFactor_OneMinusSrc1: WGPUBlendFactor = WGPUBlendFactor(15);
1324pub const WGPUBlendFactor_WGPUBlendFactor_Src1Alpha: WGPUBlendFactor = WGPUBlendFactor(16);
1325pub const WGPUBlendFactor_WGPUBlendFactor_OneMinusSrc1Alpha: WGPUBlendFactor = WGPUBlendFactor(17);
1326pub const WGPUBlendFactor_WGPUBlendFactor_Force32: WGPUBlendFactor = WGPUBlendFactor(2147483647);
1327#[repr(transparent)]
1328#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1329pub struct WGPUBlendFactor(pub ::core::ffi::c_int);
1330pub const WGPUBlendOperation_WGPUBlendOperation_Undefined: WGPUBlendOperation =
1331    WGPUBlendOperation(0);
1332pub const WGPUBlendOperation_WGPUBlendOperation_Add: WGPUBlendOperation = WGPUBlendOperation(1);
1333pub const WGPUBlendOperation_WGPUBlendOperation_Subtract: WGPUBlendOperation =
1334    WGPUBlendOperation(2);
1335pub const WGPUBlendOperation_WGPUBlendOperation_ReverseSubtract: WGPUBlendOperation =
1336    WGPUBlendOperation(3);
1337pub const WGPUBlendOperation_WGPUBlendOperation_Min: WGPUBlendOperation = WGPUBlendOperation(4);
1338pub const WGPUBlendOperation_WGPUBlendOperation_Max: WGPUBlendOperation = WGPUBlendOperation(5);
1339pub const WGPUBlendOperation_WGPUBlendOperation_Force32: WGPUBlendOperation =
1340    WGPUBlendOperation(2147483647);
1341#[repr(transparent)]
1342#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1343pub struct WGPUBlendOperation(pub ::core::ffi::c_int);
1344pub const WGPUBufferBindingType_WGPUBufferBindingType_BindingNotUsed: WGPUBufferBindingType =
1345    WGPUBufferBindingType(0);
1346pub const WGPUBufferBindingType_WGPUBufferBindingType_Undefined: WGPUBufferBindingType =
1347    WGPUBufferBindingType(1);
1348pub const WGPUBufferBindingType_WGPUBufferBindingType_Uniform: WGPUBufferBindingType =
1349    WGPUBufferBindingType(2);
1350pub const WGPUBufferBindingType_WGPUBufferBindingType_Storage: WGPUBufferBindingType =
1351    WGPUBufferBindingType(3);
1352pub const WGPUBufferBindingType_WGPUBufferBindingType_ReadOnlyStorage: WGPUBufferBindingType =
1353    WGPUBufferBindingType(4);
1354pub const WGPUBufferBindingType_WGPUBufferBindingType_Force32: WGPUBufferBindingType =
1355    WGPUBufferBindingType(2147483647);
1356#[repr(transparent)]
1357#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1358pub struct WGPUBufferBindingType(pub ::core::ffi::c_int);
1359pub const WGPUBufferMapState_WGPUBufferMapState_Unmapped: WGPUBufferMapState =
1360    WGPUBufferMapState(1);
1361pub const WGPUBufferMapState_WGPUBufferMapState_Pending: WGPUBufferMapState = WGPUBufferMapState(2);
1362pub const WGPUBufferMapState_WGPUBufferMapState_Mapped: WGPUBufferMapState = WGPUBufferMapState(3);
1363pub const WGPUBufferMapState_WGPUBufferMapState_Force32: WGPUBufferMapState =
1364    WGPUBufferMapState(2147483647);
1365#[repr(transparent)]
1366#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1367pub struct WGPUBufferMapState(pub ::core::ffi::c_int);
1368pub const WGPUCallbackMode_WGPUCallbackMode_WaitAnyOnly: WGPUCallbackMode = WGPUCallbackMode(1);
1369pub const WGPUCallbackMode_WGPUCallbackMode_AllowProcessEvents: WGPUCallbackMode =
1370    WGPUCallbackMode(2);
1371pub const WGPUCallbackMode_WGPUCallbackMode_AllowSpontaneous: WGPUCallbackMode =
1372    WGPUCallbackMode(3);
1373pub const WGPUCallbackMode_WGPUCallbackMode_Force32: WGPUCallbackMode =
1374    WGPUCallbackMode(2147483647);
1375#[repr(transparent)]
1376#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1377pub struct WGPUCallbackMode(pub ::core::ffi::c_int);
1378pub const WGPUCompareFunction_WGPUCompareFunction_Undefined: WGPUCompareFunction =
1379    WGPUCompareFunction(0);
1380pub const WGPUCompareFunction_WGPUCompareFunction_Never: WGPUCompareFunction =
1381    WGPUCompareFunction(1);
1382pub const WGPUCompareFunction_WGPUCompareFunction_Less: WGPUCompareFunction =
1383    WGPUCompareFunction(2);
1384pub const WGPUCompareFunction_WGPUCompareFunction_Equal: WGPUCompareFunction =
1385    WGPUCompareFunction(3);
1386pub const WGPUCompareFunction_WGPUCompareFunction_LessEqual: WGPUCompareFunction =
1387    WGPUCompareFunction(4);
1388pub const WGPUCompareFunction_WGPUCompareFunction_Greater: WGPUCompareFunction =
1389    WGPUCompareFunction(5);
1390pub const WGPUCompareFunction_WGPUCompareFunction_NotEqual: WGPUCompareFunction =
1391    WGPUCompareFunction(6);
1392pub const WGPUCompareFunction_WGPUCompareFunction_GreaterEqual: WGPUCompareFunction =
1393    WGPUCompareFunction(7);
1394pub const WGPUCompareFunction_WGPUCompareFunction_Always: WGPUCompareFunction =
1395    WGPUCompareFunction(8);
1396pub const WGPUCompareFunction_WGPUCompareFunction_Force32: WGPUCompareFunction =
1397    WGPUCompareFunction(2147483647);
1398#[repr(transparent)]
1399#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1400pub struct WGPUCompareFunction(pub ::core::ffi::c_int);
1401pub const WGPUCompilationInfoRequestStatus_WGPUCompilationInfoRequestStatus_Success:
1402    WGPUCompilationInfoRequestStatus = WGPUCompilationInfoRequestStatus(1);
1403pub const WGPUCompilationInfoRequestStatus_WGPUCompilationInfoRequestStatus_CallbackCancelled:
1404    WGPUCompilationInfoRequestStatus = WGPUCompilationInfoRequestStatus(2);
1405pub const WGPUCompilationInfoRequestStatus_WGPUCompilationInfoRequestStatus_Force32:
1406    WGPUCompilationInfoRequestStatus = WGPUCompilationInfoRequestStatus(2147483647);
1407#[repr(transparent)]
1408#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1409pub struct WGPUCompilationInfoRequestStatus(pub ::core::ffi::c_int);
1410pub const WGPUCompilationMessageType_WGPUCompilationMessageType_Error: WGPUCompilationMessageType =
1411    WGPUCompilationMessageType(1);
1412pub const WGPUCompilationMessageType_WGPUCompilationMessageType_Warning:
1413    WGPUCompilationMessageType = WGPUCompilationMessageType(2);
1414pub const WGPUCompilationMessageType_WGPUCompilationMessageType_Info: WGPUCompilationMessageType =
1415    WGPUCompilationMessageType(3);
1416pub const WGPUCompilationMessageType_WGPUCompilationMessageType_Force32:
1417    WGPUCompilationMessageType = WGPUCompilationMessageType(2147483647);
1418#[repr(transparent)]
1419#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1420pub struct WGPUCompilationMessageType(pub ::core::ffi::c_int);
1421pub const WGPUCompositeAlphaMode_WGPUCompositeAlphaMode_Auto: WGPUCompositeAlphaMode =
1422    WGPUCompositeAlphaMode(0);
1423pub const WGPUCompositeAlphaMode_WGPUCompositeAlphaMode_Opaque: WGPUCompositeAlphaMode =
1424    WGPUCompositeAlphaMode(1);
1425pub const WGPUCompositeAlphaMode_WGPUCompositeAlphaMode_Premultiplied: WGPUCompositeAlphaMode =
1426    WGPUCompositeAlphaMode(2);
1427pub const WGPUCompositeAlphaMode_WGPUCompositeAlphaMode_Unpremultiplied: WGPUCompositeAlphaMode =
1428    WGPUCompositeAlphaMode(3);
1429pub const WGPUCompositeAlphaMode_WGPUCompositeAlphaMode_Inherit: WGPUCompositeAlphaMode =
1430    WGPUCompositeAlphaMode(4);
1431pub const WGPUCompositeAlphaMode_WGPUCompositeAlphaMode_Force32: WGPUCompositeAlphaMode =
1432    WGPUCompositeAlphaMode(2147483647);
1433#[repr(transparent)]
1434#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1435pub struct WGPUCompositeAlphaMode(pub ::core::ffi::c_int);
1436pub const WGPUCreatePipelineAsyncStatus_WGPUCreatePipelineAsyncStatus_Success:
1437    WGPUCreatePipelineAsyncStatus = WGPUCreatePipelineAsyncStatus(1);
1438pub const WGPUCreatePipelineAsyncStatus_WGPUCreatePipelineAsyncStatus_CallbackCancelled:
1439    WGPUCreatePipelineAsyncStatus = WGPUCreatePipelineAsyncStatus(2);
1440pub const WGPUCreatePipelineAsyncStatus_WGPUCreatePipelineAsyncStatus_ValidationError:
1441    WGPUCreatePipelineAsyncStatus = WGPUCreatePipelineAsyncStatus(3);
1442pub const WGPUCreatePipelineAsyncStatus_WGPUCreatePipelineAsyncStatus_InternalError:
1443    WGPUCreatePipelineAsyncStatus = WGPUCreatePipelineAsyncStatus(4);
1444pub const WGPUCreatePipelineAsyncStatus_WGPUCreatePipelineAsyncStatus_Force32:
1445    WGPUCreatePipelineAsyncStatus = WGPUCreatePipelineAsyncStatus(2147483647);
1446#[repr(transparent)]
1447#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1448pub struct WGPUCreatePipelineAsyncStatus(pub ::core::ffi::c_int);
1449pub const WGPUCullMode_WGPUCullMode_Undefined: WGPUCullMode = WGPUCullMode(0);
1450pub const WGPUCullMode_WGPUCullMode_None: WGPUCullMode = WGPUCullMode(1);
1451pub const WGPUCullMode_WGPUCullMode_Front: WGPUCullMode = WGPUCullMode(2);
1452pub const WGPUCullMode_WGPUCullMode_Back: WGPUCullMode = WGPUCullMode(3);
1453pub const WGPUCullMode_WGPUCullMode_Force32: WGPUCullMode = WGPUCullMode(2147483647);
1454#[repr(transparent)]
1455#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1456pub struct WGPUCullMode(pub ::core::ffi::c_int);
1457pub const WGPUDeviceLostReason_WGPUDeviceLostReason_Unknown: WGPUDeviceLostReason =
1458    WGPUDeviceLostReason(1);
1459pub const WGPUDeviceLostReason_WGPUDeviceLostReason_Destroyed: WGPUDeviceLostReason =
1460    WGPUDeviceLostReason(2);
1461pub const WGPUDeviceLostReason_WGPUDeviceLostReason_CallbackCancelled: WGPUDeviceLostReason =
1462    WGPUDeviceLostReason(3);
1463pub const WGPUDeviceLostReason_WGPUDeviceLostReason_FailedCreation: WGPUDeviceLostReason =
1464    WGPUDeviceLostReason(4);
1465pub const WGPUDeviceLostReason_WGPUDeviceLostReason_Force32: WGPUDeviceLostReason =
1466    WGPUDeviceLostReason(2147483647);
1467#[repr(transparent)]
1468#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1469pub struct WGPUDeviceLostReason(pub ::core::ffi::c_int);
1470pub const WGPUErrorFilter_WGPUErrorFilter_Validation: WGPUErrorFilter = WGPUErrorFilter(1);
1471pub const WGPUErrorFilter_WGPUErrorFilter_OutOfMemory: WGPUErrorFilter = WGPUErrorFilter(2);
1472pub const WGPUErrorFilter_WGPUErrorFilter_Internal: WGPUErrorFilter = WGPUErrorFilter(3);
1473pub const WGPUErrorFilter_WGPUErrorFilter_Force32: WGPUErrorFilter = WGPUErrorFilter(2147483647);
1474#[repr(transparent)]
1475#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1476pub struct WGPUErrorFilter(pub ::core::ffi::c_int);
1477pub const WGPUErrorType_WGPUErrorType_NoError: WGPUErrorType = WGPUErrorType(1);
1478pub const WGPUErrorType_WGPUErrorType_Validation: WGPUErrorType = WGPUErrorType(2);
1479pub const WGPUErrorType_WGPUErrorType_OutOfMemory: WGPUErrorType = WGPUErrorType(3);
1480pub const WGPUErrorType_WGPUErrorType_Internal: WGPUErrorType = WGPUErrorType(4);
1481pub const WGPUErrorType_WGPUErrorType_Unknown: WGPUErrorType = WGPUErrorType(5);
1482pub const WGPUErrorType_WGPUErrorType_Force32: WGPUErrorType = WGPUErrorType(2147483647);
1483#[repr(transparent)]
1484#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1485pub struct WGPUErrorType(pub ::core::ffi::c_int);
1486pub const WGPUExternalTextureRotation_WGPUExternalTextureRotation_Rotate0Degrees:
1487    WGPUExternalTextureRotation = WGPUExternalTextureRotation(1);
1488pub const WGPUExternalTextureRotation_WGPUExternalTextureRotation_Rotate90Degrees:
1489    WGPUExternalTextureRotation = WGPUExternalTextureRotation(2);
1490pub const WGPUExternalTextureRotation_WGPUExternalTextureRotation_Rotate180Degrees:
1491    WGPUExternalTextureRotation = WGPUExternalTextureRotation(3);
1492pub const WGPUExternalTextureRotation_WGPUExternalTextureRotation_Rotate270Degrees:
1493    WGPUExternalTextureRotation = WGPUExternalTextureRotation(4);
1494pub const WGPUExternalTextureRotation_WGPUExternalTextureRotation_Force32:
1495    WGPUExternalTextureRotation = WGPUExternalTextureRotation(2147483647);
1496#[repr(transparent)]
1497#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1498pub struct WGPUExternalTextureRotation(pub ::core::ffi::c_int);
1499pub const WGPUFeatureLevel_WGPUFeatureLevel_Undefined: WGPUFeatureLevel = WGPUFeatureLevel(0);
1500pub const WGPUFeatureLevel_WGPUFeatureLevel_Compatibility: WGPUFeatureLevel = WGPUFeatureLevel(1);
1501pub const WGPUFeatureLevel_WGPUFeatureLevel_Core: WGPUFeatureLevel = WGPUFeatureLevel(2);
1502pub const WGPUFeatureLevel_WGPUFeatureLevel_Force32: WGPUFeatureLevel =
1503    WGPUFeatureLevel(2147483647);
1504#[repr(transparent)]
1505#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1506pub struct WGPUFeatureLevel(pub ::core::ffi::c_int);
1507pub const WGPUFeatureName_WGPUFeatureName_DepthClipControl: WGPUFeatureName = WGPUFeatureName(1);
1508pub const WGPUFeatureName_WGPUFeatureName_Depth32FloatStencil8: WGPUFeatureName =
1509    WGPUFeatureName(2);
1510pub const WGPUFeatureName_WGPUFeatureName_TimestampQuery: WGPUFeatureName = WGPUFeatureName(3);
1511pub const WGPUFeatureName_WGPUFeatureName_TextureCompressionBC: WGPUFeatureName =
1512    WGPUFeatureName(4);
1513pub const WGPUFeatureName_WGPUFeatureName_TextureCompressionBCSliced3D: WGPUFeatureName =
1514    WGPUFeatureName(5);
1515pub const WGPUFeatureName_WGPUFeatureName_TextureCompressionETC2: WGPUFeatureName =
1516    WGPUFeatureName(6);
1517pub const WGPUFeatureName_WGPUFeatureName_TextureCompressionASTC: WGPUFeatureName =
1518    WGPUFeatureName(7);
1519pub const WGPUFeatureName_WGPUFeatureName_TextureCompressionASTCSliced3D: WGPUFeatureName =
1520    WGPUFeatureName(8);
1521pub const WGPUFeatureName_WGPUFeatureName_IndirectFirstInstance: WGPUFeatureName =
1522    WGPUFeatureName(9);
1523pub const WGPUFeatureName_WGPUFeatureName_ShaderF16: WGPUFeatureName = WGPUFeatureName(10);
1524pub const WGPUFeatureName_WGPUFeatureName_RG11B10UfloatRenderable: WGPUFeatureName =
1525    WGPUFeatureName(11);
1526pub const WGPUFeatureName_WGPUFeatureName_BGRA8UnormStorage: WGPUFeatureName = WGPUFeatureName(12);
1527pub const WGPUFeatureName_WGPUFeatureName_Float32Filterable: WGPUFeatureName = WGPUFeatureName(13);
1528pub const WGPUFeatureName_WGPUFeatureName_Float32Blendable: WGPUFeatureName = WGPUFeatureName(14);
1529pub const WGPUFeatureName_WGPUFeatureName_ClipDistances: WGPUFeatureName = WGPUFeatureName(15);
1530pub const WGPUFeatureName_WGPUFeatureName_DualSourceBlending: WGPUFeatureName = WGPUFeatureName(16);
1531pub const WGPUFeatureName_WGPUFeatureName_Subgroups: WGPUFeatureName = WGPUFeatureName(17);
1532pub const WGPUFeatureName_WGPUFeatureName_CoreFeaturesAndLimits: WGPUFeatureName =
1533    WGPUFeatureName(18);
1534pub const WGPUFeatureName_WGPUFeatureName_DawnInternalUsages: WGPUFeatureName =
1535    WGPUFeatureName(327680);
1536pub const WGPUFeatureName_WGPUFeatureName_DawnMultiPlanarFormats: WGPUFeatureName =
1537    WGPUFeatureName(327681);
1538pub const WGPUFeatureName_WGPUFeatureName_DawnNative: WGPUFeatureName = WGPUFeatureName(327682);
1539pub const WGPUFeatureName_WGPUFeatureName_ChromiumExperimentalTimestampQueryInsidePasses:
1540    WGPUFeatureName = WGPUFeatureName(327683);
1541pub const WGPUFeatureName_WGPUFeatureName_ImplicitDeviceSynchronization: WGPUFeatureName =
1542    WGPUFeatureName(327684);
1543pub const WGPUFeatureName_WGPUFeatureName_TransientAttachments: WGPUFeatureName =
1544    WGPUFeatureName(327686);
1545pub const WGPUFeatureName_WGPUFeatureName_MSAARenderToSingleSampled: WGPUFeatureName =
1546    WGPUFeatureName(327687);
1547pub const WGPUFeatureName_WGPUFeatureName_D3D11MultithreadProtected: WGPUFeatureName =
1548    WGPUFeatureName(327688);
1549pub const WGPUFeatureName_WGPUFeatureName_ANGLETextureSharing: WGPUFeatureName =
1550    WGPUFeatureName(327689);
1551pub const WGPUFeatureName_WGPUFeatureName_PixelLocalStorageCoherent: WGPUFeatureName =
1552    WGPUFeatureName(327690);
1553pub const WGPUFeatureName_WGPUFeatureName_PixelLocalStorageNonCoherent: WGPUFeatureName =
1554    WGPUFeatureName(327691);
1555pub const WGPUFeatureName_WGPUFeatureName_Unorm16TextureFormats: WGPUFeatureName =
1556    WGPUFeatureName(327692);
1557pub const WGPUFeatureName_WGPUFeatureName_Snorm16TextureFormats: WGPUFeatureName =
1558    WGPUFeatureName(327693);
1559pub const WGPUFeatureName_WGPUFeatureName_MultiPlanarFormatExtendedUsages: WGPUFeatureName =
1560    WGPUFeatureName(327694);
1561pub const WGPUFeatureName_WGPUFeatureName_MultiPlanarFormatP010: WGPUFeatureName =
1562    WGPUFeatureName(327695);
1563pub const WGPUFeatureName_WGPUFeatureName_HostMappedPointer: WGPUFeatureName =
1564    WGPUFeatureName(327696);
1565pub const WGPUFeatureName_WGPUFeatureName_MultiPlanarRenderTargets: WGPUFeatureName =
1566    WGPUFeatureName(327697);
1567pub const WGPUFeatureName_WGPUFeatureName_MultiPlanarFormatNv12a: WGPUFeatureName =
1568    WGPUFeatureName(327698);
1569pub const WGPUFeatureName_WGPUFeatureName_FramebufferFetch: WGPUFeatureName =
1570    WGPUFeatureName(327699);
1571pub const WGPUFeatureName_WGPUFeatureName_BufferMapExtendedUsages: WGPUFeatureName =
1572    WGPUFeatureName(327700);
1573pub const WGPUFeatureName_WGPUFeatureName_AdapterPropertiesMemoryHeaps: WGPUFeatureName =
1574    WGPUFeatureName(327701);
1575pub const WGPUFeatureName_WGPUFeatureName_AdapterPropertiesD3D: WGPUFeatureName =
1576    WGPUFeatureName(327702);
1577pub const WGPUFeatureName_WGPUFeatureName_AdapterPropertiesVk: WGPUFeatureName =
1578    WGPUFeatureName(327703);
1579pub const WGPUFeatureName_WGPUFeatureName_R8UnormStorage: WGPUFeatureName = WGPUFeatureName(327704);
1580pub const WGPUFeatureName_WGPUFeatureName_DawnFormatCapabilities: WGPUFeatureName =
1581    WGPUFeatureName(327705);
1582pub const WGPUFeatureName_WGPUFeatureName_DawnDrmFormatCapabilities: WGPUFeatureName =
1583    WGPUFeatureName(327706);
1584pub const WGPUFeatureName_WGPUFeatureName_Norm16TextureFormats: WGPUFeatureName =
1585    WGPUFeatureName(327707);
1586pub const WGPUFeatureName_WGPUFeatureName_MultiPlanarFormatNv16: WGPUFeatureName =
1587    WGPUFeatureName(327708);
1588pub const WGPUFeatureName_WGPUFeatureName_MultiPlanarFormatNv24: WGPUFeatureName =
1589    WGPUFeatureName(327709);
1590pub const WGPUFeatureName_WGPUFeatureName_MultiPlanarFormatP210: WGPUFeatureName =
1591    WGPUFeatureName(327710);
1592pub const WGPUFeatureName_WGPUFeatureName_MultiPlanarFormatP410: WGPUFeatureName =
1593    WGPUFeatureName(327711);
1594pub const WGPUFeatureName_WGPUFeatureName_SharedTextureMemoryVkDedicatedAllocation:
1595    WGPUFeatureName = WGPUFeatureName(327712);
1596pub const WGPUFeatureName_WGPUFeatureName_SharedTextureMemoryAHardwareBuffer: WGPUFeatureName =
1597    WGPUFeatureName(327713);
1598pub const WGPUFeatureName_WGPUFeatureName_SharedTextureMemoryDmaBuf: WGPUFeatureName =
1599    WGPUFeatureName(327714);
1600pub const WGPUFeatureName_WGPUFeatureName_SharedTextureMemoryOpaqueFD: WGPUFeatureName =
1601    WGPUFeatureName(327715);
1602pub const WGPUFeatureName_WGPUFeatureName_SharedTextureMemoryZirconHandle: WGPUFeatureName =
1603    WGPUFeatureName(327716);
1604pub const WGPUFeatureName_WGPUFeatureName_SharedTextureMemoryDXGISharedHandle: WGPUFeatureName =
1605    WGPUFeatureName(327717);
1606pub const WGPUFeatureName_WGPUFeatureName_SharedTextureMemoryD3D11Texture2D: WGPUFeatureName =
1607    WGPUFeatureName(327718);
1608pub const WGPUFeatureName_WGPUFeatureName_SharedTextureMemoryIOSurface: WGPUFeatureName =
1609    WGPUFeatureName(327719);
1610pub const WGPUFeatureName_WGPUFeatureName_SharedTextureMemoryEGLImage: WGPUFeatureName =
1611    WGPUFeatureName(327720);
1612pub const WGPUFeatureName_WGPUFeatureName_SharedFenceVkSemaphoreOpaqueFD: WGPUFeatureName =
1613    WGPUFeatureName(327721);
1614pub const WGPUFeatureName_WGPUFeatureName_SharedFenceSyncFD: WGPUFeatureName =
1615    WGPUFeatureName(327722);
1616pub const WGPUFeatureName_WGPUFeatureName_SharedFenceVkSemaphoreZirconHandle: WGPUFeatureName =
1617    WGPUFeatureName(327723);
1618pub const WGPUFeatureName_WGPUFeatureName_SharedFenceDXGISharedHandle: WGPUFeatureName =
1619    WGPUFeatureName(327724);
1620pub const WGPUFeatureName_WGPUFeatureName_SharedFenceMTLSharedEvent: WGPUFeatureName =
1621    WGPUFeatureName(327725);
1622pub const WGPUFeatureName_WGPUFeatureName_SharedBufferMemoryD3D12Resource: WGPUFeatureName =
1623    WGPUFeatureName(327726);
1624pub const WGPUFeatureName_WGPUFeatureName_StaticSamplers: WGPUFeatureName = WGPUFeatureName(327727);
1625pub const WGPUFeatureName_WGPUFeatureName_YCbCrVulkanSamplers: WGPUFeatureName =
1626    WGPUFeatureName(327728);
1627pub const WGPUFeatureName_WGPUFeatureName_ShaderModuleCompilationOptions: WGPUFeatureName =
1628    WGPUFeatureName(327729);
1629pub const WGPUFeatureName_WGPUFeatureName_DawnLoadResolveTexture: WGPUFeatureName =
1630    WGPUFeatureName(327730);
1631pub const WGPUFeatureName_WGPUFeatureName_DawnPartialLoadResolveTexture: WGPUFeatureName =
1632    WGPUFeatureName(327731);
1633pub const WGPUFeatureName_WGPUFeatureName_MultiDrawIndirect: WGPUFeatureName =
1634    WGPUFeatureName(327732);
1635pub const WGPUFeatureName_WGPUFeatureName_DawnTexelCopyBufferRowAlignment: WGPUFeatureName =
1636    WGPUFeatureName(327733);
1637pub const WGPUFeatureName_WGPUFeatureName_FlexibleTextureViews: WGPUFeatureName =
1638    WGPUFeatureName(327734);
1639pub const WGPUFeatureName_WGPUFeatureName_ChromiumExperimentalSubgroupMatrix: WGPUFeatureName =
1640    WGPUFeatureName(327735);
1641pub const WGPUFeatureName_WGPUFeatureName_SharedFenceEGLSync: WGPUFeatureName =
1642    WGPUFeatureName(327736);
1643pub const WGPUFeatureName_WGPUFeatureName_DawnDeviceAllocatorControl: WGPUFeatureName =
1644    WGPUFeatureName(327737);
1645pub const WGPUFeatureName_WGPUFeatureName_Force32: WGPUFeatureName = WGPUFeatureName(2147483647);
1646#[repr(transparent)]
1647#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1648pub struct WGPUFeatureName(pub ::core::ffi::c_int);
1649pub const WGPUFilterMode_WGPUFilterMode_Undefined: WGPUFilterMode = WGPUFilterMode(0);
1650pub const WGPUFilterMode_WGPUFilterMode_Nearest: WGPUFilterMode = WGPUFilterMode(1);
1651pub const WGPUFilterMode_WGPUFilterMode_Linear: WGPUFilterMode = WGPUFilterMode(2);
1652pub const WGPUFilterMode_WGPUFilterMode_Force32: WGPUFilterMode = WGPUFilterMode(2147483647);
1653#[repr(transparent)]
1654#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1655pub struct WGPUFilterMode(pub ::core::ffi::c_int);
1656pub const WGPUFrontFace_WGPUFrontFace_Undefined: WGPUFrontFace = WGPUFrontFace(0);
1657pub const WGPUFrontFace_WGPUFrontFace_CCW: WGPUFrontFace = WGPUFrontFace(1);
1658pub const WGPUFrontFace_WGPUFrontFace_CW: WGPUFrontFace = WGPUFrontFace(2);
1659pub const WGPUFrontFace_WGPUFrontFace_Force32: WGPUFrontFace = WGPUFrontFace(2147483647);
1660#[repr(transparent)]
1661#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1662pub struct WGPUFrontFace(pub ::core::ffi::c_int);
1663pub const WGPUIndexFormat_WGPUIndexFormat_Undefined: WGPUIndexFormat = WGPUIndexFormat(0);
1664pub const WGPUIndexFormat_WGPUIndexFormat_Uint16: WGPUIndexFormat = WGPUIndexFormat(1);
1665pub const WGPUIndexFormat_WGPUIndexFormat_Uint32: WGPUIndexFormat = WGPUIndexFormat(2);
1666pub const WGPUIndexFormat_WGPUIndexFormat_Force32: WGPUIndexFormat = WGPUIndexFormat(2147483647);
1667#[repr(transparent)]
1668#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1669pub struct WGPUIndexFormat(pub ::core::ffi::c_int);
1670pub const WGPULoadOp_WGPULoadOp_Undefined: WGPULoadOp = WGPULoadOp(0);
1671pub const WGPULoadOp_WGPULoadOp_Load: WGPULoadOp = WGPULoadOp(1);
1672pub const WGPULoadOp_WGPULoadOp_Clear: WGPULoadOp = WGPULoadOp(2);
1673pub const WGPULoadOp_WGPULoadOp_ExpandResolveTexture: WGPULoadOp = WGPULoadOp(327683);
1674pub const WGPULoadOp_WGPULoadOp_Force32: WGPULoadOp = WGPULoadOp(2147483647);
1675#[repr(transparent)]
1676#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1677pub struct WGPULoadOp(pub ::core::ffi::c_int);
1678pub const WGPULoggingType_WGPULoggingType_Verbose: WGPULoggingType = WGPULoggingType(1);
1679pub const WGPULoggingType_WGPULoggingType_Info: WGPULoggingType = WGPULoggingType(2);
1680pub const WGPULoggingType_WGPULoggingType_Warning: WGPULoggingType = WGPULoggingType(3);
1681pub const WGPULoggingType_WGPULoggingType_Error: WGPULoggingType = WGPULoggingType(4);
1682pub const WGPULoggingType_WGPULoggingType_Force32: WGPULoggingType = WGPULoggingType(2147483647);
1683#[repr(transparent)]
1684#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1685pub struct WGPULoggingType(pub ::core::ffi::c_int);
1686pub const WGPUMapAsyncStatus_WGPUMapAsyncStatus_Success: WGPUMapAsyncStatus = WGPUMapAsyncStatus(1);
1687pub const WGPUMapAsyncStatus_WGPUMapAsyncStatus_CallbackCancelled: WGPUMapAsyncStatus =
1688    WGPUMapAsyncStatus(2);
1689pub const WGPUMapAsyncStatus_WGPUMapAsyncStatus_Error: WGPUMapAsyncStatus = WGPUMapAsyncStatus(3);
1690pub const WGPUMapAsyncStatus_WGPUMapAsyncStatus_Aborted: WGPUMapAsyncStatus = WGPUMapAsyncStatus(4);
1691pub const WGPUMapAsyncStatus_WGPUMapAsyncStatus_Force32: WGPUMapAsyncStatus =
1692    WGPUMapAsyncStatus(2147483647);
1693#[repr(transparent)]
1694#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1695pub struct WGPUMapAsyncStatus(pub ::core::ffi::c_int);
1696pub const WGPUMipmapFilterMode_WGPUMipmapFilterMode_Undefined: WGPUMipmapFilterMode =
1697    WGPUMipmapFilterMode(0);
1698pub const WGPUMipmapFilterMode_WGPUMipmapFilterMode_Nearest: WGPUMipmapFilterMode =
1699    WGPUMipmapFilterMode(1);
1700pub const WGPUMipmapFilterMode_WGPUMipmapFilterMode_Linear: WGPUMipmapFilterMode =
1701    WGPUMipmapFilterMode(2);
1702pub const WGPUMipmapFilterMode_WGPUMipmapFilterMode_Force32: WGPUMipmapFilterMode =
1703    WGPUMipmapFilterMode(2147483647);
1704#[repr(transparent)]
1705#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1706pub struct WGPUMipmapFilterMode(pub ::core::ffi::c_int);
1707pub const WGPUOptionalBool_WGPUOptionalBool_False: WGPUOptionalBool = WGPUOptionalBool(0);
1708pub const WGPUOptionalBool_WGPUOptionalBool_True: WGPUOptionalBool = WGPUOptionalBool(1);
1709pub const WGPUOptionalBool_WGPUOptionalBool_Undefined: WGPUOptionalBool = WGPUOptionalBool(2);
1710pub const WGPUOptionalBool_WGPUOptionalBool_Force32: WGPUOptionalBool =
1711    WGPUOptionalBool(2147483647);
1712#[repr(transparent)]
1713#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1714pub struct WGPUOptionalBool(pub ::core::ffi::c_int);
1715pub const WGPUPopErrorScopeStatus_WGPUPopErrorScopeStatus_Success: WGPUPopErrorScopeStatus =
1716    WGPUPopErrorScopeStatus(1);
1717pub const WGPUPopErrorScopeStatus_WGPUPopErrorScopeStatus_CallbackCancelled:
1718    WGPUPopErrorScopeStatus = WGPUPopErrorScopeStatus(2);
1719pub const WGPUPopErrorScopeStatus_WGPUPopErrorScopeStatus_Error: WGPUPopErrorScopeStatus =
1720    WGPUPopErrorScopeStatus(3);
1721pub const WGPUPopErrorScopeStatus_WGPUPopErrorScopeStatus_Force32: WGPUPopErrorScopeStatus =
1722    WGPUPopErrorScopeStatus(2147483647);
1723#[repr(transparent)]
1724#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1725pub struct WGPUPopErrorScopeStatus(pub ::core::ffi::c_int);
1726pub const WGPUPowerPreference_WGPUPowerPreference_Undefined: WGPUPowerPreference =
1727    WGPUPowerPreference(0);
1728pub const WGPUPowerPreference_WGPUPowerPreference_LowPower: WGPUPowerPreference =
1729    WGPUPowerPreference(1);
1730pub const WGPUPowerPreference_WGPUPowerPreference_HighPerformance: WGPUPowerPreference =
1731    WGPUPowerPreference(2);
1732pub const WGPUPowerPreference_WGPUPowerPreference_Force32: WGPUPowerPreference =
1733    WGPUPowerPreference(2147483647);
1734#[repr(transparent)]
1735#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1736pub struct WGPUPowerPreference(pub ::core::ffi::c_int);
1737pub const WGPUPredefinedColorSpace_WGPUPredefinedColorSpace_SRGB: WGPUPredefinedColorSpace =
1738    WGPUPredefinedColorSpace(1);
1739pub const WGPUPredefinedColorSpace_WGPUPredefinedColorSpace_DisplayP3: WGPUPredefinedColorSpace =
1740    WGPUPredefinedColorSpace(2);
1741pub const WGPUPredefinedColorSpace_WGPUPredefinedColorSpace_Force32: WGPUPredefinedColorSpace =
1742    WGPUPredefinedColorSpace(2147483647);
1743#[repr(transparent)]
1744#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1745pub struct WGPUPredefinedColorSpace(pub ::core::ffi::c_int);
1746pub const WGPUPresentMode_WGPUPresentMode_Undefined: WGPUPresentMode = WGPUPresentMode(0);
1747pub const WGPUPresentMode_WGPUPresentMode_Fifo: WGPUPresentMode = WGPUPresentMode(1);
1748pub const WGPUPresentMode_WGPUPresentMode_FifoRelaxed: WGPUPresentMode = WGPUPresentMode(2);
1749pub const WGPUPresentMode_WGPUPresentMode_Immediate: WGPUPresentMode = WGPUPresentMode(3);
1750pub const WGPUPresentMode_WGPUPresentMode_Mailbox: WGPUPresentMode = WGPUPresentMode(4);
1751pub const WGPUPresentMode_WGPUPresentMode_Force32: WGPUPresentMode = WGPUPresentMode(2147483647);
1752#[repr(transparent)]
1753#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1754pub struct WGPUPresentMode(pub ::core::ffi::c_int);
1755pub const WGPUPrimitiveTopology_WGPUPrimitiveTopology_Undefined: WGPUPrimitiveTopology =
1756    WGPUPrimitiveTopology(0);
1757pub const WGPUPrimitiveTopology_WGPUPrimitiveTopology_PointList: WGPUPrimitiveTopology =
1758    WGPUPrimitiveTopology(1);
1759pub const WGPUPrimitiveTopology_WGPUPrimitiveTopology_LineList: WGPUPrimitiveTopology =
1760    WGPUPrimitiveTopology(2);
1761pub const WGPUPrimitiveTopology_WGPUPrimitiveTopology_LineStrip: WGPUPrimitiveTopology =
1762    WGPUPrimitiveTopology(3);
1763pub const WGPUPrimitiveTopology_WGPUPrimitiveTopology_TriangleList: WGPUPrimitiveTopology =
1764    WGPUPrimitiveTopology(4);
1765pub const WGPUPrimitiveTopology_WGPUPrimitiveTopology_TriangleStrip: WGPUPrimitiveTopology =
1766    WGPUPrimitiveTopology(5);
1767pub const WGPUPrimitiveTopology_WGPUPrimitiveTopology_Force32: WGPUPrimitiveTopology =
1768    WGPUPrimitiveTopology(2147483647);
1769#[repr(transparent)]
1770#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1771pub struct WGPUPrimitiveTopology(pub ::core::ffi::c_int);
1772pub const WGPUQueryType_WGPUQueryType_Occlusion: WGPUQueryType = WGPUQueryType(1);
1773pub const WGPUQueryType_WGPUQueryType_Timestamp: WGPUQueryType = WGPUQueryType(2);
1774pub const WGPUQueryType_WGPUQueryType_Force32: WGPUQueryType = WGPUQueryType(2147483647);
1775#[repr(transparent)]
1776#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1777pub struct WGPUQueryType(pub ::core::ffi::c_int);
1778pub const WGPUQueueWorkDoneStatus_WGPUQueueWorkDoneStatus_Success: WGPUQueueWorkDoneStatus =
1779    WGPUQueueWorkDoneStatus(1);
1780pub const WGPUQueueWorkDoneStatus_WGPUQueueWorkDoneStatus_CallbackCancelled:
1781    WGPUQueueWorkDoneStatus = WGPUQueueWorkDoneStatus(2);
1782pub const WGPUQueueWorkDoneStatus_WGPUQueueWorkDoneStatus_Error: WGPUQueueWorkDoneStatus =
1783    WGPUQueueWorkDoneStatus(3);
1784pub const WGPUQueueWorkDoneStatus_WGPUQueueWorkDoneStatus_Force32: WGPUQueueWorkDoneStatus =
1785    WGPUQueueWorkDoneStatus(2147483647);
1786#[repr(transparent)]
1787#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1788pub struct WGPUQueueWorkDoneStatus(pub ::core::ffi::c_int);
1789pub const WGPURequestAdapterStatus_WGPURequestAdapterStatus_Success: WGPURequestAdapterStatus =
1790    WGPURequestAdapterStatus(1);
1791pub const WGPURequestAdapterStatus_WGPURequestAdapterStatus_CallbackCancelled:
1792    WGPURequestAdapterStatus = WGPURequestAdapterStatus(2);
1793pub const WGPURequestAdapterStatus_WGPURequestAdapterStatus_Unavailable: WGPURequestAdapterStatus =
1794    WGPURequestAdapterStatus(3);
1795pub const WGPURequestAdapterStatus_WGPURequestAdapterStatus_Error: WGPURequestAdapterStatus =
1796    WGPURequestAdapterStatus(4);
1797pub const WGPURequestAdapterStatus_WGPURequestAdapterStatus_Force32: WGPURequestAdapterStatus =
1798    WGPURequestAdapterStatus(2147483647);
1799#[repr(transparent)]
1800#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1801pub struct WGPURequestAdapterStatus(pub ::core::ffi::c_int);
1802pub const WGPURequestDeviceStatus_WGPURequestDeviceStatus_Success: WGPURequestDeviceStatus =
1803    WGPURequestDeviceStatus(1);
1804pub const WGPURequestDeviceStatus_WGPURequestDeviceStatus_CallbackCancelled:
1805    WGPURequestDeviceStatus = WGPURequestDeviceStatus(2);
1806pub const WGPURequestDeviceStatus_WGPURequestDeviceStatus_Error: WGPURequestDeviceStatus =
1807    WGPURequestDeviceStatus(3);
1808pub const WGPURequestDeviceStatus_WGPURequestDeviceStatus_Force32: WGPURequestDeviceStatus =
1809    WGPURequestDeviceStatus(2147483647);
1810#[repr(transparent)]
1811#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1812pub struct WGPURequestDeviceStatus(pub ::core::ffi::c_int);
1813pub const WGPUSamplerBindingType_WGPUSamplerBindingType_BindingNotUsed: WGPUSamplerBindingType =
1814    WGPUSamplerBindingType(0);
1815pub const WGPUSamplerBindingType_WGPUSamplerBindingType_Undefined: WGPUSamplerBindingType =
1816    WGPUSamplerBindingType(1);
1817pub const WGPUSamplerBindingType_WGPUSamplerBindingType_Filtering: WGPUSamplerBindingType =
1818    WGPUSamplerBindingType(2);
1819pub const WGPUSamplerBindingType_WGPUSamplerBindingType_NonFiltering: WGPUSamplerBindingType =
1820    WGPUSamplerBindingType(3);
1821pub const WGPUSamplerBindingType_WGPUSamplerBindingType_Comparison: WGPUSamplerBindingType =
1822    WGPUSamplerBindingType(4);
1823pub const WGPUSamplerBindingType_WGPUSamplerBindingType_Force32: WGPUSamplerBindingType =
1824    WGPUSamplerBindingType(2147483647);
1825#[repr(transparent)]
1826#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1827pub struct WGPUSamplerBindingType(pub ::core::ffi::c_int);
1828pub const WGPUSharedFenceType_WGPUSharedFenceType_VkSemaphoreOpaqueFD: WGPUSharedFenceType =
1829    WGPUSharedFenceType(1);
1830pub const WGPUSharedFenceType_WGPUSharedFenceType_SyncFD: WGPUSharedFenceType =
1831    WGPUSharedFenceType(2);
1832pub const WGPUSharedFenceType_WGPUSharedFenceType_VkSemaphoreZirconHandle: WGPUSharedFenceType =
1833    WGPUSharedFenceType(3);
1834pub const WGPUSharedFenceType_WGPUSharedFenceType_DXGISharedHandle: WGPUSharedFenceType =
1835    WGPUSharedFenceType(4);
1836pub const WGPUSharedFenceType_WGPUSharedFenceType_MTLSharedEvent: WGPUSharedFenceType =
1837    WGPUSharedFenceType(5);
1838pub const WGPUSharedFenceType_WGPUSharedFenceType_EGLSync: WGPUSharedFenceType =
1839    WGPUSharedFenceType(6);
1840pub const WGPUSharedFenceType_WGPUSharedFenceType_Force32: WGPUSharedFenceType =
1841    WGPUSharedFenceType(2147483647);
1842#[repr(transparent)]
1843#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1844pub struct WGPUSharedFenceType(pub ::core::ffi::c_int);
1845pub const WGPUStatus_WGPUStatus_Success: WGPUStatus = WGPUStatus(1);
1846pub const WGPUStatus_WGPUStatus_Error: WGPUStatus = WGPUStatus(2);
1847pub const WGPUStatus_WGPUStatus_Force32: WGPUStatus = WGPUStatus(2147483647);
1848#[repr(transparent)]
1849#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1850pub struct WGPUStatus(pub ::core::ffi::c_int);
1851pub const WGPUStencilOperation_WGPUStencilOperation_Undefined: WGPUStencilOperation =
1852    WGPUStencilOperation(0);
1853pub const WGPUStencilOperation_WGPUStencilOperation_Keep: WGPUStencilOperation =
1854    WGPUStencilOperation(1);
1855pub const WGPUStencilOperation_WGPUStencilOperation_Zero: WGPUStencilOperation =
1856    WGPUStencilOperation(2);
1857pub const WGPUStencilOperation_WGPUStencilOperation_Replace: WGPUStencilOperation =
1858    WGPUStencilOperation(3);
1859pub const WGPUStencilOperation_WGPUStencilOperation_Invert: WGPUStencilOperation =
1860    WGPUStencilOperation(4);
1861pub const WGPUStencilOperation_WGPUStencilOperation_IncrementClamp: WGPUStencilOperation =
1862    WGPUStencilOperation(5);
1863pub const WGPUStencilOperation_WGPUStencilOperation_DecrementClamp: WGPUStencilOperation =
1864    WGPUStencilOperation(6);
1865pub const WGPUStencilOperation_WGPUStencilOperation_IncrementWrap: WGPUStencilOperation =
1866    WGPUStencilOperation(7);
1867pub const WGPUStencilOperation_WGPUStencilOperation_DecrementWrap: WGPUStencilOperation =
1868    WGPUStencilOperation(8);
1869pub const WGPUStencilOperation_WGPUStencilOperation_Force32: WGPUStencilOperation =
1870    WGPUStencilOperation(2147483647);
1871#[repr(transparent)]
1872#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1873pub struct WGPUStencilOperation(pub ::core::ffi::c_int);
1874pub const WGPUStorageTextureAccess_WGPUStorageTextureAccess_BindingNotUsed:
1875    WGPUStorageTextureAccess = WGPUStorageTextureAccess(0);
1876pub const WGPUStorageTextureAccess_WGPUStorageTextureAccess_Undefined: WGPUStorageTextureAccess =
1877    WGPUStorageTextureAccess(1);
1878pub const WGPUStorageTextureAccess_WGPUStorageTextureAccess_WriteOnly: WGPUStorageTextureAccess =
1879    WGPUStorageTextureAccess(2);
1880pub const WGPUStorageTextureAccess_WGPUStorageTextureAccess_ReadOnly: WGPUStorageTextureAccess =
1881    WGPUStorageTextureAccess(3);
1882pub const WGPUStorageTextureAccess_WGPUStorageTextureAccess_ReadWrite: WGPUStorageTextureAccess =
1883    WGPUStorageTextureAccess(4);
1884pub const WGPUStorageTextureAccess_WGPUStorageTextureAccess_Force32: WGPUStorageTextureAccess =
1885    WGPUStorageTextureAccess(2147483647);
1886#[repr(transparent)]
1887#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1888pub struct WGPUStorageTextureAccess(pub ::core::ffi::c_int);
1889pub const WGPUStoreOp_WGPUStoreOp_Undefined: WGPUStoreOp = WGPUStoreOp(0);
1890pub const WGPUStoreOp_WGPUStoreOp_Store: WGPUStoreOp = WGPUStoreOp(1);
1891pub const WGPUStoreOp_WGPUStoreOp_Discard: WGPUStoreOp = WGPUStoreOp(2);
1892pub const WGPUStoreOp_WGPUStoreOp_Force32: WGPUStoreOp = WGPUStoreOp(2147483647);
1893#[repr(transparent)]
1894#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
1895pub struct WGPUStoreOp(pub ::core::ffi::c_int);
1896pub const WGPUSType_WGPUSType_ShaderSourceSPIRV: WGPUSType = WGPUSType(1);
1897pub const WGPUSType_WGPUSType_ShaderSourceWGSL: WGPUSType = WGPUSType(2);
1898pub const WGPUSType_WGPUSType_RenderPassMaxDrawCount: WGPUSType = WGPUSType(3);
1899pub const WGPUSType_WGPUSType_SurfaceSourceMetalLayer: WGPUSType = WGPUSType(4);
1900pub const WGPUSType_WGPUSType_SurfaceSourceWindowsHWND: WGPUSType = WGPUSType(5);
1901pub const WGPUSType_WGPUSType_SurfaceSourceXlibWindow: WGPUSType = WGPUSType(6);
1902pub const WGPUSType_WGPUSType_SurfaceSourceWaylandSurface: WGPUSType = WGPUSType(7);
1903pub const WGPUSType_WGPUSType_SurfaceSourceAndroidNativeWindow: WGPUSType = WGPUSType(8);
1904pub const WGPUSType_WGPUSType_SurfaceSourceXCBWindow: WGPUSType = WGPUSType(9);
1905pub const WGPUSType_WGPUSType_SurfaceColorManagement: WGPUSType = WGPUSType(10);
1906pub const WGPUSType_WGPUSType_RequestAdapterWebXROptions: WGPUSType = WGPUSType(11);
1907pub const WGPUSType_WGPUSType_AdapterPropertiesSubgroups: WGPUSType = WGPUSType(12);
1908pub const WGPUSType_WGPUSType_BindGroupLayoutEntryArraySize: WGPUSType = WGPUSType(13);
1909pub const WGPUSType_WGPUSType_TextureBindingViewDimensionDescriptor: WGPUSType = WGPUSType(131072);
1910pub const WGPUSType_WGPUSType_EmscriptenSurfaceSourceCanvasHTMLSelector: WGPUSType =
1911    WGPUSType(262144);
1912pub const WGPUSType_WGPUSType_SurfaceDescriptorFromWindowsCoreWindow: WGPUSType = WGPUSType(327680);
1913pub const WGPUSType_WGPUSType_ExternalTextureBindingEntry: WGPUSType = WGPUSType(327681);
1914pub const WGPUSType_WGPUSType_ExternalTextureBindingLayout: WGPUSType = WGPUSType(327682);
1915pub const WGPUSType_WGPUSType_SurfaceDescriptorFromWindowsUWPSwapChainPanel: WGPUSType =
1916    WGPUSType(327683);
1917pub const WGPUSType_WGPUSType_DawnTextureInternalUsageDescriptor: WGPUSType = WGPUSType(327684);
1918pub const WGPUSType_WGPUSType_DawnEncoderInternalUsageDescriptor: WGPUSType = WGPUSType(327685);
1919pub const WGPUSType_WGPUSType_DawnInstanceDescriptor: WGPUSType = WGPUSType(327686);
1920pub const WGPUSType_WGPUSType_DawnCacheDeviceDescriptor: WGPUSType = WGPUSType(327687);
1921pub const WGPUSType_WGPUSType_DawnAdapterPropertiesPowerPreference: WGPUSType = WGPUSType(327688);
1922pub const WGPUSType_WGPUSType_DawnBufferDescriptorErrorInfoFromWireClient: WGPUSType =
1923    WGPUSType(327689);
1924pub const WGPUSType_WGPUSType_DawnTogglesDescriptor: WGPUSType = WGPUSType(327690);
1925pub const WGPUSType_WGPUSType_DawnShaderModuleSPIRVOptionsDescriptor: WGPUSType = WGPUSType(327691);
1926pub const WGPUSType_WGPUSType_RequestAdapterOptionsLUID: WGPUSType = WGPUSType(327692);
1927pub const WGPUSType_WGPUSType_RequestAdapterOptionsGetGLProc: WGPUSType = WGPUSType(327693);
1928pub const WGPUSType_WGPUSType_RequestAdapterOptionsD3D11Device: WGPUSType = WGPUSType(327694);
1929pub const WGPUSType_WGPUSType_DawnRenderPassColorAttachmentRenderToSingleSampled: WGPUSType =
1930    WGPUSType(327695);
1931pub const WGPUSType_WGPUSType_RenderPassPixelLocalStorage: WGPUSType = WGPUSType(327696);
1932pub const WGPUSType_WGPUSType_PipelineLayoutPixelLocalStorage: WGPUSType = WGPUSType(327697);
1933pub const WGPUSType_WGPUSType_BufferHostMappedPointer: WGPUSType = WGPUSType(327698);
1934pub const WGPUSType_WGPUSType_AdapterPropertiesMemoryHeaps: WGPUSType = WGPUSType(327699);
1935pub const WGPUSType_WGPUSType_AdapterPropertiesD3D: WGPUSType = WGPUSType(327700);
1936pub const WGPUSType_WGPUSType_AdapterPropertiesVk: WGPUSType = WGPUSType(327701);
1937pub const WGPUSType_WGPUSType_DawnWireWGSLControl: WGPUSType = WGPUSType(327702);
1938pub const WGPUSType_WGPUSType_DawnWGSLBlocklist: WGPUSType = WGPUSType(327703);
1939pub const WGPUSType_WGPUSType_DawnDrmFormatCapabilities: WGPUSType = WGPUSType(327704);
1940pub const WGPUSType_WGPUSType_ShaderModuleCompilationOptions: WGPUSType = WGPUSType(327705);
1941pub const WGPUSType_WGPUSType_ColorTargetStateExpandResolveTextureDawn: WGPUSType =
1942    WGPUSType(327706);
1943pub const WGPUSType_WGPUSType_RenderPassDescriptorExpandResolveRect: WGPUSType = WGPUSType(327707);
1944pub const WGPUSType_WGPUSType_SharedTextureMemoryVkDedicatedAllocationDescriptor: WGPUSType =
1945    WGPUSType(327708);
1946pub const WGPUSType_WGPUSType_SharedTextureMemoryAHardwareBufferDescriptor: WGPUSType =
1947    WGPUSType(327709);
1948pub const WGPUSType_WGPUSType_SharedTextureMemoryDmaBufDescriptor: WGPUSType = WGPUSType(327710);
1949pub const WGPUSType_WGPUSType_SharedTextureMemoryOpaqueFDDescriptor: WGPUSType = WGPUSType(327711);
1950pub const WGPUSType_WGPUSType_SharedTextureMemoryZirconHandleDescriptor: WGPUSType =
1951    WGPUSType(327712);
1952pub const WGPUSType_WGPUSType_SharedTextureMemoryDXGISharedHandleDescriptor: WGPUSType =
1953    WGPUSType(327713);
1954pub const WGPUSType_WGPUSType_SharedTextureMemoryD3D11Texture2DDescriptor: WGPUSType =
1955    WGPUSType(327714);
1956pub const WGPUSType_WGPUSType_SharedTextureMemoryIOSurfaceDescriptor: WGPUSType = WGPUSType(327715);
1957pub const WGPUSType_WGPUSType_SharedTextureMemoryEGLImageDescriptor: WGPUSType = WGPUSType(327716);
1958pub const WGPUSType_WGPUSType_SharedTextureMemoryInitializedBeginState: WGPUSType =
1959    WGPUSType(327717);
1960pub const WGPUSType_WGPUSType_SharedTextureMemoryInitializedEndState: WGPUSType = WGPUSType(327718);
1961pub const WGPUSType_WGPUSType_SharedTextureMemoryVkImageLayoutBeginState: WGPUSType =
1962    WGPUSType(327719);
1963pub const WGPUSType_WGPUSType_SharedTextureMemoryVkImageLayoutEndState: WGPUSType =
1964    WGPUSType(327720);
1965pub const WGPUSType_WGPUSType_SharedTextureMemoryD3DSwapchainBeginState: WGPUSType =
1966    WGPUSType(327721);
1967pub const WGPUSType_WGPUSType_SharedFenceVkSemaphoreOpaqueFDDescriptor: WGPUSType =
1968    WGPUSType(327722);
1969pub const WGPUSType_WGPUSType_SharedFenceVkSemaphoreOpaqueFDExportInfo: WGPUSType =
1970    WGPUSType(327723);
1971pub const WGPUSType_WGPUSType_SharedFenceSyncFDDescriptor: WGPUSType = WGPUSType(327724);
1972pub const WGPUSType_WGPUSType_SharedFenceSyncFDExportInfo: WGPUSType = WGPUSType(327725);
1973pub const WGPUSType_WGPUSType_SharedFenceVkSemaphoreZirconHandleDescriptor: WGPUSType =
1974    WGPUSType(327726);
1975pub const WGPUSType_WGPUSType_SharedFenceVkSemaphoreZirconHandleExportInfo: WGPUSType =
1976    WGPUSType(327727);
1977pub const WGPUSType_WGPUSType_SharedFenceDXGISharedHandleDescriptor: WGPUSType = WGPUSType(327728);
1978pub const WGPUSType_WGPUSType_SharedFenceDXGISharedHandleExportInfo: WGPUSType = WGPUSType(327729);
1979pub const WGPUSType_WGPUSType_SharedFenceMTLSharedEventDescriptor: WGPUSType = WGPUSType(327730);
1980pub const WGPUSType_WGPUSType_SharedFenceMTLSharedEventExportInfo: WGPUSType = WGPUSType(327731);
1981pub const WGPUSType_WGPUSType_SharedBufferMemoryD3D12ResourceDescriptor: WGPUSType =
1982    WGPUSType(327732);
1983pub const WGPUSType_WGPUSType_StaticSamplerBindingLayout: WGPUSType = WGPUSType(327733);
1984pub const WGPUSType_WGPUSType_YCbCrVkDescriptor: WGPUSType = WGPUSType(327734);
1985pub const WGPUSType_WGPUSType_SharedTextureMemoryAHardwareBufferProperties: WGPUSType =
1986    WGPUSType(327735);
1987pub const WGPUSType_WGPUSType_AHardwareBufferProperties: WGPUSType = WGPUSType(327736);
1988pub const WGPUSType_WGPUSType_DawnTexelCopyBufferRowAlignmentLimits: WGPUSType = WGPUSType(327738);
1989pub const WGPUSType_WGPUSType_AdapterPropertiesSubgroupMatrixConfigs: WGPUSType = WGPUSType(327739);
1990pub const WGPUSType_WGPUSType_SharedFenceEGLSyncDescriptor: WGPUSType = WGPUSType(327740);
1991pub const WGPUSType_WGPUSType_SharedFenceEGLSyncExportInfo: WGPUSType = WGPUSType(327741);
1992pub const WGPUSType_WGPUSType_DawnInjectedInvalidSType: WGPUSType = WGPUSType(327742);
1993pub const WGPUSType_WGPUSType_DawnCompilationMessageUtf16: WGPUSType = WGPUSType(327743);
1994pub const WGPUSType_WGPUSType_DawnFakeBufferOOMForTesting: WGPUSType = WGPUSType(327744);
1995pub const WGPUSType_WGPUSType_SurfaceDescriptorFromWindowsWinUISwapChainPanel: WGPUSType =
1996    WGPUSType(327745);
1997pub const WGPUSType_WGPUSType_DawnDeviceAllocatorControl: WGPUSType = WGPUSType(327746);
1998pub const WGPUSType_WGPUSType_DawnHostMappedPointerLimits: WGPUSType = WGPUSType(327747);
1999pub const WGPUSType_WGPUSType_RenderPassDescriptorResolveRect: WGPUSType = WGPUSType(327748);
2000pub const WGPUSType_WGPUSType_Force32: WGPUSType = WGPUSType(2147483647);
2001#[repr(transparent)]
2002#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2003pub struct WGPUSType(pub ::core::ffi::c_int);
2004pub const WGPUSubgroupMatrixComponentType_WGPUSubgroupMatrixComponentType_F32:
2005    WGPUSubgroupMatrixComponentType = WGPUSubgroupMatrixComponentType(1);
2006pub const WGPUSubgroupMatrixComponentType_WGPUSubgroupMatrixComponentType_F16:
2007    WGPUSubgroupMatrixComponentType = WGPUSubgroupMatrixComponentType(2);
2008pub const WGPUSubgroupMatrixComponentType_WGPUSubgroupMatrixComponentType_U32:
2009    WGPUSubgroupMatrixComponentType = WGPUSubgroupMatrixComponentType(3);
2010pub const WGPUSubgroupMatrixComponentType_WGPUSubgroupMatrixComponentType_I32:
2011    WGPUSubgroupMatrixComponentType = WGPUSubgroupMatrixComponentType(4);
2012pub const WGPUSubgroupMatrixComponentType_WGPUSubgroupMatrixComponentType_Force32:
2013    WGPUSubgroupMatrixComponentType = WGPUSubgroupMatrixComponentType(2147483647);
2014#[repr(transparent)]
2015#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2016pub struct WGPUSubgroupMatrixComponentType(pub ::core::ffi::c_int);
2017pub const WGPUSurfaceGetCurrentTextureStatus_WGPUSurfaceGetCurrentTextureStatus_SuccessOptimal:
2018    WGPUSurfaceGetCurrentTextureStatus = WGPUSurfaceGetCurrentTextureStatus(1);
2019pub const WGPUSurfaceGetCurrentTextureStatus_WGPUSurfaceGetCurrentTextureStatus_SuccessSuboptimal : WGPUSurfaceGetCurrentTextureStatus = WGPUSurfaceGetCurrentTextureStatus (2) ;
2020pub const WGPUSurfaceGetCurrentTextureStatus_WGPUSurfaceGetCurrentTextureStatus_Timeout:
2021    WGPUSurfaceGetCurrentTextureStatus = WGPUSurfaceGetCurrentTextureStatus(3);
2022pub const WGPUSurfaceGetCurrentTextureStatus_WGPUSurfaceGetCurrentTextureStatus_Outdated:
2023    WGPUSurfaceGetCurrentTextureStatus = WGPUSurfaceGetCurrentTextureStatus(4);
2024pub const WGPUSurfaceGetCurrentTextureStatus_WGPUSurfaceGetCurrentTextureStatus_Lost:
2025    WGPUSurfaceGetCurrentTextureStatus = WGPUSurfaceGetCurrentTextureStatus(5);
2026pub const WGPUSurfaceGetCurrentTextureStatus_WGPUSurfaceGetCurrentTextureStatus_Error:
2027    WGPUSurfaceGetCurrentTextureStatus = WGPUSurfaceGetCurrentTextureStatus(6);
2028pub const WGPUSurfaceGetCurrentTextureStatus_WGPUSurfaceGetCurrentTextureStatus_Force32:
2029    WGPUSurfaceGetCurrentTextureStatus = WGPUSurfaceGetCurrentTextureStatus(2147483647);
2030#[repr(transparent)]
2031#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2032pub struct WGPUSurfaceGetCurrentTextureStatus(pub ::core::ffi::c_int);
2033pub const WGPUTextureAspect_WGPUTextureAspect_Undefined: WGPUTextureAspect = WGPUTextureAspect(0);
2034pub const WGPUTextureAspect_WGPUTextureAspect_All: WGPUTextureAspect = WGPUTextureAspect(1);
2035pub const WGPUTextureAspect_WGPUTextureAspect_StencilOnly: WGPUTextureAspect = WGPUTextureAspect(2);
2036pub const WGPUTextureAspect_WGPUTextureAspect_DepthOnly: WGPUTextureAspect = WGPUTextureAspect(3);
2037pub const WGPUTextureAspect_WGPUTextureAspect_Plane0Only: WGPUTextureAspect =
2038    WGPUTextureAspect(327680);
2039pub const WGPUTextureAspect_WGPUTextureAspect_Plane1Only: WGPUTextureAspect =
2040    WGPUTextureAspect(327681);
2041pub const WGPUTextureAspect_WGPUTextureAspect_Plane2Only: WGPUTextureAspect =
2042    WGPUTextureAspect(327682);
2043pub const WGPUTextureAspect_WGPUTextureAspect_Force32: WGPUTextureAspect =
2044    WGPUTextureAspect(2147483647);
2045#[repr(transparent)]
2046#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2047pub struct WGPUTextureAspect(pub ::core::ffi::c_int);
2048pub const WGPUTextureDimension_WGPUTextureDimension_Undefined: WGPUTextureDimension =
2049    WGPUTextureDimension(0);
2050pub const WGPUTextureDimension_WGPUTextureDimension_1D: WGPUTextureDimension =
2051    WGPUTextureDimension(1);
2052pub const WGPUTextureDimension_WGPUTextureDimension_2D: WGPUTextureDimension =
2053    WGPUTextureDimension(2);
2054pub const WGPUTextureDimension_WGPUTextureDimension_3D: WGPUTextureDimension =
2055    WGPUTextureDimension(3);
2056pub const WGPUTextureDimension_WGPUTextureDimension_Force32: WGPUTextureDimension =
2057    WGPUTextureDimension(2147483647);
2058#[repr(transparent)]
2059#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2060pub struct WGPUTextureDimension(pub ::core::ffi::c_int);
2061pub const WGPUTextureFormat_WGPUTextureFormat_Undefined: WGPUTextureFormat = WGPUTextureFormat(0);
2062pub const WGPUTextureFormat_WGPUTextureFormat_R8Unorm: WGPUTextureFormat = WGPUTextureFormat(1);
2063pub const WGPUTextureFormat_WGPUTextureFormat_R8Snorm: WGPUTextureFormat = WGPUTextureFormat(2);
2064pub const WGPUTextureFormat_WGPUTextureFormat_R8Uint: WGPUTextureFormat = WGPUTextureFormat(3);
2065pub const WGPUTextureFormat_WGPUTextureFormat_R8Sint: WGPUTextureFormat = WGPUTextureFormat(4);
2066pub const WGPUTextureFormat_WGPUTextureFormat_R16Uint: WGPUTextureFormat = WGPUTextureFormat(5);
2067pub const WGPUTextureFormat_WGPUTextureFormat_R16Sint: WGPUTextureFormat = WGPUTextureFormat(6);
2068pub const WGPUTextureFormat_WGPUTextureFormat_R16Float: WGPUTextureFormat = WGPUTextureFormat(7);
2069pub const WGPUTextureFormat_WGPUTextureFormat_RG8Unorm: WGPUTextureFormat = WGPUTextureFormat(8);
2070pub const WGPUTextureFormat_WGPUTextureFormat_RG8Snorm: WGPUTextureFormat = WGPUTextureFormat(9);
2071pub const WGPUTextureFormat_WGPUTextureFormat_RG8Uint: WGPUTextureFormat = WGPUTextureFormat(10);
2072pub const WGPUTextureFormat_WGPUTextureFormat_RG8Sint: WGPUTextureFormat = WGPUTextureFormat(11);
2073pub const WGPUTextureFormat_WGPUTextureFormat_R32Float: WGPUTextureFormat = WGPUTextureFormat(12);
2074pub const WGPUTextureFormat_WGPUTextureFormat_R32Uint: WGPUTextureFormat = WGPUTextureFormat(13);
2075pub const WGPUTextureFormat_WGPUTextureFormat_R32Sint: WGPUTextureFormat = WGPUTextureFormat(14);
2076pub const WGPUTextureFormat_WGPUTextureFormat_RG16Uint: WGPUTextureFormat = WGPUTextureFormat(15);
2077pub const WGPUTextureFormat_WGPUTextureFormat_RG16Sint: WGPUTextureFormat = WGPUTextureFormat(16);
2078pub const WGPUTextureFormat_WGPUTextureFormat_RG16Float: WGPUTextureFormat = WGPUTextureFormat(17);
2079pub const WGPUTextureFormat_WGPUTextureFormat_RGBA8Unorm: WGPUTextureFormat = WGPUTextureFormat(18);
2080pub const WGPUTextureFormat_WGPUTextureFormat_RGBA8UnormSrgb: WGPUTextureFormat =
2081    WGPUTextureFormat(19);
2082pub const WGPUTextureFormat_WGPUTextureFormat_RGBA8Snorm: WGPUTextureFormat = WGPUTextureFormat(20);
2083pub const WGPUTextureFormat_WGPUTextureFormat_RGBA8Uint: WGPUTextureFormat = WGPUTextureFormat(21);
2084pub const WGPUTextureFormat_WGPUTextureFormat_RGBA8Sint: WGPUTextureFormat = WGPUTextureFormat(22);
2085pub const WGPUTextureFormat_WGPUTextureFormat_BGRA8Unorm: WGPUTextureFormat = WGPUTextureFormat(23);
2086pub const WGPUTextureFormat_WGPUTextureFormat_BGRA8UnormSrgb: WGPUTextureFormat =
2087    WGPUTextureFormat(24);
2088pub const WGPUTextureFormat_WGPUTextureFormat_RGB10A2Uint: WGPUTextureFormat =
2089    WGPUTextureFormat(25);
2090pub const WGPUTextureFormat_WGPUTextureFormat_RGB10A2Unorm: WGPUTextureFormat =
2091    WGPUTextureFormat(26);
2092pub const WGPUTextureFormat_WGPUTextureFormat_RG11B10Ufloat: WGPUTextureFormat =
2093    WGPUTextureFormat(27);
2094pub const WGPUTextureFormat_WGPUTextureFormat_RGB9E5Ufloat: WGPUTextureFormat =
2095    WGPUTextureFormat(28);
2096pub const WGPUTextureFormat_WGPUTextureFormat_RG32Float: WGPUTextureFormat = WGPUTextureFormat(29);
2097pub const WGPUTextureFormat_WGPUTextureFormat_RG32Uint: WGPUTextureFormat = WGPUTextureFormat(30);
2098pub const WGPUTextureFormat_WGPUTextureFormat_RG32Sint: WGPUTextureFormat = WGPUTextureFormat(31);
2099pub const WGPUTextureFormat_WGPUTextureFormat_RGBA16Uint: WGPUTextureFormat = WGPUTextureFormat(32);
2100pub const WGPUTextureFormat_WGPUTextureFormat_RGBA16Sint: WGPUTextureFormat = WGPUTextureFormat(33);
2101pub const WGPUTextureFormat_WGPUTextureFormat_RGBA16Float: WGPUTextureFormat =
2102    WGPUTextureFormat(34);
2103pub const WGPUTextureFormat_WGPUTextureFormat_RGBA32Float: WGPUTextureFormat =
2104    WGPUTextureFormat(35);
2105pub const WGPUTextureFormat_WGPUTextureFormat_RGBA32Uint: WGPUTextureFormat = WGPUTextureFormat(36);
2106pub const WGPUTextureFormat_WGPUTextureFormat_RGBA32Sint: WGPUTextureFormat = WGPUTextureFormat(37);
2107pub const WGPUTextureFormat_WGPUTextureFormat_Stencil8: WGPUTextureFormat = WGPUTextureFormat(38);
2108pub const WGPUTextureFormat_WGPUTextureFormat_Depth16Unorm: WGPUTextureFormat =
2109    WGPUTextureFormat(39);
2110pub const WGPUTextureFormat_WGPUTextureFormat_Depth24Plus: WGPUTextureFormat =
2111    WGPUTextureFormat(40);
2112pub const WGPUTextureFormat_WGPUTextureFormat_Depth24PlusStencil8: WGPUTextureFormat =
2113    WGPUTextureFormat(41);
2114pub const WGPUTextureFormat_WGPUTextureFormat_Depth32Float: WGPUTextureFormat =
2115    WGPUTextureFormat(42);
2116pub const WGPUTextureFormat_WGPUTextureFormat_Depth32FloatStencil8: WGPUTextureFormat =
2117    WGPUTextureFormat(43);
2118pub const WGPUTextureFormat_WGPUTextureFormat_BC1RGBAUnorm: WGPUTextureFormat =
2119    WGPUTextureFormat(44);
2120pub const WGPUTextureFormat_WGPUTextureFormat_BC1RGBAUnormSrgb: WGPUTextureFormat =
2121    WGPUTextureFormat(45);
2122pub const WGPUTextureFormat_WGPUTextureFormat_BC2RGBAUnorm: WGPUTextureFormat =
2123    WGPUTextureFormat(46);
2124pub const WGPUTextureFormat_WGPUTextureFormat_BC2RGBAUnormSrgb: WGPUTextureFormat =
2125    WGPUTextureFormat(47);
2126pub const WGPUTextureFormat_WGPUTextureFormat_BC3RGBAUnorm: WGPUTextureFormat =
2127    WGPUTextureFormat(48);
2128pub const WGPUTextureFormat_WGPUTextureFormat_BC3RGBAUnormSrgb: WGPUTextureFormat =
2129    WGPUTextureFormat(49);
2130pub const WGPUTextureFormat_WGPUTextureFormat_BC4RUnorm: WGPUTextureFormat = WGPUTextureFormat(50);
2131pub const WGPUTextureFormat_WGPUTextureFormat_BC4RSnorm: WGPUTextureFormat = WGPUTextureFormat(51);
2132pub const WGPUTextureFormat_WGPUTextureFormat_BC5RGUnorm: WGPUTextureFormat = WGPUTextureFormat(52);
2133pub const WGPUTextureFormat_WGPUTextureFormat_BC5RGSnorm: WGPUTextureFormat = WGPUTextureFormat(53);
2134pub const WGPUTextureFormat_WGPUTextureFormat_BC6HRGBUfloat: WGPUTextureFormat =
2135    WGPUTextureFormat(54);
2136pub const WGPUTextureFormat_WGPUTextureFormat_BC6HRGBFloat: WGPUTextureFormat =
2137    WGPUTextureFormat(55);
2138pub const WGPUTextureFormat_WGPUTextureFormat_BC7RGBAUnorm: WGPUTextureFormat =
2139    WGPUTextureFormat(56);
2140pub const WGPUTextureFormat_WGPUTextureFormat_BC7RGBAUnormSrgb: WGPUTextureFormat =
2141    WGPUTextureFormat(57);
2142pub const WGPUTextureFormat_WGPUTextureFormat_ETC2RGB8Unorm: WGPUTextureFormat =
2143    WGPUTextureFormat(58);
2144pub const WGPUTextureFormat_WGPUTextureFormat_ETC2RGB8UnormSrgb: WGPUTextureFormat =
2145    WGPUTextureFormat(59);
2146pub const WGPUTextureFormat_WGPUTextureFormat_ETC2RGB8A1Unorm: WGPUTextureFormat =
2147    WGPUTextureFormat(60);
2148pub const WGPUTextureFormat_WGPUTextureFormat_ETC2RGB8A1UnormSrgb: WGPUTextureFormat =
2149    WGPUTextureFormat(61);
2150pub const WGPUTextureFormat_WGPUTextureFormat_ETC2RGBA8Unorm: WGPUTextureFormat =
2151    WGPUTextureFormat(62);
2152pub const WGPUTextureFormat_WGPUTextureFormat_ETC2RGBA8UnormSrgb: WGPUTextureFormat =
2153    WGPUTextureFormat(63);
2154pub const WGPUTextureFormat_WGPUTextureFormat_EACR11Unorm: WGPUTextureFormat =
2155    WGPUTextureFormat(64);
2156pub const WGPUTextureFormat_WGPUTextureFormat_EACR11Snorm: WGPUTextureFormat =
2157    WGPUTextureFormat(65);
2158pub const WGPUTextureFormat_WGPUTextureFormat_EACRG11Unorm: WGPUTextureFormat =
2159    WGPUTextureFormat(66);
2160pub const WGPUTextureFormat_WGPUTextureFormat_EACRG11Snorm: WGPUTextureFormat =
2161    WGPUTextureFormat(67);
2162pub const WGPUTextureFormat_WGPUTextureFormat_ASTC4x4Unorm: WGPUTextureFormat =
2163    WGPUTextureFormat(68);
2164pub const WGPUTextureFormat_WGPUTextureFormat_ASTC4x4UnormSrgb: WGPUTextureFormat =
2165    WGPUTextureFormat(69);
2166pub const WGPUTextureFormat_WGPUTextureFormat_ASTC5x4Unorm: WGPUTextureFormat =
2167    WGPUTextureFormat(70);
2168pub const WGPUTextureFormat_WGPUTextureFormat_ASTC5x4UnormSrgb: WGPUTextureFormat =
2169    WGPUTextureFormat(71);
2170pub const WGPUTextureFormat_WGPUTextureFormat_ASTC5x5Unorm: WGPUTextureFormat =
2171    WGPUTextureFormat(72);
2172pub const WGPUTextureFormat_WGPUTextureFormat_ASTC5x5UnormSrgb: WGPUTextureFormat =
2173    WGPUTextureFormat(73);
2174pub const WGPUTextureFormat_WGPUTextureFormat_ASTC6x5Unorm: WGPUTextureFormat =
2175    WGPUTextureFormat(74);
2176pub const WGPUTextureFormat_WGPUTextureFormat_ASTC6x5UnormSrgb: WGPUTextureFormat =
2177    WGPUTextureFormat(75);
2178pub const WGPUTextureFormat_WGPUTextureFormat_ASTC6x6Unorm: WGPUTextureFormat =
2179    WGPUTextureFormat(76);
2180pub const WGPUTextureFormat_WGPUTextureFormat_ASTC6x6UnormSrgb: WGPUTextureFormat =
2181    WGPUTextureFormat(77);
2182pub const WGPUTextureFormat_WGPUTextureFormat_ASTC8x5Unorm: WGPUTextureFormat =
2183    WGPUTextureFormat(78);
2184pub const WGPUTextureFormat_WGPUTextureFormat_ASTC8x5UnormSrgb: WGPUTextureFormat =
2185    WGPUTextureFormat(79);
2186pub const WGPUTextureFormat_WGPUTextureFormat_ASTC8x6Unorm: WGPUTextureFormat =
2187    WGPUTextureFormat(80);
2188pub const WGPUTextureFormat_WGPUTextureFormat_ASTC8x6UnormSrgb: WGPUTextureFormat =
2189    WGPUTextureFormat(81);
2190pub const WGPUTextureFormat_WGPUTextureFormat_ASTC8x8Unorm: WGPUTextureFormat =
2191    WGPUTextureFormat(82);
2192pub const WGPUTextureFormat_WGPUTextureFormat_ASTC8x8UnormSrgb: WGPUTextureFormat =
2193    WGPUTextureFormat(83);
2194pub const WGPUTextureFormat_WGPUTextureFormat_ASTC10x5Unorm: WGPUTextureFormat =
2195    WGPUTextureFormat(84);
2196pub const WGPUTextureFormat_WGPUTextureFormat_ASTC10x5UnormSrgb: WGPUTextureFormat =
2197    WGPUTextureFormat(85);
2198pub const WGPUTextureFormat_WGPUTextureFormat_ASTC10x6Unorm: WGPUTextureFormat =
2199    WGPUTextureFormat(86);
2200pub const WGPUTextureFormat_WGPUTextureFormat_ASTC10x6UnormSrgb: WGPUTextureFormat =
2201    WGPUTextureFormat(87);
2202pub const WGPUTextureFormat_WGPUTextureFormat_ASTC10x8Unorm: WGPUTextureFormat =
2203    WGPUTextureFormat(88);
2204pub const WGPUTextureFormat_WGPUTextureFormat_ASTC10x8UnormSrgb: WGPUTextureFormat =
2205    WGPUTextureFormat(89);
2206pub const WGPUTextureFormat_WGPUTextureFormat_ASTC10x10Unorm: WGPUTextureFormat =
2207    WGPUTextureFormat(90);
2208pub const WGPUTextureFormat_WGPUTextureFormat_ASTC10x10UnormSrgb: WGPUTextureFormat =
2209    WGPUTextureFormat(91);
2210pub const WGPUTextureFormat_WGPUTextureFormat_ASTC12x10Unorm: WGPUTextureFormat =
2211    WGPUTextureFormat(92);
2212pub const WGPUTextureFormat_WGPUTextureFormat_ASTC12x10UnormSrgb: WGPUTextureFormat =
2213    WGPUTextureFormat(93);
2214pub const WGPUTextureFormat_WGPUTextureFormat_ASTC12x12Unorm: WGPUTextureFormat =
2215    WGPUTextureFormat(94);
2216pub const WGPUTextureFormat_WGPUTextureFormat_ASTC12x12UnormSrgb: WGPUTextureFormat =
2217    WGPUTextureFormat(95);
2218pub const WGPUTextureFormat_WGPUTextureFormat_R16Unorm: WGPUTextureFormat =
2219    WGPUTextureFormat(327680);
2220pub const WGPUTextureFormat_WGPUTextureFormat_RG16Unorm: WGPUTextureFormat =
2221    WGPUTextureFormat(327681);
2222pub const WGPUTextureFormat_WGPUTextureFormat_RGBA16Unorm: WGPUTextureFormat =
2223    WGPUTextureFormat(327682);
2224pub const WGPUTextureFormat_WGPUTextureFormat_R16Snorm: WGPUTextureFormat =
2225    WGPUTextureFormat(327683);
2226pub const WGPUTextureFormat_WGPUTextureFormat_RG16Snorm: WGPUTextureFormat =
2227    WGPUTextureFormat(327684);
2228pub const WGPUTextureFormat_WGPUTextureFormat_RGBA16Snorm: WGPUTextureFormat =
2229    WGPUTextureFormat(327685);
2230pub const WGPUTextureFormat_WGPUTextureFormat_R8BG8Biplanar420Unorm: WGPUTextureFormat =
2231    WGPUTextureFormat(327686);
2232pub const WGPUTextureFormat_WGPUTextureFormat_R10X6BG10X6Biplanar420Unorm: WGPUTextureFormat =
2233    WGPUTextureFormat(327687);
2234pub const WGPUTextureFormat_WGPUTextureFormat_R8BG8A8Triplanar420Unorm: WGPUTextureFormat =
2235    WGPUTextureFormat(327688);
2236pub const WGPUTextureFormat_WGPUTextureFormat_R8BG8Biplanar422Unorm: WGPUTextureFormat =
2237    WGPUTextureFormat(327689);
2238pub const WGPUTextureFormat_WGPUTextureFormat_R8BG8Biplanar444Unorm: WGPUTextureFormat =
2239    WGPUTextureFormat(327690);
2240pub const WGPUTextureFormat_WGPUTextureFormat_R10X6BG10X6Biplanar422Unorm: WGPUTextureFormat =
2241    WGPUTextureFormat(327691);
2242pub const WGPUTextureFormat_WGPUTextureFormat_R10X6BG10X6Biplanar444Unorm: WGPUTextureFormat =
2243    WGPUTextureFormat(327692);
2244pub const WGPUTextureFormat_WGPUTextureFormat_External: WGPUTextureFormat =
2245    WGPUTextureFormat(327693);
2246pub const WGPUTextureFormat_WGPUTextureFormat_Force32: WGPUTextureFormat =
2247    WGPUTextureFormat(2147483647);
2248#[repr(transparent)]
2249#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2250pub struct WGPUTextureFormat(pub ::core::ffi::c_int);
2251pub const WGPUTextureSampleType_WGPUTextureSampleType_BindingNotUsed: WGPUTextureSampleType =
2252    WGPUTextureSampleType(0);
2253pub const WGPUTextureSampleType_WGPUTextureSampleType_Undefined: WGPUTextureSampleType =
2254    WGPUTextureSampleType(1);
2255pub const WGPUTextureSampleType_WGPUTextureSampleType_Float: WGPUTextureSampleType =
2256    WGPUTextureSampleType(2);
2257pub const WGPUTextureSampleType_WGPUTextureSampleType_UnfilterableFloat: WGPUTextureSampleType =
2258    WGPUTextureSampleType(3);
2259pub const WGPUTextureSampleType_WGPUTextureSampleType_Depth: WGPUTextureSampleType =
2260    WGPUTextureSampleType(4);
2261pub const WGPUTextureSampleType_WGPUTextureSampleType_Sint: WGPUTextureSampleType =
2262    WGPUTextureSampleType(5);
2263pub const WGPUTextureSampleType_WGPUTextureSampleType_Uint: WGPUTextureSampleType =
2264    WGPUTextureSampleType(6);
2265pub const WGPUTextureSampleType_WGPUTextureSampleType_Force32: WGPUTextureSampleType =
2266    WGPUTextureSampleType(2147483647);
2267#[repr(transparent)]
2268#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2269pub struct WGPUTextureSampleType(pub ::core::ffi::c_int);
2270pub const WGPUTextureViewDimension_WGPUTextureViewDimension_Undefined: WGPUTextureViewDimension =
2271    WGPUTextureViewDimension(0);
2272pub const WGPUTextureViewDimension_WGPUTextureViewDimension_1D: WGPUTextureViewDimension =
2273    WGPUTextureViewDimension(1);
2274pub const WGPUTextureViewDimension_WGPUTextureViewDimension_2D: WGPUTextureViewDimension =
2275    WGPUTextureViewDimension(2);
2276pub const WGPUTextureViewDimension_WGPUTextureViewDimension_2DArray: WGPUTextureViewDimension =
2277    WGPUTextureViewDimension(3);
2278pub const WGPUTextureViewDimension_WGPUTextureViewDimension_Cube: WGPUTextureViewDimension =
2279    WGPUTextureViewDimension(4);
2280pub const WGPUTextureViewDimension_WGPUTextureViewDimension_CubeArray: WGPUTextureViewDimension =
2281    WGPUTextureViewDimension(5);
2282pub const WGPUTextureViewDimension_WGPUTextureViewDimension_3D: WGPUTextureViewDimension =
2283    WGPUTextureViewDimension(6);
2284pub const WGPUTextureViewDimension_WGPUTextureViewDimension_Force32: WGPUTextureViewDimension =
2285    WGPUTextureViewDimension(2147483647);
2286#[repr(transparent)]
2287#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2288pub struct WGPUTextureViewDimension(pub ::core::ffi::c_int);
2289pub const WGPUToneMappingMode_WGPUToneMappingMode_Standard: WGPUToneMappingMode =
2290    WGPUToneMappingMode(1);
2291pub const WGPUToneMappingMode_WGPUToneMappingMode_Extended: WGPUToneMappingMode =
2292    WGPUToneMappingMode(2);
2293pub const WGPUToneMappingMode_WGPUToneMappingMode_Force32: WGPUToneMappingMode =
2294    WGPUToneMappingMode(2147483647);
2295#[repr(transparent)]
2296#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2297pub struct WGPUToneMappingMode(pub ::core::ffi::c_int);
2298pub const WGPUVertexFormat_WGPUVertexFormat_Uint8: WGPUVertexFormat = WGPUVertexFormat(1);
2299pub const WGPUVertexFormat_WGPUVertexFormat_Uint8x2: WGPUVertexFormat = WGPUVertexFormat(2);
2300pub const WGPUVertexFormat_WGPUVertexFormat_Uint8x4: WGPUVertexFormat = WGPUVertexFormat(3);
2301pub const WGPUVertexFormat_WGPUVertexFormat_Sint8: WGPUVertexFormat = WGPUVertexFormat(4);
2302pub const WGPUVertexFormat_WGPUVertexFormat_Sint8x2: WGPUVertexFormat = WGPUVertexFormat(5);
2303pub const WGPUVertexFormat_WGPUVertexFormat_Sint8x4: WGPUVertexFormat = WGPUVertexFormat(6);
2304pub const WGPUVertexFormat_WGPUVertexFormat_Unorm8: WGPUVertexFormat = WGPUVertexFormat(7);
2305pub const WGPUVertexFormat_WGPUVertexFormat_Unorm8x2: WGPUVertexFormat = WGPUVertexFormat(8);
2306pub const WGPUVertexFormat_WGPUVertexFormat_Unorm8x4: WGPUVertexFormat = WGPUVertexFormat(9);
2307pub const WGPUVertexFormat_WGPUVertexFormat_Snorm8: WGPUVertexFormat = WGPUVertexFormat(10);
2308pub const WGPUVertexFormat_WGPUVertexFormat_Snorm8x2: WGPUVertexFormat = WGPUVertexFormat(11);
2309pub const WGPUVertexFormat_WGPUVertexFormat_Snorm8x4: WGPUVertexFormat = WGPUVertexFormat(12);
2310pub const WGPUVertexFormat_WGPUVertexFormat_Uint16: WGPUVertexFormat = WGPUVertexFormat(13);
2311pub const WGPUVertexFormat_WGPUVertexFormat_Uint16x2: WGPUVertexFormat = WGPUVertexFormat(14);
2312pub const WGPUVertexFormat_WGPUVertexFormat_Uint16x4: WGPUVertexFormat = WGPUVertexFormat(15);
2313pub const WGPUVertexFormat_WGPUVertexFormat_Sint16: WGPUVertexFormat = WGPUVertexFormat(16);
2314pub const WGPUVertexFormat_WGPUVertexFormat_Sint16x2: WGPUVertexFormat = WGPUVertexFormat(17);
2315pub const WGPUVertexFormat_WGPUVertexFormat_Sint16x4: WGPUVertexFormat = WGPUVertexFormat(18);
2316pub const WGPUVertexFormat_WGPUVertexFormat_Unorm16: WGPUVertexFormat = WGPUVertexFormat(19);
2317pub const WGPUVertexFormat_WGPUVertexFormat_Unorm16x2: WGPUVertexFormat = WGPUVertexFormat(20);
2318pub const WGPUVertexFormat_WGPUVertexFormat_Unorm16x4: WGPUVertexFormat = WGPUVertexFormat(21);
2319pub const WGPUVertexFormat_WGPUVertexFormat_Snorm16: WGPUVertexFormat = WGPUVertexFormat(22);
2320pub const WGPUVertexFormat_WGPUVertexFormat_Snorm16x2: WGPUVertexFormat = WGPUVertexFormat(23);
2321pub const WGPUVertexFormat_WGPUVertexFormat_Snorm16x4: WGPUVertexFormat = WGPUVertexFormat(24);
2322pub const WGPUVertexFormat_WGPUVertexFormat_Float16: WGPUVertexFormat = WGPUVertexFormat(25);
2323pub const WGPUVertexFormat_WGPUVertexFormat_Float16x2: WGPUVertexFormat = WGPUVertexFormat(26);
2324pub const WGPUVertexFormat_WGPUVertexFormat_Float16x4: WGPUVertexFormat = WGPUVertexFormat(27);
2325pub const WGPUVertexFormat_WGPUVertexFormat_Float32: WGPUVertexFormat = WGPUVertexFormat(28);
2326pub const WGPUVertexFormat_WGPUVertexFormat_Float32x2: WGPUVertexFormat = WGPUVertexFormat(29);
2327pub const WGPUVertexFormat_WGPUVertexFormat_Float32x3: WGPUVertexFormat = WGPUVertexFormat(30);
2328pub const WGPUVertexFormat_WGPUVertexFormat_Float32x4: WGPUVertexFormat = WGPUVertexFormat(31);
2329pub const WGPUVertexFormat_WGPUVertexFormat_Uint32: WGPUVertexFormat = WGPUVertexFormat(32);
2330pub const WGPUVertexFormat_WGPUVertexFormat_Uint32x2: WGPUVertexFormat = WGPUVertexFormat(33);
2331pub const WGPUVertexFormat_WGPUVertexFormat_Uint32x3: WGPUVertexFormat = WGPUVertexFormat(34);
2332pub const WGPUVertexFormat_WGPUVertexFormat_Uint32x4: WGPUVertexFormat = WGPUVertexFormat(35);
2333pub const WGPUVertexFormat_WGPUVertexFormat_Sint32: WGPUVertexFormat = WGPUVertexFormat(36);
2334pub const WGPUVertexFormat_WGPUVertexFormat_Sint32x2: WGPUVertexFormat = WGPUVertexFormat(37);
2335pub const WGPUVertexFormat_WGPUVertexFormat_Sint32x3: WGPUVertexFormat = WGPUVertexFormat(38);
2336pub const WGPUVertexFormat_WGPUVertexFormat_Sint32x4: WGPUVertexFormat = WGPUVertexFormat(39);
2337pub const WGPUVertexFormat_WGPUVertexFormat_Unorm10_10_10_2: WGPUVertexFormat =
2338    WGPUVertexFormat(40);
2339pub const WGPUVertexFormat_WGPUVertexFormat_Unorm8x4BGRA: WGPUVertexFormat = WGPUVertexFormat(41);
2340pub const WGPUVertexFormat_WGPUVertexFormat_Force32: WGPUVertexFormat =
2341    WGPUVertexFormat(2147483647);
2342#[repr(transparent)]
2343#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2344pub struct WGPUVertexFormat(pub ::core::ffi::c_int);
2345pub const WGPUVertexStepMode_WGPUVertexStepMode_Undefined: WGPUVertexStepMode =
2346    WGPUVertexStepMode(0);
2347pub const WGPUVertexStepMode_WGPUVertexStepMode_Vertex: WGPUVertexStepMode = WGPUVertexStepMode(1);
2348pub const WGPUVertexStepMode_WGPUVertexStepMode_Instance: WGPUVertexStepMode =
2349    WGPUVertexStepMode(2);
2350pub const WGPUVertexStepMode_WGPUVertexStepMode_Force32: WGPUVertexStepMode =
2351    WGPUVertexStepMode(2147483647);
2352#[repr(transparent)]
2353#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2354pub struct WGPUVertexStepMode(pub ::core::ffi::c_int);
2355pub const WGPUWaitStatus_WGPUWaitStatus_Success: WGPUWaitStatus = WGPUWaitStatus(1);
2356pub const WGPUWaitStatus_WGPUWaitStatus_TimedOut: WGPUWaitStatus = WGPUWaitStatus(2);
2357pub const WGPUWaitStatus_WGPUWaitStatus_Error: WGPUWaitStatus = WGPUWaitStatus(3);
2358pub const WGPUWaitStatus_WGPUWaitStatus_Force32: WGPUWaitStatus = WGPUWaitStatus(2147483647);
2359#[repr(transparent)]
2360#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2361pub struct WGPUWaitStatus(pub ::core::ffi::c_int);
2362pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_ReadonlyAndReadwriteStorageTextures : WGPUWGSLLanguageFeatureName = WGPUWGSLLanguageFeatureName (1) ;
2363pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_Packed4x8IntegerDotProduct:
2364    WGPUWGSLLanguageFeatureName = WGPUWGSLLanguageFeatureName(2);
2365pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_UnrestrictedPointerParameters:
2366    WGPUWGSLLanguageFeatureName = WGPUWGSLLanguageFeatureName(3);
2367pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_PointerCompositeAccess:
2368    WGPUWGSLLanguageFeatureName = WGPUWGSLLanguageFeatureName(4);
2369pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_SizedBindingArray:
2370    WGPUWGSLLanguageFeatureName = WGPUWGSLLanguageFeatureName(5);
2371pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_ChromiumTestingUnimplemented:
2372    WGPUWGSLLanguageFeatureName = WGPUWGSLLanguageFeatureName(327680);
2373pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_ChromiumTestingUnsafeExperimental : WGPUWGSLLanguageFeatureName = WGPUWGSLLanguageFeatureName (327681) ;
2374pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_ChromiumTestingExperimental:
2375    WGPUWGSLLanguageFeatureName = WGPUWGSLLanguageFeatureName(327682);
2376pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_ChromiumTestingShippedWithKillswitch : WGPUWGSLLanguageFeatureName = WGPUWGSLLanguageFeatureName (327683) ;
2377pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_ChromiumTestingShipped:
2378    WGPUWGSLLanguageFeatureName = WGPUWGSLLanguageFeatureName(327684);
2379pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_Force32:
2380    WGPUWGSLLanguageFeatureName = WGPUWGSLLanguageFeatureName(2147483647);
2381#[repr(transparent)]
2382#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2383pub struct WGPUWGSLLanguageFeatureName(pub ::core::ffi::c_int);
2384pub type WGPUCallback =
2385    ::core::option::Option<unsafe extern "C" fn(userdata: *mut ::core::ffi::c_void)>;
2386pub type WGPUDawnLoadCacheDataFunction = ::core::option::Option<
2387    unsafe extern "C" fn(
2388        key: *const ::core::ffi::c_void,
2389        keySize: usize,
2390        value: *mut ::core::ffi::c_void,
2391        valueSize: usize,
2392        userdata: *mut ::core::ffi::c_void,
2393    ) -> usize,
2394>;
2395pub type WGPUDawnStoreCacheDataFunction = ::core::option::Option<
2396    unsafe extern "C" fn(
2397        key: *const ::core::ffi::c_void,
2398        keySize: usize,
2399        value: *const ::core::ffi::c_void,
2400        valueSize: usize,
2401        userdata: *mut ::core::ffi::c_void,
2402    ),
2403>;
2404pub type WGPUProc = ::core::option::Option<unsafe extern "C" fn()>;
2405pub type WGPUBufferMapCallback = ::core::option::Option<
2406    unsafe extern "C" fn(
2407        status: WGPUMapAsyncStatus,
2408        message: WGPUStringView,
2409        userdata1: *mut ::core::ffi::c_void,
2410        userdata2: *mut ::core::ffi::c_void,
2411    ),
2412>;
2413pub type WGPUCompilationInfoCallback = ::core::option::Option<
2414    unsafe extern "C" fn(
2415        status: WGPUCompilationInfoRequestStatus,
2416        compilationInfo: *const WGPUCompilationInfo,
2417        userdata1: *mut ::core::ffi::c_void,
2418        userdata2: *mut ::core::ffi::c_void,
2419    ),
2420>;
2421pub type WGPUCreateComputePipelineAsyncCallback = ::core::option::Option<
2422    unsafe extern "C" fn(
2423        status: WGPUCreatePipelineAsyncStatus,
2424        pipeline: WGPUComputePipeline,
2425        message: WGPUStringView,
2426        userdata1: *mut ::core::ffi::c_void,
2427        userdata2: *mut ::core::ffi::c_void,
2428    ),
2429>;
2430pub type WGPUCreateRenderPipelineAsyncCallback = ::core::option::Option<
2431    unsafe extern "C" fn(
2432        status: WGPUCreatePipelineAsyncStatus,
2433        pipeline: WGPURenderPipeline,
2434        message: WGPUStringView,
2435        userdata1: *mut ::core::ffi::c_void,
2436        userdata2: *mut ::core::ffi::c_void,
2437    ),
2438>;
2439pub type WGPUDeviceLostCallback = ::core::option::Option<
2440    unsafe extern "C" fn(
2441        device: *const WGPUDevice,
2442        reason: WGPUDeviceLostReason,
2443        message: WGPUStringView,
2444        userdata1: *mut ::core::ffi::c_void,
2445        userdata2: *mut ::core::ffi::c_void,
2446    ),
2447>;
2448pub type WGPULoggingCallback = ::core::option::Option<
2449    unsafe extern "C" fn(
2450        type_: WGPULoggingType,
2451        message: WGPUStringView,
2452        userdata1: *mut ::core::ffi::c_void,
2453        userdata2: *mut ::core::ffi::c_void,
2454    ),
2455>;
2456pub type WGPUPopErrorScopeCallback = ::core::option::Option<
2457    unsafe extern "C" fn(
2458        status: WGPUPopErrorScopeStatus,
2459        type_: WGPUErrorType,
2460        message: WGPUStringView,
2461        userdata1: *mut ::core::ffi::c_void,
2462        userdata2: *mut ::core::ffi::c_void,
2463    ),
2464>;
2465pub type WGPUQueueWorkDoneCallback = ::core::option::Option<
2466    unsafe extern "C" fn(
2467        status: WGPUQueueWorkDoneStatus,
2468        userdata1: *mut ::core::ffi::c_void,
2469        userdata2: *mut ::core::ffi::c_void,
2470    ),
2471>;
2472pub type WGPURequestAdapterCallback = ::core::option::Option<
2473    unsafe extern "C" fn(
2474        status: WGPURequestAdapterStatus,
2475        adapter: WGPUAdapter,
2476        message: WGPUStringView,
2477        userdata1: *mut ::core::ffi::c_void,
2478        userdata2: *mut ::core::ffi::c_void,
2479    ),
2480>;
2481pub type WGPURequestDeviceCallback = ::core::option::Option<
2482    unsafe extern "C" fn(
2483        status: WGPURequestDeviceStatus,
2484        device: WGPUDevice,
2485        message: WGPUStringView,
2486        userdata1: *mut ::core::ffi::c_void,
2487        userdata2: *mut ::core::ffi::c_void,
2488    ),
2489>;
2490pub type WGPUUncapturedErrorCallback = ::core::option::Option<
2491    unsafe extern "C" fn(
2492        device: *const WGPUDevice,
2493        type_: WGPUErrorType,
2494        message: WGPUStringView,
2495        userdata1: *mut ::core::ffi::c_void,
2496        userdata2: *mut ::core::ffi::c_void,
2497    ),
2498>;
2499#[repr(C)]
2500#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2501pub struct WGPUChainedStruct {
2502    pub next: *mut WGPUChainedStruct,
2503    pub sType: WGPUSType,
2504}
2505#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2506const _: () = {
2507    ["Size of WGPUChainedStruct"][::core::mem::size_of::<WGPUChainedStruct>() - 16usize];
2508    ["Alignment of WGPUChainedStruct"][::core::mem::align_of::<WGPUChainedStruct>() - 8usize];
2509    ["Offset of field: WGPUChainedStruct::next"]
2510        [::core::mem::offset_of!(WGPUChainedStruct, next) - 0usize];
2511    ["Offset of field: WGPUChainedStruct::sType"]
2512        [::core::mem::offset_of!(WGPUChainedStruct, sType) - 8usize];
2513};
2514impl Default for WGPUChainedStruct {
2515    fn default() -> Self {
2516        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2517        unsafe {
2518            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2519            s.assume_init()
2520        }
2521    }
2522}
2523#[repr(C)]
2524#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2525pub struct WGPUBufferMapCallbackInfo {
2526    pub nextInChain: *mut WGPUChainedStruct,
2527    pub mode: WGPUCallbackMode,
2528    pub callback: WGPUBufferMapCallback,
2529    pub userdata1: *mut ::core::ffi::c_void,
2530    pub userdata2: *mut ::core::ffi::c_void,
2531}
2532#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2533const _: () = {
2534    ["Size of WGPUBufferMapCallbackInfo"]
2535        [::core::mem::size_of::<WGPUBufferMapCallbackInfo>() - 40usize];
2536    ["Alignment of WGPUBufferMapCallbackInfo"]
2537        [::core::mem::align_of::<WGPUBufferMapCallbackInfo>() - 8usize];
2538    ["Offset of field: WGPUBufferMapCallbackInfo::nextInChain"]
2539        [::core::mem::offset_of!(WGPUBufferMapCallbackInfo, nextInChain) - 0usize];
2540    ["Offset of field: WGPUBufferMapCallbackInfo::mode"]
2541        [::core::mem::offset_of!(WGPUBufferMapCallbackInfo, mode) - 8usize];
2542    ["Offset of field: WGPUBufferMapCallbackInfo::callback"]
2543        [::core::mem::offset_of!(WGPUBufferMapCallbackInfo, callback) - 16usize];
2544    ["Offset of field: WGPUBufferMapCallbackInfo::userdata1"]
2545        [::core::mem::offset_of!(WGPUBufferMapCallbackInfo, userdata1) - 24usize];
2546    ["Offset of field: WGPUBufferMapCallbackInfo::userdata2"]
2547        [::core::mem::offset_of!(WGPUBufferMapCallbackInfo, userdata2) - 32usize];
2548};
2549impl Default for WGPUBufferMapCallbackInfo {
2550    fn default() -> Self {
2551        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2552        unsafe {
2553            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2554            s.assume_init()
2555        }
2556    }
2557}
2558#[repr(C)]
2559#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2560pub struct WGPUCompilationInfoCallbackInfo {
2561    pub nextInChain: *mut WGPUChainedStruct,
2562    pub mode: WGPUCallbackMode,
2563    pub callback: WGPUCompilationInfoCallback,
2564    pub userdata1: *mut ::core::ffi::c_void,
2565    pub userdata2: *mut ::core::ffi::c_void,
2566}
2567#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2568const _: () = {
2569    ["Size of WGPUCompilationInfoCallbackInfo"]
2570        [::core::mem::size_of::<WGPUCompilationInfoCallbackInfo>() - 40usize];
2571    ["Alignment of WGPUCompilationInfoCallbackInfo"]
2572        [::core::mem::align_of::<WGPUCompilationInfoCallbackInfo>() - 8usize];
2573    ["Offset of field: WGPUCompilationInfoCallbackInfo::nextInChain"]
2574        [::core::mem::offset_of!(WGPUCompilationInfoCallbackInfo, nextInChain) - 0usize];
2575    ["Offset of field: WGPUCompilationInfoCallbackInfo::mode"]
2576        [::core::mem::offset_of!(WGPUCompilationInfoCallbackInfo, mode) - 8usize];
2577    ["Offset of field: WGPUCompilationInfoCallbackInfo::callback"]
2578        [::core::mem::offset_of!(WGPUCompilationInfoCallbackInfo, callback) - 16usize];
2579    ["Offset of field: WGPUCompilationInfoCallbackInfo::userdata1"]
2580        [::core::mem::offset_of!(WGPUCompilationInfoCallbackInfo, userdata1) - 24usize];
2581    ["Offset of field: WGPUCompilationInfoCallbackInfo::userdata2"]
2582        [::core::mem::offset_of!(WGPUCompilationInfoCallbackInfo, userdata2) - 32usize];
2583};
2584impl Default for WGPUCompilationInfoCallbackInfo {
2585    fn default() -> Self {
2586        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2587        unsafe {
2588            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2589            s.assume_init()
2590        }
2591    }
2592}
2593#[repr(C)]
2594#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2595pub struct WGPUCreateComputePipelineAsyncCallbackInfo {
2596    pub nextInChain: *mut WGPUChainedStruct,
2597    pub mode: WGPUCallbackMode,
2598    pub callback: WGPUCreateComputePipelineAsyncCallback,
2599    pub userdata1: *mut ::core::ffi::c_void,
2600    pub userdata2: *mut ::core::ffi::c_void,
2601}
2602#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2603const _: () = {
2604    ["Size of WGPUCreateComputePipelineAsyncCallbackInfo"]
2605        [::core::mem::size_of::<WGPUCreateComputePipelineAsyncCallbackInfo>() - 40usize];
2606    ["Alignment of WGPUCreateComputePipelineAsyncCallbackInfo"]
2607        [::core::mem::align_of::<WGPUCreateComputePipelineAsyncCallbackInfo>() - 8usize];
2608    ["Offset of field: WGPUCreateComputePipelineAsyncCallbackInfo::nextInChain"]
2609        [::core::mem::offset_of!(WGPUCreateComputePipelineAsyncCallbackInfo, nextInChain) - 0usize];
2610    ["Offset of field: WGPUCreateComputePipelineAsyncCallbackInfo::mode"]
2611        [::core::mem::offset_of!(WGPUCreateComputePipelineAsyncCallbackInfo, mode) - 8usize];
2612    ["Offset of field: WGPUCreateComputePipelineAsyncCallbackInfo::callback"]
2613        [::core::mem::offset_of!(WGPUCreateComputePipelineAsyncCallbackInfo, callback) - 16usize];
2614    ["Offset of field: WGPUCreateComputePipelineAsyncCallbackInfo::userdata1"]
2615        [::core::mem::offset_of!(WGPUCreateComputePipelineAsyncCallbackInfo, userdata1) - 24usize];
2616    ["Offset of field: WGPUCreateComputePipelineAsyncCallbackInfo::userdata2"]
2617        [::core::mem::offset_of!(WGPUCreateComputePipelineAsyncCallbackInfo, userdata2) - 32usize];
2618};
2619impl Default for WGPUCreateComputePipelineAsyncCallbackInfo {
2620    fn default() -> Self {
2621        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2622        unsafe {
2623            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2624            s.assume_init()
2625        }
2626    }
2627}
2628#[repr(C)]
2629#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2630pub struct WGPUCreateRenderPipelineAsyncCallbackInfo {
2631    pub nextInChain: *mut WGPUChainedStruct,
2632    pub mode: WGPUCallbackMode,
2633    pub callback: WGPUCreateRenderPipelineAsyncCallback,
2634    pub userdata1: *mut ::core::ffi::c_void,
2635    pub userdata2: *mut ::core::ffi::c_void,
2636}
2637#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2638const _: () = {
2639    ["Size of WGPUCreateRenderPipelineAsyncCallbackInfo"]
2640        [::core::mem::size_of::<WGPUCreateRenderPipelineAsyncCallbackInfo>() - 40usize];
2641    ["Alignment of WGPUCreateRenderPipelineAsyncCallbackInfo"]
2642        [::core::mem::align_of::<WGPUCreateRenderPipelineAsyncCallbackInfo>() - 8usize];
2643    ["Offset of field: WGPUCreateRenderPipelineAsyncCallbackInfo::nextInChain"]
2644        [::core::mem::offset_of!(WGPUCreateRenderPipelineAsyncCallbackInfo, nextInChain) - 0usize];
2645    ["Offset of field: WGPUCreateRenderPipelineAsyncCallbackInfo::mode"]
2646        [::core::mem::offset_of!(WGPUCreateRenderPipelineAsyncCallbackInfo, mode) - 8usize];
2647    ["Offset of field: WGPUCreateRenderPipelineAsyncCallbackInfo::callback"]
2648        [::core::mem::offset_of!(WGPUCreateRenderPipelineAsyncCallbackInfo, callback) - 16usize];
2649    ["Offset of field: WGPUCreateRenderPipelineAsyncCallbackInfo::userdata1"]
2650        [::core::mem::offset_of!(WGPUCreateRenderPipelineAsyncCallbackInfo, userdata1) - 24usize];
2651    ["Offset of field: WGPUCreateRenderPipelineAsyncCallbackInfo::userdata2"]
2652        [::core::mem::offset_of!(WGPUCreateRenderPipelineAsyncCallbackInfo, userdata2) - 32usize];
2653};
2654impl Default for WGPUCreateRenderPipelineAsyncCallbackInfo {
2655    fn default() -> Self {
2656        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2657        unsafe {
2658            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2659            s.assume_init()
2660        }
2661    }
2662}
2663#[repr(C)]
2664#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2665pub struct WGPUDeviceLostCallbackInfo {
2666    pub nextInChain: *mut WGPUChainedStruct,
2667    pub mode: WGPUCallbackMode,
2668    pub callback: WGPUDeviceLostCallback,
2669    pub userdata1: *mut ::core::ffi::c_void,
2670    pub userdata2: *mut ::core::ffi::c_void,
2671}
2672#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2673const _: () = {
2674    ["Size of WGPUDeviceLostCallbackInfo"]
2675        [::core::mem::size_of::<WGPUDeviceLostCallbackInfo>() - 40usize];
2676    ["Alignment of WGPUDeviceLostCallbackInfo"]
2677        [::core::mem::align_of::<WGPUDeviceLostCallbackInfo>() - 8usize];
2678    ["Offset of field: WGPUDeviceLostCallbackInfo::nextInChain"]
2679        [::core::mem::offset_of!(WGPUDeviceLostCallbackInfo, nextInChain) - 0usize];
2680    ["Offset of field: WGPUDeviceLostCallbackInfo::mode"]
2681        [::core::mem::offset_of!(WGPUDeviceLostCallbackInfo, mode) - 8usize];
2682    ["Offset of field: WGPUDeviceLostCallbackInfo::callback"]
2683        [::core::mem::offset_of!(WGPUDeviceLostCallbackInfo, callback) - 16usize];
2684    ["Offset of field: WGPUDeviceLostCallbackInfo::userdata1"]
2685        [::core::mem::offset_of!(WGPUDeviceLostCallbackInfo, userdata1) - 24usize];
2686    ["Offset of field: WGPUDeviceLostCallbackInfo::userdata2"]
2687        [::core::mem::offset_of!(WGPUDeviceLostCallbackInfo, userdata2) - 32usize];
2688};
2689impl Default for WGPUDeviceLostCallbackInfo {
2690    fn default() -> Self {
2691        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2692        unsafe {
2693            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2694            s.assume_init()
2695        }
2696    }
2697}
2698#[repr(C)]
2699#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2700pub struct WGPULoggingCallbackInfo {
2701    pub nextInChain: *mut WGPUChainedStruct,
2702    pub callback: WGPULoggingCallback,
2703    pub userdata1: *mut ::core::ffi::c_void,
2704    pub userdata2: *mut ::core::ffi::c_void,
2705}
2706#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2707const _: () = {
2708    ["Size of WGPULoggingCallbackInfo"]
2709        [::core::mem::size_of::<WGPULoggingCallbackInfo>() - 32usize];
2710    ["Alignment of WGPULoggingCallbackInfo"]
2711        [::core::mem::align_of::<WGPULoggingCallbackInfo>() - 8usize];
2712    ["Offset of field: WGPULoggingCallbackInfo::nextInChain"]
2713        [::core::mem::offset_of!(WGPULoggingCallbackInfo, nextInChain) - 0usize];
2714    ["Offset of field: WGPULoggingCallbackInfo::callback"]
2715        [::core::mem::offset_of!(WGPULoggingCallbackInfo, callback) - 8usize];
2716    ["Offset of field: WGPULoggingCallbackInfo::userdata1"]
2717        [::core::mem::offset_of!(WGPULoggingCallbackInfo, userdata1) - 16usize];
2718    ["Offset of field: WGPULoggingCallbackInfo::userdata2"]
2719        [::core::mem::offset_of!(WGPULoggingCallbackInfo, userdata2) - 24usize];
2720};
2721impl Default for WGPULoggingCallbackInfo {
2722    fn default() -> Self {
2723        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2724        unsafe {
2725            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2726            s.assume_init()
2727        }
2728    }
2729}
2730#[repr(C)]
2731#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2732pub struct WGPUPopErrorScopeCallbackInfo {
2733    pub nextInChain: *mut WGPUChainedStruct,
2734    pub mode: WGPUCallbackMode,
2735    pub callback: WGPUPopErrorScopeCallback,
2736    pub userdata1: *mut ::core::ffi::c_void,
2737    pub userdata2: *mut ::core::ffi::c_void,
2738}
2739#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2740const _: () = {
2741    ["Size of WGPUPopErrorScopeCallbackInfo"]
2742        [::core::mem::size_of::<WGPUPopErrorScopeCallbackInfo>() - 40usize];
2743    ["Alignment of WGPUPopErrorScopeCallbackInfo"]
2744        [::core::mem::align_of::<WGPUPopErrorScopeCallbackInfo>() - 8usize];
2745    ["Offset of field: WGPUPopErrorScopeCallbackInfo::nextInChain"]
2746        [::core::mem::offset_of!(WGPUPopErrorScopeCallbackInfo, nextInChain) - 0usize];
2747    ["Offset of field: WGPUPopErrorScopeCallbackInfo::mode"]
2748        [::core::mem::offset_of!(WGPUPopErrorScopeCallbackInfo, mode) - 8usize];
2749    ["Offset of field: WGPUPopErrorScopeCallbackInfo::callback"]
2750        [::core::mem::offset_of!(WGPUPopErrorScopeCallbackInfo, callback) - 16usize];
2751    ["Offset of field: WGPUPopErrorScopeCallbackInfo::userdata1"]
2752        [::core::mem::offset_of!(WGPUPopErrorScopeCallbackInfo, userdata1) - 24usize];
2753    ["Offset of field: WGPUPopErrorScopeCallbackInfo::userdata2"]
2754        [::core::mem::offset_of!(WGPUPopErrorScopeCallbackInfo, userdata2) - 32usize];
2755};
2756impl Default for WGPUPopErrorScopeCallbackInfo {
2757    fn default() -> Self {
2758        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2759        unsafe {
2760            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2761            s.assume_init()
2762        }
2763    }
2764}
2765#[repr(C)]
2766#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2767pub struct WGPUQueueWorkDoneCallbackInfo {
2768    pub nextInChain: *mut WGPUChainedStruct,
2769    pub mode: WGPUCallbackMode,
2770    pub callback: WGPUQueueWorkDoneCallback,
2771    pub userdata1: *mut ::core::ffi::c_void,
2772    pub userdata2: *mut ::core::ffi::c_void,
2773}
2774#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2775const _: () = {
2776    ["Size of WGPUQueueWorkDoneCallbackInfo"]
2777        [::core::mem::size_of::<WGPUQueueWorkDoneCallbackInfo>() - 40usize];
2778    ["Alignment of WGPUQueueWorkDoneCallbackInfo"]
2779        [::core::mem::align_of::<WGPUQueueWorkDoneCallbackInfo>() - 8usize];
2780    ["Offset of field: WGPUQueueWorkDoneCallbackInfo::nextInChain"]
2781        [::core::mem::offset_of!(WGPUQueueWorkDoneCallbackInfo, nextInChain) - 0usize];
2782    ["Offset of field: WGPUQueueWorkDoneCallbackInfo::mode"]
2783        [::core::mem::offset_of!(WGPUQueueWorkDoneCallbackInfo, mode) - 8usize];
2784    ["Offset of field: WGPUQueueWorkDoneCallbackInfo::callback"]
2785        [::core::mem::offset_of!(WGPUQueueWorkDoneCallbackInfo, callback) - 16usize];
2786    ["Offset of field: WGPUQueueWorkDoneCallbackInfo::userdata1"]
2787        [::core::mem::offset_of!(WGPUQueueWorkDoneCallbackInfo, userdata1) - 24usize];
2788    ["Offset of field: WGPUQueueWorkDoneCallbackInfo::userdata2"]
2789        [::core::mem::offset_of!(WGPUQueueWorkDoneCallbackInfo, userdata2) - 32usize];
2790};
2791impl Default for WGPUQueueWorkDoneCallbackInfo {
2792    fn default() -> Self {
2793        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2794        unsafe {
2795            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2796            s.assume_init()
2797        }
2798    }
2799}
2800#[repr(C)]
2801#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2802pub struct WGPURequestAdapterCallbackInfo {
2803    pub nextInChain: *mut WGPUChainedStruct,
2804    pub mode: WGPUCallbackMode,
2805    pub callback: WGPURequestAdapterCallback,
2806    pub userdata1: *mut ::core::ffi::c_void,
2807    pub userdata2: *mut ::core::ffi::c_void,
2808}
2809#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2810const _: () = {
2811    ["Size of WGPURequestAdapterCallbackInfo"]
2812        [::core::mem::size_of::<WGPURequestAdapterCallbackInfo>() - 40usize];
2813    ["Alignment of WGPURequestAdapterCallbackInfo"]
2814        [::core::mem::align_of::<WGPURequestAdapterCallbackInfo>() - 8usize];
2815    ["Offset of field: WGPURequestAdapterCallbackInfo::nextInChain"]
2816        [::core::mem::offset_of!(WGPURequestAdapterCallbackInfo, nextInChain) - 0usize];
2817    ["Offset of field: WGPURequestAdapterCallbackInfo::mode"]
2818        [::core::mem::offset_of!(WGPURequestAdapterCallbackInfo, mode) - 8usize];
2819    ["Offset of field: WGPURequestAdapterCallbackInfo::callback"]
2820        [::core::mem::offset_of!(WGPURequestAdapterCallbackInfo, callback) - 16usize];
2821    ["Offset of field: WGPURequestAdapterCallbackInfo::userdata1"]
2822        [::core::mem::offset_of!(WGPURequestAdapterCallbackInfo, userdata1) - 24usize];
2823    ["Offset of field: WGPURequestAdapterCallbackInfo::userdata2"]
2824        [::core::mem::offset_of!(WGPURequestAdapterCallbackInfo, userdata2) - 32usize];
2825};
2826impl Default for WGPURequestAdapterCallbackInfo {
2827    fn default() -> Self {
2828        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2829        unsafe {
2830            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2831            s.assume_init()
2832        }
2833    }
2834}
2835#[repr(C)]
2836#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2837pub struct WGPURequestDeviceCallbackInfo {
2838    pub nextInChain: *mut WGPUChainedStruct,
2839    pub mode: WGPUCallbackMode,
2840    pub callback: WGPURequestDeviceCallback,
2841    pub userdata1: *mut ::core::ffi::c_void,
2842    pub userdata2: *mut ::core::ffi::c_void,
2843}
2844#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2845const _: () = {
2846    ["Size of WGPURequestDeviceCallbackInfo"]
2847        [::core::mem::size_of::<WGPURequestDeviceCallbackInfo>() - 40usize];
2848    ["Alignment of WGPURequestDeviceCallbackInfo"]
2849        [::core::mem::align_of::<WGPURequestDeviceCallbackInfo>() - 8usize];
2850    ["Offset of field: WGPURequestDeviceCallbackInfo::nextInChain"]
2851        [::core::mem::offset_of!(WGPURequestDeviceCallbackInfo, nextInChain) - 0usize];
2852    ["Offset of field: WGPURequestDeviceCallbackInfo::mode"]
2853        [::core::mem::offset_of!(WGPURequestDeviceCallbackInfo, mode) - 8usize];
2854    ["Offset of field: WGPURequestDeviceCallbackInfo::callback"]
2855        [::core::mem::offset_of!(WGPURequestDeviceCallbackInfo, callback) - 16usize];
2856    ["Offset of field: WGPURequestDeviceCallbackInfo::userdata1"]
2857        [::core::mem::offset_of!(WGPURequestDeviceCallbackInfo, userdata1) - 24usize];
2858    ["Offset of field: WGPURequestDeviceCallbackInfo::userdata2"]
2859        [::core::mem::offset_of!(WGPURequestDeviceCallbackInfo, userdata2) - 32usize];
2860};
2861impl Default for WGPURequestDeviceCallbackInfo {
2862    fn default() -> Self {
2863        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2864        unsafe {
2865            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2866            s.assume_init()
2867        }
2868    }
2869}
2870#[repr(C)]
2871#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2872pub struct WGPUUncapturedErrorCallbackInfo {
2873    pub nextInChain: *mut WGPUChainedStruct,
2874    pub callback: WGPUUncapturedErrorCallback,
2875    pub userdata1: *mut ::core::ffi::c_void,
2876    pub userdata2: *mut ::core::ffi::c_void,
2877}
2878#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2879const _: () = {
2880    ["Size of WGPUUncapturedErrorCallbackInfo"]
2881        [::core::mem::size_of::<WGPUUncapturedErrorCallbackInfo>() - 32usize];
2882    ["Alignment of WGPUUncapturedErrorCallbackInfo"]
2883        [::core::mem::align_of::<WGPUUncapturedErrorCallbackInfo>() - 8usize];
2884    ["Offset of field: WGPUUncapturedErrorCallbackInfo::nextInChain"]
2885        [::core::mem::offset_of!(WGPUUncapturedErrorCallbackInfo, nextInChain) - 0usize];
2886    ["Offset of field: WGPUUncapturedErrorCallbackInfo::callback"]
2887        [::core::mem::offset_of!(WGPUUncapturedErrorCallbackInfo, callback) - 8usize];
2888    ["Offset of field: WGPUUncapturedErrorCallbackInfo::userdata1"]
2889        [::core::mem::offset_of!(WGPUUncapturedErrorCallbackInfo, userdata1) - 16usize];
2890    ["Offset of field: WGPUUncapturedErrorCallbackInfo::userdata2"]
2891        [::core::mem::offset_of!(WGPUUncapturedErrorCallbackInfo, userdata2) - 24usize];
2892};
2893impl Default for WGPUUncapturedErrorCallbackInfo {
2894    fn default() -> Self {
2895        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2896        unsafe {
2897            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2898            s.assume_init()
2899        }
2900    }
2901}
2902#[repr(C)]
2903#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2904pub struct WGPUAdapterPropertiesD3D {
2905    pub chain: WGPUChainedStruct,
2906    pub shaderModel: u32,
2907}
2908#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2909const _: () = {
2910    ["Size of WGPUAdapterPropertiesD3D"]
2911        [::core::mem::size_of::<WGPUAdapterPropertiesD3D>() - 24usize];
2912    ["Alignment of WGPUAdapterPropertiesD3D"]
2913        [::core::mem::align_of::<WGPUAdapterPropertiesD3D>() - 8usize];
2914    ["Offset of field: WGPUAdapterPropertiesD3D::chain"]
2915        [::core::mem::offset_of!(WGPUAdapterPropertiesD3D, chain) - 0usize];
2916    ["Offset of field: WGPUAdapterPropertiesD3D::shaderModel"]
2917        [::core::mem::offset_of!(WGPUAdapterPropertiesD3D, shaderModel) - 16usize];
2918};
2919impl Default for WGPUAdapterPropertiesD3D {
2920    fn default() -> Self {
2921        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2922        unsafe {
2923            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2924            s.assume_init()
2925        }
2926    }
2927}
2928#[repr(C)]
2929#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2930pub struct WGPUAdapterPropertiesSubgroups {
2931    pub chain: WGPUChainedStruct,
2932    pub subgroupMinSize: u32,
2933    pub subgroupMaxSize: u32,
2934}
2935#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2936const _: () = {
2937    ["Size of WGPUAdapterPropertiesSubgroups"]
2938        [::core::mem::size_of::<WGPUAdapterPropertiesSubgroups>() - 24usize];
2939    ["Alignment of WGPUAdapterPropertiesSubgroups"]
2940        [::core::mem::align_of::<WGPUAdapterPropertiesSubgroups>() - 8usize];
2941    ["Offset of field: WGPUAdapterPropertiesSubgroups::chain"]
2942        [::core::mem::offset_of!(WGPUAdapterPropertiesSubgroups, chain) - 0usize];
2943    ["Offset of field: WGPUAdapterPropertiesSubgroups::subgroupMinSize"]
2944        [::core::mem::offset_of!(WGPUAdapterPropertiesSubgroups, subgroupMinSize) - 16usize];
2945    ["Offset of field: WGPUAdapterPropertiesSubgroups::subgroupMaxSize"]
2946        [::core::mem::offset_of!(WGPUAdapterPropertiesSubgroups, subgroupMaxSize) - 20usize];
2947};
2948impl Default for WGPUAdapterPropertiesSubgroups {
2949    fn default() -> Self {
2950        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2951        unsafe {
2952            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2953            s.assume_init()
2954        }
2955    }
2956}
2957#[repr(C)]
2958#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2959pub struct WGPUAdapterPropertiesVk {
2960    pub chain: WGPUChainedStruct,
2961    pub driverVersion: u32,
2962}
2963#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2964const _: () = {
2965    ["Size of WGPUAdapterPropertiesVk"]
2966        [::core::mem::size_of::<WGPUAdapterPropertiesVk>() - 24usize];
2967    ["Alignment of WGPUAdapterPropertiesVk"]
2968        [::core::mem::align_of::<WGPUAdapterPropertiesVk>() - 8usize];
2969    ["Offset of field: WGPUAdapterPropertiesVk::chain"]
2970        [::core::mem::offset_of!(WGPUAdapterPropertiesVk, chain) - 0usize];
2971    ["Offset of field: WGPUAdapterPropertiesVk::driverVersion"]
2972        [::core::mem::offset_of!(WGPUAdapterPropertiesVk, driverVersion) - 16usize];
2973};
2974impl Default for WGPUAdapterPropertiesVk {
2975    fn default() -> Self {
2976        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
2977        unsafe {
2978            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2979            s.assume_init()
2980        }
2981    }
2982}
2983#[repr(C)]
2984#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
2985pub struct WGPUBindGroupLayoutEntryArraySize {
2986    pub chain: WGPUChainedStruct,
2987    pub arraySize: u32,
2988}
2989#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2990const _: () = {
2991    ["Size of WGPUBindGroupLayoutEntryArraySize"]
2992        [::core::mem::size_of::<WGPUBindGroupLayoutEntryArraySize>() - 24usize];
2993    ["Alignment of WGPUBindGroupLayoutEntryArraySize"]
2994        [::core::mem::align_of::<WGPUBindGroupLayoutEntryArraySize>() - 8usize];
2995    ["Offset of field: WGPUBindGroupLayoutEntryArraySize::chain"]
2996        [::core::mem::offset_of!(WGPUBindGroupLayoutEntryArraySize, chain) - 0usize];
2997    ["Offset of field: WGPUBindGroupLayoutEntryArraySize::arraySize"]
2998        [::core::mem::offset_of!(WGPUBindGroupLayoutEntryArraySize, arraySize) - 16usize];
2999};
3000impl Default for WGPUBindGroupLayoutEntryArraySize {
3001    fn default() -> Self {
3002        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3003        unsafe {
3004            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3005            s.assume_init()
3006        }
3007    }
3008}
3009#[repr(C)]
3010#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3011pub struct WGPUBlendComponent {
3012    pub operation: WGPUBlendOperation,
3013    pub srcFactor: WGPUBlendFactor,
3014    pub dstFactor: WGPUBlendFactor,
3015}
3016#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3017const _: () = {
3018    ["Size of WGPUBlendComponent"][::core::mem::size_of::<WGPUBlendComponent>() - 12usize];
3019    ["Alignment of WGPUBlendComponent"][::core::mem::align_of::<WGPUBlendComponent>() - 4usize];
3020    ["Offset of field: WGPUBlendComponent::operation"]
3021        [::core::mem::offset_of!(WGPUBlendComponent, operation) - 0usize];
3022    ["Offset of field: WGPUBlendComponent::srcFactor"]
3023        [::core::mem::offset_of!(WGPUBlendComponent, srcFactor) - 4usize];
3024    ["Offset of field: WGPUBlendComponent::dstFactor"]
3025        [::core::mem::offset_of!(WGPUBlendComponent, dstFactor) - 8usize];
3026};
3027impl Default for WGPUBlendComponent {
3028    fn default() -> Self {
3029        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3030        unsafe {
3031            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3032            s.assume_init()
3033        }
3034    }
3035}
3036#[repr(C)]
3037#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3038pub struct WGPUBufferBindingLayout {
3039    pub nextInChain: *mut WGPUChainedStruct,
3040    pub type_: WGPUBufferBindingType,
3041    pub hasDynamicOffset: WGPUBool,
3042    pub minBindingSize: u64,
3043}
3044#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3045const _: () = {
3046    ["Size of WGPUBufferBindingLayout"]
3047        [::core::mem::size_of::<WGPUBufferBindingLayout>() - 24usize];
3048    ["Alignment of WGPUBufferBindingLayout"]
3049        [::core::mem::align_of::<WGPUBufferBindingLayout>() - 8usize];
3050    ["Offset of field: WGPUBufferBindingLayout::nextInChain"]
3051        [::core::mem::offset_of!(WGPUBufferBindingLayout, nextInChain) - 0usize];
3052    ["Offset of field: WGPUBufferBindingLayout::type_"]
3053        [::core::mem::offset_of!(WGPUBufferBindingLayout, type_) - 8usize];
3054    ["Offset of field: WGPUBufferBindingLayout::hasDynamicOffset"]
3055        [::core::mem::offset_of!(WGPUBufferBindingLayout, hasDynamicOffset) - 12usize];
3056    ["Offset of field: WGPUBufferBindingLayout::minBindingSize"]
3057        [::core::mem::offset_of!(WGPUBufferBindingLayout, minBindingSize) - 16usize];
3058};
3059impl Default for WGPUBufferBindingLayout {
3060    fn default() -> Self {
3061        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3062        unsafe {
3063            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3064            s.assume_init()
3065        }
3066    }
3067}
3068#[repr(C)]
3069#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3070pub struct WGPUBufferHostMappedPointer {
3071    pub chain: WGPUChainedStruct,
3072    pub pointer: *mut ::core::ffi::c_void,
3073    pub disposeCallback: WGPUCallback,
3074    pub userdata: *mut ::core::ffi::c_void,
3075}
3076#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3077const _: () = {
3078    ["Size of WGPUBufferHostMappedPointer"]
3079        [::core::mem::size_of::<WGPUBufferHostMappedPointer>() - 40usize];
3080    ["Alignment of WGPUBufferHostMappedPointer"]
3081        [::core::mem::align_of::<WGPUBufferHostMappedPointer>() - 8usize];
3082    ["Offset of field: WGPUBufferHostMappedPointer::chain"]
3083        [::core::mem::offset_of!(WGPUBufferHostMappedPointer, chain) - 0usize];
3084    ["Offset of field: WGPUBufferHostMappedPointer::pointer"]
3085        [::core::mem::offset_of!(WGPUBufferHostMappedPointer, pointer) - 16usize];
3086    ["Offset of field: WGPUBufferHostMappedPointer::disposeCallback"]
3087        [::core::mem::offset_of!(WGPUBufferHostMappedPointer, disposeCallback) - 24usize];
3088    ["Offset of field: WGPUBufferHostMappedPointer::userdata"]
3089        [::core::mem::offset_of!(WGPUBufferHostMappedPointer, userdata) - 32usize];
3090};
3091impl Default for WGPUBufferHostMappedPointer {
3092    fn default() -> Self {
3093        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3094        unsafe {
3095            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3096            s.assume_init()
3097        }
3098    }
3099}
3100#[repr(C)]
3101#[derive(Debug, Default, Copy, Clone, PartialOrd, PartialEq)]
3102pub struct WGPUColor {
3103    pub r: f64,
3104    pub g: f64,
3105    pub b: f64,
3106    pub a: f64,
3107}
3108#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3109const _: () = {
3110    ["Size of WGPUColor"][::core::mem::size_of::<WGPUColor>() - 32usize];
3111    ["Alignment of WGPUColor"][::core::mem::align_of::<WGPUColor>() - 8usize];
3112    ["Offset of field: WGPUColor::r"][::core::mem::offset_of!(WGPUColor, r) - 0usize];
3113    ["Offset of field: WGPUColor::g"][::core::mem::offset_of!(WGPUColor, g) - 8usize];
3114    ["Offset of field: WGPUColor::b"][::core::mem::offset_of!(WGPUColor, b) - 16usize];
3115    ["Offset of field: WGPUColor::a"][::core::mem::offset_of!(WGPUColor, a) - 24usize];
3116};
3117#[repr(C)]
3118#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3119pub struct WGPUColorTargetStateExpandResolveTextureDawn {
3120    pub chain: WGPUChainedStruct,
3121    pub enabled: WGPUBool,
3122}
3123#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3124const _: () = {
3125    ["Size of WGPUColorTargetStateExpandResolveTextureDawn"]
3126        [::core::mem::size_of::<WGPUColorTargetStateExpandResolveTextureDawn>() - 24usize];
3127    ["Alignment of WGPUColorTargetStateExpandResolveTextureDawn"]
3128        [::core::mem::align_of::<WGPUColorTargetStateExpandResolveTextureDawn>() - 8usize];
3129    ["Offset of field: WGPUColorTargetStateExpandResolveTextureDawn::chain"]
3130        [::core::mem::offset_of!(WGPUColorTargetStateExpandResolveTextureDawn, chain) - 0usize];
3131    ["Offset of field: WGPUColorTargetStateExpandResolveTextureDawn::enabled"]
3132        [::core::mem::offset_of!(WGPUColorTargetStateExpandResolveTextureDawn, enabled) - 16usize];
3133};
3134impl Default for WGPUColorTargetStateExpandResolveTextureDawn {
3135    fn default() -> Self {
3136        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3137        unsafe {
3138            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3139            s.assume_init()
3140        }
3141    }
3142}
3143#[repr(C)]
3144#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3145pub struct WGPUCommandBufferDescriptor {
3146    pub nextInChain: *mut WGPUChainedStruct,
3147    pub label: WGPUStringView,
3148}
3149#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3150const _: () = {
3151    ["Size of WGPUCommandBufferDescriptor"]
3152        [::core::mem::size_of::<WGPUCommandBufferDescriptor>() - 24usize];
3153    ["Alignment of WGPUCommandBufferDescriptor"]
3154        [::core::mem::align_of::<WGPUCommandBufferDescriptor>() - 8usize];
3155    ["Offset of field: WGPUCommandBufferDescriptor::nextInChain"]
3156        [::core::mem::offset_of!(WGPUCommandBufferDescriptor, nextInChain) - 0usize];
3157    ["Offset of field: WGPUCommandBufferDescriptor::label"]
3158        [::core::mem::offset_of!(WGPUCommandBufferDescriptor, label) - 8usize];
3159};
3160impl Default for WGPUCommandBufferDescriptor {
3161    fn default() -> Self {
3162        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3163        unsafe {
3164            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3165            s.assume_init()
3166        }
3167    }
3168}
3169#[repr(C)]
3170#[derive(Debug, Copy, Clone, PartialOrd, PartialEq)]
3171pub struct WGPUConstantEntry {
3172    pub nextInChain: *mut WGPUChainedStruct,
3173    pub key: WGPUStringView,
3174    pub value: f64,
3175}
3176#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3177const _: () = {
3178    ["Size of WGPUConstantEntry"][::core::mem::size_of::<WGPUConstantEntry>() - 32usize];
3179    ["Alignment of WGPUConstantEntry"][::core::mem::align_of::<WGPUConstantEntry>() - 8usize];
3180    ["Offset of field: WGPUConstantEntry::nextInChain"]
3181        [::core::mem::offset_of!(WGPUConstantEntry, nextInChain) - 0usize];
3182    ["Offset of field: WGPUConstantEntry::key"]
3183        [::core::mem::offset_of!(WGPUConstantEntry, key) - 8usize];
3184    ["Offset of field: WGPUConstantEntry::value"]
3185        [::core::mem::offset_of!(WGPUConstantEntry, value) - 24usize];
3186};
3187impl Default for WGPUConstantEntry {
3188    fn default() -> Self {
3189        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3190        unsafe {
3191            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3192            s.assume_init()
3193        }
3194    }
3195}
3196#[repr(C)]
3197#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3198pub struct WGPUCopyTextureForBrowserOptions {
3199    pub nextInChain: *mut WGPUChainedStruct,
3200    pub flipY: WGPUBool,
3201    pub needsColorSpaceConversion: WGPUBool,
3202    pub srcAlphaMode: WGPUAlphaMode,
3203    pub srcTransferFunctionParameters: *const f32,
3204    pub conversionMatrix: *const f32,
3205    pub dstTransferFunctionParameters: *const f32,
3206    pub dstAlphaMode: WGPUAlphaMode,
3207    pub internalUsage: WGPUBool,
3208}
3209#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3210const _: () = {
3211    ["Size of WGPUCopyTextureForBrowserOptions"]
3212        [::core::mem::size_of::<WGPUCopyTextureForBrowserOptions>() - 56usize];
3213    ["Alignment of WGPUCopyTextureForBrowserOptions"]
3214        [::core::mem::align_of::<WGPUCopyTextureForBrowserOptions>() - 8usize];
3215    ["Offset of field: WGPUCopyTextureForBrowserOptions::nextInChain"]
3216        [::core::mem::offset_of!(WGPUCopyTextureForBrowserOptions, nextInChain) - 0usize];
3217    ["Offset of field: WGPUCopyTextureForBrowserOptions::flipY"]
3218        [::core::mem::offset_of!(WGPUCopyTextureForBrowserOptions, flipY) - 8usize];
3219    ["Offset of field: WGPUCopyTextureForBrowserOptions::needsColorSpaceConversion"][::core::mem::offset_of!(
3220        WGPUCopyTextureForBrowserOptions,
3221        needsColorSpaceConversion
3222    ) - 12usize];
3223    ["Offset of field: WGPUCopyTextureForBrowserOptions::srcAlphaMode"]
3224        [::core::mem::offset_of!(WGPUCopyTextureForBrowserOptions, srcAlphaMode) - 16usize];
3225    ["Offset of field: WGPUCopyTextureForBrowserOptions::srcTransferFunctionParameters"][::core::mem::offset_of!(
3226        WGPUCopyTextureForBrowserOptions,
3227        srcTransferFunctionParameters
3228    )
3229        - 24usize];
3230    ["Offset of field: WGPUCopyTextureForBrowserOptions::conversionMatrix"]
3231        [::core::mem::offset_of!(WGPUCopyTextureForBrowserOptions, conversionMatrix) - 32usize];
3232    ["Offset of field: WGPUCopyTextureForBrowserOptions::dstTransferFunctionParameters"][::core::mem::offset_of!(
3233        WGPUCopyTextureForBrowserOptions,
3234        dstTransferFunctionParameters
3235    )
3236        - 40usize];
3237    ["Offset of field: WGPUCopyTextureForBrowserOptions::dstAlphaMode"]
3238        [::core::mem::offset_of!(WGPUCopyTextureForBrowserOptions, dstAlphaMode) - 48usize];
3239    ["Offset of field: WGPUCopyTextureForBrowserOptions::internalUsage"]
3240        [::core::mem::offset_of!(WGPUCopyTextureForBrowserOptions, internalUsage) - 52usize];
3241};
3242impl Default for WGPUCopyTextureForBrowserOptions {
3243    fn default() -> Self {
3244        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3245        unsafe {
3246            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3247            s.assume_init()
3248        }
3249    }
3250}
3251#[repr(C)]
3252#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3253pub struct WGPUDawnAdapterPropertiesPowerPreference {
3254    pub chain: WGPUChainedStruct,
3255    pub powerPreference: WGPUPowerPreference,
3256}
3257#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3258const _: () = {
3259    ["Size of WGPUDawnAdapterPropertiesPowerPreference"]
3260        [::core::mem::size_of::<WGPUDawnAdapterPropertiesPowerPreference>() - 24usize];
3261    ["Alignment of WGPUDawnAdapterPropertiesPowerPreference"]
3262        [::core::mem::align_of::<WGPUDawnAdapterPropertiesPowerPreference>() - 8usize];
3263    ["Offset of field: WGPUDawnAdapterPropertiesPowerPreference::chain"]
3264        [::core::mem::offset_of!(WGPUDawnAdapterPropertiesPowerPreference, chain) - 0usize];
3265    ["Offset of field: WGPUDawnAdapterPropertiesPowerPreference::powerPreference"][::core::mem::offset_of!(
3266        WGPUDawnAdapterPropertiesPowerPreference,
3267        powerPreference
3268    ) - 16usize];
3269};
3270impl Default for WGPUDawnAdapterPropertiesPowerPreference {
3271    fn default() -> Self {
3272        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3273        unsafe {
3274            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3275            s.assume_init()
3276        }
3277    }
3278}
3279#[repr(C)]
3280#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3281pub struct WGPUDawnBufferDescriptorErrorInfoFromWireClient {
3282    pub chain: WGPUChainedStruct,
3283    pub outOfMemory: WGPUBool,
3284}
3285#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3286const _: () = {
3287    ["Size of WGPUDawnBufferDescriptorErrorInfoFromWireClient"]
3288        [::core::mem::size_of::<WGPUDawnBufferDescriptorErrorInfoFromWireClient>() - 24usize];
3289    ["Alignment of WGPUDawnBufferDescriptorErrorInfoFromWireClient"]
3290        [::core::mem::align_of::<WGPUDawnBufferDescriptorErrorInfoFromWireClient>() - 8usize];
3291    ["Offset of field: WGPUDawnBufferDescriptorErrorInfoFromWireClient::chain"]
3292        [::core::mem::offset_of!(WGPUDawnBufferDescriptorErrorInfoFromWireClient, chain) - 0usize];
3293    ["Offset of field: WGPUDawnBufferDescriptorErrorInfoFromWireClient::outOfMemory"][::core::mem::offset_of!(
3294        WGPUDawnBufferDescriptorErrorInfoFromWireClient,
3295        outOfMemory
3296    ) - 16usize];
3297};
3298impl Default for WGPUDawnBufferDescriptorErrorInfoFromWireClient {
3299    fn default() -> Self {
3300        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3301        unsafe {
3302            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3303            s.assume_init()
3304        }
3305    }
3306}
3307#[repr(C)]
3308#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3309pub struct WGPUDawnCacheDeviceDescriptor {
3310    pub chain: WGPUChainedStruct,
3311    pub isolationKey: WGPUStringView,
3312    pub loadDataFunction: WGPUDawnLoadCacheDataFunction,
3313    pub storeDataFunction: WGPUDawnStoreCacheDataFunction,
3314    pub functionUserdata: *mut ::core::ffi::c_void,
3315}
3316#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3317const _: () = {
3318    ["Size of WGPUDawnCacheDeviceDescriptor"]
3319        [::core::mem::size_of::<WGPUDawnCacheDeviceDescriptor>() - 56usize];
3320    ["Alignment of WGPUDawnCacheDeviceDescriptor"]
3321        [::core::mem::align_of::<WGPUDawnCacheDeviceDescriptor>() - 8usize];
3322    ["Offset of field: WGPUDawnCacheDeviceDescriptor::chain"]
3323        [::core::mem::offset_of!(WGPUDawnCacheDeviceDescriptor, chain) - 0usize];
3324    ["Offset of field: WGPUDawnCacheDeviceDescriptor::isolationKey"]
3325        [::core::mem::offset_of!(WGPUDawnCacheDeviceDescriptor, isolationKey) - 16usize];
3326    ["Offset of field: WGPUDawnCacheDeviceDescriptor::loadDataFunction"]
3327        [::core::mem::offset_of!(WGPUDawnCacheDeviceDescriptor, loadDataFunction) - 32usize];
3328    ["Offset of field: WGPUDawnCacheDeviceDescriptor::storeDataFunction"]
3329        [::core::mem::offset_of!(WGPUDawnCacheDeviceDescriptor, storeDataFunction) - 40usize];
3330    ["Offset of field: WGPUDawnCacheDeviceDescriptor::functionUserdata"]
3331        [::core::mem::offset_of!(WGPUDawnCacheDeviceDescriptor, functionUserdata) - 48usize];
3332};
3333impl Default for WGPUDawnCacheDeviceDescriptor {
3334    fn default() -> Self {
3335        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3336        unsafe {
3337            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3338            s.assume_init()
3339        }
3340    }
3341}
3342#[repr(C)]
3343#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3344pub struct WGPUDawnCompilationMessageUtf16 {
3345    pub chain: WGPUChainedStruct,
3346    pub linePos: u64,
3347    pub offset: u64,
3348    pub length: u64,
3349}
3350#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3351const _: () = {
3352    ["Size of WGPUDawnCompilationMessageUtf16"]
3353        [::core::mem::size_of::<WGPUDawnCompilationMessageUtf16>() - 40usize];
3354    ["Alignment of WGPUDawnCompilationMessageUtf16"]
3355        [::core::mem::align_of::<WGPUDawnCompilationMessageUtf16>() - 8usize];
3356    ["Offset of field: WGPUDawnCompilationMessageUtf16::chain"]
3357        [::core::mem::offset_of!(WGPUDawnCompilationMessageUtf16, chain) - 0usize];
3358    ["Offset of field: WGPUDawnCompilationMessageUtf16::linePos"]
3359        [::core::mem::offset_of!(WGPUDawnCompilationMessageUtf16, linePos) - 16usize];
3360    ["Offset of field: WGPUDawnCompilationMessageUtf16::offset"]
3361        [::core::mem::offset_of!(WGPUDawnCompilationMessageUtf16, offset) - 24usize];
3362    ["Offset of field: WGPUDawnCompilationMessageUtf16::length"]
3363        [::core::mem::offset_of!(WGPUDawnCompilationMessageUtf16, length) - 32usize];
3364};
3365impl Default for WGPUDawnCompilationMessageUtf16 {
3366    fn default() -> Self {
3367        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3368        unsafe {
3369            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3370            s.assume_init()
3371        }
3372    }
3373}
3374#[repr(C)]
3375#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3376pub struct WGPUDawnDeviceAllocatorControl {
3377    pub chain: WGPUChainedStruct,
3378    pub allocatorHeapBlockSize: usize,
3379}
3380#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3381const _: () = {
3382    ["Size of WGPUDawnDeviceAllocatorControl"]
3383        [::core::mem::size_of::<WGPUDawnDeviceAllocatorControl>() - 24usize];
3384    ["Alignment of WGPUDawnDeviceAllocatorControl"]
3385        [::core::mem::align_of::<WGPUDawnDeviceAllocatorControl>() - 8usize];
3386    ["Offset of field: WGPUDawnDeviceAllocatorControl::chain"]
3387        [::core::mem::offset_of!(WGPUDawnDeviceAllocatorControl, chain) - 0usize];
3388    ["Offset of field: WGPUDawnDeviceAllocatorControl::allocatorHeapBlockSize"]
3389        [::core::mem::offset_of!(WGPUDawnDeviceAllocatorControl, allocatorHeapBlockSize) - 16usize];
3390};
3391impl Default for WGPUDawnDeviceAllocatorControl {
3392    fn default() -> Self {
3393        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3394        unsafe {
3395            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3396            s.assume_init()
3397        }
3398    }
3399}
3400#[repr(C)]
3401#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3402pub struct WGPUDawnDrmFormatProperties {
3403    pub modifier: u64,
3404    pub modifierPlaneCount: u32,
3405}
3406#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3407const _: () = {
3408    ["Size of WGPUDawnDrmFormatProperties"]
3409        [::core::mem::size_of::<WGPUDawnDrmFormatProperties>() - 16usize];
3410    ["Alignment of WGPUDawnDrmFormatProperties"]
3411        [::core::mem::align_of::<WGPUDawnDrmFormatProperties>() - 8usize];
3412    ["Offset of field: WGPUDawnDrmFormatProperties::modifier"]
3413        [::core::mem::offset_of!(WGPUDawnDrmFormatProperties, modifier) - 0usize];
3414    ["Offset of field: WGPUDawnDrmFormatProperties::modifierPlaneCount"]
3415        [::core::mem::offset_of!(WGPUDawnDrmFormatProperties, modifierPlaneCount) - 8usize];
3416};
3417#[repr(C)]
3418#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3419pub struct WGPUDawnEncoderInternalUsageDescriptor {
3420    pub chain: WGPUChainedStruct,
3421    pub useInternalUsages: WGPUBool,
3422}
3423#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3424const _: () = {
3425    ["Size of WGPUDawnEncoderInternalUsageDescriptor"]
3426        [::core::mem::size_of::<WGPUDawnEncoderInternalUsageDescriptor>() - 24usize];
3427    ["Alignment of WGPUDawnEncoderInternalUsageDescriptor"]
3428        [::core::mem::align_of::<WGPUDawnEncoderInternalUsageDescriptor>() - 8usize];
3429    ["Offset of field: WGPUDawnEncoderInternalUsageDescriptor::chain"]
3430        [::core::mem::offset_of!(WGPUDawnEncoderInternalUsageDescriptor, chain) - 0usize];
3431    ["Offset of field: WGPUDawnEncoderInternalUsageDescriptor::useInternalUsages"][::core::mem::offset_of!(
3432        WGPUDawnEncoderInternalUsageDescriptor,
3433        useInternalUsages
3434    ) - 16usize];
3435};
3436impl Default for WGPUDawnEncoderInternalUsageDescriptor {
3437    fn default() -> Self {
3438        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3439        unsafe {
3440            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3441            s.assume_init()
3442        }
3443    }
3444}
3445#[repr(C)]
3446#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3447pub struct WGPUDawnFakeBufferOOMForTesting {
3448    pub chain: WGPUChainedStruct,
3449    pub fakeOOMAtWireClientMap: WGPUBool,
3450    pub fakeOOMAtNativeMap: WGPUBool,
3451    pub fakeOOMAtDevice: WGPUBool,
3452}
3453#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3454const _: () = {
3455    ["Size of WGPUDawnFakeBufferOOMForTesting"]
3456        [::core::mem::size_of::<WGPUDawnFakeBufferOOMForTesting>() - 32usize];
3457    ["Alignment of WGPUDawnFakeBufferOOMForTesting"]
3458        [::core::mem::align_of::<WGPUDawnFakeBufferOOMForTesting>() - 8usize];
3459    ["Offset of field: WGPUDawnFakeBufferOOMForTesting::chain"]
3460        [::core::mem::offset_of!(WGPUDawnFakeBufferOOMForTesting, chain) - 0usize];
3461    ["Offset of field: WGPUDawnFakeBufferOOMForTesting::fakeOOMAtWireClientMap"][::core::mem::offset_of!(
3462        WGPUDawnFakeBufferOOMForTesting,
3463        fakeOOMAtWireClientMap
3464    ) - 16usize];
3465    ["Offset of field: WGPUDawnFakeBufferOOMForTesting::fakeOOMAtNativeMap"]
3466        [::core::mem::offset_of!(WGPUDawnFakeBufferOOMForTesting, fakeOOMAtNativeMap) - 20usize];
3467    ["Offset of field: WGPUDawnFakeBufferOOMForTesting::fakeOOMAtDevice"]
3468        [::core::mem::offset_of!(WGPUDawnFakeBufferOOMForTesting, fakeOOMAtDevice) - 24usize];
3469};
3470impl Default for WGPUDawnFakeBufferOOMForTesting {
3471    fn default() -> Self {
3472        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3473        unsafe {
3474            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3475            s.assume_init()
3476        }
3477    }
3478}
3479#[repr(C)]
3480#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3481pub struct WGPUDawnHostMappedPointerLimits {
3482    pub chain: WGPUChainedStruct,
3483    pub hostMappedPointerAlignment: u32,
3484}
3485#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3486const _: () = {
3487    ["Size of WGPUDawnHostMappedPointerLimits"]
3488        [::core::mem::size_of::<WGPUDawnHostMappedPointerLimits>() - 24usize];
3489    ["Alignment of WGPUDawnHostMappedPointerLimits"]
3490        [::core::mem::align_of::<WGPUDawnHostMappedPointerLimits>() - 8usize];
3491    ["Offset of field: WGPUDawnHostMappedPointerLimits::chain"]
3492        [::core::mem::offset_of!(WGPUDawnHostMappedPointerLimits, chain) - 0usize];
3493    ["Offset of field: WGPUDawnHostMappedPointerLimits::hostMappedPointerAlignment"][::core::mem::offset_of!(
3494        WGPUDawnHostMappedPointerLimits,
3495        hostMappedPointerAlignment
3496    ) - 16usize];
3497};
3498impl Default for WGPUDawnHostMappedPointerLimits {
3499    fn default() -> Self {
3500        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3501        unsafe {
3502            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3503            s.assume_init()
3504        }
3505    }
3506}
3507#[repr(C)]
3508#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3509pub struct WGPUDawnInjectedInvalidSType {
3510    pub chain: WGPUChainedStruct,
3511    pub invalidSType: WGPUSType,
3512}
3513#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3514const _: () = {
3515    ["Size of WGPUDawnInjectedInvalidSType"]
3516        [::core::mem::size_of::<WGPUDawnInjectedInvalidSType>() - 24usize];
3517    ["Alignment of WGPUDawnInjectedInvalidSType"]
3518        [::core::mem::align_of::<WGPUDawnInjectedInvalidSType>() - 8usize];
3519    ["Offset of field: WGPUDawnInjectedInvalidSType::chain"]
3520        [::core::mem::offset_of!(WGPUDawnInjectedInvalidSType, chain) - 0usize];
3521    ["Offset of field: WGPUDawnInjectedInvalidSType::invalidSType"]
3522        [::core::mem::offset_of!(WGPUDawnInjectedInvalidSType, invalidSType) - 16usize];
3523};
3524impl Default for WGPUDawnInjectedInvalidSType {
3525    fn default() -> Self {
3526        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3527        unsafe {
3528            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3529            s.assume_init()
3530        }
3531    }
3532}
3533#[repr(C)]
3534#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3535pub struct WGPUDawnRenderPassColorAttachmentRenderToSingleSampled {
3536    pub chain: WGPUChainedStruct,
3537    pub implicitSampleCount: u32,
3538}
3539#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3540const _: () = {
3541    ["Size of WGPUDawnRenderPassColorAttachmentRenderToSingleSampled"][::core::mem::size_of::<
3542        WGPUDawnRenderPassColorAttachmentRenderToSingleSampled,
3543    >() - 24usize];
3544    ["Alignment of WGPUDawnRenderPassColorAttachmentRenderToSingleSampled"][::core::mem::align_of::<
3545        WGPUDawnRenderPassColorAttachmentRenderToSingleSampled,
3546    >() - 8usize];
3547    ["Offset of field: WGPUDawnRenderPassColorAttachmentRenderToSingleSampled::chain"][::core::mem::offset_of!(
3548        WGPUDawnRenderPassColorAttachmentRenderToSingleSampled,
3549        chain
3550    ) - 0usize];
3551    ["Offset of field: WGPUDawnRenderPassColorAttachmentRenderToSingleSampled::implicitSampleCount"] [:: core :: mem :: offset_of ! (WGPUDawnRenderPassColorAttachmentRenderToSingleSampled , implicitSampleCount) - 16usize] ;
3552};
3553impl Default for WGPUDawnRenderPassColorAttachmentRenderToSingleSampled {
3554    fn default() -> Self {
3555        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3556        unsafe {
3557            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3558            s.assume_init()
3559        }
3560    }
3561}
3562#[repr(C)]
3563#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3564pub struct WGPUDawnShaderModuleSPIRVOptionsDescriptor {
3565    pub chain: WGPUChainedStruct,
3566    pub allowNonUniformDerivatives: WGPUBool,
3567}
3568#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3569const _: () = {
3570    ["Size of WGPUDawnShaderModuleSPIRVOptionsDescriptor"]
3571        [::core::mem::size_of::<WGPUDawnShaderModuleSPIRVOptionsDescriptor>() - 24usize];
3572    ["Alignment of WGPUDawnShaderModuleSPIRVOptionsDescriptor"]
3573        [::core::mem::align_of::<WGPUDawnShaderModuleSPIRVOptionsDescriptor>() - 8usize];
3574    ["Offset of field: WGPUDawnShaderModuleSPIRVOptionsDescriptor::chain"]
3575        [::core::mem::offset_of!(WGPUDawnShaderModuleSPIRVOptionsDescriptor, chain) - 0usize];
3576    ["Offset of field: WGPUDawnShaderModuleSPIRVOptionsDescriptor::allowNonUniformDerivatives"][::core::mem::offset_of!(
3577        WGPUDawnShaderModuleSPIRVOptionsDescriptor,
3578        allowNonUniformDerivatives
3579    )
3580        - 16usize];
3581};
3582impl Default for WGPUDawnShaderModuleSPIRVOptionsDescriptor {
3583    fn default() -> Self {
3584        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3585        unsafe {
3586            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3587            s.assume_init()
3588        }
3589    }
3590}
3591#[repr(C)]
3592#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3593pub struct WGPUDawnTexelCopyBufferRowAlignmentLimits {
3594    pub chain: WGPUChainedStruct,
3595    pub minTexelCopyBufferRowAlignment: u32,
3596}
3597#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3598const _: () = {
3599    ["Size of WGPUDawnTexelCopyBufferRowAlignmentLimits"]
3600        [::core::mem::size_of::<WGPUDawnTexelCopyBufferRowAlignmentLimits>() - 24usize];
3601    ["Alignment of WGPUDawnTexelCopyBufferRowAlignmentLimits"]
3602        [::core::mem::align_of::<WGPUDawnTexelCopyBufferRowAlignmentLimits>() - 8usize];
3603    ["Offset of field: WGPUDawnTexelCopyBufferRowAlignmentLimits::chain"]
3604        [::core::mem::offset_of!(WGPUDawnTexelCopyBufferRowAlignmentLimits, chain) - 0usize];
3605    ["Offset of field: WGPUDawnTexelCopyBufferRowAlignmentLimits::minTexelCopyBufferRowAlignment"] [:: core :: mem :: offset_of ! (WGPUDawnTexelCopyBufferRowAlignmentLimits , minTexelCopyBufferRowAlignment) - 16usize] ;
3606};
3607impl Default for WGPUDawnTexelCopyBufferRowAlignmentLimits {
3608    fn default() -> Self {
3609        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3610        unsafe {
3611            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3612            s.assume_init()
3613        }
3614    }
3615}
3616#[repr(C)]
3617pub struct WGPUDawnTextureInternalUsageDescriptor {
3618    pub chain: WGPUChainedStruct,
3619    pub internalUsage: WGPUTextureUsage,
3620}
3621#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3622const _: () = {
3623    ["Size of WGPUDawnTextureInternalUsageDescriptor"]
3624        [::core::mem::size_of::<WGPUDawnTextureInternalUsageDescriptor>() - 24usize];
3625    ["Alignment of WGPUDawnTextureInternalUsageDescriptor"]
3626        [::core::mem::align_of::<WGPUDawnTextureInternalUsageDescriptor>() - 8usize];
3627    ["Offset of field: WGPUDawnTextureInternalUsageDescriptor::chain"]
3628        [::core::mem::offset_of!(WGPUDawnTextureInternalUsageDescriptor, chain) - 0usize];
3629    ["Offset of field: WGPUDawnTextureInternalUsageDescriptor::internalUsage"]
3630        [::core::mem::offset_of!(WGPUDawnTextureInternalUsageDescriptor, internalUsage) - 16usize];
3631};
3632impl Default for WGPUDawnTextureInternalUsageDescriptor {
3633    fn default() -> Self {
3634        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3635        unsafe {
3636            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3637            s.assume_init()
3638        }
3639    }
3640}
3641#[repr(C)]
3642#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3643pub struct WGPUDawnTogglesDescriptor {
3644    pub chain: WGPUChainedStruct,
3645    pub enabledToggleCount: usize,
3646    pub enabledToggles: *const *const ::core::ffi::c_char,
3647    pub disabledToggleCount: usize,
3648    pub disabledToggles: *const *const ::core::ffi::c_char,
3649}
3650#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3651const _: () = {
3652    ["Size of WGPUDawnTogglesDescriptor"]
3653        [::core::mem::size_of::<WGPUDawnTogglesDescriptor>() - 48usize];
3654    ["Alignment of WGPUDawnTogglesDescriptor"]
3655        [::core::mem::align_of::<WGPUDawnTogglesDescriptor>() - 8usize];
3656    ["Offset of field: WGPUDawnTogglesDescriptor::chain"]
3657        [::core::mem::offset_of!(WGPUDawnTogglesDescriptor, chain) - 0usize];
3658    ["Offset of field: WGPUDawnTogglesDescriptor::enabledToggleCount"]
3659        [::core::mem::offset_of!(WGPUDawnTogglesDescriptor, enabledToggleCount) - 16usize];
3660    ["Offset of field: WGPUDawnTogglesDescriptor::enabledToggles"]
3661        [::core::mem::offset_of!(WGPUDawnTogglesDescriptor, enabledToggles) - 24usize];
3662    ["Offset of field: WGPUDawnTogglesDescriptor::disabledToggleCount"]
3663        [::core::mem::offset_of!(WGPUDawnTogglesDescriptor, disabledToggleCount) - 32usize];
3664    ["Offset of field: WGPUDawnTogglesDescriptor::disabledToggles"]
3665        [::core::mem::offset_of!(WGPUDawnTogglesDescriptor, disabledToggles) - 40usize];
3666};
3667impl Default for WGPUDawnTogglesDescriptor {
3668    fn default() -> Self {
3669        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3670        unsafe {
3671            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3672            s.assume_init()
3673        }
3674    }
3675}
3676#[repr(C)]
3677#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3678pub struct WGPUDawnWGSLBlocklist {
3679    pub chain: WGPUChainedStruct,
3680    pub blocklistedFeatureCount: usize,
3681    pub blocklistedFeatures: *const *const ::core::ffi::c_char,
3682}
3683#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3684const _: () = {
3685    ["Size of WGPUDawnWGSLBlocklist"][::core::mem::size_of::<WGPUDawnWGSLBlocklist>() - 32usize];
3686    ["Alignment of WGPUDawnWGSLBlocklist"]
3687        [::core::mem::align_of::<WGPUDawnWGSLBlocklist>() - 8usize];
3688    ["Offset of field: WGPUDawnWGSLBlocklist::chain"]
3689        [::core::mem::offset_of!(WGPUDawnWGSLBlocklist, chain) - 0usize];
3690    ["Offset of field: WGPUDawnWGSLBlocklist::blocklistedFeatureCount"]
3691        [::core::mem::offset_of!(WGPUDawnWGSLBlocklist, blocklistedFeatureCount) - 16usize];
3692    ["Offset of field: WGPUDawnWGSLBlocklist::blocklistedFeatures"]
3693        [::core::mem::offset_of!(WGPUDawnWGSLBlocklist, blocklistedFeatures) - 24usize];
3694};
3695impl Default for WGPUDawnWGSLBlocklist {
3696    fn default() -> Self {
3697        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3698        unsafe {
3699            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3700            s.assume_init()
3701        }
3702    }
3703}
3704#[repr(C)]
3705#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3706pub struct WGPUDawnWireWGSLControl {
3707    pub chain: WGPUChainedStruct,
3708    pub enableExperimental: WGPUBool,
3709    pub enableUnsafe: WGPUBool,
3710    pub enableTesting: WGPUBool,
3711}
3712#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3713const _: () = {
3714    ["Size of WGPUDawnWireWGSLControl"]
3715        [::core::mem::size_of::<WGPUDawnWireWGSLControl>() - 32usize];
3716    ["Alignment of WGPUDawnWireWGSLControl"]
3717        [::core::mem::align_of::<WGPUDawnWireWGSLControl>() - 8usize];
3718    ["Offset of field: WGPUDawnWireWGSLControl::chain"]
3719        [::core::mem::offset_of!(WGPUDawnWireWGSLControl, chain) - 0usize];
3720    ["Offset of field: WGPUDawnWireWGSLControl::enableExperimental"]
3721        [::core::mem::offset_of!(WGPUDawnWireWGSLControl, enableExperimental) - 16usize];
3722    ["Offset of field: WGPUDawnWireWGSLControl::enableUnsafe"]
3723        [::core::mem::offset_of!(WGPUDawnWireWGSLControl, enableUnsafe) - 20usize];
3724    ["Offset of field: WGPUDawnWireWGSLControl::enableTesting"]
3725        [::core::mem::offset_of!(WGPUDawnWireWGSLControl, enableTesting) - 24usize];
3726};
3727impl Default for WGPUDawnWireWGSLControl {
3728    fn default() -> Self {
3729        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3730        unsafe {
3731            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3732            s.assume_init()
3733        }
3734    }
3735}
3736#[repr(C)]
3737#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3738pub struct WGPUEmscriptenSurfaceSourceCanvasHTMLSelector {
3739    pub chain: WGPUChainedStruct,
3740    pub selector: WGPUStringView,
3741}
3742#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3743const _: () = {
3744    ["Size of WGPUEmscriptenSurfaceSourceCanvasHTMLSelector"]
3745        [::core::mem::size_of::<WGPUEmscriptenSurfaceSourceCanvasHTMLSelector>() - 32usize];
3746    ["Alignment of WGPUEmscriptenSurfaceSourceCanvasHTMLSelector"]
3747        [::core::mem::align_of::<WGPUEmscriptenSurfaceSourceCanvasHTMLSelector>() - 8usize];
3748    ["Offset of field: WGPUEmscriptenSurfaceSourceCanvasHTMLSelector::chain"]
3749        [::core::mem::offset_of!(WGPUEmscriptenSurfaceSourceCanvasHTMLSelector, chain) - 0usize];
3750    ["Offset of field: WGPUEmscriptenSurfaceSourceCanvasHTMLSelector::selector"][::core::mem::offset_of!(
3751        WGPUEmscriptenSurfaceSourceCanvasHTMLSelector,
3752        selector
3753    ) - 16usize];
3754};
3755impl Default for WGPUEmscriptenSurfaceSourceCanvasHTMLSelector {
3756    fn default() -> Self {
3757        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3758        unsafe {
3759            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3760            s.assume_init()
3761        }
3762    }
3763}
3764#[repr(C)]
3765#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3766pub struct WGPUExtent2D {
3767    pub width: u32,
3768    pub height: u32,
3769}
3770#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3771const _: () = {
3772    ["Size of WGPUExtent2D"][::core::mem::size_of::<WGPUExtent2D>() - 8usize];
3773    ["Alignment of WGPUExtent2D"][::core::mem::align_of::<WGPUExtent2D>() - 4usize];
3774    ["Offset of field: WGPUExtent2D::width"][::core::mem::offset_of!(WGPUExtent2D, width) - 0usize];
3775    ["Offset of field: WGPUExtent2D::height"]
3776        [::core::mem::offset_of!(WGPUExtent2D, height) - 4usize];
3777};
3778#[repr(C)]
3779#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3780pub struct WGPUExtent3D {
3781    pub width: u32,
3782    pub height: u32,
3783    pub depthOrArrayLayers: u32,
3784}
3785#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3786const _: () = {
3787    ["Size of WGPUExtent3D"][::core::mem::size_of::<WGPUExtent3D>() - 12usize];
3788    ["Alignment of WGPUExtent3D"][::core::mem::align_of::<WGPUExtent3D>() - 4usize];
3789    ["Offset of field: WGPUExtent3D::width"][::core::mem::offset_of!(WGPUExtent3D, width) - 0usize];
3790    ["Offset of field: WGPUExtent3D::height"]
3791        [::core::mem::offset_of!(WGPUExtent3D, height) - 4usize];
3792    ["Offset of field: WGPUExtent3D::depthOrArrayLayers"]
3793        [::core::mem::offset_of!(WGPUExtent3D, depthOrArrayLayers) - 8usize];
3794};
3795#[repr(C)]
3796#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3797pub struct WGPUExternalTextureBindingEntry {
3798    pub chain: WGPUChainedStruct,
3799    pub externalTexture: WGPUExternalTexture,
3800}
3801#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3802const _: () = {
3803    ["Size of WGPUExternalTextureBindingEntry"]
3804        [::core::mem::size_of::<WGPUExternalTextureBindingEntry>() - 24usize];
3805    ["Alignment of WGPUExternalTextureBindingEntry"]
3806        [::core::mem::align_of::<WGPUExternalTextureBindingEntry>() - 8usize];
3807    ["Offset of field: WGPUExternalTextureBindingEntry::chain"]
3808        [::core::mem::offset_of!(WGPUExternalTextureBindingEntry, chain) - 0usize];
3809    ["Offset of field: WGPUExternalTextureBindingEntry::externalTexture"]
3810        [::core::mem::offset_of!(WGPUExternalTextureBindingEntry, externalTexture) - 16usize];
3811};
3812impl Default for WGPUExternalTextureBindingEntry {
3813    fn default() -> Self {
3814        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3815        unsafe {
3816            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3817            s.assume_init()
3818        }
3819    }
3820}
3821#[repr(C)]
3822#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3823pub struct WGPUExternalTextureBindingLayout {
3824    pub chain: WGPUChainedStruct,
3825}
3826#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3827const _: () = {
3828    ["Size of WGPUExternalTextureBindingLayout"]
3829        [::core::mem::size_of::<WGPUExternalTextureBindingLayout>() - 16usize];
3830    ["Alignment of WGPUExternalTextureBindingLayout"]
3831        [::core::mem::align_of::<WGPUExternalTextureBindingLayout>() - 8usize];
3832    ["Offset of field: WGPUExternalTextureBindingLayout::chain"]
3833        [::core::mem::offset_of!(WGPUExternalTextureBindingLayout, chain) - 0usize];
3834};
3835impl Default for WGPUExternalTextureBindingLayout {
3836    fn default() -> Self {
3837        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3838        unsafe {
3839            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3840            s.assume_init()
3841        }
3842    }
3843}
3844#[repr(C)]
3845#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3846pub struct WGPUFuture {
3847    pub id: u64,
3848}
3849#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3850const _: () = {
3851    ["Size of WGPUFuture"][::core::mem::size_of::<WGPUFuture>() - 8usize];
3852    ["Alignment of WGPUFuture"][::core::mem::align_of::<WGPUFuture>() - 8usize];
3853    ["Offset of field: WGPUFuture::id"][::core::mem::offset_of!(WGPUFuture, id) - 0usize];
3854};
3855#[repr(C)]
3856#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3857pub struct WGPUInstanceCapabilities {
3858    pub nextInChain: *mut WGPUChainedStruct,
3859    pub timedWaitAnyEnable: WGPUBool,
3860    pub timedWaitAnyMaxCount: usize,
3861}
3862#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3863const _: () = {
3864    ["Size of WGPUInstanceCapabilities"]
3865        [::core::mem::size_of::<WGPUInstanceCapabilities>() - 24usize];
3866    ["Alignment of WGPUInstanceCapabilities"]
3867        [::core::mem::align_of::<WGPUInstanceCapabilities>() - 8usize];
3868    ["Offset of field: WGPUInstanceCapabilities::nextInChain"]
3869        [::core::mem::offset_of!(WGPUInstanceCapabilities, nextInChain) - 0usize];
3870    ["Offset of field: WGPUInstanceCapabilities::timedWaitAnyEnable"]
3871        [::core::mem::offset_of!(WGPUInstanceCapabilities, timedWaitAnyEnable) - 8usize];
3872    ["Offset of field: WGPUInstanceCapabilities::timedWaitAnyMaxCount"]
3873        [::core::mem::offset_of!(WGPUInstanceCapabilities, timedWaitAnyMaxCount) - 16usize];
3874};
3875impl Default for WGPUInstanceCapabilities {
3876    fn default() -> Self {
3877        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3878        unsafe {
3879            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3880            s.assume_init()
3881        }
3882    }
3883}
3884#[repr(C)]
3885#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3886pub struct WGPUINTERNAL_HAVE_EMDAWNWEBGPU_HEADER {
3887    pub unused: WGPUBool,
3888}
3889#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3890const _: () = {
3891    ["Size of WGPUINTERNAL_HAVE_EMDAWNWEBGPU_HEADER"]
3892        [::core::mem::size_of::<WGPUINTERNAL_HAVE_EMDAWNWEBGPU_HEADER>() - 4usize];
3893    ["Alignment of WGPUINTERNAL_HAVE_EMDAWNWEBGPU_HEADER"]
3894        [::core::mem::align_of::<WGPUINTERNAL_HAVE_EMDAWNWEBGPU_HEADER>() - 4usize];
3895    ["Offset of field: WGPUINTERNAL_HAVE_EMDAWNWEBGPU_HEADER::unused"]
3896        [::core::mem::offset_of!(WGPUINTERNAL_HAVE_EMDAWNWEBGPU_HEADER, unused) - 0usize];
3897};
3898#[repr(C)]
3899pub struct WGPUMemoryHeapInfo {
3900    pub properties: WGPUHeapProperty,
3901    pub size: u64,
3902}
3903#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3904const _: () = {
3905    ["Size of WGPUMemoryHeapInfo"][::core::mem::size_of::<WGPUMemoryHeapInfo>() - 16usize];
3906    ["Alignment of WGPUMemoryHeapInfo"][::core::mem::align_of::<WGPUMemoryHeapInfo>() - 8usize];
3907    ["Offset of field: WGPUMemoryHeapInfo::properties"]
3908        [::core::mem::offset_of!(WGPUMemoryHeapInfo, properties) - 0usize];
3909    ["Offset of field: WGPUMemoryHeapInfo::size"]
3910        [::core::mem::offset_of!(WGPUMemoryHeapInfo, size) - 8usize];
3911};
3912impl Default for WGPUMemoryHeapInfo {
3913    fn default() -> Self {
3914        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3915        unsafe {
3916            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3917            s.assume_init()
3918        }
3919    }
3920}
3921#[repr(C)]
3922#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3923pub struct WGPUMultisampleState {
3924    pub nextInChain: *mut WGPUChainedStruct,
3925    pub count: u32,
3926    pub mask: u32,
3927    pub alphaToCoverageEnabled: WGPUBool,
3928}
3929#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3930const _: () = {
3931    ["Size of WGPUMultisampleState"][::core::mem::size_of::<WGPUMultisampleState>() - 24usize];
3932    ["Alignment of WGPUMultisampleState"][::core::mem::align_of::<WGPUMultisampleState>() - 8usize];
3933    ["Offset of field: WGPUMultisampleState::nextInChain"]
3934        [::core::mem::offset_of!(WGPUMultisampleState, nextInChain) - 0usize];
3935    ["Offset of field: WGPUMultisampleState::count"]
3936        [::core::mem::offset_of!(WGPUMultisampleState, count) - 8usize];
3937    ["Offset of field: WGPUMultisampleState::mask"]
3938        [::core::mem::offset_of!(WGPUMultisampleState, mask) - 12usize];
3939    ["Offset of field: WGPUMultisampleState::alphaToCoverageEnabled"]
3940        [::core::mem::offset_of!(WGPUMultisampleState, alphaToCoverageEnabled) - 16usize];
3941};
3942impl Default for WGPUMultisampleState {
3943    fn default() -> Self {
3944        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
3945        unsafe {
3946            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3947            s.assume_init()
3948        }
3949    }
3950}
3951#[repr(C)]
3952#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3953pub struct WGPUOrigin2D {
3954    pub x: u32,
3955    pub y: u32,
3956}
3957#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3958const _: () = {
3959    ["Size of WGPUOrigin2D"][::core::mem::size_of::<WGPUOrigin2D>() - 8usize];
3960    ["Alignment of WGPUOrigin2D"][::core::mem::align_of::<WGPUOrigin2D>() - 4usize];
3961    ["Offset of field: WGPUOrigin2D::x"][::core::mem::offset_of!(WGPUOrigin2D, x) - 0usize];
3962    ["Offset of field: WGPUOrigin2D::y"][::core::mem::offset_of!(WGPUOrigin2D, y) - 4usize];
3963};
3964#[repr(C)]
3965#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3966pub struct WGPUOrigin3D {
3967    pub x: u32,
3968    pub y: u32,
3969    pub z: u32,
3970}
3971#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3972const _: () = {
3973    ["Size of WGPUOrigin3D"][::core::mem::size_of::<WGPUOrigin3D>() - 12usize];
3974    ["Alignment of WGPUOrigin3D"][::core::mem::align_of::<WGPUOrigin3D>() - 4usize];
3975    ["Offset of field: WGPUOrigin3D::x"][::core::mem::offset_of!(WGPUOrigin3D, x) - 0usize];
3976    ["Offset of field: WGPUOrigin3D::y"][::core::mem::offset_of!(WGPUOrigin3D, y) - 4usize];
3977    ["Offset of field: WGPUOrigin3D::z"][::core::mem::offset_of!(WGPUOrigin3D, z) - 8usize];
3978};
3979#[repr(C)]
3980#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
3981pub struct WGPUPassTimestampWrites {
3982    pub nextInChain: *mut WGPUChainedStruct,
3983    pub querySet: WGPUQuerySet,
3984    pub beginningOfPassWriteIndex: u32,
3985    pub endOfPassWriteIndex: u32,
3986}
3987#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3988const _: () = {
3989    ["Size of WGPUPassTimestampWrites"]
3990        [::core::mem::size_of::<WGPUPassTimestampWrites>() - 24usize];
3991    ["Alignment of WGPUPassTimestampWrites"]
3992        [::core::mem::align_of::<WGPUPassTimestampWrites>() - 8usize];
3993    ["Offset of field: WGPUPassTimestampWrites::nextInChain"]
3994        [::core::mem::offset_of!(WGPUPassTimestampWrites, nextInChain) - 0usize];
3995    ["Offset of field: WGPUPassTimestampWrites::querySet"]
3996        [::core::mem::offset_of!(WGPUPassTimestampWrites, querySet) - 8usize];
3997    ["Offset of field: WGPUPassTimestampWrites::beginningOfPassWriteIndex"]
3998        [::core::mem::offset_of!(WGPUPassTimestampWrites, beginningOfPassWriteIndex) - 16usize];
3999    ["Offset of field: WGPUPassTimestampWrites::endOfPassWriteIndex"]
4000        [::core::mem::offset_of!(WGPUPassTimestampWrites, endOfPassWriteIndex) - 20usize];
4001};
4002impl Default for WGPUPassTimestampWrites {
4003    fn default() -> Self {
4004        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4005        unsafe {
4006            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4007            s.assume_init()
4008        }
4009    }
4010}
4011#[repr(C)]
4012#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4013pub struct WGPUPipelineLayoutStorageAttachment {
4014    pub nextInChain: *mut WGPUChainedStruct,
4015    pub offset: u64,
4016    pub format: WGPUTextureFormat,
4017}
4018#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4019const _: () = {
4020    ["Size of WGPUPipelineLayoutStorageAttachment"]
4021        [::core::mem::size_of::<WGPUPipelineLayoutStorageAttachment>() - 24usize];
4022    ["Alignment of WGPUPipelineLayoutStorageAttachment"]
4023        [::core::mem::align_of::<WGPUPipelineLayoutStorageAttachment>() - 8usize];
4024    ["Offset of field: WGPUPipelineLayoutStorageAttachment::nextInChain"]
4025        [::core::mem::offset_of!(WGPUPipelineLayoutStorageAttachment, nextInChain) - 0usize];
4026    ["Offset of field: WGPUPipelineLayoutStorageAttachment::offset"]
4027        [::core::mem::offset_of!(WGPUPipelineLayoutStorageAttachment, offset) - 8usize];
4028    ["Offset of field: WGPUPipelineLayoutStorageAttachment::format"]
4029        [::core::mem::offset_of!(WGPUPipelineLayoutStorageAttachment, format) - 16usize];
4030};
4031impl Default for WGPUPipelineLayoutStorageAttachment {
4032    fn default() -> Self {
4033        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4034        unsafe {
4035            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4036            s.assume_init()
4037        }
4038    }
4039}
4040#[repr(C)]
4041#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4042pub struct WGPUPrimitiveState {
4043    pub nextInChain: *mut WGPUChainedStruct,
4044    pub topology: WGPUPrimitiveTopology,
4045    pub stripIndexFormat: WGPUIndexFormat,
4046    pub frontFace: WGPUFrontFace,
4047    pub cullMode: WGPUCullMode,
4048    pub unclippedDepth: WGPUBool,
4049}
4050#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4051const _: () = {
4052    ["Size of WGPUPrimitiveState"][::core::mem::size_of::<WGPUPrimitiveState>() - 32usize];
4053    ["Alignment of WGPUPrimitiveState"][::core::mem::align_of::<WGPUPrimitiveState>() - 8usize];
4054    ["Offset of field: WGPUPrimitiveState::nextInChain"]
4055        [::core::mem::offset_of!(WGPUPrimitiveState, nextInChain) - 0usize];
4056    ["Offset of field: WGPUPrimitiveState::topology"]
4057        [::core::mem::offset_of!(WGPUPrimitiveState, topology) - 8usize];
4058    ["Offset of field: WGPUPrimitiveState::stripIndexFormat"]
4059        [::core::mem::offset_of!(WGPUPrimitiveState, stripIndexFormat) - 12usize];
4060    ["Offset of field: WGPUPrimitiveState::frontFace"]
4061        [::core::mem::offset_of!(WGPUPrimitiveState, frontFace) - 16usize];
4062    ["Offset of field: WGPUPrimitiveState::cullMode"]
4063        [::core::mem::offset_of!(WGPUPrimitiveState, cullMode) - 20usize];
4064    ["Offset of field: WGPUPrimitiveState::unclippedDepth"]
4065        [::core::mem::offset_of!(WGPUPrimitiveState, unclippedDepth) - 24usize];
4066};
4067impl Default for WGPUPrimitiveState {
4068    fn default() -> Self {
4069        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4070        unsafe {
4071            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4072            s.assume_init()
4073        }
4074    }
4075}
4076#[repr(C)]
4077#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4078pub struct WGPUQuerySetDescriptor {
4079    pub nextInChain: *mut WGPUChainedStruct,
4080    pub label: WGPUStringView,
4081    pub type_: WGPUQueryType,
4082    pub count: u32,
4083}
4084#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4085const _: () = {
4086    ["Size of WGPUQuerySetDescriptor"][::core::mem::size_of::<WGPUQuerySetDescriptor>() - 32usize];
4087    ["Alignment of WGPUQuerySetDescriptor"]
4088        [::core::mem::align_of::<WGPUQuerySetDescriptor>() - 8usize];
4089    ["Offset of field: WGPUQuerySetDescriptor::nextInChain"]
4090        [::core::mem::offset_of!(WGPUQuerySetDescriptor, nextInChain) - 0usize];
4091    ["Offset of field: WGPUQuerySetDescriptor::label"]
4092        [::core::mem::offset_of!(WGPUQuerySetDescriptor, label) - 8usize];
4093    ["Offset of field: WGPUQuerySetDescriptor::type_"]
4094        [::core::mem::offset_of!(WGPUQuerySetDescriptor, type_) - 24usize];
4095    ["Offset of field: WGPUQuerySetDescriptor::count"]
4096        [::core::mem::offset_of!(WGPUQuerySetDescriptor, count) - 28usize];
4097};
4098impl Default for WGPUQuerySetDescriptor {
4099    fn default() -> Self {
4100        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4101        unsafe {
4102            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4103            s.assume_init()
4104        }
4105    }
4106}
4107#[repr(C)]
4108#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4109pub struct WGPUQueueDescriptor {
4110    pub nextInChain: *mut WGPUChainedStruct,
4111    pub label: WGPUStringView,
4112}
4113#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4114const _: () = {
4115    ["Size of WGPUQueueDescriptor"][::core::mem::size_of::<WGPUQueueDescriptor>() - 24usize];
4116    ["Alignment of WGPUQueueDescriptor"][::core::mem::align_of::<WGPUQueueDescriptor>() - 8usize];
4117    ["Offset of field: WGPUQueueDescriptor::nextInChain"]
4118        [::core::mem::offset_of!(WGPUQueueDescriptor, nextInChain) - 0usize];
4119    ["Offset of field: WGPUQueueDescriptor::label"]
4120        [::core::mem::offset_of!(WGPUQueueDescriptor, label) - 8usize];
4121};
4122impl Default for WGPUQueueDescriptor {
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, Hash, PartialOrd, Ord, PartialEq, Eq)]
4133pub struct WGPURenderBundleDescriptor {
4134    pub nextInChain: *mut WGPUChainedStruct,
4135    pub label: WGPUStringView,
4136}
4137#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4138const _: () = {
4139    ["Size of WGPURenderBundleDescriptor"]
4140        [::core::mem::size_of::<WGPURenderBundleDescriptor>() - 24usize];
4141    ["Alignment of WGPURenderBundleDescriptor"]
4142        [::core::mem::align_of::<WGPURenderBundleDescriptor>() - 8usize];
4143    ["Offset of field: WGPURenderBundleDescriptor::nextInChain"]
4144        [::core::mem::offset_of!(WGPURenderBundleDescriptor, nextInChain) - 0usize];
4145    ["Offset of field: WGPURenderBundleDescriptor::label"]
4146        [::core::mem::offset_of!(WGPURenderBundleDescriptor, label) - 8usize];
4147};
4148impl Default for WGPURenderBundleDescriptor {
4149    fn default() -> Self {
4150        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4151        unsafe {
4152            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4153            s.assume_init()
4154        }
4155    }
4156}
4157#[repr(C)]
4158#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4159pub struct WGPURenderBundleEncoderDescriptor {
4160    pub nextInChain: *mut WGPUChainedStruct,
4161    pub label: WGPUStringView,
4162    pub colorFormatCount: usize,
4163    pub colorFormats: *const WGPUTextureFormat,
4164    pub depthStencilFormat: WGPUTextureFormat,
4165    pub sampleCount: u32,
4166    pub depthReadOnly: WGPUBool,
4167    pub stencilReadOnly: WGPUBool,
4168}
4169#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4170const _: () = {
4171    ["Size of WGPURenderBundleEncoderDescriptor"]
4172        [::core::mem::size_of::<WGPURenderBundleEncoderDescriptor>() - 56usize];
4173    ["Alignment of WGPURenderBundleEncoderDescriptor"]
4174        [::core::mem::align_of::<WGPURenderBundleEncoderDescriptor>() - 8usize];
4175    ["Offset of field: WGPURenderBundleEncoderDescriptor::nextInChain"]
4176        [::core::mem::offset_of!(WGPURenderBundleEncoderDescriptor, nextInChain) - 0usize];
4177    ["Offset of field: WGPURenderBundleEncoderDescriptor::label"]
4178        [::core::mem::offset_of!(WGPURenderBundleEncoderDescriptor, label) - 8usize];
4179    ["Offset of field: WGPURenderBundleEncoderDescriptor::colorFormatCount"]
4180        [::core::mem::offset_of!(WGPURenderBundleEncoderDescriptor, colorFormatCount) - 24usize];
4181    ["Offset of field: WGPURenderBundleEncoderDescriptor::colorFormats"]
4182        [::core::mem::offset_of!(WGPURenderBundleEncoderDescriptor, colorFormats) - 32usize];
4183    ["Offset of field: WGPURenderBundleEncoderDescriptor::depthStencilFormat"]
4184        [::core::mem::offset_of!(WGPURenderBundleEncoderDescriptor, depthStencilFormat) - 40usize];
4185    ["Offset of field: WGPURenderBundleEncoderDescriptor::sampleCount"]
4186        [::core::mem::offset_of!(WGPURenderBundleEncoderDescriptor, sampleCount) - 44usize];
4187    ["Offset of field: WGPURenderBundleEncoderDescriptor::depthReadOnly"]
4188        [::core::mem::offset_of!(WGPURenderBundleEncoderDescriptor, depthReadOnly) - 48usize];
4189    ["Offset of field: WGPURenderBundleEncoderDescriptor::stencilReadOnly"]
4190        [::core::mem::offset_of!(WGPURenderBundleEncoderDescriptor, stencilReadOnly) - 52usize];
4191};
4192impl Default for WGPURenderBundleEncoderDescriptor {
4193    fn default() -> Self {
4194        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4195        unsafe {
4196            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4197            s.assume_init()
4198        }
4199    }
4200}
4201#[repr(C)]
4202#[derive(Debug, Copy, Clone, PartialOrd, PartialEq)]
4203pub struct WGPURenderPassDepthStencilAttachment {
4204    pub nextInChain: *mut WGPUChainedStruct,
4205    pub view: WGPUTextureView,
4206    pub depthLoadOp: WGPULoadOp,
4207    pub depthStoreOp: WGPUStoreOp,
4208    pub depthClearValue: f32,
4209    pub depthReadOnly: WGPUBool,
4210    pub stencilLoadOp: WGPULoadOp,
4211    pub stencilStoreOp: WGPUStoreOp,
4212    pub stencilClearValue: u32,
4213    pub stencilReadOnly: WGPUBool,
4214}
4215#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4216const _: () = {
4217    ["Size of WGPURenderPassDepthStencilAttachment"]
4218        [::core::mem::size_of::<WGPURenderPassDepthStencilAttachment>() - 48usize];
4219    ["Alignment of WGPURenderPassDepthStencilAttachment"]
4220        [::core::mem::align_of::<WGPURenderPassDepthStencilAttachment>() - 8usize];
4221    ["Offset of field: WGPURenderPassDepthStencilAttachment::nextInChain"]
4222        [::core::mem::offset_of!(WGPURenderPassDepthStencilAttachment, nextInChain) - 0usize];
4223    ["Offset of field: WGPURenderPassDepthStencilAttachment::view"]
4224        [::core::mem::offset_of!(WGPURenderPassDepthStencilAttachment, view) - 8usize];
4225    ["Offset of field: WGPURenderPassDepthStencilAttachment::depthLoadOp"]
4226        [::core::mem::offset_of!(WGPURenderPassDepthStencilAttachment, depthLoadOp) - 16usize];
4227    ["Offset of field: WGPURenderPassDepthStencilAttachment::depthStoreOp"]
4228        [::core::mem::offset_of!(WGPURenderPassDepthStencilAttachment, depthStoreOp) - 20usize];
4229    ["Offset of field: WGPURenderPassDepthStencilAttachment::depthClearValue"]
4230        [::core::mem::offset_of!(WGPURenderPassDepthStencilAttachment, depthClearValue) - 24usize];
4231    ["Offset of field: WGPURenderPassDepthStencilAttachment::depthReadOnly"]
4232        [::core::mem::offset_of!(WGPURenderPassDepthStencilAttachment, depthReadOnly) - 28usize];
4233    ["Offset of field: WGPURenderPassDepthStencilAttachment::stencilLoadOp"]
4234        [::core::mem::offset_of!(WGPURenderPassDepthStencilAttachment, stencilLoadOp) - 32usize];
4235    ["Offset of field: WGPURenderPassDepthStencilAttachment::stencilStoreOp"]
4236        [::core::mem::offset_of!(WGPURenderPassDepthStencilAttachment, stencilStoreOp) - 36usize];
4237    ["Offset of field: WGPURenderPassDepthStencilAttachment::stencilClearValue"][::core::mem::offset_of!(
4238        WGPURenderPassDepthStencilAttachment,
4239        stencilClearValue
4240    ) - 40usize];
4241    ["Offset of field: WGPURenderPassDepthStencilAttachment::stencilReadOnly"]
4242        [::core::mem::offset_of!(WGPURenderPassDepthStencilAttachment, stencilReadOnly) - 44usize];
4243};
4244impl Default for WGPURenderPassDepthStencilAttachment {
4245    fn default() -> Self {
4246        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4247        unsafe {
4248            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4249            s.assume_init()
4250        }
4251    }
4252}
4253#[repr(C)]
4254#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4255pub struct WGPURenderPassDescriptorExpandResolveRect {
4256    pub chain: WGPUChainedStruct,
4257    pub x: u32,
4258    pub y: u32,
4259    pub width: u32,
4260    pub height: u32,
4261}
4262#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4263const _: () = {
4264    ["Size of WGPURenderPassDescriptorExpandResolveRect"]
4265        [::core::mem::size_of::<WGPURenderPassDescriptorExpandResolveRect>() - 32usize];
4266    ["Alignment of WGPURenderPassDescriptorExpandResolveRect"]
4267        [::core::mem::align_of::<WGPURenderPassDescriptorExpandResolveRect>() - 8usize];
4268    ["Offset of field: WGPURenderPassDescriptorExpandResolveRect::chain"]
4269        [::core::mem::offset_of!(WGPURenderPassDescriptorExpandResolveRect, chain) - 0usize];
4270    ["Offset of field: WGPURenderPassDescriptorExpandResolveRect::x"]
4271        [::core::mem::offset_of!(WGPURenderPassDescriptorExpandResolveRect, x) - 16usize];
4272    ["Offset of field: WGPURenderPassDescriptorExpandResolveRect::y"]
4273        [::core::mem::offset_of!(WGPURenderPassDescriptorExpandResolveRect, y) - 20usize];
4274    ["Offset of field: WGPURenderPassDescriptorExpandResolveRect::width"]
4275        [::core::mem::offset_of!(WGPURenderPassDescriptorExpandResolveRect, width) - 24usize];
4276    ["Offset of field: WGPURenderPassDescriptorExpandResolveRect::height"]
4277        [::core::mem::offset_of!(WGPURenderPassDescriptorExpandResolveRect, height) - 28usize];
4278};
4279impl Default for WGPURenderPassDescriptorExpandResolveRect {
4280    fn default() -> Self {
4281        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4282        unsafe {
4283            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4284            s.assume_init()
4285        }
4286    }
4287}
4288#[repr(C)]
4289#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4290pub struct WGPURenderPassDescriptorResolveRect {
4291    pub chain: WGPUChainedStruct,
4292    pub colorOffsetX: u32,
4293    pub colorOffsetY: u32,
4294    pub resolveOffsetX: u32,
4295    pub resolveOffsetY: u32,
4296    pub width: u32,
4297    pub height: u32,
4298}
4299#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4300const _: () = {
4301    ["Size of WGPURenderPassDescriptorResolveRect"]
4302        [::core::mem::size_of::<WGPURenderPassDescriptorResolveRect>() - 40usize];
4303    ["Alignment of WGPURenderPassDescriptorResolveRect"]
4304        [::core::mem::align_of::<WGPURenderPassDescriptorResolveRect>() - 8usize];
4305    ["Offset of field: WGPURenderPassDescriptorResolveRect::chain"]
4306        [::core::mem::offset_of!(WGPURenderPassDescriptorResolveRect, chain) - 0usize];
4307    ["Offset of field: WGPURenderPassDescriptorResolveRect::colorOffsetX"]
4308        [::core::mem::offset_of!(WGPURenderPassDescriptorResolveRect, colorOffsetX) - 16usize];
4309    ["Offset of field: WGPURenderPassDescriptorResolveRect::colorOffsetY"]
4310        [::core::mem::offset_of!(WGPURenderPassDescriptorResolveRect, colorOffsetY) - 20usize];
4311    ["Offset of field: WGPURenderPassDescriptorResolveRect::resolveOffsetX"]
4312        [::core::mem::offset_of!(WGPURenderPassDescriptorResolveRect, resolveOffsetX) - 24usize];
4313    ["Offset of field: WGPURenderPassDescriptorResolveRect::resolveOffsetY"]
4314        [::core::mem::offset_of!(WGPURenderPassDescriptorResolveRect, resolveOffsetY) - 28usize];
4315    ["Offset of field: WGPURenderPassDescriptorResolveRect::width"]
4316        [::core::mem::offset_of!(WGPURenderPassDescriptorResolveRect, width) - 32usize];
4317    ["Offset of field: WGPURenderPassDescriptorResolveRect::height"]
4318        [::core::mem::offset_of!(WGPURenderPassDescriptorResolveRect, height) - 36usize];
4319};
4320impl Default for WGPURenderPassDescriptorResolveRect {
4321    fn default() -> Self {
4322        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4323        unsafe {
4324            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4325            s.assume_init()
4326        }
4327    }
4328}
4329#[repr(C)]
4330#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4331pub struct WGPURenderPassMaxDrawCount {
4332    pub chain: WGPUChainedStruct,
4333    pub maxDrawCount: u64,
4334}
4335#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4336const _: () = {
4337    ["Size of WGPURenderPassMaxDrawCount"]
4338        [::core::mem::size_of::<WGPURenderPassMaxDrawCount>() - 24usize];
4339    ["Alignment of WGPURenderPassMaxDrawCount"]
4340        [::core::mem::align_of::<WGPURenderPassMaxDrawCount>() - 8usize];
4341    ["Offset of field: WGPURenderPassMaxDrawCount::chain"]
4342        [::core::mem::offset_of!(WGPURenderPassMaxDrawCount, chain) - 0usize];
4343    ["Offset of field: WGPURenderPassMaxDrawCount::maxDrawCount"]
4344        [::core::mem::offset_of!(WGPURenderPassMaxDrawCount, maxDrawCount) - 16usize];
4345};
4346impl Default for WGPURenderPassMaxDrawCount {
4347    fn default() -> Self {
4348        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4349        unsafe {
4350            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4351            s.assume_init()
4352        }
4353    }
4354}
4355#[repr(C)]
4356#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4357pub struct WGPURequestAdapterWebXROptions {
4358    pub chain: WGPUChainedStruct,
4359    pub xrCompatible: WGPUBool,
4360}
4361#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4362const _: () = {
4363    ["Size of WGPURequestAdapterWebXROptions"]
4364        [::core::mem::size_of::<WGPURequestAdapterWebXROptions>() - 24usize];
4365    ["Alignment of WGPURequestAdapterWebXROptions"]
4366        [::core::mem::align_of::<WGPURequestAdapterWebXROptions>() - 8usize];
4367    ["Offset of field: WGPURequestAdapterWebXROptions::chain"]
4368        [::core::mem::offset_of!(WGPURequestAdapterWebXROptions, chain) - 0usize];
4369    ["Offset of field: WGPURequestAdapterWebXROptions::xrCompatible"]
4370        [::core::mem::offset_of!(WGPURequestAdapterWebXROptions, xrCompatible) - 16usize];
4371};
4372impl Default for WGPURequestAdapterWebXROptions {
4373    fn default() -> Self {
4374        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4375        unsafe {
4376            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4377            s.assume_init()
4378        }
4379    }
4380}
4381#[repr(C)]
4382#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4383pub struct WGPUSamplerBindingLayout {
4384    pub nextInChain: *mut WGPUChainedStruct,
4385    pub type_: WGPUSamplerBindingType,
4386}
4387#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4388const _: () = {
4389    ["Size of WGPUSamplerBindingLayout"]
4390        [::core::mem::size_of::<WGPUSamplerBindingLayout>() - 16usize];
4391    ["Alignment of WGPUSamplerBindingLayout"]
4392        [::core::mem::align_of::<WGPUSamplerBindingLayout>() - 8usize];
4393    ["Offset of field: WGPUSamplerBindingLayout::nextInChain"]
4394        [::core::mem::offset_of!(WGPUSamplerBindingLayout, nextInChain) - 0usize];
4395    ["Offset of field: WGPUSamplerBindingLayout::type_"]
4396        [::core::mem::offset_of!(WGPUSamplerBindingLayout, type_) - 8usize];
4397};
4398impl Default for WGPUSamplerBindingLayout {
4399    fn default() -> Self {
4400        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4401        unsafe {
4402            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4403            s.assume_init()
4404        }
4405    }
4406}
4407#[repr(C)]
4408#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4409pub struct WGPUShaderModuleCompilationOptions {
4410    pub chain: WGPUChainedStruct,
4411    pub strictMath: WGPUBool,
4412}
4413#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4414const _: () = {
4415    ["Size of WGPUShaderModuleCompilationOptions"]
4416        [::core::mem::size_of::<WGPUShaderModuleCompilationOptions>() - 24usize];
4417    ["Alignment of WGPUShaderModuleCompilationOptions"]
4418        [::core::mem::align_of::<WGPUShaderModuleCompilationOptions>() - 8usize];
4419    ["Offset of field: WGPUShaderModuleCompilationOptions::chain"]
4420        [::core::mem::offset_of!(WGPUShaderModuleCompilationOptions, chain) - 0usize];
4421    ["Offset of field: WGPUShaderModuleCompilationOptions::strictMath"]
4422        [::core::mem::offset_of!(WGPUShaderModuleCompilationOptions, strictMath) - 16usize];
4423};
4424impl Default for WGPUShaderModuleCompilationOptions {
4425    fn default() -> Self {
4426        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4427        unsafe {
4428            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4429            s.assume_init()
4430        }
4431    }
4432}
4433#[repr(C)]
4434#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4435pub struct WGPUShaderSourceSPIRV {
4436    pub chain: WGPUChainedStruct,
4437    pub codeSize: u32,
4438    pub code: *const u32,
4439}
4440#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4441const _: () = {
4442    ["Size of WGPUShaderSourceSPIRV"][::core::mem::size_of::<WGPUShaderSourceSPIRV>() - 32usize];
4443    ["Alignment of WGPUShaderSourceSPIRV"]
4444        [::core::mem::align_of::<WGPUShaderSourceSPIRV>() - 8usize];
4445    ["Offset of field: WGPUShaderSourceSPIRV::chain"]
4446        [::core::mem::offset_of!(WGPUShaderSourceSPIRV, chain) - 0usize];
4447    ["Offset of field: WGPUShaderSourceSPIRV::codeSize"]
4448        [::core::mem::offset_of!(WGPUShaderSourceSPIRV, codeSize) - 16usize];
4449    ["Offset of field: WGPUShaderSourceSPIRV::code"]
4450        [::core::mem::offset_of!(WGPUShaderSourceSPIRV, code) - 24usize];
4451};
4452impl Default for WGPUShaderSourceSPIRV {
4453    fn default() -> Self {
4454        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4455        unsafe {
4456            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4457            s.assume_init()
4458        }
4459    }
4460}
4461#[repr(C)]
4462#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4463pub struct WGPUShaderSourceWGSL {
4464    pub chain: WGPUChainedStruct,
4465    pub code: WGPUStringView,
4466}
4467#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4468const _: () = {
4469    ["Size of WGPUShaderSourceWGSL"][::core::mem::size_of::<WGPUShaderSourceWGSL>() - 32usize];
4470    ["Alignment of WGPUShaderSourceWGSL"][::core::mem::align_of::<WGPUShaderSourceWGSL>() - 8usize];
4471    ["Offset of field: WGPUShaderSourceWGSL::chain"]
4472        [::core::mem::offset_of!(WGPUShaderSourceWGSL, chain) - 0usize];
4473    ["Offset of field: WGPUShaderSourceWGSL::code"]
4474        [::core::mem::offset_of!(WGPUShaderSourceWGSL, code) - 16usize];
4475};
4476impl Default for WGPUShaderSourceWGSL {
4477    fn default() -> Self {
4478        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4479        unsafe {
4480            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4481            s.assume_init()
4482        }
4483    }
4484}
4485#[repr(C)]
4486#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4487pub struct WGPUSharedBufferMemoryBeginAccessDescriptor {
4488    pub nextInChain: *mut WGPUChainedStruct,
4489    pub initialized: WGPUBool,
4490    pub fenceCount: usize,
4491    pub fences: *const WGPUSharedFence,
4492    pub signaledValues: *const u64,
4493}
4494#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4495const _: () = {
4496    ["Size of WGPUSharedBufferMemoryBeginAccessDescriptor"]
4497        [::core::mem::size_of::<WGPUSharedBufferMemoryBeginAccessDescriptor>() - 40usize];
4498    ["Alignment of WGPUSharedBufferMemoryBeginAccessDescriptor"]
4499        [::core::mem::align_of::<WGPUSharedBufferMemoryBeginAccessDescriptor>() - 8usize];
4500    ["Offset of field: WGPUSharedBufferMemoryBeginAccessDescriptor::nextInChain"][::core::mem::offset_of!(
4501        WGPUSharedBufferMemoryBeginAccessDescriptor,
4502        nextInChain
4503    ) - 0usize];
4504    ["Offset of field: WGPUSharedBufferMemoryBeginAccessDescriptor::initialized"][::core::mem::offset_of!(
4505        WGPUSharedBufferMemoryBeginAccessDescriptor,
4506        initialized
4507    ) - 8usize];
4508    ["Offset of field: WGPUSharedBufferMemoryBeginAccessDescriptor::fenceCount"][::core::mem::offset_of!(
4509        WGPUSharedBufferMemoryBeginAccessDescriptor,
4510        fenceCount
4511    ) - 16usize];
4512    ["Offset of field: WGPUSharedBufferMemoryBeginAccessDescriptor::fences"]
4513        [::core::mem::offset_of!(WGPUSharedBufferMemoryBeginAccessDescriptor, fences) - 24usize];
4514    ["Offset of field: WGPUSharedBufferMemoryBeginAccessDescriptor::signaledValues"][::core::mem::offset_of!(
4515        WGPUSharedBufferMemoryBeginAccessDescriptor,
4516        signaledValues
4517    ) - 32usize];
4518};
4519impl Default for WGPUSharedBufferMemoryBeginAccessDescriptor {
4520    fn default() -> Self {
4521        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4522        unsafe {
4523            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4524            s.assume_init()
4525        }
4526    }
4527}
4528#[repr(C)]
4529#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4530pub struct WGPUSharedBufferMemoryDescriptor {
4531    pub nextInChain: *mut WGPUChainedStruct,
4532    pub label: WGPUStringView,
4533}
4534#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4535const _: () = {
4536    ["Size of WGPUSharedBufferMemoryDescriptor"]
4537        [::core::mem::size_of::<WGPUSharedBufferMemoryDescriptor>() - 24usize];
4538    ["Alignment of WGPUSharedBufferMemoryDescriptor"]
4539        [::core::mem::align_of::<WGPUSharedBufferMemoryDescriptor>() - 8usize];
4540    ["Offset of field: WGPUSharedBufferMemoryDescriptor::nextInChain"]
4541        [::core::mem::offset_of!(WGPUSharedBufferMemoryDescriptor, nextInChain) - 0usize];
4542    ["Offset of field: WGPUSharedBufferMemoryDescriptor::label"]
4543        [::core::mem::offset_of!(WGPUSharedBufferMemoryDescriptor, label) - 8usize];
4544};
4545impl Default for WGPUSharedBufferMemoryDescriptor {
4546    fn default() -> Self {
4547        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4548        unsafe {
4549            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4550            s.assume_init()
4551        }
4552    }
4553}
4554#[repr(C)]
4555#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4556pub struct WGPUSharedBufferMemoryEndAccessState {
4557    pub nextInChain: *mut WGPUChainedStruct,
4558    pub initialized: WGPUBool,
4559    pub fenceCount: usize,
4560    pub fences: *const WGPUSharedFence,
4561    pub signaledValues: *const u64,
4562}
4563#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4564const _: () = {
4565    ["Size of WGPUSharedBufferMemoryEndAccessState"]
4566        [::core::mem::size_of::<WGPUSharedBufferMemoryEndAccessState>() - 40usize];
4567    ["Alignment of WGPUSharedBufferMemoryEndAccessState"]
4568        [::core::mem::align_of::<WGPUSharedBufferMemoryEndAccessState>() - 8usize];
4569    ["Offset of field: WGPUSharedBufferMemoryEndAccessState::nextInChain"]
4570        [::core::mem::offset_of!(WGPUSharedBufferMemoryEndAccessState, nextInChain) - 0usize];
4571    ["Offset of field: WGPUSharedBufferMemoryEndAccessState::initialized"]
4572        [::core::mem::offset_of!(WGPUSharedBufferMemoryEndAccessState, initialized) - 8usize];
4573    ["Offset of field: WGPUSharedBufferMemoryEndAccessState::fenceCount"]
4574        [::core::mem::offset_of!(WGPUSharedBufferMemoryEndAccessState, fenceCount) - 16usize];
4575    ["Offset of field: WGPUSharedBufferMemoryEndAccessState::fences"]
4576        [::core::mem::offset_of!(WGPUSharedBufferMemoryEndAccessState, fences) - 24usize];
4577    ["Offset of field: WGPUSharedBufferMemoryEndAccessState::signaledValues"]
4578        [::core::mem::offset_of!(WGPUSharedBufferMemoryEndAccessState, signaledValues) - 32usize];
4579};
4580impl Default for WGPUSharedBufferMemoryEndAccessState {
4581    fn default() -> Self {
4582        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4583        unsafe {
4584            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4585            s.assume_init()
4586        }
4587    }
4588}
4589#[repr(C)]
4590pub struct WGPUSharedBufferMemoryProperties {
4591    pub nextInChain: *mut WGPUChainedStruct,
4592    pub usage: WGPUBufferUsage,
4593    pub size: u64,
4594}
4595#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4596const _: () = {
4597    ["Size of WGPUSharedBufferMemoryProperties"]
4598        [::core::mem::size_of::<WGPUSharedBufferMemoryProperties>() - 24usize];
4599    ["Alignment of WGPUSharedBufferMemoryProperties"]
4600        [::core::mem::align_of::<WGPUSharedBufferMemoryProperties>() - 8usize];
4601    ["Offset of field: WGPUSharedBufferMemoryProperties::nextInChain"]
4602        [::core::mem::offset_of!(WGPUSharedBufferMemoryProperties, nextInChain) - 0usize];
4603    ["Offset of field: WGPUSharedBufferMemoryProperties::usage"]
4604        [::core::mem::offset_of!(WGPUSharedBufferMemoryProperties, usage) - 8usize];
4605    ["Offset of field: WGPUSharedBufferMemoryProperties::size"]
4606        [::core::mem::offset_of!(WGPUSharedBufferMemoryProperties, size) - 16usize];
4607};
4608impl Default for WGPUSharedBufferMemoryProperties {
4609    fn default() -> Self {
4610        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4611        unsafe {
4612            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4613            s.assume_init()
4614        }
4615    }
4616}
4617#[repr(C)]
4618#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4619pub struct WGPUSharedFenceDXGISharedHandleDescriptor {
4620    pub chain: WGPUChainedStruct,
4621    pub handle: *mut ::core::ffi::c_void,
4622}
4623#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4624const _: () = {
4625    ["Size of WGPUSharedFenceDXGISharedHandleDescriptor"]
4626        [::core::mem::size_of::<WGPUSharedFenceDXGISharedHandleDescriptor>() - 24usize];
4627    ["Alignment of WGPUSharedFenceDXGISharedHandleDescriptor"]
4628        [::core::mem::align_of::<WGPUSharedFenceDXGISharedHandleDescriptor>() - 8usize];
4629    ["Offset of field: WGPUSharedFenceDXGISharedHandleDescriptor::chain"]
4630        [::core::mem::offset_of!(WGPUSharedFenceDXGISharedHandleDescriptor, chain) - 0usize];
4631    ["Offset of field: WGPUSharedFenceDXGISharedHandleDescriptor::handle"]
4632        [::core::mem::offset_of!(WGPUSharedFenceDXGISharedHandleDescriptor, handle) - 16usize];
4633};
4634impl Default for WGPUSharedFenceDXGISharedHandleDescriptor {
4635    fn default() -> Self {
4636        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4637        unsafe {
4638            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4639            s.assume_init()
4640        }
4641    }
4642}
4643#[repr(C)]
4644#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4645pub struct WGPUSharedFenceDXGISharedHandleExportInfo {
4646    pub chain: WGPUChainedStruct,
4647    pub handle: *mut ::core::ffi::c_void,
4648}
4649#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4650const _: () = {
4651    ["Size of WGPUSharedFenceDXGISharedHandleExportInfo"]
4652        [::core::mem::size_of::<WGPUSharedFenceDXGISharedHandleExportInfo>() - 24usize];
4653    ["Alignment of WGPUSharedFenceDXGISharedHandleExportInfo"]
4654        [::core::mem::align_of::<WGPUSharedFenceDXGISharedHandleExportInfo>() - 8usize];
4655    ["Offset of field: WGPUSharedFenceDXGISharedHandleExportInfo::chain"]
4656        [::core::mem::offset_of!(WGPUSharedFenceDXGISharedHandleExportInfo, chain) - 0usize];
4657    ["Offset of field: WGPUSharedFenceDXGISharedHandleExportInfo::handle"]
4658        [::core::mem::offset_of!(WGPUSharedFenceDXGISharedHandleExportInfo, handle) - 16usize];
4659};
4660impl Default for WGPUSharedFenceDXGISharedHandleExportInfo {
4661    fn default() -> Self {
4662        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4663        unsafe {
4664            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4665            s.assume_init()
4666        }
4667    }
4668}
4669#[repr(C)]
4670#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4671pub struct WGPUSharedFenceEGLSyncDescriptor {
4672    pub chain: WGPUChainedStruct,
4673    pub sync: *mut ::core::ffi::c_void,
4674}
4675#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4676const _: () = {
4677    ["Size of WGPUSharedFenceEGLSyncDescriptor"]
4678        [::core::mem::size_of::<WGPUSharedFenceEGLSyncDescriptor>() - 24usize];
4679    ["Alignment of WGPUSharedFenceEGLSyncDescriptor"]
4680        [::core::mem::align_of::<WGPUSharedFenceEGLSyncDescriptor>() - 8usize];
4681    ["Offset of field: WGPUSharedFenceEGLSyncDescriptor::chain"]
4682        [::core::mem::offset_of!(WGPUSharedFenceEGLSyncDescriptor, chain) - 0usize];
4683    ["Offset of field: WGPUSharedFenceEGLSyncDescriptor::sync"]
4684        [::core::mem::offset_of!(WGPUSharedFenceEGLSyncDescriptor, sync) - 16usize];
4685};
4686impl Default for WGPUSharedFenceEGLSyncDescriptor {
4687    fn default() -> Self {
4688        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4689        unsafe {
4690            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4691            s.assume_init()
4692        }
4693    }
4694}
4695#[repr(C)]
4696#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4697pub struct WGPUSharedFenceEGLSyncExportInfo {
4698    pub chain: WGPUChainedStruct,
4699    pub sync: *mut ::core::ffi::c_void,
4700}
4701#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4702const _: () = {
4703    ["Size of WGPUSharedFenceEGLSyncExportInfo"]
4704        [::core::mem::size_of::<WGPUSharedFenceEGLSyncExportInfo>() - 24usize];
4705    ["Alignment of WGPUSharedFenceEGLSyncExportInfo"]
4706        [::core::mem::align_of::<WGPUSharedFenceEGLSyncExportInfo>() - 8usize];
4707    ["Offset of field: WGPUSharedFenceEGLSyncExportInfo::chain"]
4708        [::core::mem::offset_of!(WGPUSharedFenceEGLSyncExportInfo, chain) - 0usize];
4709    ["Offset of field: WGPUSharedFenceEGLSyncExportInfo::sync"]
4710        [::core::mem::offset_of!(WGPUSharedFenceEGLSyncExportInfo, sync) - 16usize];
4711};
4712impl Default for WGPUSharedFenceEGLSyncExportInfo {
4713    fn default() -> Self {
4714        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4715        unsafe {
4716            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4717            s.assume_init()
4718        }
4719    }
4720}
4721#[repr(C)]
4722#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4723pub struct WGPUSharedFenceMTLSharedEventDescriptor {
4724    pub chain: WGPUChainedStruct,
4725    pub sharedEvent: *mut ::core::ffi::c_void,
4726}
4727#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4728const _: () = {
4729    ["Size of WGPUSharedFenceMTLSharedEventDescriptor"]
4730        [::core::mem::size_of::<WGPUSharedFenceMTLSharedEventDescriptor>() - 24usize];
4731    ["Alignment of WGPUSharedFenceMTLSharedEventDescriptor"]
4732        [::core::mem::align_of::<WGPUSharedFenceMTLSharedEventDescriptor>() - 8usize];
4733    ["Offset of field: WGPUSharedFenceMTLSharedEventDescriptor::chain"]
4734        [::core::mem::offset_of!(WGPUSharedFenceMTLSharedEventDescriptor, chain) - 0usize];
4735    ["Offset of field: WGPUSharedFenceMTLSharedEventDescriptor::sharedEvent"]
4736        [::core::mem::offset_of!(WGPUSharedFenceMTLSharedEventDescriptor, sharedEvent) - 16usize];
4737};
4738impl Default for WGPUSharedFenceMTLSharedEventDescriptor {
4739    fn default() -> Self {
4740        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4741        unsafe {
4742            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4743            s.assume_init()
4744        }
4745    }
4746}
4747#[repr(C)]
4748#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4749pub struct WGPUSharedFenceMTLSharedEventExportInfo {
4750    pub chain: WGPUChainedStruct,
4751    pub sharedEvent: *mut ::core::ffi::c_void,
4752}
4753#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4754const _: () = {
4755    ["Size of WGPUSharedFenceMTLSharedEventExportInfo"]
4756        [::core::mem::size_of::<WGPUSharedFenceMTLSharedEventExportInfo>() - 24usize];
4757    ["Alignment of WGPUSharedFenceMTLSharedEventExportInfo"]
4758        [::core::mem::align_of::<WGPUSharedFenceMTLSharedEventExportInfo>() - 8usize];
4759    ["Offset of field: WGPUSharedFenceMTLSharedEventExportInfo::chain"]
4760        [::core::mem::offset_of!(WGPUSharedFenceMTLSharedEventExportInfo, chain) - 0usize];
4761    ["Offset of field: WGPUSharedFenceMTLSharedEventExportInfo::sharedEvent"]
4762        [::core::mem::offset_of!(WGPUSharedFenceMTLSharedEventExportInfo, sharedEvent) - 16usize];
4763};
4764impl Default for WGPUSharedFenceMTLSharedEventExportInfo {
4765    fn default() -> Self {
4766        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4767        unsafe {
4768            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4769            s.assume_init()
4770        }
4771    }
4772}
4773#[repr(C)]
4774#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4775pub struct WGPUSharedFenceSyncFDDescriptor {
4776    pub chain: WGPUChainedStruct,
4777    pub handle: ::core::ffi::c_int,
4778}
4779#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4780const _: () = {
4781    ["Size of WGPUSharedFenceSyncFDDescriptor"]
4782        [::core::mem::size_of::<WGPUSharedFenceSyncFDDescriptor>() - 24usize];
4783    ["Alignment of WGPUSharedFenceSyncFDDescriptor"]
4784        [::core::mem::align_of::<WGPUSharedFenceSyncFDDescriptor>() - 8usize];
4785    ["Offset of field: WGPUSharedFenceSyncFDDescriptor::chain"]
4786        [::core::mem::offset_of!(WGPUSharedFenceSyncFDDescriptor, chain) - 0usize];
4787    ["Offset of field: WGPUSharedFenceSyncFDDescriptor::handle"]
4788        [::core::mem::offset_of!(WGPUSharedFenceSyncFDDescriptor, handle) - 16usize];
4789};
4790impl Default for WGPUSharedFenceSyncFDDescriptor {
4791    fn default() -> Self {
4792        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4793        unsafe {
4794            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4795            s.assume_init()
4796        }
4797    }
4798}
4799#[repr(C)]
4800#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4801pub struct WGPUSharedFenceSyncFDExportInfo {
4802    pub chain: WGPUChainedStruct,
4803    pub handle: ::core::ffi::c_int,
4804}
4805#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4806const _: () = {
4807    ["Size of WGPUSharedFenceSyncFDExportInfo"]
4808        [::core::mem::size_of::<WGPUSharedFenceSyncFDExportInfo>() - 24usize];
4809    ["Alignment of WGPUSharedFenceSyncFDExportInfo"]
4810        [::core::mem::align_of::<WGPUSharedFenceSyncFDExportInfo>() - 8usize];
4811    ["Offset of field: WGPUSharedFenceSyncFDExportInfo::chain"]
4812        [::core::mem::offset_of!(WGPUSharedFenceSyncFDExportInfo, chain) - 0usize];
4813    ["Offset of field: WGPUSharedFenceSyncFDExportInfo::handle"]
4814        [::core::mem::offset_of!(WGPUSharedFenceSyncFDExportInfo, handle) - 16usize];
4815};
4816impl Default for WGPUSharedFenceSyncFDExportInfo {
4817    fn default() -> Self {
4818        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4819        unsafe {
4820            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4821            s.assume_init()
4822        }
4823    }
4824}
4825#[repr(C)]
4826#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4827pub struct WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor {
4828    pub chain: WGPUChainedStruct,
4829    pub handle: ::core::ffi::c_int,
4830}
4831#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4832const _: () = {
4833    ["Size of WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor"]
4834        [::core::mem::size_of::<WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor>() - 24usize];
4835    ["Alignment of WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor"]
4836        [::core::mem::align_of::<WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor>() - 8usize];
4837    ["Offset of field: WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor::chain"]
4838        [::core::mem::offset_of!(WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor, chain) - 0usize];
4839    ["Offset of field: WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor::handle"]
4840        [::core::mem::offset_of!(WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor, handle) - 16usize];
4841};
4842impl Default for WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor {
4843    fn default() -> Self {
4844        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4845        unsafe {
4846            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4847            s.assume_init()
4848        }
4849    }
4850}
4851#[repr(C)]
4852#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4853pub struct WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo {
4854    pub chain: WGPUChainedStruct,
4855    pub handle: ::core::ffi::c_int,
4856}
4857#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4858const _: () = {
4859    ["Size of WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo"]
4860        [::core::mem::size_of::<WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo>() - 24usize];
4861    ["Alignment of WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo"]
4862        [::core::mem::align_of::<WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo>() - 8usize];
4863    ["Offset of field: WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo::chain"]
4864        [::core::mem::offset_of!(WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo, chain) - 0usize];
4865    ["Offset of field: WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo::handle"]
4866        [::core::mem::offset_of!(WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo, handle) - 16usize];
4867};
4868impl Default for WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo {
4869    fn default() -> Self {
4870        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4871        unsafe {
4872            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4873            s.assume_init()
4874        }
4875    }
4876}
4877#[repr(C)]
4878#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4879pub struct WGPUSharedFenceVkSemaphoreZirconHandleDescriptor {
4880    pub chain: WGPUChainedStruct,
4881    pub handle: u32,
4882}
4883#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4884const _: () = {
4885    ["Size of WGPUSharedFenceVkSemaphoreZirconHandleDescriptor"]
4886        [::core::mem::size_of::<WGPUSharedFenceVkSemaphoreZirconHandleDescriptor>() - 24usize];
4887    ["Alignment of WGPUSharedFenceVkSemaphoreZirconHandleDescriptor"]
4888        [::core::mem::align_of::<WGPUSharedFenceVkSemaphoreZirconHandleDescriptor>() - 8usize];
4889    ["Offset of field: WGPUSharedFenceVkSemaphoreZirconHandleDescriptor::chain"]
4890        [::core::mem::offset_of!(WGPUSharedFenceVkSemaphoreZirconHandleDescriptor, chain) - 0usize];
4891    ["Offset of field: WGPUSharedFenceVkSemaphoreZirconHandleDescriptor::handle"][::core::mem::offset_of!(
4892        WGPUSharedFenceVkSemaphoreZirconHandleDescriptor,
4893        handle
4894    ) - 16usize];
4895};
4896impl Default for WGPUSharedFenceVkSemaphoreZirconHandleDescriptor {
4897    fn default() -> Self {
4898        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4899        unsafe {
4900            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4901            s.assume_init()
4902        }
4903    }
4904}
4905#[repr(C)]
4906#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4907pub struct WGPUSharedFenceVkSemaphoreZirconHandleExportInfo {
4908    pub chain: WGPUChainedStruct,
4909    pub handle: u32,
4910}
4911#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4912const _: () = {
4913    ["Size of WGPUSharedFenceVkSemaphoreZirconHandleExportInfo"]
4914        [::core::mem::size_of::<WGPUSharedFenceVkSemaphoreZirconHandleExportInfo>() - 24usize];
4915    ["Alignment of WGPUSharedFenceVkSemaphoreZirconHandleExportInfo"]
4916        [::core::mem::align_of::<WGPUSharedFenceVkSemaphoreZirconHandleExportInfo>() - 8usize];
4917    ["Offset of field: WGPUSharedFenceVkSemaphoreZirconHandleExportInfo::chain"]
4918        [::core::mem::offset_of!(WGPUSharedFenceVkSemaphoreZirconHandleExportInfo, chain) - 0usize];
4919    ["Offset of field: WGPUSharedFenceVkSemaphoreZirconHandleExportInfo::handle"][::core::mem::offset_of!(
4920        WGPUSharedFenceVkSemaphoreZirconHandleExportInfo,
4921        handle
4922    ) - 16usize];
4923};
4924impl Default for WGPUSharedFenceVkSemaphoreZirconHandleExportInfo {
4925    fn default() -> Self {
4926        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4927        unsafe {
4928            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4929            s.assume_init()
4930        }
4931    }
4932}
4933#[repr(C)]
4934#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4935pub struct WGPUSharedTextureMemoryAHardwareBufferDescriptor {
4936    pub chain: WGPUChainedStruct,
4937    pub handle: *mut ::core::ffi::c_void,
4938    pub useExternalFormat: WGPUBool,
4939}
4940#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4941const _: () = {
4942    ["Size of WGPUSharedTextureMemoryAHardwareBufferDescriptor"]
4943        [::core::mem::size_of::<WGPUSharedTextureMemoryAHardwareBufferDescriptor>() - 32usize];
4944    ["Alignment of WGPUSharedTextureMemoryAHardwareBufferDescriptor"]
4945        [::core::mem::align_of::<WGPUSharedTextureMemoryAHardwareBufferDescriptor>() - 8usize];
4946    ["Offset of field: WGPUSharedTextureMemoryAHardwareBufferDescriptor::chain"]
4947        [::core::mem::offset_of!(WGPUSharedTextureMemoryAHardwareBufferDescriptor, chain) - 0usize];
4948    ["Offset of field: WGPUSharedTextureMemoryAHardwareBufferDescriptor::handle"][::core::mem::offset_of!(
4949        WGPUSharedTextureMemoryAHardwareBufferDescriptor,
4950        handle
4951    ) - 16usize];
4952    ["Offset of field: WGPUSharedTextureMemoryAHardwareBufferDescriptor::useExternalFormat"][::core::mem::offset_of!(
4953        WGPUSharedTextureMemoryAHardwareBufferDescriptor,
4954        useExternalFormat
4955    )
4956        - 24usize];
4957};
4958impl Default for WGPUSharedTextureMemoryAHardwareBufferDescriptor {
4959    fn default() -> Self {
4960        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4961        unsafe {
4962            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4963            s.assume_init()
4964        }
4965    }
4966}
4967#[repr(C)]
4968#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4969pub struct WGPUSharedTextureMemoryD3DSwapchainBeginState {
4970    pub chain: WGPUChainedStruct,
4971    pub isSwapchain: WGPUBool,
4972}
4973#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4974const _: () = {
4975    ["Size of WGPUSharedTextureMemoryD3DSwapchainBeginState"]
4976        [::core::mem::size_of::<WGPUSharedTextureMemoryD3DSwapchainBeginState>() - 24usize];
4977    ["Alignment of WGPUSharedTextureMemoryD3DSwapchainBeginState"]
4978        [::core::mem::align_of::<WGPUSharedTextureMemoryD3DSwapchainBeginState>() - 8usize];
4979    ["Offset of field: WGPUSharedTextureMemoryD3DSwapchainBeginState::chain"]
4980        [::core::mem::offset_of!(WGPUSharedTextureMemoryD3DSwapchainBeginState, chain) - 0usize];
4981    ["Offset of field: WGPUSharedTextureMemoryD3DSwapchainBeginState::isSwapchain"][::core::mem::offset_of!(
4982        WGPUSharedTextureMemoryD3DSwapchainBeginState,
4983        isSwapchain
4984    ) - 16usize];
4985};
4986impl Default for WGPUSharedTextureMemoryD3DSwapchainBeginState {
4987    fn default() -> Self {
4988        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
4989        unsafe {
4990            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4991            s.assume_init()
4992        }
4993    }
4994}
4995#[repr(C)]
4996#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
4997pub struct WGPUSharedTextureMemoryDmaBufPlane {
4998    pub fd: ::core::ffi::c_int,
4999    pub offset: u64,
5000    pub stride: u32,
5001}
5002#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5003const _: () = {
5004    ["Size of WGPUSharedTextureMemoryDmaBufPlane"]
5005        [::core::mem::size_of::<WGPUSharedTextureMemoryDmaBufPlane>() - 24usize];
5006    ["Alignment of WGPUSharedTextureMemoryDmaBufPlane"]
5007        [::core::mem::align_of::<WGPUSharedTextureMemoryDmaBufPlane>() - 8usize];
5008    ["Offset of field: WGPUSharedTextureMemoryDmaBufPlane::fd"]
5009        [::core::mem::offset_of!(WGPUSharedTextureMemoryDmaBufPlane, fd) - 0usize];
5010    ["Offset of field: WGPUSharedTextureMemoryDmaBufPlane::offset"]
5011        [::core::mem::offset_of!(WGPUSharedTextureMemoryDmaBufPlane, offset) - 8usize];
5012    ["Offset of field: WGPUSharedTextureMemoryDmaBufPlane::stride"]
5013        [::core::mem::offset_of!(WGPUSharedTextureMemoryDmaBufPlane, stride) - 16usize];
5014};
5015#[repr(C)]
5016#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5017pub struct WGPUSharedTextureMemoryDXGISharedHandleDescriptor {
5018    pub chain: WGPUChainedStruct,
5019    pub handle: *mut ::core::ffi::c_void,
5020    pub useKeyedMutex: WGPUBool,
5021}
5022#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5023const _: () = {
5024    ["Size of WGPUSharedTextureMemoryDXGISharedHandleDescriptor"]
5025        [::core::mem::size_of::<WGPUSharedTextureMemoryDXGISharedHandleDescriptor>() - 32usize];
5026    ["Alignment of WGPUSharedTextureMemoryDXGISharedHandleDescriptor"]
5027        [::core::mem::align_of::<WGPUSharedTextureMemoryDXGISharedHandleDescriptor>() - 8usize];
5028    ["Offset of field: WGPUSharedTextureMemoryDXGISharedHandleDescriptor::chain"][::core::mem::offset_of!(
5029        WGPUSharedTextureMemoryDXGISharedHandleDescriptor,
5030        chain
5031    ) - 0usize];
5032    ["Offset of field: WGPUSharedTextureMemoryDXGISharedHandleDescriptor::handle"][::core::mem::offset_of!(
5033        WGPUSharedTextureMemoryDXGISharedHandleDescriptor,
5034        handle
5035    ) - 16usize];
5036    ["Offset of field: WGPUSharedTextureMemoryDXGISharedHandleDescriptor::useKeyedMutex"][::core::mem::offset_of!(
5037        WGPUSharedTextureMemoryDXGISharedHandleDescriptor,
5038        useKeyedMutex
5039    )
5040        - 24usize];
5041};
5042impl Default for WGPUSharedTextureMemoryDXGISharedHandleDescriptor {
5043    fn default() -> Self {
5044        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5045        unsafe {
5046            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5047            s.assume_init()
5048        }
5049    }
5050}
5051#[repr(C)]
5052#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5053pub struct WGPUSharedTextureMemoryEGLImageDescriptor {
5054    pub chain: WGPUChainedStruct,
5055    pub image: *mut ::core::ffi::c_void,
5056}
5057#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5058const _: () = {
5059    ["Size of WGPUSharedTextureMemoryEGLImageDescriptor"]
5060        [::core::mem::size_of::<WGPUSharedTextureMemoryEGLImageDescriptor>() - 24usize];
5061    ["Alignment of WGPUSharedTextureMemoryEGLImageDescriptor"]
5062        [::core::mem::align_of::<WGPUSharedTextureMemoryEGLImageDescriptor>() - 8usize];
5063    ["Offset of field: WGPUSharedTextureMemoryEGLImageDescriptor::chain"]
5064        [::core::mem::offset_of!(WGPUSharedTextureMemoryEGLImageDescriptor, chain) - 0usize];
5065    ["Offset of field: WGPUSharedTextureMemoryEGLImageDescriptor::image"]
5066        [::core::mem::offset_of!(WGPUSharedTextureMemoryEGLImageDescriptor, image) - 16usize];
5067};
5068impl Default for WGPUSharedTextureMemoryEGLImageDescriptor {
5069    fn default() -> Self {
5070        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5071        unsafe {
5072            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5073            s.assume_init()
5074        }
5075    }
5076}
5077#[repr(C)]
5078#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5079pub struct WGPUSharedTextureMemoryIOSurfaceDescriptor {
5080    pub chain: WGPUChainedStruct,
5081    pub ioSurface: *mut ::core::ffi::c_void,
5082    pub allowStorageBinding: WGPUBool,
5083}
5084#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5085const _: () = {
5086    ["Size of WGPUSharedTextureMemoryIOSurfaceDescriptor"]
5087        [::core::mem::size_of::<WGPUSharedTextureMemoryIOSurfaceDescriptor>() - 32usize];
5088    ["Alignment of WGPUSharedTextureMemoryIOSurfaceDescriptor"]
5089        [::core::mem::align_of::<WGPUSharedTextureMemoryIOSurfaceDescriptor>() - 8usize];
5090    ["Offset of field: WGPUSharedTextureMemoryIOSurfaceDescriptor::chain"]
5091        [::core::mem::offset_of!(WGPUSharedTextureMemoryIOSurfaceDescriptor, chain) - 0usize];
5092    ["Offset of field: WGPUSharedTextureMemoryIOSurfaceDescriptor::ioSurface"]
5093        [::core::mem::offset_of!(WGPUSharedTextureMemoryIOSurfaceDescriptor, ioSurface) - 16usize];
5094    ["Offset of field: WGPUSharedTextureMemoryIOSurfaceDescriptor::allowStorageBinding"][::core::mem::offset_of!(
5095        WGPUSharedTextureMemoryIOSurfaceDescriptor,
5096        allowStorageBinding
5097    )
5098        - 24usize];
5099};
5100impl Default for WGPUSharedTextureMemoryIOSurfaceDescriptor {
5101    fn default() -> Self {
5102        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5103        unsafe {
5104            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5105            s.assume_init()
5106        }
5107    }
5108}
5109#[repr(C)]
5110#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5111pub struct WGPUSharedTextureMemoryOpaqueFDDescriptor {
5112    pub chain: WGPUChainedStruct,
5113    pub vkImageCreateInfo: *const ::core::ffi::c_void,
5114    pub memoryFD: ::core::ffi::c_int,
5115    pub memoryTypeIndex: u32,
5116    pub allocationSize: u64,
5117    pub dedicatedAllocation: WGPUBool,
5118}
5119#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5120const _: () = {
5121    ["Size of WGPUSharedTextureMemoryOpaqueFDDescriptor"]
5122        [::core::mem::size_of::<WGPUSharedTextureMemoryOpaqueFDDescriptor>() - 48usize];
5123    ["Alignment of WGPUSharedTextureMemoryOpaqueFDDescriptor"]
5124        [::core::mem::align_of::<WGPUSharedTextureMemoryOpaqueFDDescriptor>() - 8usize];
5125    ["Offset of field: WGPUSharedTextureMemoryOpaqueFDDescriptor::chain"]
5126        [::core::mem::offset_of!(WGPUSharedTextureMemoryOpaqueFDDescriptor, chain) - 0usize];
5127    ["Offset of field: WGPUSharedTextureMemoryOpaqueFDDescriptor::vkImageCreateInfo"][::core::mem::offset_of!(
5128        WGPUSharedTextureMemoryOpaqueFDDescriptor,
5129        vkImageCreateInfo
5130    ) - 16usize];
5131    ["Offset of field: WGPUSharedTextureMemoryOpaqueFDDescriptor::memoryFD"]
5132        [::core::mem::offset_of!(WGPUSharedTextureMemoryOpaqueFDDescriptor, memoryFD) - 24usize];
5133    ["Offset of field: WGPUSharedTextureMemoryOpaqueFDDescriptor::memoryTypeIndex"][::core::mem::offset_of!(
5134        WGPUSharedTextureMemoryOpaqueFDDescriptor,
5135        memoryTypeIndex
5136    ) - 28usize];
5137    ["Offset of field: WGPUSharedTextureMemoryOpaqueFDDescriptor::allocationSize"][::core::mem::offset_of!(
5138        WGPUSharedTextureMemoryOpaqueFDDescriptor,
5139        allocationSize
5140    ) - 32usize];
5141    ["Offset of field: WGPUSharedTextureMemoryOpaqueFDDescriptor::dedicatedAllocation"][::core::mem::offset_of!(
5142        WGPUSharedTextureMemoryOpaqueFDDescriptor,
5143        dedicatedAllocation
5144    )
5145        - 40usize];
5146};
5147impl Default for WGPUSharedTextureMemoryOpaqueFDDescriptor {
5148    fn default() -> Self {
5149        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5150        unsafe {
5151            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5152            s.assume_init()
5153        }
5154    }
5155}
5156#[repr(C)]
5157#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5158pub struct WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor {
5159    pub chain: WGPUChainedStruct,
5160    pub dedicatedAllocation: WGPUBool,
5161}
5162#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5163const _: () = {
5164    ["Size of WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor"][::core::mem::size_of::<
5165        WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor,
5166    >() - 24usize];
5167    ["Alignment of WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor"][::core::mem::align_of::<
5168        WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor,
5169    >() - 8usize];
5170    ["Offset of field: WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor::chain"][::core::mem::offset_of!(
5171        WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor,
5172        chain
5173    ) - 0usize];
5174    ["Offset of field: WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor::dedicatedAllocation"] [:: core :: mem :: offset_of ! (WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor , dedicatedAllocation) - 16usize] ;
5175};
5176impl Default for WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor {
5177    fn default() -> Self {
5178        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5179        unsafe {
5180            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5181            s.assume_init()
5182        }
5183    }
5184}
5185#[repr(C)]
5186#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5187pub struct WGPUSharedTextureMemoryVkImageLayoutBeginState {
5188    pub chain: WGPUChainedStruct,
5189    pub oldLayout: i32,
5190    pub newLayout: i32,
5191}
5192#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5193const _: () = {
5194    ["Size of WGPUSharedTextureMemoryVkImageLayoutBeginState"]
5195        [::core::mem::size_of::<WGPUSharedTextureMemoryVkImageLayoutBeginState>() - 24usize];
5196    ["Alignment of WGPUSharedTextureMemoryVkImageLayoutBeginState"]
5197        [::core::mem::align_of::<WGPUSharedTextureMemoryVkImageLayoutBeginState>() - 8usize];
5198    ["Offset of field: WGPUSharedTextureMemoryVkImageLayoutBeginState::chain"]
5199        [::core::mem::offset_of!(WGPUSharedTextureMemoryVkImageLayoutBeginState, chain) - 0usize];
5200    ["Offset of field: WGPUSharedTextureMemoryVkImageLayoutBeginState::oldLayout"][::core::mem::offset_of!(
5201        WGPUSharedTextureMemoryVkImageLayoutBeginState,
5202        oldLayout
5203    ) - 16usize];
5204    ["Offset of field: WGPUSharedTextureMemoryVkImageLayoutBeginState::newLayout"][::core::mem::offset_of!(
5205        WGPUSharedTextureMemoryVkImageLayoutBeginState,
5206        newLayout
5207    ) - 20usize];
5208};
5209impl Default for WGPUSharedTextureMemoryVkImageLayoutBeginState {
5210    fn default() -> Self {
5211        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5212        unsafe {
5213            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5214            s.assume_init()
5215        }
5216    }
5217}
5218#[repr(C)]
5219#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5220pub struct WGPUSharedTextureMemoryVkImageLayoutEndState {
5221    pub chain: WGPUChainedStruct,
5222    pub oldLayout: i32,
5223    pub newLayout: i32,
5224}
5225#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5226const _: () = {
5227    ["Size of WGPUSharedTextureMemoryVkImageLayoutEndState"]
5228        [::core::mem::size_of::<WGPUSharedTextureMemoryVkImageLayoutEndState>() - 24usize];
5229    ["Alignment of WGPUSharedTextureMemoryVkImageLayoutEndState"]
5230        [::core::mem::align_of::<WGPUSharedTextureMemoryVkImageLayoutEndState>() - 8usize];
5231    ["Offset of field: WGPUSharedTextureMemoryVkImageLayoutEndState::chain"]
5232        [::core::mem::offset_of!(WGPUSharedTextureMemoryVkImageLayoutEndState, chain) - 0usize];
5233    ["Offset of field: WGPUSharedTextureMemoryVkImageLayoutEndState::oldLayout"][::core::mem::offset_of!(
5234        WGPUSharedTextureMemoryVkImageLayoutEndState,
5235        oldLayout
5236    ) - 16usize];
5237    ["Offset of field: WGPUSharedTextureMemoryVkImageLayoutEndState::newLayout"][::core::mem::offset_of!(
5238        WGPUSharedTextureMemoryVkImageLayoutEndState,
5239        newLayout
5240    ) - 20usize];
5241};
5242impl Default for WGPUSharedTextureMemoryVkImageLayoutEndState {
5243    fn default() -> Self {
5244        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5245        unsafe {
5246            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5247            s.assume_init()
5248        }
5249    }
5250}
5251#[repr(C)]
5252#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5253pub struct WGPUSharedTextureMemoryZirconHandleDescriptor {
5254    pub chain: WGPUChainedStruct,
5255    pub memoryFD: u32,
5256    pub allocationSize: u64,
5257}
5258#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5259const _: () = {
5260    ["Size of WGPUSharedTextureMemoryZirconHandleDescriptor"]
5261        [::core::mem::size_of::<WGPUSharedTextureMemoryZirconHandleDescriptor>() - 32usize];
5262    ["Alignment of WGPUSharedTextureMemoryZirconHandleDescriptor"]
5263        [::core::mem::align_of::<WGPUSharedTextureMemoryZirconHandleDescriptor>() - 8usize];
5264    ["Offset of field: WGPUSharedTextureMemoryZirconHandleDescriptor::chain"]
5265        [::core::mem::offset_of!(WGPUSharedTextureMemoryZirconHandleDescriptor, chain) - 0usize];
5266    ["Offset of field: WGPUSharedTextureMemoryZirconHandleDescriptor::memoryFD"][::core::mem::offset_of!(
5267        WGPUSharedTextureMemoryZirconHandleDescriptor,
5268        memoryFD
5269    ) - 16usize];
5270    ["Offset of field: WGPUSharedTextureMemoryZirconHandleDescriptor::allocationSize"][::core::mem::offset_of!(
5271        WGPUSharedTextureMemoryZirconHandleDescriptor,
5272        allocationSize
5273    ) - 24usize];
5274};
5275impl Default for WGPUSharedTextureMemoryZirconHandleDescriptor {
5276    fn default() -> Self {
5277        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5278        unsafe {
5279            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5280            s.assume_init()
5281        }
5282    }
5283}
5284#[repr(C)]
5285#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5286pub struct WGPUStaticSamplerBindingLayout {
5287    pub chain: WGPUChainedStruct,
5288    pub sampler: WGPUSampler,
5289    pub sampledTextureBinding: u32,
5290}
5291#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5292const _: () = {
5293    ["Size of WGPUStaticSamplerBindingLayout"]
5294        [::core::mem::size_of::<WGPUStaticSamplerBindingLayout>() - 32usize];
5295    ["Alignment of WGPUStaticSamplerBindingLayout"]
5296        [::core::mem::align_of::<WGPUStaticSamplerBindingLayout>() - 8usize];
5297    ["Offset of field: WGPUStaticSamplerBindingLayout::chain"]
5298        [::core::mem::offset_of!(WGPUStaticSamplerBindingLayout, chain) - 0usize];
5299    ["Offset of field: WGPUStaticSamplerBindingLayout::sampler"]
5300        [::core::mem::offset_of!(WGPUStaticSamplerBindingLayout, sampler) - 16usize];
5301    ["Offset of field: WGPUStaticSamplerBindingLayout::sampledTextureBinding"]
5302        [::core::mem::offset_of!(WGPUStaticSamplerBindingLayout, sampledTextureBinding) - 24usize];
5303};
5304impl Default for WGPUStaticSamplerBindingLayout {
5305    fn default() -> Self {
5306        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5307        unsafe {
5308            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5309            s.assume_init()
5310        }
5311    }
5312}
5313#[repr(C)]
5314#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5315pub struct WGPUStencilFaceState {
5316    pub compare: WGPUCompareFunction,
5317    pub failOp: WGPUStencilOperation,
5318    pub depthFailOp: WGPUStencilOperation,
5319    pub passOp: WGPUStencilOperation,
5320}
5321#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5322const _: () = {
5323    ["Size of WGPUStencilFaceState"][::core::mem::size_of::<WGPUStencilFaceState>() - 16usize];
5324    ["Alignment of WGPUStencilFaceState"][::core::mem::align_of::<WGPUStencilFaceState>() - 4usize];
5325    ["Offset of field: WGPUStencilFaceState::compare"]
5326        [::core::mem::offset_of!(WGPUStencilFaceState, compare) - 0usize];
5327    ["Offset of field: WGPUStencilFaceState::failOp"]
5328        [::core::mem::offset_of!(WGPUStencilFaceState, failOp) - 4usize];
5329    ["Offset of field: WGPUStencilFaceState::depthFailOp"]
5330        [::core::mem::offset_of!(WGPUStencilFaceState, depthFailOp) - 8usize];
5331    ["Offset of field: WGPUStencilFaceState::passOp"]
5332        [::core::mem::offset_of!(WGPUStencilFaceState, passOp) - 12usize];
5333};
5334impl Default for WGPUStencilFaceState {
5335    fn default() -> Self {
5336        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5337        unsafe {
5338            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5339            s.assume_init()
5340        }
5341    }
5342}
5343#[repr(C)]
5344#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5345pub struct WGPUStorageTextureBindingLayout {
5346    pub nextInChain: *mut WGPUChainedStruct,
5347    pub access: WGPUStorageTextureAccess,
5348    pub format: WGPUTextureFormat,
5349    pub viewDimension: WGPUTextureViewDimension,
5350}
5351#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5352const _: () = {
5353    ["Size of WGPUStorageTextureBindingLayout"]
5354        [::core::mem::size_of::<WGPUStorageTextureBindingLayout>() - 24usize];
5355    ["Alignment of WGPUStorageTextureBindingLayout"]
5356        [::core::mem::align_of::<WGPUStorageTextureBindingLayout>() - 8usize];
5357    ["Offset of field: WGPUStorageTextureBindingLayout::nextInChain"]
5358        [::core::mem::offset_of!(WGPUStorageTextureBindingLayout, nextInChain) - 0usize];
5359    ["Offset of field: WGPUStorageTextureBindingLayout::access"]
5360        [::core::mem::offset_of!(WGPUStorageTextureBindingLayout, access) - 8usize];
5361    ["Offset of field: WGPUStorageTextureBindingLayout::format"]
5362        [::core::mem::offset_of!(WGPUStorageTextureBindingLayout, format) - 12usize];
5363    ["Offset of field: WGPUStorageTextureBindingLayout::viewDimension"]
5364        [::core::mem::offset_of!(WGPUStorageTextureBindingLayout, viewDimension) - 16usize];
5365};
5366impl Default for WGPUStorageTextureBindingLayout {
5367    fn default() -> Self {
5368        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5369        unsafe {
5370            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5371            s.assume_init()
5372        }
5373    }
5374}
5375#[repr(C)]
5376#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5377pub struct WGPUSubgroupMatrixConfig {
5378    pub componentType: WGPUSubgroupMatrixComponentType,
5379    pub resultComponentType: WGPUSubgroupMatrixComponentType,
5380    pub M: u32,
5381    pub N: u32,
5382    pub K: u32,
5383}
5384#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5385const _: () = {
5386    ["Size of WGPUSubgroupMatrixConfig"]
5387        [::core::mem::size_of::<WGPUSubgroupMatrixConfig>() - 20usize];
5388    ["Alignment of WGPUSubgroupMatrixConfig"]
5389        [::core::mem::align_of::<WGPUSubgroupMatrixConfig>() - 4usize];
5390    ["Offset of field: WGPUSubgroupMatrixConfig::componentType"]
5391        [::core::mem::offset_of!(WGPUSubgroupMatrixConfig, componentType) - 0usize];
5392    ["Offset of field: WGPUSubgroupMatrixConfig::resultComponentType"]
5393        [::core::mem::offset_of!(WGPUSubgroupMatrixConfig, resultComponentType) - 4usize];
5394    ["Offset of field: WGPUSubgroupMatrixConfig::M"]
5395        [::core::mem::offset_of!(WGPUSubgroupMatrixConfig, M) - 8usize];
5396    ["Offset of field: WGPUSubgroupMatrixConfig::N"]
5397        [::core::mem::offset_of!(WGPUSubgroupMatrixConfig, N) - 12usize];
5398    ["Offset of field: WGPUSubgroupMatrixConfig::K"]
5399        [::core::mem::offset_of!(WGPUSubgroupMatrixConfig, K) - 16usize];
5400};
5401impl Default for WGPUSubgroupMatrixConfig {
5402    fn default() -> Self {
5403        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5404        unsafe {
5405            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5406            s.assume_init()
5407        }
5408    }
5409}
5410#[repr(C)]
5411#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5412pub struct WGPUSupportedFeatures {
5413    pub featureCount: usize,
5414    pub features: *const WGPUFeatureName,
5415}
5416#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5417const _: () = {
5418    ["Size of WGPUSupportedFeatures"][::core::mem::size_of::<WGPUSupportedFeatures>() - 16usize];
5419    ["Alignment of WGPUSupportedFeatures"]
5420        [::core::mem::align_of::<WGPUSupportedFeatures>() - 8usize];
5421    ["Offset of field: WGPUSupportedFeatures::featureCount"]
5422        [::core::mem::offset_of!(WGPUSupportedFeatures, featureCount) - 0usize];
5423    ["Offset of field: WGPUSupportedFeatures::features"]
5424        [::core::mem::offset_of!(WGPUSupportedFeatures, features) - 8usize];
5425};
5426impl Default for WGPUSupportedFeatures {
5427    fn default() -> Self {
5428        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5429        unsafe {
5430            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5431            s.assume_init()
5432        }
5433    }
5434}
5435#[repr(C)]
5436#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5437pub struct WGPUSupportedWGSLLanguageFeatures {
5438    pub featureCount: usize,
5439    pub features: *const WGPUWGSLLanguageFeatureName,
5440}
5441#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5442const _: () = {
5443    ["Size of WGPUSupportedWGSLLanguageFeatures"]
5444        [::core::mem::size_of::<WGPUSupportedWGSLLanguageFeatures>() - 16usize];
5445    ["Alignment of WGPUSupportedWGSLLanguageFeatures"]
5446        [::core::mem::align_of::<WGPUSupportedWGSLLanguageFeatures>() - 8usize];
5447    ["Offset of field: WGPUSupportedWGSLLanguageFeatures::featureCount"]
5448        [::core::mem::offset_of!(WGPUSupportedWGSLLanguageFeatures, featureCount) - 0usize];
5449    ["Offset of field: WGPUSupportedWGSLLanguageFeatures::features"]
5450        [::core::mem::offset_of!(WGPUSupportedWGSLLanguageFeatures, features) - 8usize];
5451};
5452impl Default for WGPUSupportedWGSLLanguageFeatures {
5453    fn default() -> Self {
5454        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5455        unsafe {
5456            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5457            s.assume_init()
5458        }
5459    }
5460}
5461#[repr(C)]
5462pub struct WGPUSurfaceCapabilities {
5463    pub nextInChain: *mut WGPUChainedStruct,
5464    pub usages: WGPUTextureUsage,
5465    pub formatCount: usize,
5466    pub formats: *const WGPUTextureFormat,
5467    pub presentModeCount: usize,
5468    pub presentModes: *const WGPUPresentMode,
5469    pub alphaModeCount: usize,
5470    pub alphaModes: *const WGPUCompositeAlphaMode,
5471}
5472#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5473const _: () = {
5474    ["Size of WGPUSurfaceCapabilities"]
5475        [::core::mem::size_of::<WGPUSurfaceCapabilities>() - 64usize];
5476    ["Alignment of WGPUSurfaceCapabilities"]
5477        [::core::mem::align_of::<WGPUSurfaceCapabilities>() - 8usize];
5478    ["Offset of field: WGPUSurfaceCapabilities::nextInChain"]
5479        [::core::mem::offset_of!(WGPUSurfaceCapabilities, nextInChain) - 0usize];
5480    ["Offset of field: WGPUSurfaceCapabilities::usages"]
5481        [::core::mem::offset_of!(WGPUSurfaceCapabilities, usages) - 8usize];
5482    ["Offset of field: WGPUSurfaceCapabilities::formatCount"]
5483        [::core::mem::offset_of!(WGPUSurfaceCapabilities, formatCount) - 16usize];
5484    ["Offset of field: WGPUSurfaceCapabilities::formats"]
5485        [::core::mem::offset_of!(WGPUSurfaceCapabilities, formats) - 24usize];
5486    ["Offset of field: WGPUSurfaceCapabilities::presentModeCount"]
5487        [::core::mem::offset_of!(WGPUSurfaceCapabilities, presentModeCount) - 32usize];
5488    ["Offset of field: WGPUSurfaceCapabilities::presentModes"]
5489        [::core::mem::offset_of!(WGPUSurfaceCapabilities, presentModes) - 40usize];
5490    ["Offset of field: WGPUSurfaceCapabilities::alphaModeCount"]
5491        [::core::mem::offset_of!(WGPUSurfaceCapabilities, alphaModeCount) - 48usize];
5492    ["Offset of field: WGPUSurfaceCapabilities::alphaModes"]
5493        [::core::mem::offset_of!(WGPUSurfaceCapabilities, alphaModes) - 56usize];
5494};
5495impl Default for WGPUSurfaceCapabilities {
5496    fn default() -> Self {
5497        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5498        unsafe {
5499            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5500            s.assume_init()
5501        }
5502    }
5503}
5504#[repr(C)]
5505#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5506pub struct WGPUSurfaceColorManagement {
5507    pub chain: WGPUChainedStruct,
5508    pub colorSpace: WGPUPredefinedColorSpace,
5509    pub toneMappingMode: WGPUToneMappingMode,
5510}
5511#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5512const _: () = {
5513    ["Size of WGPUSurfaceColorManagement"]
5514        [::core::mem::size_of::<WGPUSurfaceColorManagement>() - 24usize];
5515    ["Alignment of WGPUSurfaceColorManagement"]
5516        [::core::mem::align_of::<WGPUSurfaceColorManagement>() - 8usize];
5517    ["Offset of field: WGPUSurfaceColorManagement::chain"]
5518        [::core::mem::offset_of!(WGPUSurfaceColorManagement, chain) - 0usize];
5519    ["Offset of field: WGPUSurfaceColorManagement::colorSpace"]
5520        [::core::mem::offset_of!(WGPUSurfaceColorManagement, colorSpace) - 16usize];
5521    ["Offset of field: WGPUSurfaceColorManagement::toneMappingMode"]
5522        [::core::mem::offset_of!(WGPUSurfaceColorManagement, toneMappingMode) - 20usize];
5523};
5524impl Default for WGPUSurfaceColorManagement {
5525    fn default() -> Self {
5526        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5527        unsafe {
5528            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5529            s.assume_init()
5530        }
5531    }
5532}
5533#[repr(C)]
5534pub struct WGPUSurfaceConfiguration {
5535    pub nextInChain: *mut WGPUChainedStruct,
5536    pub device: WGPUDevice,
5537    pub format: WGPUTextureFormat,
5538    pub usage: WGPUTextureUsage,
5539    pub width: u32,
5540    pub height: u32,
5541    pub viewFormatCount: usize,
5542    pub viewFormats: *const WGPUTextureFormat,
5543    pub alphaMode: WGPUCompositeAlphaMode,
5544    pub presentMode: WGPUPresentMode,
5545}
5546#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5547const _: () = {
5548    ["Size of WGPUSurfaceConfiguration"]
5549        [::core::mem::size_of::<WGPUSurfaceConfiguration>() - 64usize];
5550    ["Alignment of WGPUSurfaceConfiguration"]
5551        [::core::mem::align_of::<WGPUSurfaceConfiguration>() - 8usize];
5552    ["Offset of field: WGPUSurfaceConfiguration::nextInChain"]
5553        [::core::mem::offset_of!(WGPUSurfaceConfiguration, nextInChain) - 0usize];
5554    ["Offset of field: WGPUSurfaceConfiguration::device"]
5555        [::core::mem::offset_of!(WGPUSurfaceConfiguration, device) - 8usize];
5556    ["Offset of field: WGPUSurfaceConfiguration::format"]
5557        [::core::mem::offset_of!(WGPUSurfaceConfiguration, format) - 16usize];
5558    ["Offset of field: WGPUSurfaceConfiguration::usage"]
5559        [::core::mem::offset_of!(WGPUSurfaceConfiguration, usage) - 24usize];
5560    ["Offset of field: WGPUSurfaceConfiguration::width"]
5561        [::core::mem::offset_of!(WGPUSurfaceConfiguration, width) - 32usize];
5562    ["Offset of field: WGPUSurfaceConfiguration::height"]
5563        [::core::mem::offset_of!(WGPUSurfaceConfiguration, height) - 36usize];
5564    ["Offset of field: WGPUSurfaceConfiguration::viewFormatCount"]
5565        [::core::mem::offset_of!(WGPUSurfaceConfiguration, viewFormatCount) - 40usize];
5566    ["Offset of field: WGPUSurfaceConfiguration::viewFormats"]
5567        [::core::mem::offset_of!(WGPUSurfaceConfiguration, viewFormats) - 48usize];
5568    ["Offset of field: WGPUSurfaceConfiguration::alphaMode"]
5569        [::core::mem::offset_of!(WGPUSurfaceConfiguration, alphaMode) - 56usize];
5570    ["Offset of field: WGPUSurfaceConfiguration::presentMode"]
5571        [::core::mem::offset_of!(WGPUSurfaceConfiguration, presentMode) - 60usize];
5572};
5573impl Default for WGPUSurfaceConfiguration {
5574    fn default() -> Self {
5575        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5576        unsafe {
5577            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5578            s.assume_init()
5579        }
5580    }
5581}
5582#[repr(C)]
5583#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5584pub struct WGPUSurfaceDescriptorFromWindowsCoreWindow {
5585    pub chain: WGPUChainedStruct,
5586    pub coreWindow: *mut ::core::ffi::c_void,
5587}
5588#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5589const _: () = {
5590    ["Size of WGPUSurfaceDescriptorFromWindowsCoreWindow"]
5591        [::core::mem::size_of::<WGPUSurfaceDescriptorFromWindowsCoreWindow>() - 24usize];
5592    ["Alignment of WGPUSurfaceDescriptorFromWindowsCoreWindow"]
5593        [::core::mem::align_of::<WGPUSurfaceDescriptorFromWindowsCoreWindow>() - 8usize];
5594    ["Offset of field: WGPUSurfaceDescriptorFromWindowsCoreWindow::chain"]
5595        [::core::mem::offset_of!(WGPUSurfaceDescriptorFromWindowsCoreWindow, chain) - 0usize];
5596    ["Offset of field: WGPUSurfaceDescriptorFromWindowsCoreWindow::coreWindow"]
5597        [::core::mem::offset_of!(WGPUSurfaceDescriptorFromWindowsCoreWindow, coreWindow) - 16usize];
5598};
5599impl Default for WGPUSurfaceDescriptorFromWindowsCoreWindow {
5600    fn default() -> Self {
5601        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5602        unsafe {
5603            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5604            s.assume_init()
5605        }
5606    }
5607}
5608#[repr(C)]
5609#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5610pub struct WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel {
5611    pub chain: WGPUChainedStruct,
5612    pub swapChainPanel: *mut ::core::ffi::c_void,
5613}
5614#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5615const _: () = {
5616    ["Size of WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel"]
5617        [::core::mem::size_of::<WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel>() - 24usize];
5618    ["Alignment of WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel"]
5619        [::core::mem::align_of::<WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel>() - 8usize];
5620    ["Offset of field: WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel::chain"][::core::mem::offset_of!(
5621        WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel,
5622        chain
5623    ) - 0usize];
5624    ["Offset of field: WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel::swapChainPanel"][::core::mem::offset_of!(
5625        WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel,
5626        swapChainPanel
5627    )
5628        - 16usize];
5629};
5630impl Default for WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel {
5631    fn default() -> Self {
5632        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5633        unsafe {
5634            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5635            s.assume_init()
5636        }
5637    }
5638}
5639#[repr(C)]
5640#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5641pub struct WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel {
5642    pub chain: WGPUChainedStruct,
5643    pub swapChainPanel: *mut ::core::ffi::c_void,
5644}
5645#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5646const _: () = {
5647    ["Size of WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel"]
5648        [::core::mem::size_of::<WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel>() - 24usize];
5649    ["Alignment of WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel"]
5650        [::core::mem::align_of::<WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel>() - 8usize];
5651    ["Offset of field: WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel::chain"][::core::mem::offset_of!(
5652        WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel,
5653        chain
5654    ) - 0usize];
5655    ["Offset of field: WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel::swapChainPanel"][::core::mem::offset_of!(
5656        WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel,
5657        swapChainPanel
5658    )
5659        - 16usize];
5660};
5661impl Default for WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel {
5662    fn default() -> Self {
5663        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5664        unsafe {
5665            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5666            s.assume_init()
5667        }
5668    }
5669}
5670#[repr(C)]
5671#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5672pub struct WGPUSurfaceSourceAndroidNativeWindow {
5673    pub chain: WGPUChainedStruct,
5674    pub window: *mut ::core::ffi::c_void,
5675}
5676#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5677const _: () = {
5678    ["Size of WGPUSurfaceSourceAndroidNativeWindow"]
5679        [::core::mem::size_of::<WGPUSurfaceSourceAndroidNativeWindow>() - 24usize];
5680    ["Alignment of WGPUSurfaceSourceAndroidNativeWindow"]
5681        [::core::mem::align_of::<WGPUSurfaceSourceAndroidNativeWindow>() - 8usize];
5682    ["Offset of field: WGPUSurfaceSourceAndroidNativeWindow::chain"]
5683        [::core::mem::offset_of!(WGPUSurfaceSourceAndroidNativeWindow, chain) - 0usize];
5684    ["Offset of field: WGPUSurfaceSourceAndroidNativeWindow::window"]
5685        [::core::mem::offset_of!(WGPUSurfaceSourceAndroidNativeWindow, window) - 16usize];
5686};
5687impl Default for WGPUSurfaceSourceAndroidNativeWindow {
5688    fn default() -> Self {
5689        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5690        unsafe {
5691            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5692            s.assume_init()
5693        }
5694    }
5695}
5696#[repr(C)]
5697#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5698pub struct WGPUSurfaceSourceMetalLayer {
5699    pub chain: WGPUChainedStruct,
5700    pub layer: *mut ::core::ffi::c_void,
5701}
5702#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5703const _: () = {
5704    ["Size of WGPUSurfaceSourceMetalLayer"]
5705        [::core::mem::size_of::<WGPUSurfaceSourceMetalLayer>() - 24usize];
5706    ["Alignment of WGPUSurfaceSourceMetalLayer"]
5707        [::core::mem::align_of::<WGPUSurfaceSourceMetalLayer>() - 8usize];
5708    ["Offset of field: WGPUSurfaceSourceMetalLayer::chain"]
5709        [::core::mem::offset_of!(WGPUSurfaceSourceMetalLayer, chain) - 0usize];
5710    ["Offset of field: WGPUSurfaceSourceMetalLayer::layer"]
5711        [::core::mem::offset_of!(WGPUSurfaceSourceMetalLayer, layer) - 16usize];
5712};
5713impl Default for WGPUSurfaceSourceMetalLayer {
5714    fn default() -> Self {
5715        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5716        unsafe {
5717            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5718            s.assume_init()
5719        }
5720    }
5721}
5722#[repr(C)]
5723#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5724pub struct WGPUSurfaceSourceWaylandSurface {
5725    pub chain: WGPUChainedStruct,
5726    pub display: *mut ::core::ffi::c_void,
5727    pub surface: *mut ::core::ffi::c_void,
5728}
5729#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5730const _: () = {
5731    ["Size of WGPUSurfaceSourceWaylandSurface"]
5732        [::core::mem::size_of::<WGPUSurfaceSourceWaylandSurface>() - 32usize];
5733    ["Alignment of WGPUSurfaceSourceWaylandSurface"]
5734        [::core::mem::align_of::<WGPUSurfaceSourceWaylandSurface>() - 8usize];
5735    ["Offset of field: WGPUSurfaceSourceWaylandSurface::chain"]
5736        [::core::mem::offset_of!(WGPUSurfaceSourceWaylandSurface, chain) - 0usize];
5737    ["Offset of field: WGPUSurfaceSourceWaylandSurface::display"]
5738        [::core::mem::offset_of!(WGPUSurfaceSourceWaylandSurface, display) - 16usize];
5739    ["Offset of field: WGPUSurfaceSourceWaylandSurface::surface"]
5740        [::core::mem::offset_of!(WGPUSurfaceSourceWaylandSurface, surface) - 24usize];
5741};
5742impl Default for WGPUSurfaceSourceWaylandSurface {
5743    fn default() -> Self {
5744        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5745        unsafe {
5746            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5747            s.assume_init()
5748        }
5749    }
5750}
5751#[repr(C)]
5752#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5753pub struct WGPUSurfaceSourceWindowsHWND {
5754    pub chain: WGPUChainedStruct,
5755    pub hinstance: *mut ::core::ffi::c_void,
5756    pub hwnd: *mut ::core::ffi::c_void,
5757}
5758#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5759const _: () = {
5760    ["Size of WGPUSurfaceSourceWindowsHWND"]
5761        [::core::mem::size_of::<WGPUSurfaceSourceWindowsHWND>() - 32usize];
5762    ["Alignment of WGPUSurfaceSourceWindowsHWND"]
5763        [::core::mem::align_of::<WGPUSurfaceSourceWindowsHWND>() - 8usize];
5764    ["Offset of field: WGPUSurfaceSourceWindowsHWND::chain"]
5765        [::core::mem::offset_of!(WGPUSurfaceSourceWindowsHWND, chain) - 0usize];
5766    ["Offset of field: WGPUSurfaceSourceWindowsHWND::hinstance"]
5767        [::core::mem::offset_of!(WGPUSurfaceSourceWindowsHWND, hinstance) - 16usize];
5768    ["Offset of field: WGPUSurfaceSourceWindowsHWND::hwnd"]
5769        [::core::mem::offset_of!(WGPUSurfaceSourceWindowsHWND, hwnd) - 24usize];
5770};
5771impl Default for WGPUSurfaceSourceWindowsHWND {
5772    fn default() -> Self {
5773        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5774        unsafe {
5775            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5776            s.assume_init()
5777        }
5778    }
5779}
5780#[repr(C)]
5781#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5782pub struct WGPUSurfaceSourceXCBWindow {
5783    pub chain: WGPUChainedStruct,
5784    pub connection: *mut ::core::ffi::c_void,
5785    pub window: u32,
5786}
5787#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5788const _: () = {
5789    ["Size of WGPUSurfaceSourceXCBWindow"]
5790        [::core::mem::size_of::<WGPUSurfaceSourceXCBWindow>() - 32usize];
5791    ["Alignment of WGPUSurfaceSourceXCBWindow"]
5792        [::core::mem::align_of::<WGPUSurfaceSourceXCBWindow>() - 8usize];
5793    ["Offset of field: WGPUSurfaceSourceXCBWindow::chain"]
5794        [::core::mem::offset_of!(WGPUSurfaceSourceXCBWindow, chain) - 0usize];
5795    ["Offset of field: WGPUSurfaceSourceXCBWindow::connection"]
5796        [::core::mem::offset_of!(WGPUSurfaceSourceXCBWindow, connection) - 16usize];
5797    ["Offset of field: WGPUSurfaceSourceXCBWindow::window"]
5798        [::core::mem::offset_of!(WGPUSurfaceSourceXCBWindow, window) - 24usize];
5799};
5800impl Default for WGPUSurfaceSourceXCBWindow {
5801    fn default() -> Self {
5802        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5803        unsafe {
5804            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5805            s.assume_init()
5806        }
5807    }
5808}
5809#[repr(C)]
5810#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5811pub struct WGPUSurfaceSourceXlibWindow {
5812    pub chain: WGPUChainedStruct,
5813    pub display: *mut ::core::ffi::c_void,
5814    pub window: u64,
5815}
5816#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5817const _: () = {
5818    ["Size of WGPUSurfaceSourceXlibWindow"]
5819        [::core::mem::size_of::<WGPUSurfaceSourceXlibWindow>() - 32usize];
5820    ["Alignment of WGPUSurfaceSourceXlibWindow"]
5821        [::core::mem::align_of::<WGPUSurfaceSourceXlibWindow>() - 8usize];
5822    ["Offset of field: WGPUSurfaceSourceXlibWindow::chain"]
5823        [::core::mem::offset_of!(WGPUSurfaceSourceXlibWindow, chain) - 0usize];
5824    ["Offset of field: WGPUSurfaceSourceXlibWindow::display"]
5825        [::core::mem::offset_of!(WGPUSurfaceSourceXlibWindow, display) - 16usize];
5826    ["Offset of field: WGPUSurfaceSourceXlibWindow::window"]
5827        [::core::mem::offset_of!(WGPUSurfaceSourceXlibWindow, window) - 24usize];
5828};
5829impl Default for WGPUSurfaceSourceXlibWindow {
5830    fn default() -> Self {
5831        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5832        unsafe {
5833            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5834            s.assume_init()
5835        }
5836    }
5837}
5838#[repr(C)]
5839#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5840pub struct WGPUSurfaceTexture {
5841    pub nextInChain: *mut WGPUChainedStruct,
5842    pub texture: WGPUTexture,
5843    pub status: WGPUSurfaceGetCurrentTextureStatus,
5844}
5845#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5846const _: () = {
5847    ["Size of WGPUSurfaceTexture"][::core::mem::size_of::<WGPUSurfaceTexture>() - 24usize];
5848    ["Alignment of WGPUSurfaceTexture"][::core::mem::align_of::<WGPUSurfaceTexture>() - 8usize];
5849    ["Offset of field: WGPUSurfaceTexture::nextInChain"]
5850        [::core::mem::offset_of!(WGPUSurfaceTexture, nextInChain) - 0usize];
5851    ["Offset of field: WGPUSurfaceTexture::texture"]
5852        [::core::mem::offset_of!(WGPUSurfaceTexture, texture) - 8usize];
5853    ["Offset of field: WGPUSurfaceTexture::status"]
5854        [::core::mem::offset_of!(WGPUSurfaceTexture, status) - 16usize];
5855};
5856impl Default for WGPUSurfaceTexture {
5857    fn default() -> Self {
5858        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5859        unsafe {
5860            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5861            s.assume_init()
5862        }
5863    }
5864}
5865#[repr(C)]
5866#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5867pub struct WGPUTexelCopyBufferLayout {
5868    pub offset: u64,
5869    pub bytesPerRow: u32,
5870    pub rowsPerImage: u32,
5871}
5872#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5873const _: () = {
5874    ["Size of WGPUTexelCopyBufferLayout"]
5875        [::core::mem::size_of::<WGPUTexelCopyBufferLayout>() - 16usize];
5876    ["Alignment of WGPUTexelCopyBufferLayout"]
5877        [::core::mem::align_of::<WGPUTexelCopyBufferLayout>() - 8usize];
5878    ["Offset of field: WGPUTexelCopyBufferLayout::offset"]
5879        [::core::mem::offset_of!(WGPUTexelCopyBufferLayout, offset) - 0usize];
5880    ["Offset of field: WGPUTexelCopyBufferLayout::bytesPerRow"]
5881        [::core::mem::offset_of!(WGPUTexelCopyBufferLayout, bytesPerRow) - 8usize];
5882    ["Offset of field: WGPUTexelCopyBufferLayout::rowsPerImage"]
5883        [::core::mem::offset_of!(WGPUTexelCopyBufferLayout, rowsPerImage) - 12usize];
5884};
5885#[repr(C)]
5886#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5887pub struct WGPUTextureBindingLayout {
5888    pub nextInChain: *mut WGPUChainedStruct,
5889    pub sampleType: WGPUTextureSampleType,
5890    pub viewDimension: WGPUTextureViewDimension,
5891    pub multisampled: WGPUBool,
5892}
5893#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5894const _: () = {
5895    ["Size of WGPUTextureBindingLayout"]
5896        [::core::mem::size_of::<WGPUTextureBindingLayout>() - 24usize];
5897    ["Alignment of WGPUTextureBindingLayout"]
5898        [::core::mem::align_of::<WGPUTextureBindingLayout>() - 8usize];
5899    ["Offset of field: WGPUTextureBindingLayout::nextInChain"]
5900        [::core::mem::offset_of!(WGPUTextureBindingLayout, nextInChain) - 0usize];
5901    ["Offset of field: WGPUTextureBindingLayout::sampleType"]
5902        [::core::mem::offset_of!(WGPUTextureBindingLayout, sampleType) - 8usize];
5903    ["Offset of field: WGPUTextureBindingLayout::viewDimension"]
5904        [::core::mem::offset_of!(WGPUTextureBindingLayout, viewDimension) - 12usize];
5905    ["Offset of field: WGPUTextureBindingLayout::multisampled"]
5906        [::core::mem::offset_of!(WGPUTextureBindingLayout, multisampled) - 16usize];
5907};
5908impl Default for WGPUTextureBindingLayout {
5909    fn default() -> Self {
5910        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5911        unsafe {
5912            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5913            s.assume_init()
5914        }
5915    }
5916}
5917#[repr(C)]
5918#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5919pub struct WGPUTextureBindingViewDimensionDescriptor {
5920    pub chain: WGPUChainedStruct,
5921    pub textureBindingViewDimension: WGPUTextureViewDimension,
5922}
5923#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5924const _: () = {
5925    ["Size of WGPUTextureBindingViewDimensionDescriptor"]
5926        [::core::mem::size_of::<WGPUTextureBindingViewDimensionDescriptor>() - 24usize];
5927    ["Alignment of WGPUTextureBindingViewDimensionDescriptor"]
5928        [::core::mem::align_of::<WGPUTextureBindingViewDimensionDescriptor>() - 8usize];
5929    ["Offset of field: WGPUTextureBindingViewDimensionDescriptor::chain"]
5930        [::core::mem::offset_of!(WGPUTextureBindingViewDimensionDescriptor, chain) - 0usize];
5931    ["Offset of field: WGPUTextureBindingViewDimensionDescriptor::textureBindingViewDimension"][::core::mem::offset_of!(
5932        WGPUTextureBindingViewDimensionDescriptor,
5933        textureBindingViewDimension
5934    )
5935        - 16usize];
5936};
5937impl Default for WGPUTextureBindingViewDimensionDescriptor {
5938    fn default() -> Self {
5939        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5940        unsafe {
5941            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5942            s.assume_init()
5943        }
5944    }
5945}
5946#[repr(C)]
5947#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5948pub struct WGPUVertexAttribute {
5949    pub nextInChain: *mut WGPUChainedStruct,
5950    pub format: WGPUVertexFormat,
5951    pub offset: u64,
5952    pub shaderLocation: u32,
5953}
5954#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5955const _: () = {
5956    ["Size of WGPUVertexAttribute"][::core::mem::size_of::<WGPUVertexAttribute>() - 32usize];
5957    ["Alignment of WGPUVertexAttribute"][::core::mem::align_of::<WGPUVertexAttribute>() - 8usize];
5958    ["Offset of field: WGPUVertexAttribute::nextInChain"]
5959        [::core::mem::offset_of!(WGPUVertexAttribute, nextInChain) - 0usize];
5960    ["Offset of field: WGPUVertexAttribute::format"]
5961        [::core::mem::offset_of!(WGPUVertexAttribute, format) - 8usize];
5962    ["Offset of field: WGPUVertexAttribute::offset"]
5963        [::core::mem::offset_of!(WGPUVertexAttribute, offset) - 16usize];
5964    ["Offset of field: WGPUVertexAttribute::shaderLocation"]
5965        [::core::mem::offset_of!(WGPUVertexAttribute, shaderLocation) - 24usize];
5966};
5967impl Default for WGPUVertexAttribute {
5968    fn default() -> Self {
5969        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
5970        unsafe {
5971            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5972            s.assume_init()
5973        }
5974    }
5975}
5976#[repr(C)]
5977#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
5978pub struct WGPUYCbCrVkDescriptor {
5979    pub chain: WGPUChainedStruct,
5980    pub vkFormat: u32,
5981    pub vkYCbCrModel: u32,
5982    pub vkYCbCrRange: u32,
5983    pub vkComponentSwizzleRed: u32,
5984    pub vkComponentSwizzleGreen: u32,
5985    pub vkComponentSwizzleBlue: u32,
5986    pub vkComponentSwizzleAlpha: u32,
5987    pub vkXChromaOffset: u32,
5988    pub vkYChromaOffset: u32,
5989    pub vkChromaFilter: WGPUFilterMode,
5990    pub forceExplicitReconstruction: WGPUBool,
5991    pub externalFormat: u64,
5992}
5993#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5994const _: () = {
5995    ["Size of WGPUYCbCrVkDescriptor"][::core::mem::size_of::<WGPUYCbCrVkDescriptor>() - 72usize];
5996    ["Alignment of WGPUYCbCrVkDescriptor"]
5997        [::core::mem::align_of::<WGPUYCbCrVkDescriptor>() - 8usize];
5998    ["Offset of field: WGPUYCbCrVkDescriptor::chain"]
5999        [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, chain) - 0usize];
6000    ["Offset of field: WGPUYCbCrVkDescriptor::vkFormat"]
6001        [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkFormat) - 16usize];
6002    ["Offset of field: WGPUYCbCrVkDescriptor::vkYCbCrModel"]
6003        [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkYCbCrModel) - 20usize];
6004    ["Offset of field: WGPUYCbCrVkDescriptor::vkYCbCrRange"]
6005        [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkYCbCrRange) - 24usize];
6006    ["Offset of field: WGPUYCbCrVkDescriptor::vkComponentSwizzleRed"]
6007        [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkComponentSwizzleRed) - 28usize];
6008    ["Offset of field: WGPUYCbCrVkDescriptor::vkComponentSwizzleGreen"]
6009        [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkComponentSwizzleGreen) - 32usize];
6010    ["Offset of field: WGPUYCbCrVkDescriptor::vkComponentSwizzleBlue"]
6011        [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkComponentSwizzleBlue) - 36usize];
6012    ["Offset of field: WGPUYCbCrVkDescriptor::vkComponentSwizzleAlpha"]
6013        [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkComponentSwizzleAlpha) - 40usize];
6014    ["Offset of field: WGPUYCbCrVkDescriptor::vkXChromaOffset"]
6015        [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkXChromaOffset) - 44usize];
6016    ["Offset of field: WGPUYCbCrVkDescriptor::vkYChromaOffset"]
6017        [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkYChromaOffset) - 48usize];
6018    ["Offset of field: WGPUYCbCrVkDescriptor::vkChromaFilter"]
6019        [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkChromaFilter) - 52usize];
6020    ["Offset of field: WGPUYCbCrVkDescriptor::forceExplicitReconstruction"]
6021        [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, forceExplicitReconstruction) - 56usize];
6022    ["Offset of field: WGPUYCbCrVkDescriptor::externalFormat"]
6023        [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, externalFormat) - 64usize];
6024};
6025impl Default for WGPUYCbCrVkDescriptor {
6026    fn default() -> Self {
6027        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6028        unsafe {
6029            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6030            s.assume_init()
6031        }
6032    }
6033}
6034#[repr(C)]
6035#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6036pub struct WGPUAdapterPropertiesMemoryHeaps {
6037    pub chain: WGPUChainedStruct,
6038    pub heapCount: usize,
6039    pub heapInfo: *const WGPUMemoryHeapInfo,
6040}
6041#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6042const _: () = {
6043    ["Size of WGPUAdapterPropertiesMemoryHeaps"]
6044        [::core::mem::size_of::<WGPUAdapterPropertiesMemoryHeaps>() - 32usize];
6045    ["Alignment of WGPUAdapterPropertiesMemoryHeaps"]
6046        [::core::mem::align_of::<WGPUAdapterPropertiesMemoryHeaps>() - 8usize];
6047    ["Offset of field: WGPUAdapterPropertiesMemoryHeaps::chain"]
6048        [::core::mem::offset_of!(WGPUAdapterPropertiesMemoryHeaps, chain) - 0usize];
6049    ["Offset of field: WGPUAdapterPropertiesMemoryHeaps::heapCount"]
6050        [::core::mem::offset_of!(WGPUAdapterPropertiesMemoryHeaps, heapCount) - 16usize];
6051    ["Offset of field: WGPUAdapterPropertiesMemoryHeaps::heapInfo"]
6052        [::core::mem::offset_of!(WGPUAdapterPropertiesMemoryHeaps, heapInfo) - 24usize];
6053};
6054impl Default for WGPUAdapterPropertiesMemoryHeaps {
6055    fn default() -> Self {
6056        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6057        unsafe {
6058            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6059            s.assume_init()
6060        }
6061    }
6062}
6063#[repr(C)]
6064#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6065pub struct WGPUAdapterPropertiesSubgroupMatrixConfigs {
6066    pub chain: WGPUChainedStruct,
6067    pub configCount: usize,
6068    pub configs: *const WGPUSubgroupMatrixConfig,
6069}
6070#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6071const _: () = {
6072    ["Size of WGPUAdapterPropertiesSubgroupMatrixConfigs"]
6073        [::core::mem::size_of::<WGPUAdapterPropertiesSubgroupMatrixConfigs>() - 32usize];
6074    ["Alignment of WGPUAdapterPropertiesSubgroupMatrixConfigs"]
6075        [::core::mem::align_of::<WGPUAdapterPropertiesSubgroupMatrixConfigs>() - 8usize];
6076    ["Offset of field: WGPUAdapterPropertiesSubgroupMatrixConfigs::chain"]
6077        [::core::mem::offset_of!(WGPUAdapterPropertiesSubgroupMatrixConfigs, chain) - 0usize];
6078    ["Offset of field: WGPUAdapterPropertiesSubgroupMatrixConfigs::configCount"][::core::mem::offset_of!(
6079        WGPUAdapterPropertiesSubgroupMatrixConfigs,
6080        configCount
6081    ) - 16usize];
6082    ["Offset of field: WGPUAdapterPropertiesSubgroupMatrixConfigs::configs"]
6083        [::core::mem::offset_of!(WGPUAdapterPropertiesSubgroupMatrixConfigs, configs) - 24usize];
6084};
6085impl Default for WGPUAdapterPropertiesSubgroupMatrixConfigs {
6086    fn default() -> Self {
6087        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6088        unsafe {
6089            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6090            s.assume_init()
6091        }
6092    }
6093}
6094#[repr(C)]
6095#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6096pub struct WGPUAHardwareBufferProperties {
6097    pub yCbCrInfo: WGPUYCbCrVkDescriptor,
6098}
6099#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6100const _: () = {
6101    ["Size of WGPUAHardwareBufferProperties"]
6102        [::core::mem::size_of::<WGPUAHardwareBufferProperties>() - 72usize];
6103    ["Alignment of WGPUAHardwareBufferProperties"]
6104        [::core::mem::align_of::<WGPUAHardwareBufferProperties>() - 8usize];
6105    ["Offset of field: WGPUAHardwareBufferProperties::yCbCrInfo"]
6106        [::core::mem::offset_of!(WGPUAHardwareBufferProperties, yCbCrInfo) - 0usize];
6107};
6108impl Default for WGPUAHardwareBufferProperties {
6109    fn default() -> Self {
6110        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6111        unsafe {
6112            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6113            s.assume_init()
6114        }
6115    }
6116}
6117#[repr(C)]
6118#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6119pub struct WGPUBindGroupEntry {
6120    pub nextInChain: *mut WGPUChainedStruct,
6121    pub binding: u32,
6122    pub buffer: WGPUBuffer,
6123    pub offset: u64,
6124    pub size: u64,
6125    pub sampler: WGPUSampler,
6126    pub textureView: WGPUTextureView,
6127}
6128#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6129const _: () = {
6130    ["Size of WGPUBindGroupEntry"][::core::mem::size_of::<WGPUBindGroupEntry>() - 56usize];
6131    ["Alignment of WGPUBindGroupEntry"][::core::mem::align_of::<WGPUBindGroupEntry>() - 8usize];
6132    ["Offset of field: WGPUBindGroupEntry::nextInChain"]
6133        [::core::mem::offset_of!(WGPUBindGroupEntry, nextInChain) - 0usize];
6134    ["Offset of field: WGPUBindGroupEntry::binding"]
6135        [::core::mem::offset_of!(WGPUBindGroupEntry, binding) - 8usize];
6136    ["Offset of field: WGPUBindGroupEntry::buffer"]
6137        [::core::mem::offset_of!(WGPUBindGroupEntry, buffer) - 16usize];
6138    ["Offset of field: WGPUBindGroupEntry::offset"]
6139        [::core::mem::offset_of!(WGPUBindGroupEntry, offset) - 24usize];
6140    ["Offset of field: WGPUBindGroupEntry::size"]
6141        [::core::mem::offset_of!(WGPUBindGroupEntry, size) - 32usize];
6142    ["Offset of field: WGPUBindGroupEntry::sampler"]
6143        [::core::mem::offset_of!(WGPUBindGroupEntry, sampler) - 40usize];
6144    ["Offset of field: WGPUBindGroupEntry::textureView"]
6145        [::core::mem::offset_of!(WGPUBindGroupEntry, textureView) - 48usize];
6146};
6147impl Default for WGPUBindGroupEntry {
6148    fn default() -> Self {
6149        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6150        unsafe {
6151            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6152            s.assume_init()
6153        }
6154    }
6155}
6156#[repr(C)]
6157pub struct WGPUBindGroupLayoutEntry {
6158    pub nextInChain: *mut WGPUChainedStruct,
6159    pub binding: u32,
6160    pub visibility: WGPUShaderStage,
6161    pub buffer: WGPUBufferBindingLayout,
6162    pub sampler: WGPUSamplerBindingLayout,
6163    pub texture: WGPUTextureBindingLayout,
6164    pub storageTexture: WGPUStorageTextureBindingLayout,
6165}
6166#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6167const _: () = {
6168    ["Size of WGPUBindGroupLayoutEntry"]
6169        [::core::mem::size_of::<WGPUBindGroupLayoutEntry>() - 112usize];
6170    ["Alignment of WGPUBindGroupLayoutEntry"]
6171        [::core::mem::align_of::<WGPUBindGroupLayoutEntry>() - 8usize];
6172    ["Offset of field: WGPUBindGroupLayoutEntry::nextInChain"]
6173        [::core::mem::offset_of!(WGPUBindGroupLayoutEntry, nextInChain) - 0usize];
6174    ["Offset of field: WGPUBindGroupLayoutEntry::binding"]
6175        [::core::mem::offset_of!(WGPUBindGroupLayoutEntry, binding) - 8usize];
6176    ["Offset of field: WGPUBindGroupLayoutEntry::visibility"]
6177        [::core::mem::offset_of!(WGPUBindGroupLayoutEntry, visibility) - 16usize];
6178    ["Offset of field: WGPUBindGroupLayoutEntry::buffer"]
6179        [::core::mem::offset_of!(WGPUBindGroupLayoutEntry, buffer) - 24usize];
6180    ["Offset of field: WGPUBindGroupLayoutEntry::sampler"]
6181        [::core::mem::offset_of!(WGPUBindGroupLayoutEntry, sampler) - 48usize];
6182    ["Offset of field: WGPUBindGroupLayoutEntry::texture"]
6183        [::core::mem::offset_of!(WGPUBindGroupLayoutEntry, texture) - 64usize];
6184    ["Offset of field: WGPUBindGroupLayoutEntry::storageTexture"]
6185        [::core::mem::offset_of!(WGPUBindGroupLayoutEntry, storageTexture) - 88usize];
6186};
6187impl Default for WGPUBindGroupLayoutEntry {
6188    fn default() -> Self {
6189        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6190        unsafe {
6191            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6192            s.assume_init()
6193        }
6194    }
6195}
6196#[repr(C)]
6197#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6198pub struct WGPUBlendState {
6199    pub color: WGPUBlendComponent,
6200    pub alpha: WGPUBlendComponent,
6201}
6202#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6203const _: () = {
6204    ["Size of WGPUBlendState"][::core::mem::size_of::<WGPUBlendState>() - 24usize];
6205    ["Alignment of WGPUBlendState"][::core::mem::align_of::<WGPUBlendState>() - 4usize];
6206    ["Offset of field: WGPUBlendState::color"]
6207        [::core::mem::offset_of!(WGPUBlendState, color) - 0usize];
6208    ["Offset of field: WGPUBlendState::alpha"]
6209        [::core::mem::offset_of!(WGPUBlendState, alpha) - 12usize];
6210};
6211impl Default for WGPUBlendState {
6212    fn default() -> Self {
6213        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6214        unsafe {
6215            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6216            s.assume_init()
6217        }
6218    }
6219}
6220#[repr(C)]
6221pub struct WGPUBufferDescriptor {
6222    pub nextInChain: *mut WGPUChainedStruct,
6223    pub label: WGPUStringView,
6224    pub usage: WGPUBufferUsage,
6225    pub size: u64,
6226    pub mappedAtCreation: WGPUBool,
6227}
6228#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6229const _: () = {
6230    ["Size of WGPUBufferDescriptor"][::core::mem::size_of::<WGPUBufferDescriptor>() - 48usize];
6231    ["Alignment of WGPUBufferDescriptor"][::core::mem::align_of::<WGPUBufferDescriptor>() - 8usize];
6232    ["Offset of field: WGPUBufferDescriptor::nextInChain"]
6233        [::core::mem::offset_of!(WGPUBufferDescriptor, nextInChain) - 0usize];
6234    ["Offset of field: WGPUBufferDescriptor::label"]
6235        [::core::mem::offset_of!(WGPUBufferDescriptor, label) - 8usize];
6236    ["Offset of field: WGPUBufferDescriptor::usage"]
6237        [::core::mem::offset_of!(WGPUBufferDescriptor, usage) - 24usize];
6238    ["Offset of field: WGPUBufferDescriptor::size"]
6239        [::core::mem::offset_of!(WGPUBufferDescriptor, size) - 32usize];
6240    ["Offset of field: WGPUBufferDescriptor::mappedAtCreation"]
6241        [::core::mem::offset_of!(WGPUBufferDescriptor, mappedAtCreation) - 40usize];
6242};
6243impl Default for WGPUBufferDescriptor {
6244    fn default() -> Self {
6245        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6246        unsafe {
6247            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6248            s.assume_init()
6249        }
6250    }
6251}
6252#[repr(C)]
6253#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6254pub struct WGPUCommandEncoderDescriptor {
6255    pub nextInChain: *mut WGPUChainedStruct,
6256    pub label: WGPUStringView,
6257}
6258#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6259const _: () = {
6260    ["Size of WGPUCommandEncoderDescriptor"]
6261        [::core::mem::size_of::<WGPUCommandEncoderDescriptor>() - 24usize];
6262    ["Alignment of WGPUCommandEncoderDescriptor"]
6263        [::core::mem::align_of::<WGPUCommandEncoderDescriptor>() - 8usize];
6264    ["Offset of field: WGPUCommandEncoderDescriptor::nextInChain"]
6265        [::core::mem::offset_of!(WGPUCommandEncoderDescriptor, nextInChain) - 0usize];
6266    ["Offset of field: WGPUCommandEncoderDescriptor::label"]
6267        [::core::mem::offset_of!(WGPUCommandEncoderDescriptor, label) - 8usize];
6268};
6269impl Default for WGPUCommandEncoderDescriptor {
6270    fn default() -> Self {
6271        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6272        unsafe {
6273            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6274            s.assume_init()
6275        }
6276    }
6277}
6278#[repr(C)]
6279#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6280pub struct WGPUCompilationMessage {
6281    pub nextInChain: *mut WGPUChainedStruct,
6282    pub message: WGPUStringView,
6283    pub type_: WGPUCompilationMessageType,
6284    pub lineNum: u64,
6285    pub linePos: u64,
6286    pub offset: u64,
6287    pub length: u64,
6288}
6289#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6290const _: () = {
6291    ["Size of WGPUCompilationMessage"][::core::mem::size_of::<WGPUCompilationMessage>() - 64usize];
6292    ["Alignment of WGPUCompilationMessage"]
6293        [::core::mem::align_of::<WGPUCompilationMessage>() - 8usize];
6294    ["Offset of field: WGPUCompilationMessage::nextInChain"]
6295        [::core::mem::offset_of!(WGPUCompilationMessage, nextInChain) - 0usize];
6296    ["Offset of field: WGPUCompilationMessage::message"]
6297        [::core::mem::offset_of!(WGPUCompilationMessage, message) - 8usize];
6298    ["Offset of field: WGPUCompilationMessage::type_"]
6299        [::core::mem::offset_of!(WGPUCompilationMessage, type_) - 24usize];
6300    ["Offset of field: WGPUCompilationMessage::lineNum"]
6301        [::core::mem::offset_of!(WGPUCompilationMessage, lineNum) - 32usize];
6302    ["Offset of field: WGPUCompilationMessage::linePos"]
6303        [::core::mem::offset_of!(WGPUCompilationMessage, linePos) - 40usize];
6304    ["Offset of field: WGPUCompilationMessage::offset"]
6305        [::core::mem::offset_of!(WGPUCompilationMessage, offset) - 48usize];
6306    ["Offset of field: WGPUCompilationMessage::length"]
6307        [::core::mem::offset_of!(WGPUCompilationMessage, length) - 56usize];
6308};
6309impl Default for WGPUCompilationMessage {
6310    fn default() -> Self {
6311        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6312        unsafe {
6313            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6314            s.assume_init()
6315        }
6316    }
6317}
6318#[repr(C)]
6319#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6320pub struct WGPUComputePassDescriptor {
6321    pub nextInChain: *mut WGPUChainedStruct,
6322    pub label: WGPUStringView,
6323    pub timestampWrites: *const WGPUPassTimestampWrites,
6324}
6325#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6326const _: () = {
6327    ["Size of WGPUComputePassDescriptor"]
6328        [::core::mem::size_of::<WGPUComputePassDescriptor>() - 32usize];
6329    ["Alignment of WGPUComputePassDescriptor"]
6330        [::core::mem::align_of::<WGPUComputePassDescriptor>() - 8usize];
6331    ["Offset of field: WGPUComputePassDescriptor::nextInChain"]
6332        [::core::mem::offset_of!(WGPUComputePassDescriptor, nextInChain) - 0usize];
6333    ["Offset of field: WGPUComputePassDescriptor::label"]
6334        [::core::mem::offset_of!(WGPUComputePassDescriptor, label) - 8usize];
6335    ["Offset of field: WGPUComputePassDescriptor::timestampWrites"]
6336        [::core::mem::offset_of!(WGPUComputePassDescriptor, timestampWrites) - 24usize];
6337};
6338impl Default for WGPUComputePassDescriptor {
6339    fn default() -> Self {
6340        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6341        unsafe {
6342            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6343            s.assume_init()
6344        }
6345    }
6346}
6347#[repr(C)]
6348#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6349pub struct WGPUComputeState {
6350    pub nextInChain: *mut WGPUChainedStruct,
6351    pub module: WGPUShaderModule,
6352    pub entryPoint: WGPUStringView,
6353    pub constantCount: usize,
6354    pub constants: *const WGPUConstantEntry,
6355}
6356#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6357const _: () = {
6358    ["Size of WGPUComputeState"][::core::mem::size_of::<WGPUComputeState>() - 48usize];
6359    ["Alignment of WGPUComputeState"][::core::mem::align_of::<WGPUComputeState>() - 8usize];
6360    ["Offset of field: WGPUComputeState::nextInChain"]
6361        [::core::mem::offset_of!(WGPUComputeState, nextInChain) - 0usize];
6362    ["Offset of field: WGPUComputeState::module"]
6363        [::core::mem::offset_of!(WGPUComputeState, module) - 8usize];
6364    ["Offset of field: WGPUComputeState::entryPoint"]
6365        [::core::mem::offset_of!(WGPUComputeState, entryPoint) - 16usize];
6366    ["Offset of field: WGPUComputeState::constantCount"]
6367        [::core::mem::offset_of!(WGPUComputeState, constantCount) - 32usize];
6368    ["Offset of field: WGPUComputeState::constants"]
6369        [::core::mem::offset_of!(WGPUComputeState, constants) - 40usize];
6370};
6371impl Default for WGPUComputeState {
6372    fn default() -> Self {
6373        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6374        unsafe {
6375            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6376            s.assume_init()
6377        }
6378    }
6379}
6380#[repr(C)]
6381#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6382pub struct WGPUDawnDrmFormatCapabilities {
6383    pub chain: WGPUChainedStruct,
6384    pub propertiesCount: usize,
6385    pub properties: *const WGPUDawnDrmFormatProperties,
6386}
6387#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6388const _: () = {
6389    ["Size of WGPUDawnDrmFormatCapabilities"]
6390        [::core::mem::size_of::<WGPUDawnDrmFormatCapabilities>() - 32usize];
6391    ["Alignment of WGPUDawnDrmFormatCapabilities"]
6392        [::core::mem::align_of::<WGPUDawnDrmFormatCapabilities>() - 8usize];
6393    ["Offset of field: WGPUDawnDrmFormatCapabilities::chain"]
6394        [::core::mem::offset_of!(WGPUDawnDrmFormatCapabilities, chain) - 0usize];
6395    ["Offset of field: WGPUDawnDrmFormatCapabilities::propertiesCount"]
6396        [::core::mem::offset_of!(WGPUDawnDrmFormatCapabilities, propertiesCount) - 16usize];
6397    ["Offset of field: WGPUDawnDrmFormatCapabilities::properties"]
6398        [::core::mem::offset_of!(WGPUDawnDrmFormatCapabilities, properties) - 24usize];
6399};
6400impl Default for WGPUDawnDrmFormatCapabilities {
6401    fn default() -> Self {
6402        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6403        unsafe {
6404            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6405            s.assume_init()
6406        }
6407    }
6408}
6409#[repr(C)]
6410#[derive(Debug, Copy, Clone, PartialOrd, PartialEq)]
6411pub struct WGPUDepthStencilState {
6412    pub nextInChain: *mut WGPUChainedStruct,
6413    pub format: WGPUTextureFormat,
6414    pub depthWriteEnabled: WGPUOptionalBool,
6415    pub depthCompare: WGPUCompareFunction,
6416    pub stencilFront: WGPUStencilFaceState,
6417    pub stencilBack: WGPUStencilFaceState,
6418    pub stencilReadMask: u32,
6419    pub stencilWriteMask: u32,
6420    pub depthBias: i32,
6421    pub depthBiasSlopeScale: f32,
6422    pub depthBiasClamp: f32,
6423}
6424#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6425const _: () = {
6426    ["Size of WGPUDepthStencilState"][::core::mem::size_of::<WGPUDepthStencilState>() - 72usize];
6427    ["Alignment of WGPUDepthStencilState"]
6428        [::core::mem::align_of::<WGPUDepthStencilState>() - 8usize];
6429    ["Offset of field: WGPUDepthStencilState::nextInChain"]
6430        [::core::mem::offset_of!(WGPUDepthStencilState, nextInChain) - 0usize];
6431    ["Offset of field: WGPUDepthStencilState::format"]
6432        [::core::mem::offset_of!(WGPUDepthStencilState, format) - 8usize];
6433    ["Offset of field: WGPUDepthStencilState::depthWriteEnabled"]
6434        [::core::mem::offset_of!(WGPUDepthStencilState, depthWriteEnabled) - 12usize];
6435    ["Offset of field: WGPUDepthStencilState::depthCompare"]
6436        [::core::mem::offset_of!(WGPUDepthStencilState, depthCompare) - 16usize];
6437    ["Offset of field: WGPUDepthStencilState::stencilFront"]
6438        [::core::mem::offset_of!(WGPUDepthStencilState, stencilFront) - 20usize];
6439    ["Offset of field: WGPUDepthStencilState::stencilBack"]
6440        [::core::mem::offset_of!(WGPUDepthStencilState, stencilBack) - 36usize];
6441    ["Offset of field: WGPUDepthStencilState::stencilReadMask"]
6442        [::core::mem::offset_of!(WGPUDepthStencilState, stencilReadMask) - 52usize];
6443    ["Offset of field: WGPUDepthStencilState::stencilWriteMask"]
6444        [::core::mem::offset_of!(WGPUDepthStencilState, stencilWriteMask) - 56usize];
6445    ["Offset of field: WGPUDepthStencilState::depthBias"]
6446        [::core::mem::offset_of!(WGPUDepthStencilState, depthBias) - 60usize];
6447    ["Offset of field: WGPUDepthStencilState::depthBiasSlopeScale"]
6448        [::core::mem::offset_of!(WGPUDepthStencilState, depthBiasSlopeScale) - 64usize];
6449    ["Offset of field: WGPUDepthStencilState::depthBiasClamp"]
6450        [::core::mem::offset_of!(WGPUDepthStencilState, depthBiasClamp) - 68usize];
6451};
6452impl Default for WGPUDepthStencilState {
6453    fn default() -> Self {
6454        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6455        unsafe {
6456            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6457            s.assume_init()
6458        }
6459    }
6460}
6461#[repr(C)]
6462#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6463pub struct WGPUExternalTextureDescriptor {
6464    pub nextInChain: *mut WGPUChainedStruct,
6465    pub label: WGPUStringView,
6466    pub plane0: WGPUTextureView,
6467    pub plane1: WGPUTextureView,
6468    pub cropOrigin: WGPUOrigin2D,
6469    pub cropSize: WGPUExtent2D,
6470    pub apparentSize: WGPUExtent2D,
6471    pub doYuvToRgbConversionOnly: WGPUBool,
6472    pub yuvToRgbConversionMatrix: *const f32,
6473    pub srcTransferFunctionParameters: *const f32,
6474    pub dstTransferFunctionParameters: *const f32,
6475    pub gamutConversionMatrix: *const f32,
6476    pub mirrored: WGPUBool,
6477    pub rotation: WGPUExternalTextureRotation,
6478}
6479#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6480const _: () = {
6481    ["Size of WGPUExternalTextureDescriptor"]
6482        [::core::mem::size_of::<WGPUExternalTextureDescriptor>() - 112usize];
6483    ["Alignment of WGPUExternalTextureDescriptor"]
6484        [::core::mem::align_of::<WGPUExternalTextureDescriptor>() - 8usize];
6485    ["Offset of field: WGPUExternalTextureDescriptor::nextInChain"]
6486        [::core::mem::offset_of!(WGPUExternalTextureDescriptor, nextInChain) - 0usize];
6487    ["Offset of field: WGPUExternalTextureDescriptor::label"]
6488        [::core::mem::offset_of!(WGPUExternalTextureDescriptor, label) - 8usize];
6489    ["Offset of field: WGPUExternalTextureDescriptor::plane0"]
6490        [::core::mem::offset_of!(WGPUExternalTextureDescriptor, plane0) - 24usize];
6491    ["Offset of field: WGPUExternalTextureDescriptor::plane1"]
6492        [::core::mem::offset_of!(WGPUExternalTextureDescriptor, plane1) - 32usize];
6493    ["Offset of field: WGPUExternalTextureDescriptor::cropOrigin"]
6494        [::core::mem::offset_of!(WGPUExternalTextureDescriptor, cropOrigin) - 40usize];
6495    ["Offset of field: WGPUExternalTextureDescriptor::cropSize"]
6496        [::core::mem::offset_of!(WGPUExternalTextureDescriptor, cropSize) - 48usize];
6497    ["Offset of field: WGPUExternalTextureDescriptor::apparentSize"]
6498        [::core::mem::offset_of!(WGPUExternalTextureDescriptor, apparentSize) - 56usize];
6499    ["Offset of field: WGPUExternalTextureDescriptor::doYuvToRgbConversionOnly"][::core::mem::offset_of!(
6500        WGPUExternalTextureDescriptor,
6501        doYuvToRgbConversionOnly
6502    ) - 64usize];
6503    ["Offset of field: WGPUExternalTextureDescriptor::yuvToRgbConversionMatrix"][::core::mem::offset_of!(
6504        WGPUExternalTextureDescriptor,
6505        yuvToRgbConversionMatrix
6506    ) - 72usize];
6507    ["Offset of field: WGPUExternalTextureDescriptor::srcTransferFunctionParameters"][::core::mem::offset_of!(
6508        WGPUExternalTextureDescriptor,
6509        srcTransferFunctionParameters
6510    ) - 80usize];
6511    ["Offset of field: WGPUExternalTextureDescriptor::dstTransferFunctionParameters"][::core::mem::offset_of!(
6512        WGPUExternalTextureDescriptor,
6513        dstTransferFunctionParameters
6514    ) - 88usize];
6515    ["Offset of field: WGPUExternalTextureDescriptor::gamutConversionMatrix"]
6516        [::core::mem::offset_of!(WGPUExternalTextureDescriptor, gamutConversionMatrix) - 96usize];
6517    ["Offset of field: WGPUExternalTextureDescriptor::mirrored"]
6518        [::core::mem::offset_of!(WGPUExternalTextureDescriptor, mirrored) - 104usize];
6519    ["Offset of field: WGPUExternalTextureDescriptor::rotation"]
6520        [::core::mem::offset_of!(WGPUExternalTextureDescriptor, rotation) - 108usize];
6521};
6522impl Default for WGPUExternalTextureDescriptor {
6523    fn default() -> Self {
6524        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6525        unsafe {
6526            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6527            s.assume_init()
6528        }
6529    }
6530}
6531#[repr(C)]
6532#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6533pub struct WGPUFutureWaitInfo {
6534    pub future: WGPUFuture,
6535    pub completed: WGPUBool,
6536}
6537#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6538const _: () = {
6539    ["Size of WGPUFutureWaitInfo"][::core::mem::size_of::<WGPUFutureWaitInfo>() - 16usize];
6540    ["Alignment of WGPUFutureWaitInfo"][::core::mem::align_of::<WGPUFutureWaitInfo>() - 8usize];
6541    ["Offset of field: WGPUFutureWaitInfo::future"]
6542        [::core::mem::offset_of!(WGPUFutureWaitInfo, future) - 0usize];
6543    ["Offset of field: WGPUFutureWaitInfo::completed"]
6544        [::core::mem::offset_of!(WGPUFutureWaitInfo, completed) - 8usize];
6545};
6546#[repr(C)]
6547#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6548pub struct WGPUImageCopyExternalTexture {
6549    pub nextInChain: *mut WGPUChainedStruct,
6550    pub externalTexture: WGPUExternalTexture,
6551    pub origin: WGPUOrigin3D,
6552    pub naturalSize: WGPUExtent2D,
6553}
6554#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6555const _: () = {
6556    ["Size of WGPUImageCopyExternalTexture"]
6557        [::core::mem::size_of::<WGPUImageCopyExternalTexture>() - 40usize];
6558    ["Alignment of WGPUImageCopyExternalTexture"]
6559        [::core::mem::align_of::<WGPUImageCopyExternalTexture>() - 8usize];
6560    ["Offset of field: WGPUImageCopyExternalTexture::nextInChain"]
6561        [::core::mem::offset_of!(WGPUImageCopyExternalTexture, nextInChain) - 0usize];
6562    ["Offset of field: WGPUImageCopyExternalTexture::externalTexture"]
6563        [::core::mem::offset_of!(WGPUImageCopyExternalTexture, externalTexture) - 8usize];
6564    ["Offset of field: WGPUImageCopyExternalTexture::origin"]
6565        [::core::mem::offset_of!(WGPUImageCopyExternalTexture, origin) - 16usize];
6566    ["Offset of field: WGPUImageCopyExternalTexture::naturalSize"]
6567        [::core::mem::offset_of!(WGPUImageCopyExternalTexture, naturalSize) - 28usize];
6568};
6569impl Default for WGPUImageCopyExternalTexture {
6570    fn default() -> Self {
6571        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6572        unsafe {
6573            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6574            s.assume_init()
6575        }
6576    }
6577}
6578#[repr(C)]
6579#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6580pub struct WGPUInstanceDescriptor {
6581    pub nextInChain: *mut WGPUChainedStruct,
6582    pub capabilities: WGPUInstanceCapabilities,
6583}
6584#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6585const _: () = {
6586    ["Size of WGPUInstanceDescriptor"][::core::mem::size_of::<WGPUInstanceDescriptor>() - 32usize];
6587    ["Alignment of WGPUInstanceDescriptor"]
6588        [::core::mem::align_of::<WGPUInstanceDescriptor>() - 8usize];
6589    ["Offset of field: WGPUInstanceDescriptor::nextInChain"]
6590        [::core::mem::offset_of!(WGPUInstanceDescriptor, nextInChain) - 0usize];
6591    ["Offset of field: WGPUInstanceDescriptor::capabilities"]
6592        [::core::mem::offset_of!(WGPUInstanceDescriptor, capabilities) - 8usize];
6593};
6594impl Default for WGPUInstanceDescriptor {
6595    fn default() -> Self {
6596        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6597        unsafe {
6598            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6599            s.assume_init()
6600        }
6601    }
6602}
6603#[repr(C)]
6604#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6605pub struct WGPULimits {
6606    pub nextInChain: *mut WGPUChainedStruct,
6607    pub maxTextureDimension1D: u32,
6608    pub maxTextureDimension2D: u32,
6609    pub maxTextureDimension3D: u32,
6610    pub maxTextureArrayLayers: u32,
6611    pub maxBindGroups: u32,
6612    pub maxBindGroupsPlusVertexBuffers: u32,
6613    pub maxBindingsPerBindGroup: u32,
6614    pub maxDynamicUniformBuffersPerPipelineLayout: u32,
6615    pub maxDynamicStorageBuffersPerPipelineLayout: u32,
6616    pub maxSampledTexturesPerShaderStage: u32,
6617    pub maxSamplersPerShaderStage: u32,
6618    pub maxStorageBuffersPerShaderStage: u32,
6619    pub maxStorageTexturesPerShaderStage: u32,
6620    pub maxUniformBuffersPerShaderStage: u32,
6621    pub maxUniformBufferBindingSize: u64,
6622    pub maxStorageBufferBindingSize: u64,
6623    pub minUniformBufferOffsetAlignment: u32,
6624    pub minStorageBufferOffsetAlignment: u32,
6625    pub maxVertexBuffers: u32,
6626    pub maxBufferSize: u64,
6627    pub maxVertexAttributes: u32,
6628    pub maxVertexBufferArrayStride: u32,
6629    pub maxInterStageShaderVariables: u32,
6630    pub maxColorAttachments: u32,
6631    pub maxColorAttachmentBytesPerSample: u32,
6632    pub maxComputeWorkgroupStorageSize: u32,
6633    pub maxComputeInvocationsPerWorkgroup: u32,
6634    pub maxComputeWorkgroupSizeX: u32,
6635    pub maxComputeWorkgroupSizeY: u32,
6636    pub maxComputeWorkgroupSizeZ: u32,
6637    pub maxComputeWorkgroupsPerDimension: u32,
6638    pub maxImmediateSize: u32,
6639    pub maxStorageBuffersInVertexStage: u32,
6640    pub maxStorageTexturesInVertexStage: u32,
6641    pub maxStorageBuffersInFragmentStage: u32,
6642    pub maxStorageTexturesInFragmentStage: u32,
6643}
6644#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6645const _: () = {
6646    ["Size of WGPULimits"][::core::mem::size_of::<WGPULimits>() - 168usize];
6647    ["Alignment of WGPULimits"][::core::mem::align_of::<WGPULimits>() - 8usize];
6648    ["Offset of field: WGPULimits::nextInChain"]
6649        [::core::mem::offset_of!(WGPULimits, nextInChain) - 0usize];
6650    ["Offset of field: WGPULimits::maxTextureDimension1D"]
6651        [::core::mem::offset_of!(WGPULimits, maxTextureDimension1D) - 8usize];
6652    ["Offset of field: WGPULimits::maxTextureDimension2D"]
6653        [::core::mem::offset_of!(WGPULimits, maxTextureDimension2D) - 12usize];
6654    ["Offset of field: WGPULimits::maxTextureDimension3D"]
6655        [::core::mem::offset_of!(WGPULimits, maxTextureDimension3D) - 16usize];
6656    ["Offset of field: WGPULimits::maxTextureArrayLayers"]
6657        [::core::mem::offset_of!(WGPULimits, maxTextureArrayLayers) - 20usize];
6658    ["Offset of field: WGPULimits::maxBindGroups"]
6659        [::core::mem::offset_of!(WGPULimits, maxBindGroups) - 24usize];
6660    ["Offset of field: WGPULimits::maxBindGroupsPlusVertexBuffers"]
6661        [::core::mem::offset_of!(WGPULimits, maxBindGroupsPlusVertexBuffers) - 28usize];
6662    ["Offset of field: WGPULimits::maxBindingsPerBindGroup"]
6663        [::core::mem::offset_of!(WGPULimits, maxBindingsPerBindGroup) - 32usize];
6664    ["Offset of field: WGPULimits::maxDynamicUniformBuffersPerPipelineLayout"]
6665        [::core::mem::offset_of!(WGPULimits, maxDynamicUniformBuffersPerPipelineLayout) - 36usize];
6666    ["Offset of field: WGPULimits::maxDynamicStorageBuffersPerPipelineLayout"]
6667        [::core::mem::offset_of!(WGPULimits, maxDynamicStorageBuffersPerPipelineLayout) - 40usize];
6668    ["Offset of field: WGPULimits::maxSampledTexturesPerShaderStage"]
6669        [::core::mem::offset_of!(WGPULimits, maxSampledTexturesPerShaderStage) - 44usize];
6670    ["Offset of field: WGPULimits::maxSamplersPerShaderStage"]
6671        [::core::mem::offset_of!(WGPULimits, maxSamplersPerShaderStage) - 48usize];
6672    ["Offset of field: WGPULimits::maxStorageBuffersPerShaderStage"]
6673        [::core::mem::offset_of!(WGPULimits, maxStorageBuffersPerShaderStage) - 52usize];
6674    ["Offset of field: WGPULimits::maxStorageTexturesPerShaderStage"]
6675        [::core::mem::offset_of!(WGPULimits, maxStorageTexturesPerShaderStage) - 56usize];
6676    ["Offset of field: WGPULimits::maxUniformBuffersPerShaderStage"]
6677        [::core::mem::offset_of!(WGPULimits, maxUniformBuffersPerShaderStage) - 60usize];
6678    ["Offset of field: WGPULimits::maxUniformBufferBindingSize"]
6679        [::core::mem::offset_of!(WGPULimits, maxUniformBufferBindingSize) - 64usize];
6680    ["Offset of field: WGPULimits::maxStorageBufferBindingSize"]
6681        [::core::mem::offset_of!(WGPULimits, maxStorageBufferBindingSize) - 72usize];
6682    ["Offset of field: WGPULimits::minUniformBufferOffsetAlignment"]
6683        [::core::mem::offset_of!(WGPULimits, minUniformBufferOffsetAlignment) - 80usize];
6684    ["Offset of field: WGPULimits::minStorageBufferOffsetAlignment"]
6685        [::core::mem::offset_of!(WGPULimits, minStorageBufferOffsetAlignment) - 84usize];
6686    ["Offset of field: WGPULimits::maxVertexBuffers"]
6687        [::core::mem::offset_of!(WGPULimits, maxVertexBuffers) - 88usize];
6688    ["Offset of field: WGPULimits::maxBufferSize"]
6689        [::core::mem::offset_of!(WGPULimits, maxBufferSize) - 96usize];
6690    ["Offset of field: WGPULimits::maxVertexAttributes"]
6691        [::core::mem::offset_of!(WGPULimits, maxVertexAttributes) - 104usize];
6692    ["Offset of field: WGPULimits::maxVertexBufferArrayStride"]
6693        [::core::mem::offset_of!(WGPULimits, maxVertexBufferArrayStride) - 108usize];
6694    ["Offset of field: WGPULimits::maxInterStageShaderVariables"]
6695        [::core::mem::offset_of!(WGPULimits, maxInterStageShaderVariables) - 112usize];
6696    ["Offset of field: WGPULimits::maxColorAttachments"]
6697        [::core::mem::offset_of!(WGPULimits, maxColorAttachments) - 116usize];
6698    ["Offset of field: WGPULimits::maxColorAttachmentBytesPerSample"]
6699        [::core::mem::offset_of!(WGPULimits, maxColorAttachmentBytesPerSample) - 120usize];
6700    ["Offset of field: WGPULimits::maxComputeWorkgroupStorageSize"]
6701        [::core::mem::offset_of!(WGPULimits, maxComputeWorkgroupStorageSize) - 124usize];
6702    ["Offset of field: WGPULimits::maxComputeInvocationsPerWorkgroup"]
6703        [::core::mem::offset_of!(WGPULimits, maxComputeInvocationsPerWorkgroup) - 128usize];
6704    ["Offset of field: WGPULimits::maxComputeWorkgroupSizeX"]
6705        [::core::mem::offset_of!(WGPULimits, maxComputeWorkgroupSizeX) - 132usize];
6706    ["Offset of field: WGPULimits::maxComputeWorkgroupSizeY"]
6707        [::core::mem::offset_of!(WGPULimits, maxComputeWorkgroupSizeY) - 136usize];
6708    ["Offset of field: WGPULimits::maxComputeWorkgroupSizeZ"]
6709        [::core::mem::offset_of!(WGPULimits, maxComputeWorkgroupSizeZ) - 140usize];
6710    ["Offset of field: WGPULimits::maxComputeWorkgroupsPerDimension"]
6711        [::core::mem::offset_of!(WGPULimits, maxComputeWorkgroupsPerDimension) - 144usize];
6712    ["Offset of field: WGPULimits::maxImmediateSize"]
6713        [::core::mem::offset_of!(WGPULimits, maxImmediateSize) - 148usize];
6714    ["Offset of field: WGPULimits::maxStorageBuffersInVertexStage"]
6715        [::core::mem::offset_of!(WGPULimits, maxStorageBuffersInVertexStage) - 152usize];
6716    ["Offset of field: WGPULimits::maxStorageTexturesInVertexStage"]
6717        [::core::mem::offset_of!(WGPULimits, maxStorageTexturesInVertexStage) - 156usize];
6718    ["Offset of field: WGPULimits::maxStorageBuffersInFragmentStage"]
6719        [::core::mem::offset_of!(WGPULimits, maxStorageBuffersInFragmentStage) - 160usize];
6720    ["Offset of field: WGPULimits::maxStorageTexturesInFragmentStage"]
6721        [::core::mem::offset_of!(WGPULimits, maxStorageTexturesInFragmentStage) - 164usize];
6722};
6723impl Default for WGPULimits {
6724    fn default() -> Self {
6725        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6726        unsafe {
6727            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6728            s.assume_init()
6729        }
6730    }
6731}
6732#[repr(C)]
6733#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6734pub struct WGPUPipelineLayoutPixelLocalStorage {
6735    pub chain: WGPUChainedStruct,
6736    pub totalPixelLocalStorageSize: u64,
6737    pub storageAttachmentCount: usize,
6738    pub storageAttachments: *const WGPUPipelineLayoutStorageAttachment,
6739}
6740#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6741const _: () = {
6742    ["Size of WGPUPipelineLayoutPixelLocalStorage"]
6743        [::core::mem::size_of::<WGPUPipelineLayoutPixelLocalStorage>() - 40usize];
6744    ["Alignment of WGPUPipelineLayoutPixelLocalStorage"]
6745        [::core::mem::align_of::<WGPUPipelineLayoutPixelLocalStorage>() - 8usize];
6746    ["Offset of field: WGPUPipelineLayoutPixelLocalStorage::chain"]
6747        [::core::mem::offset_of!(WGPUPipelineLayoutPixelLocalStorage, chain) - 0usize];
6748    ["Offset of field: WGPUPipelineLayoutPixelLocalStorage::totalPixelLocalStorageSize"][::core::mem::offset_of!(
6749        WGPUPipelineLayoutPixelLocalStorage,
6750        totalPixelLocalStorageSize
6751    )
6752        - 16usize];
6753    ["Offset of field: WGPUPipelineLayoutPixelLocalStorage::storageAttachmentCount"][::core::mem::offset_of!(
6754        WGPUPipelineLayoutPixelLocalStorage,
6755        storageAttachmentCount
6756    ) - 24usize];
6757    ["Offset of field: WGPUPipelineLayoutPixelLocalStorage::storageAttachments"][::core::mem::offset_of!(
6758        WGPUPipelineLayoutPixelLocalStorage,
6759        storageAttachments
6760    ) - 32usize];
6761};
6762impl Default for WGPUPipelineLayoutPixelLocalStorage {
6763    fn default() -> Self {
6764        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6765        unsafe {
6766            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6767            s.assume_init()
6768        }
6769    }
6770}
6771#[repr(C)]
6772#[derive(Debug, Copy, Clone, PartialOrd, PartialEq)]
6773pub struct WGPURenderPassColorAttachment {
6774    pub nextInChain: *mut WGPUChainedStruct,
6775    pub view: WGPUTextureView,
6776    pub depthSlice: u32,
6777    pub resolveTarget: WGPUTextureView,
6778    pub loadOp: WGPULoadOp,
6779    pub storeOp: WGPUStoreOp,
6780    pub clearValue: WGPUColor,
6781}
6782#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6783const _: () = {
6784    ["Size of WGPURenderPassColorAttachment"]
6785        [::core::mem::size_of::<WGPURenderPassColorAttachment>() - 72usize];
6786    ["Alignment of WGPURenderPassColorAttachment"]
6787        [::core::mem::align_of::<WGPURenderPassColorAttachment>() - 8usize];
6788    ["Offset of field: WGPURenderPassColorAttachment::nextInChain"]
6789        [::core::mem::offset_of!(WGPURenderPassColorAttachment, nextInChain) - 0usize];
6790    ["Offset of field: WGPURenderPassColorAttachment::view"]
6791        [::core::mem::offset_of!(WGPURenderPassColorAttachment, view) - 8usize];
6792    ["Offset of field: WGPURenderPassColorAttachment::depthSlice"]
6793        [::core::mem::offset_of!(WGPURenderPassColorAttachment, depthSlice) - 16usize];
6794    ["Offset of field: WGPURenderPassColorAttachment::resolveTarget"]
6795        [::core::mem::offset_of!(WGPURenderPassColorAttachment, resolveTarget) - 24usize];
6796    ["Offset of field: WGPURenderPassColorAttachment::loadOp"]
6797        [::core::mem::offset_of!(WGPURenderPassColorAttachment, loadOp) - 32usize];
6798    ["Offset of field: WGPURenderPassColorAttachment::storeOp"]
6799        [::core::mem::offset_of!(WGPURenderPassColorAttachment, storeOp) - 36usize];
6800    ["Offset of field: WGPURenderPassColorAttachment::clearValue"]
6801        [::core::mem::offset_of!(WGPURenderPassColorAttachment, clearValue) - 40usize];
6802};
6803impl Default for WGPURenderPassColorAttachment {
6804    fn default() -> Self {
6805        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6806        unsafe {
6807            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6808            s.assume_init()
6809        }
6810    }
6811}
6812#[repr(C)]
6813#[derive(Debug, Copy, Clone, PartialOrd, PartialEq)]
6814pub struct WGPURenderPassStorageAttachment {
6815    pub nextInChain: *mut WGPUChainedStruct,
6816    pub offset: u64,
6817    pub storage: WGPUTextureView,
6818    pub loadOp: WGPULoadOp,
6819    pub storeOp: WGPUStoreOp,
6820    pub clearValue: WGPUColor,
6821}
6822#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6823const _: () = {
6824    ["Size of WGPURenderPassStorageAttachment"]
6825        [::core::mem::size_of::<WGPURenderPassStorageAttachment>() - 64usize];
6826    ["Alignment of WGPURenderPassStorageAttachment"]
6827        [::core::mem::align_of::<WGPURenderPassStorageAttachment>() - 8usize];
6828    ["Offset of field: WGPURenderPassStorageAttachment::nextInChain"]
6829        [::core::mem::offset_of!(WGPURenderPassStorageAttachment, nextInChain) - 0usize];
6830    ["Offset of field: WGPURenderPassStorageAttachment::offset"]
6831        [::core::mem::offset_of!(WGPURenderPassStorageAttachment, offset) - 8usize];
6832    ["Offset of field: WGPURenderPassStorageAttachment::storage"]
6833        [::core::mem::offset_of!(WGPURenderPassStorageAttachment, storage) - 16usize];
6834    ["Offset of field: WGPURenderPassStorageAttachment::loadOp"]
6835        [::core::mem::offset_of!(WGPURenderPassStorageAttachment, loadOp) - 24usize];
6836    ["Offset of field: WGPURenderPassStorageAttachment::storeOp"]
6837        [::core::mem::offset_of!(WGPURenderPassStorageAttachment, storeOp) - 28usize];
6838    ["Offset of field: WGPURenderPassStorageAttachment::clearValue"]
6839        [::core::mem::offset_of!(WGPURenderPassStorageAttachment, clearValue) - 32usize];
6840};
6841impl Default for WGPURenderPassStorageAttachment {
6842    fn default() -> Self {
6843        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6844        unsafe {
6845            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6846            s.assume_init()
6847        }
6848    }
6849}
6850#[repr(C)]
6851#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6852pub struct WGPURequestAdapterOptions {
6853    pub nextInChain: *mut WGPUChainedStruct,
6854    pub featureLevel: WGPUFeatureLevel,
6855    pub powerPreference: WGPUPowerPreference,
6856    pub forceFallbackAdapter: WGPUBool,
6857    pub backendType: WGPUBackendType,
6858    pub compatibleSurface: WGPUSurface,
6859}
6860#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6861const _: () = {
6862    ["Size of WGPURequestAdapterOptions"]
6863        [::core::mem::size_of::<WGPURequestAdapterOptions>() - 32usize];
6864    ["Alignment of WGPURequestAdapterOptions"]
6865        [::core::mem::align_of::<WGPURequestAdapterOptions>() - 8usize];
6866    ["Offset of field: WGPURequestAdapterOptions::nextInChain"]
6867        [::core::mem::offset_of!(WGPURequestAdapterOptions, nextInChain) - 0usize];
6868    ["Offset of field: WGPURequestAdapterOptions::featureLevel"]
6869        [::core::mem::offset_of!(WGPURequestAdapterOptions, featureLevel) - 8usize];
6870    ["Offset of field: WGPURequestAdapterOptions::powerPreference"]
6871        [::core::mem::offset_of!(WGPURequestAdapterOptions, powerPreference) - 12usize];
6872    ["Offset of field: WGPURequestAdapterOptions::forceFallbackAdapter"]
6873        [::core::mem::offset_of!(WGPURequestAdapterOptions, forceFallbackAdapter) - 16usize];
6874    ["Offset of field: WGPURequestAdapterOptions::backendType"]
6875        [::core::mem::offset_of!(WGPURequestAdapterOptions, backendType) - 20usize];
6876    ["Offset of field: WGPURequestAdapterOptions::compatibleSurface"]
6877        [::core::mem::offset_of!(WGPURequestAdapterOptions, compatibleSurface) - 24usize];
6878};
6879impl Default for WGPURequestAdapterOptions {
6880    fn default() -> Self {
6881        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6882        unsafe {
6883            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6884            s.assume_init()
6885        }
6886    }
6887}
6888#[repr(C)]
6889#[derive(Debug, Copy, Clone, PartialOrd, PartialEq)]
6890pub struct WGPUSamplerDescriptor {
6891    pub nextInChain: *mut WGPUChainedStruct,
6892    pub label: WGPUStringView,
6893    pub addressModeU: WGPUAddressMode,
6894    pub addressModeV: WGPUAddressMode,
6895    pub addressModeW: WGPUAddressMode,
6896    pub magFilter: WGPUFilterMode,
6897    pub minFilter: WGPUFilterMode,
6898    pub mipmapFilter: WGPUMipmapFilterMode,
6899    pub lodMinClamp: f32,
6900    pub lodMaxClamp: f32,
6901    pub compare: WGPUCompareFunction,
6902    pub maxAnisotropy: u16,
6903}
6904#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6905const _: () = {
6906    ["Size of WGPUSamplerDescriptor"][::core::mem::size_of::<WGPUSamplerDescriptor>() - 64usize];
6907    ["Alignment of WGPUSamplerDescriptor"]
6908        [::core::mem::align_of::<WGPUSamplerDescriptor>() - 8usize];
6909    ["Offset of field: WGPUSamplerDescriptor::nextInChain"]
6910        [::core::mem::offset_of!(WGPUSamplerDescriptor, nextInChain) - 0usize];
6911    ["Offset of field: WGPUSamplerDescriptor::label"]
6912        [::core::mem::offset_of!(WGPUSamplerDescriptor, label) - 8usize];
6913    ["Offset of field: WGPUSamplerDescriptor::addressModeU"]
6914        [::core::mem::offset_of!(WGPUSamplerDescriptor, addressModeU) - 24usize];
6915    ["Offset of field: WGPUSamplerDescriptor::addressModeV"]
6916        [::core::mem::offset_of!(WGPUSamplerDescriptor, addressModeV) - 28usize];
6917    ["Offset of field: WGPUSamplerDescriptor::addressModeW"]
6918        [::core::mem::offset_of!(WGPUSamplerDescriptor, addressModeW) - 32usize];
6919    ["Offset of field: WGPUSamplerDescriptor::magFilter"]
6920        [::core::mem::offset_of!(WGPUSamplerDescriptor, magFilter) - 36usize];
6921    ["Offset of field: WGPUSamplerDescriptor::minFilter"]
6922        [::core::mem::offset_of!(WGPUSamplerDescriptor, minFilter) - 40usize];
6923    ["Offset of field: WGPUSamplerDescriptor::mipmapFilter"]
6924        [::core::mem::offset_of!(WGPUSamplerDescriptor, mipmapFilter) - 44usize];
6925    ["Offset of field: WGPUSamplerDescriptor::lodMinClamp"]
6926        [::core::mem::offset_of!(WGPUSamplerDescriptor, lodMinClamp) - 48usize];
6927    ["Offset of field: WGPUSamplerDescriptor::lodMaxClamp"]
6928        [::core::mem::offset_of!(WGPUSamplerDescriptor, lodMaxClamp) - 52usize];
6929    ["Offset of field: WGPUSamplerDescriptor::compare"]
6930        [::core::mem::offset_of!(WGPUSamplerDescriptor, compare) - 56usize];
6931    ["Offset of field: WGPUSamplerDescriptor::maxAnisotropy"]
6932        [::core::mem::offset_of!(WGPUSamplerDescriptor, maxAnisotropy) - 60usize];
6933};
6934impl Default for WGPUSamplerDescriptor {
6935    fn default() -> Self {
6936        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6937        unsafe {
6938            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6939            s.assume_init()
6940        }
6941    }
6942}
6943#[repr(C)]
6944#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6945pub struct WGPUShaderModuleDescriptor {
6946    pub nextInChain: *mut WGPUChainedStruct,
6947    pub label: WGPUStringView,
6948}
6949#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6950const _: () = {
6951    ["Size of WGPUShaderModuleDescriptor"]
6952        [::core::mem::size_of::<WGPUShaderModuleDescriptor>() - 24usize];
6953    ["Alignment of WGPUShaderModuleDescriptor"]
6954        [::core::mem::align_of::<WGPUShaderModuleDescriptor>() - 8usize];
6955    ["Offset of field: WGPUShaderModuleDescriptor::nextInChain"]
6956        [::core::mem::offset_of!(WGPUShaderModuleDescriptor, nextInChain) - 0usize];
6957    ["Offset of field: WGPUShaderModuleDescriptor::label"]
6958        [::core::mem::offset_of!(WGPUShaderModuleDescriptor, label) - 8usize];
6959};
6960impl Default for WGPUShaderModuleDescriptor {
6961    fn default() -> Self {
6962        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6963        unsafe {
6964            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6965            s.assume_init()
6966        }
6967    }
6968}
6969#[repr(C)]
6970#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6971pub struct WGPUSharedFenceDescriptor {
6972    pub nextInChain: *mut WGPUChainedStruct,
6973    pub label: WGPUStringView,
6974}
6975#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6976const _: () = {
6977    ["Size of WGPUSharedFenceDescriptor"]
6978        [::core::mem::size_of::<WGPUSharedFenceDescriptor>() - 24usize];
6979    ["Alignment of WGPUSharedFenceDescriptor"]
6980        [::core::mem::align_of::<WGPUSharedFenceDescriptor>() - 8usize];
6981    ["Offset of field: WGPUSharedFenceDescriptor::nextInChain"]
6982        [::core::mem::offset_of!(WGPUSharedFenceDescriptor, nextInChain) - 0usize];
6983    ["Offset of field: WGPUSharedFenceDescriptor::label"]
6984        [::core::mem::offset_of!(WGPUSharedFenceDescriptor, label) - 8usize];
6985};
6986impl Default for WGPUSharedFenceDescriptor {
6987    fn default() -> Self {
6988        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
6989        unsafe {
6990            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6991            s.assume_init()
6992        }
6993    }
6994}
6995#[repr(C)]
6996#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
6997pub struct WGPUSharedFenceExportInfo {
6998    pub nextInChain: *mut WGPUChainedStruct,
6999    pub type_: WGPUSharedFenceType,
7000}
7001#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7002const _: () = {
7003    ["Size of WGPUSharedFenceExportInfo"]
7004        [::core::mem::size_of::<WGPUSharedFenceExportInfo>() - 16usize];
7005    ["Alignment of WGPUSharedFenceExportInfo"]
7006        [::core::mem::align_of::<WGPUSharedFenceExportInfo>() - 8usize];
7007    ["Offset of field: WGPUSharedFenceExportInfo::nextInChain"]
7008        [::core::mem::offset_of!(WGPUSharedFenceExportInfo, nextInChain) - 0usize];
7009    ["Offset of field: WGPUSharedFenceExportInfo::type_"]
7010        [::core::mem::offset_of!(WGPUSharedFenceExportInfo, type_) - 8usize];
7011};
7012impl Default for WGPUSharedFenceExportInfo {
7013    fn default() -> Self {
7014        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7015        unsafe {
7016            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7017            s.assume_init()
7018        }
7019    }
7020}
7021#[repr(C)]
7022#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7023pub struct WGPUSharedTextureMemoryAHardwareBufferProperties {
7024    pub chain: WGPUChainedStruct,
7025    pub yCbCrInfo: WGPUYCbCrVkDescriptor,
7026}
7027#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7028const _: () = {
7029    ["Size of WGPUSharedTextureMemoryAHardwareBufferProperties"]
7030        [::core::mem::size_of::<WGPUSharedTextureMemoryAHardwareBufferProperties>() - 88usize];
7031    ["Alignment of WGPUSharedTextureMemoryAHardwareBufferProperties"]
7032        [::core::mem::align_of::<WGPUSharedTextureMemoryAHardwareBufferProperties>() - 8usize];
7033    ["Offset of field: WGPUSharedTextureMemoryAHardwareBufferProperties::chain"]
7034        [::core::mem::offset_of!(WGPUSharedTextureMemoryAHardwareBufferProperties, chain) - 0usize];
7035    ["Offset of field: WGPUSharedTextureMemoryAHardwareBufferProperties::yCbCrInfo"][::core::mem::offset_of!(
7036        WGPUSharedTextureMemoryAHardwareBufferProperties,
7037        yCbCrInfo
7038    ) - 16usize];
7039};
7040impl Default for WGPUSharedTextureMemoryAHardwareBufferProperties {
7041    fn default() -> Self {
7042        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7043        unsafe {
7044            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7045            s.assume_init()
7046        }
7047    }
7048}
7049#[repr(C)]
7050#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7051pub struct WGPUSharedTextureMemoryBeginAccessDescriptor {
7052    pub nextInChain: *mut WGPUChainedStruct,
7053    pub concurrentRead: WGPUBool,
7054    pub initialized: WGPUBool,
7055    pub fenceCount: usize,
7056    pub fences: *const WGPUSharedFence,
7057    pub signaledValues: *const u64,
7058}
7059#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7060const _: () = {
7061    ["Size of WGPUSharedTextureMemoryBeginAccessDescriptor"]
7062        [::core::mem::size_of::<WGPUSharedTextureMemoryBeginAccessDescriptor>() - 40usize];
7063    ["Alignment of WGPUSharedTextureMemoryBeginAccessDescriptor"]
7064        [::core::mem::align_of::<WGPUSharedTextureMemoryBeginAccessDescriptor>() - 8usize];
7065    ["Offset of field: WGPUSharedTextureMemoryBeginAccessDescriptor::nextInChain"][::core::mem::offset_of!(
7066        WGPUSharedTextureMemoryBeginAccessDescriptor,
7067        nextInChain
7068    ) - 0usize];
7069    ["Offset of field: WGPUSharedTextureMemoryBeginAccessDescriptor::concurrentRead"][::core::mem::offset_of!(
7070        WGPUSharedTextureMemoryBeginAccessDescriptor,
7071        concurrentRead
7072    ) - 8usize];
7073    ["Offset of field: WGPUSharedTextureMemoryBeginAccessDescriptor::initialized"][::core::mem::offset_of!(
7074        WGPUSharedTextureMemoryBeginAccessDescriptor,
7075        initialized
7076    ) - 12usize];
7077    ["Offset of field: WGPUSharedTextureMemoryBeginAccessDescriptor::fenceCount"][::core::mem::offset_of!(
7078        WGPUSharedTextureMemoryBeginAccessDescriptor,
7079        fenceCount
7080    ) - 16usize];
7081    ["Offset of field: WGPUSharedTextureMemoryBeginAccessDescriptor::fences"]
7082        [::core::mem::offset_of!(WGPUSharedTextureMemoryBeginAccessDescriptor, fences) - 24usize];
7083    ["Offset of field: WGPUSharedTextureMemoryBeginAccessDescriptor::signaledValues"][::core::mem::offset_of!(
7084        WGPUSharedTextureMemoryBeginAccessDescriptor,
7085        signaledValues
7086    ) - 32usize];
7087};
7088impl Default for WGPUSharedTextureMemoryBeginAccessDescriptor {
7089    fn default() -> Self {
7090        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7091        unsafe {
7092            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7093            s.assume_init()
7094        }
7095    }
7096}
7097#[repr(C)]
7098#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7099pub struct WGPUSharedTextureMemoryDmaBufDescriptor {
7100    pub chain: WGPUChainedStruct,
7101    pub size: WGPUExtent3D,
7102    pub drmFormat: u32,
7103    pub drmModifier: u64,
7104    pub planeCount: usize,
7105    pub planes: *const WGPUSharedTextureMemoryDmaBufPlane,
7106}
7107#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7108const _: () = {
7109    ["Size of WGPUSharedTextureMemoryDmaBufDescriptor"]
7110        [::core::mem::size_of::<WGPUSharedTextureMemoryDmaBufDescriptor>() - 56usize];
7111    ["Alignment of WGPUSharedTextureMemoryDmaBufDescriptor"]
7112        [::core::mem::align_of::<WGPUSharedTextureMemoryDmaBufDescriptor>() - 8usize];
7113    ["Offset of field: WGPUSharedTextureMemoryDmaBufDescriptor::chain"]
7114        [::core::mem::offset_of!(WGPUSharedTextureMemoryDmaBufDescriptor, chain) - 0usize];
7115    ["Offset of field: WGPUSharedTextureMemoryDmaBufDescriptor::size"]
7116        [::core::mem::offset_of!(WGPUSharedTextureMemoryDmaBufDescriptor, size) - 16usize];
7117    ["Offset of field: WGPUSharedTextureMemoryDmaBufDescriptor::drmFormat"]
7118        [::core::mem::offset_of!(WGPUSharedTextureMemoryDmaBufDescriptor, drmFormat) - 28usize];
7119    ["Offset of field: WGPUSharedTextureMemoryDmaBufDescriptor::drmModifier"]
7120        [::core::mem::offset_of!(WGPUSharedTextureMemoryDmaBufDescriptor, drmModifier) - 32usize];
7121    ["Offset of field: WGPUSharedTextureMemoryDmaBufDescriptor::planeCount"]
7122        [::core::mem::offset_of!(WGPUSharedTextureMemoryDmaBufDescriptor, planeCount) - 40usize];
7123    ["Offset of field: WGPUSharedTextureMemoryDmaBufDescriptor::planes"]
7124        [::core::mem::offset_of!(WGPUSharedTextureMemoryDmaBufDescriptor, planes) - 48usize];
7125};
7126impl Default for WGPUSharedTextureMemoryDmaBufDescriptor {
7127    fn default() -> Self {
7128        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7129        unsafe {
7130            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7131            s.assume_init()
7132        }
7133    }
7134}
7135#[repr(C)]
7136#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7137pub struct WGPUSharedTextureMemoryEndAccessState {
7138    pub nextInChain: *mut WGPUChainedStruct,
7139    pub initialized: WGPUBool,
7140    pub fenceCount: usize,
7141    pub fences: *const WGPUSharedFence,
7142    pub signaledValues: *const u64,
7143}
7144#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7145const _: () = {
7146    ["Size of WGPUSharedTextureMemoryEndAccessState"]
7147        [::core::mem::size_of::<WGPUSharedTextureMemoryEndAccessState>() - 40usize];
7148    ["Alignment of WGPUSharedTextureMemoryEndAccessState"]
7149        [::core::mem::align_of::<WGPUSharedTextureMemoryEndAccessState>() - 8usize];
7150    ["Offset of field: WGPUSharedTextureMemoryEndAccessState::nextInChain"]
7151        [::core::mem::offset_of!(WGPUSharedTextureMemoryEndAccessState, nextInChain) - 0usize];
7152    ["Offset of field: WGPUSharedTextureMemoryEndAccessState::initialized"]
7153        [::core::mem::offset_of!(WGPUSharedTextureMemoryEndAccessState, initialized) - 8usize];
7154    ["Offset of field: WGPUSharedTextureMemoryEndAccessState::fenceCount"]
7155        [::core::mem::offset_of!(WGPUSharedTextureMemoryEndAccessState, fenceCount) - 16usize];
7156    ["Offset of field: WGPUSharedTextureMemoryEndAccessState::fences"]
7157        [::core::mem::offset_of!(WGPUSharedTextureMemoryEndAccessState, fences) - 24usize];
7158    ["Offset of field: WGPUSharedTextureMemoryEndAccessState::signaledValues"]
7159        [::core::mem::offset_of!(WGPUSharedTextureMemoryEndAccessState, signaledValues) - 32usize];
7160};
7161impl Default for WGPUSharedTextureMemoryEndAccessState {
7162    fn default() -> Self {
7163        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7164        unsafe {
7165            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7166            s.assume_init()
7167        }
7168    }
7169}
7170#[repr(C)]
7171#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7172pub struct WGPUSurfaceDescriptor {
7173    pub nextInChain: *mut WGPUChainedStruct,
7174    pub label: WGPUStringView,
7175}
7176#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7177const _: () = {
7178    ["Size of WGPUSurfaceDescriptor"][::core::mem::size_of::<WGPUSurfaceDescriptor>() - 24usize];
7179    ["Alignment of WGPUSurfaceDescriptor"]
7180        [::core::mem::align_of::<WGPUSurfaceDescriptor>() - 8usize];
7181    ["Offset of field: WGPUSurfaceDescriptor::nextInChain"]
7182        [::core::mem::offset_of!(WGPUSurfaceDescriptor, nextInChain) - 0usize];
7183    ["Offset of field: WGPUSurfaceDescriptor::label"]
7184        [::core::mem::offset_of!(WGPUSurfaceDescriptor, label) - 8usize];
7185};
7186impl Default for WGPUSurfaceDescriptor {
7187    fn default() -> Self {
7188        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7189        unsafe {
7190            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7191            s.assume_init()
7192        }
7193    }
7194}
7195#[repr(C)]
7196#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7197pub struct WGPUTexelCopyBufferInfo {
7198    pub layout: WGPUTexelCopyBufferLayout,
7199    pub buffer: WGPUBuffer,
7200}
7201#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7202const _: () = {
7203    ["Size of WGPUTexelCopyBufferInfo"]
7204        [::core::mem::size_of::<WGPUTexelCopyBufferInfo>() - 24usize];
7205    ["Alignment of WGPUTexelCopyBufferInfo"]
7206        [::core::mem::align_of::<WGPUTexelCopyBufferInfo>() - 8usize];
7207    ["Offset of field: WGPUTexelCopyBufferInfo::layout"]
7208        [::core::mem::offset_of!(WGPUTexelCopyBufferInfo, layout) - 0usize];
7209    ["Offset of field: WGPUTexelCopyBufferInfo::buffer"]
7210        [::core::mem::offset_of!(WGPUTexelCopyBufferInfo, buffer) - 16usize];
7211};
7212impl Default for WGPUTexelCopyBufferInfo {
7213    fn default() -> Self {
7214        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7215        unsafe {
7216            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7217            s.assume_init()
7218        }
7219    }
7220}
7221#[repr(C)]
7222#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7223pub struct WGPUTexelCopyTextureInfo {
7224    pub texture: WGPUTexture,
7225    pub mipLevel: u32,
7226    pub origin: WGPUOrigin3D,
7227    pub aspect: WGPUTextureAspect,
7228}
7229#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7230const _: () = {
7231    ["Size of WGPUTexelCopyTextureInfo"]
7232        [::core::mem::size_of::<WGPUTexelCopyTextureInfo>() - 32usize];
7233    ["Alignment of WGPUTexelCopyTextureInfo"]
7234        [::core::mem::align_of::<WGPUTexelCopyTextureInfo>() - 8usize];
7235    ["Offset of field: WGPUTexelCopyTextureInfo::texture"]
7236        [::core::mem::offset_of!(WGPUTexelCopyTextureInfo, texture) - 0usize];
7237    ["Offset of field: WGPUTexelCopyTextureInfo::mipLevel"]
7238        [::core::mem::offset_of!(WGPUTexelCopyTextureInfo, mipLevel) - 8usize];
7239    ["Offset of field: WGPUTexelCopyTextureInfo::origin"]
7240        [::core::mem::offset_of!(WGPUTexelCopyTextureInfo, origin) - 12usize];
7241    ["Offset of field: WGPUTexelCopyTextureInfo::aspect"]
7242        [::core::mem::offset_of!(WGPUTexelCopyTextureInfo, aspect) - 24usize];
7243};
7244impl Default for WGPUTexelCopyTextureInfo {
7245    fn default() -> Self {
7246        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7247        unsafe {
7248            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7249            s.assume_init()
7250        }
7251    }
7252}
7253#[repr(C)]
7254pub struct WGPUTextureDescriptor {
7255    pub nextInChain: *mut WGPUChainedStruct,
7256    pub label: WGPUStringView,
7257    pub usage: WGPUTextureUsage,
7258    pub dimension: WGPUTextureDimension,
7259    pub size: WGPUExtent3D,
7260    pub format: WGPUTextureFormat,
7261    pub mipLevelCount: u32,
7262    pub sampleCount: u32,
7263    pub viewFormatCount: usize,
7264    pub viewFormats: *const WGPUTextureFormat,
7265}
7266#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7267const _: () = {
7268    ["Size of WGPUTextureDescriptor"][::core::mem::size_of::<WGPUTextureDescriptor>() - 80usize];
7269    ["Alignment of WGPUTextureDescriptor"]
7270        [::core::mem::align_of::<WGPUTextureDescriptor>() - 8usize];
7271    ["Offset of field: WGPUTextureDescriptor::nextInChain"]
7272        [::core::mem::offset_of!(WGPUTextureDescriptor, nextInChain) - 0usize];
7273    ["Offset of field: WGPUTextureDescriptor::label"]
7274        [::core::mem::offset_of!(WGPUTextureDescriptor, label) - 8usize];
7275    ["Offset of field: WGPUTextureDescriptor::usage"]
7276        [::core::mem::offset_of!(WGPUTextureDescriptor, usage) - 24usize];
7277    ["Offset of field: WGPUTextureDescriptor::dimension"]
7278        [::core::mem::offset_of!(WGPUTextureDescriptor, dimension) - 32usize];
7279    ["Offset of field: WGPUTextureDescriptor::size"]
7280        [::core::mem::offset_of!(WGPUTextureDescriptor, size) - 36usize];
7281    ["Offset of field: WGPUTextureDescriptor::format"]
7282        [::core::mem::offset_of!(WGPUTextureDescriptor, format) - 48usize];
7283    ["Offset of field: WGPUTextureDescriptor::mipLevelCount"]
7284        [::core::mem::offset_of!(WGPUTextureDescriptor, mipLevelCount) - 52usize];
7285    ["Offset of field: WGPUTextureDescriptor::sampleCount"]
7286        [::core::mem::offset_of!(WGPUTextureDescriptor, sampleCount) - 56usize];
7287    ["Offset of field: WGPUTextureDescriptor::viewFormatCount"]
7288        [::core::mem::offset_of!(WGPUTextureDescriptor, viewFormatCount) - 64usize];
7289    ["Offset of field: WGPUTextureDescriptor::viewFormats"]
7290        [::core::mem::offset_of!(WGPUTextureDescriptor, viewFormats) - 72usize];
7291};
7292impl Default for WGPUTextureDescriptor {
7293    fn default() -> Self {
7294        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7295        unsafe {
7296            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7297            s.assume_init()
7298        }
7299    }
7300}
7301#[repr(C)]
7302pub struct WGPUTextureViewDescriptor {
7303    pub nextInChain: *mut WGPUChainedStruct,
7304    pub label: WGPUStringView,
7305    pub format: WGPUTextureFormat,
7306    pub dimension: WGPUTextureViewDimension,
7307    pub baseMipLevel: u32,
7308    pub mipLevelCount: u32,
7309    pub baseArrayLayer: u32,
7310    pub arrayLayerCount: u32,
7311    pub aspect: WGPUTextureAspect,
7312    pub usage: WGPUTextureUsage,
7313}
7314#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7315const _: () = {
7316    ["Size of WGPUTextureViewDescriptor"]
7317        [::core::mem::size_of::<WGPUTextureViewDescriptor>() - 64usize];
7318    ["Alignment of WGPUTextureViewDescriptor"]
7319        [::core::mem::align_of::<WGPUTextureViewDescriptor>() - 8usize];
7320    ["Offset of field: WGPUTextureViewDescriptor::nextInChain"]
7321        [::core::mem::offset_of!(WGPUTextureViewDescriptor, nextInChain) - 0usize];
7322    ["Offset of field: WGPUTextureViewDescriptor::label"]
7323        [::core::mem::offset_of!(WGPUTextureViewDescriptor, label) - 8usize];
7324    ["Offset of field: WGPUTextureViewDescriptor::format"]
7325        [::core::mem::offset_of!(WGPUTextureViewDescriptor, format) - 24usize];
7326    ["Offset of field: WGPUTextureViewDescriptor::dimension"]
7327        [::core::mem::offset_of!(WGPUTextureViewDescriptor, dimension) - 28usize];
7328    ["Offset of field: WGPUTextureViewDescriptor::baseMipLevel"]
7329        [::core::mem::offset_of!(WGPUTextureViewDescriptor, baseMipLevel) - 32usize];
7330    ["Offset of field: WGPUTextureViewDescriptor::mipLevelCount"]
7331        [::core::mem::offset_of!(WGPUTextureViewDescriptor, mipLevelCount) - 36usize];
7332    ["Offset of field: WGPUTextureViewDescriptor::baseArrayLayer"]
7333        [::core::mem::offset_of!(WGPUTextureViewDescriptor, baseArrayLayer) - 40usize];
7334    ["Offset of field: WGPUTextureViewDescriptor::arrayLayerCount"]
7335        [::core::mem::offset_of!(WGPUTextureViewDescriptor, arrayLayerCount) - 44usize];
7336    ["Offset of field: WGPUTextureViewDescriptor::aspect"]
7337        [::core::mem::offset_of!(WGPUTextureViewDescriptor, aspect) - 48usize];
7338    ["Offset of field: WGPUTextureViewDescriptor::usage"]
7339        [::core::mem::offset_of!(WGPUTextureViewDescriptor, usage) - 56usize];
7340};
7341impl Default for WGPUTextureViewDescriptor {
7342    fn default() -> Self {
7343        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7344        unsafe {
7345            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7346            s.assume_init()
7347        }
7348    }
7349}
7350#[repr(C)]
7351#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7352pub struct WGPUVertexBufferLayout {
7353    pub nextInChain: *mut WGPUChainedStruct,
7354    pub stepMode: WGPUVertexStepMode,
7355    pub arrayStride: u64,
7356    pub attributeCount: usize,
7357    pub attributes: *const WGPUVertexAttribute,
7358}
7359#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7360const _: () = {
7361    ["Size of WGPUVertexBufferLayout"][::core::mem::size_of::<WGPUVertexBufferLayout>() - 40usize];
7362    ["Alignment of WGPUVertexBufferLayout"]
7363        [::core::mem::align_of::<WGPUVertexBufferLayout>() - 8usize];
7364    ["Offset of field: WGPUVertexBufferLayout::nextInChain"]
7365        [::core::mem::offset_of!(WGPUVertexBufferLayout, nextInChain) - 0usize];
7366    ["Offset of field: WGPUVertexBufferLayout::stepMode"]
7367        [::core::mem::offset_of!(WGPUVertexBufferLayout, stepMode) - 8usize];
7368    ["Offset of field: WGPUVertexBufferLayout::arrayStride"]
7369        [::core::mem::offset_of!(WGPUVertexBufferLayout, arrayStride) - 16usize];
7370    ["Offset of field: WGPUVertexBufferLayout::attributeCount"]
7371        [::core::mem::offset_of!(WGPUVertexBufferLayout, attributeCount) - 24usize];
7372    ["Offset of field: WGPUVertexBufferLayout::attributes"]
7373        [::core::mem::offset_of!(WGPUVertexBufferLayout, attributes) - 32usize];
7374};
7375impl Default for WGPUVertexBufferLayout {
7376    fn default() -> Self {
7377        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7378        unsafe {
7379            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7380            s.assume_init()
7381        }
7382    }
7383}
7384#[repr(C)]
7385#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7386pub struct WGPUAdapterInfo {
7387    pub nextInChain: *mut WGPUChainedStruct,
7388    pub vendor: WGPUStringView,
7389    pub architecture: WGPUStringView,
7390    pub device: WGPUStringView,
7391    pub description: WGPUStringView,
7392    pub backendType: WGPUBackendType,
7393    pub adapterType: WGPUAdapterType,
7394    pub vendorID: u32,
7395    pub deviceID: u32,
7396    pub subgroupMinSize: u32,
7397    pub subgroupMaxSize: u32,
7398}
7399#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7400const _: () = {
7401    ["Size of WGPUAdapterInfo"][::core::mem::size_of::<WGPUAdapterInfo>() - 96usize];
7402    ["Alignment of WGPUAdapterInfo"][::core::mem::align_of::<WGPUAdapterInfo>() - 8usize];
7403    ["Offset of field: WGPUAdapterInfo::nextInChain"]
7404        [::core::mem::offset_of!(WGPUAdapterInfo, nextInChain) - 0usize];
7405    ["Offset of field: WGPUAdapterInfo::vendor"]
7406        [::core::mem::offset_of!(WGPUAdapterInfo, vendor) - 8usize];
7407    ["Offset of field: WGPUAdapterInfo::architecture"]
7408        [::core::mem::offset_of!(WGPUAdapterInfo, architecture) - 24usize];
7409    ["Offset of field: WGPUAdapterInfo::device"]
7410        [::core::mem::offset_of!(WGPUAdapterInfo, device) - 40usize];
7411    ["Offset of field: WGPUAdapterInfo::description"]
7412        [::core::mem::offset_of!(WGPUAdapterInfo, description) - 56usize];
7413    ["Offset of field: WGPUAdapterInfo::backendType"]
7414        [::core::mem::offset_of!(WGPUAdapterInfo, backendType) - 72usize];
7415    ["Offset of field: WGPUAdapterInfo::adapterType"]
7416        [::core::mem::offset_of!(WGPUAdapterInfo, adapterType) - 76usize];
7417    ["Offset of field: WGPUAdapterInfo::vendorID"]
7418        [::core::mem::offset_of!(WGPUAdapterInfo, vendorID) - 80usize];
7419    ["Offset of field: WGPUAdapterInfo::deviceID"]
7420        [::core::mem::offset_of!(WGPUAdapterInfo, deviceID) - 84usize];
7421    ["Offset of field: WGPUAdapterInfo::subgroupMinSize"]
7422        [::core::mem::offset_of!(WGPUAdapterInfo, subgroupMinSize) - 88usize];
7423    ["Offset of field: WGPUAdapterInfo::subgroupMaxSize"]
7424        [::core::mem::offset_of!(WGPUAdapterInfo, subgroupMaxSize) - 92usize];
7425};
7426impl Default for WGPUAdapterInfo {
7427    fn default() -> Self {
7428        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7429        unsafe {
7430            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7431            s.assume_init()
7432        }
7433    }
7434}
7435#[repr(C)]
7436#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7437pub struct WGPUBindGroupDescriptor {
7438    pub nextInChain: *mut WGPUChainedStruct,
7439    pub label: WGPUStringView,
7440    pub layout: WGPUBindGroupLayout,
7441    pub entryCount: usize,
7442    pub entries: *const WGPUBindGroupEntry,
7443}
7444#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7445const _: () = {
7446    ["Size of WGPUBindGroupDescriptor"]
7447        [::core::mem::size_of::<WGPUBindGroupDescriptor>() - 48usize];
7448    ["Alignment of WGPUBindGroupDescriptor"]
7449        [::core::mem::align_of::<WGPUBindGroupDescriptor>() - 8usize];
7450    ["Offset of field: WGPUBindGroupDescriptor::nextInChain"]
7451        [::core::mem::offset_of!(WGPUBindGroupDescriptor, nextInChain) - 0usize];
7452    ["Offset of field: WGPUBindGroupDescriptor::label"]
7453        [::core::mem::offset_of!(WGPUBindGroupDescriptor, label) - 8usize];
7454    ["Offset of field: WGPUBindGroupDescriptor::layout"]
7455        [::core::mem::offset_of!(WGPUBindGroupDescriptor, layout) - 24usize];
7456    ["Offset of field: WGPUBindGroupDescriptor::entryCount"]
7457        [::core::mem::offset_of!(WGPUBindGroupDescriptor, entryCount) - 32usize];
7458    ["Offset of field: WGPUBindGroupDescriptor::entries"]
7459        [::core::mem::offset_of!(WGPUBindGroupDescriptor, entries) - 40usize];
7460};
7461impl Default for WGPUBindGroupDescriptor {
7462    fn default() -> Self {
7463        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7464        unsafe {
7465            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7466            s.assume_init()
7467        }
7468    }
7469}
7470#[repr(C)]
7471#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7472pub struct WGPUBindGroupLayoutDescriptor {
7473    pub nextInChain: *mut WGPUChainedStruct,
7474    pub label: WGPUStringView,
7475    pub entryCount: usize,
7476    pub entries: *const WGPUBindGroupLayoutEntry,
7477}
7478#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7479const _: () = {
7480    ["Size of WGPUBindGroupLayoutDescriptor"]
7481        [::core::mem::size_of::<WGPUBindGroupLayoutDescriptor>() - 40usize];
7482    ["Alignment of WGPUBindGroupLayoutDescriptor"]
7483        [::core::mem::align_of::<WGPUBindGroupLayoutDescriptor>() - 8usize];
7484    ["Offset of field: WGPUBindGroupLayoutDescriptor::nextInChain"]
7485        [::core::mem::offset_of!(WGPUBindGroupLayoutDescriptor, nextInChain) - 0usize];
7486    ["Offset of field: WGPUBindGroupLayoutDescriptor::label"]
7487        [::core::mem::offset_of!(WGPUBindGroupLayoutDescriptor, label) - 8usize];
7488    ["Offset of field: WGPUBindGroupLayoutDescriptor::entryCount"]
7489        [::core::mem::offset_of!(WGPUBindGroupLayoutDescriptor, entryCount) - 24usize];
7490    ["Offset of field: WGPUBindGroupLayoutDescriptor::entries"]
7491        [::core::mem::offset_of!(WGPUBindGroupLayoutDescriptor, entries) - 32usize];
7492};
7493impl Default for WGPUBindGroupLayoutDescriptor {
7494    fn default() -> Self {
7495        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7496        unsafe {
7497            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7498            s.assume_init()
7499        }
7500    }
7501}
7502#[repr(C)]
7503pub struct WGPUColorTargetState {
7504    pub nextInChain: *mut WGPUChainedStruct,
7505    pub format: WGPUTextureFormat,
7506    pub blend: *const WGPUBlendState,
7507    pub writeMask: WGPUColorWriteMask,
7508}
7509#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7510const _: () = {
7511    ["Size of WGPUColorTargetState"][::core::mem::size_of::<WGPUColorTargetState>() - 32usize];
7512    ["Alignment of WGPUColorTargetState"][::core::mem::align_of::<WGPUColorTargetState>() - 8usize];
7513    ["Offset of field: WGPUColorTargetState::nextInChain"]
7514        [::core::mem::offset_of!(WGPUColorTargetState, nextInChain) - 0usize];
7515    ["Offset of field: WGPUColorTargetState::format"]
7516        [::core::mem::offset_of!(WGPUColorTargetState, format) - 8usize];
7517    ["Offset of field: WGPUColorTargetState::blend"]
7518        [::core::mem::offset_of!(WGPUColorTargetState, blend) - 16usize];
7519    ["Offset of field: WGPUColorTargetState::writeMask"]
7520        [::core::mem::offset_of!(WGPUColorTargetState, writeMask) - 24usize];
7521};
7522impl Default for WGPUColorTargetState {
7523    fn default() -> Self {
7524        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7525        unsafe {
7526            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7527            s.assume_init()
7528        }
7529    }
7530}
7531#[repr(C)]
7532#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7533pub struct WGPUCompilationInfo {
7534    pub nextInChain: *mut WGPUChainedStruct,
7535    pub messageCount: usize,
7536    pub messages: *const WGPUCompilationMessage,
7537}
7538#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7539const _: () = {
7540    ["Size of WGPUCompilationInfo"][::core::mem::size_of::<WGPUCompilationInfo>() - 24usize];
7541    ["Alignment of WGPUCompilationInfo"][::core::mem::align_of::<WGPUCompilationInfo>() - 8usize];
7542    ["Offset of field: WGPUCompilationInfo::nextInChain"]
7543        [::core::mem::offset_of!(WGPUCompilationInfo, nextInChain) - 0usize];
7544    ["Offset of field: WGPUCompilationInfo::messageCount"]
7545        [::core::mem::offset_of!(WGPUCompilationInfo, messageCount) - 8usize];
7546    ["Offset of field: WGPUCompilationInfo::messages"]
7547        [::core::mem::offset_of!(WGPUCompilationInfo, messages) - 16usize];
7548};
7549impl Default for WGPUCompilationInfo {
7550    fn default() -> Self {
7551        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7552        unsafe {
7553            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7554            s.assume_init()
7555        }
7556    }
7557}
7558#[repr(C)]
7559#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7560pub struct WGPUComputePipelineDescriptor {
7561    pub nextInChain: *mut WGPUChainedStruct,
7562    pub label: WGPUStringView,
7563    pub layout: WGPUPipelineLayout,
7564    pub compute: WGPUComputeState,
7565}
7566#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7567const _: () = {
7568    ["Size of WGPUComputePipelineDescriptor"]
7569        [::core::mem::size_of::<WGPUComputePipelineDescriptor>() - 80usize];
7570    ["Alignment of WGPUComputePipelineDescriptor"]
7571        [::core::mem::align_of::<WGPUComputePipelineDescriptor>() - 8usize];
7572    ["Offset of field: WGPUComputePipelineDescriptor::nextInChain"]
7573        [::core::mem::offset_of!(WGPUComputePipelineDescriptor, nextInChain) - 0usize];
7574    ["Offset of field: WGPUComputePipelineDescriptor::label"]
7575        [::core::mem::offset_of!(WGPUComputePipelineDescriptor, label) - 8usize];
7576    ["Offset of field: WGPUComputePipelineDescriptor::layout"]
7577        [::core::mem::offset_of!(WGPUComputePipelineDescriptor, layout) - 24usize];
7578    ["Offset of field: WGPUComputePipelineDescriptor::compute"]
7579        [::core::mem::offset_of!(WGPUComputePipelineDescriptor, compute) - 32usize];
7580};
7581impl Default for WGPUComputePipelineDescriptor {
7582    fn default() -> Self {
7583        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7584        unsafe {
7585            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7586            s.assume_init()
7587        }
7588    }
7589}
7590#[repr(C)]
7591#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7592pub struct WGPUDawnFormatCapabilities {
7593    pub nextInChain: *mut WGPUChainedStruct,
7594}
7595#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7596const _: () = {
7597    ["Size of WGPUDawnFormatCapabilities"]
7598        [::core::mem::size_of::<WGPUDawnFormatCapabilities>() - 8usize];
7599    ["Alignment of WGPUDawnFormatCapabilities"]
7600        [::core::mem::align_of::<WGPUDawnFormatCapabilities>() - 8usize];
7601    ["Offset of field: WGPUDawnFormatCapabilities::nextInChain"]
7602        [::core::mem::offset_of!(WGPUDawnFormatCapabilities, nextInChain) - 0usize];
7603};
7604impl Default for WGPUDawnFormatCapabilities {
7605    fn default() -> Self {
7606        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7607        unsafe {
7608            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7609            s.assume_init()
7610        }
7611    }
7612}
7613#[repr(C)]
7614#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7615pub struct WGPUDeviceDescriptor {
7616    pub nextInChain: *mut WGPUChainedStruct,
7617    pub label: WGPUStringView,
7618    pub requiredFeatureCount: usize,
7619    pub requiredFeatures: *const WGPUFeatureName,
7620    pub requiredLimits: *const WGPULimits,
7621    pub defaultQueue: WGPUQueueDescriptor,
7622    pub deviceLostCallbackInfo: WGPUDeviceLostCallbackInfo,
7623    pub uncapturedErrorCallbackInfo: WGPUUncapturedErrorCallbackInfo,
7624}
7625#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7626const _: () = {
7627    ["Size of WGPUDeviceDescriptor"][::core::mem::size_of::<WGPUDeviceDescriptor>() - 144usize];
7628    ["Alignment of WGPUDeviceDescriptor"][::core::mem::align_of::<WGPUDeviceDescriptor>() - 8usize];
7629    ["Offset of field: WGPUDeviceDescriptor::nextInChain"]
7630        [::core::mem::offset_of!(WGPUDeviceDescriptor, nextInChain) - 0usize];
7631    ["Offset of field: WGPUDeviceDescriptor::label"]
7632        [::core::mem::offset_of!(WGPUDeviceDescriptor, label) - 8usize];
7633    ["Offset of field: WGPUDeviceDescriptor::requiredFeatureCount"]
7634        [::core::mem::offset_of!(WGPUDeviceDescriptor, requiredFeatureCount) - 24usize];
7635    ["Offset of field: WGPUDeviceDescriptor::requiredFeatures"]
7636        [::core::mem::offset_of!(WGPUDeviceDescriptor, requiredFeatures) - 32usize];
7637    ["Offset of field: WGPUDeviceDescriptor::requiredLimits"]
7638        [::core::mem::offset_of!(WGPUDeviceDescriptor, requiredLimits) - 40usize];
7639    ["Offset of field: WGPUDeviceDescriptor::defaultQueue"]
7640        [::core::mem::offset_of!(WGPUDeviceDescriptor, defaultQueue) - 48usize];
7641    ["Offset of field: WGPUDeviceDescriptor::deviceLostCallbackInfo"]
7642        [::core::mem::offset_of!(WGPUDeviceDescriptor, deviceLostCallbackInfo) - 72usize];
7643    ["Offset of field: WGPUDeviceDescriptor::uncapturedErrorCallbackInfo"]
7644        [::core::mem::offset_of!(WGPUDeviceDescriptor, uncapturedErrorCallbackInfo) - 112usize];
7645};
7646impl Default for WGPUDeviceDescriptor {
7647    fn default() -> Self {
7648        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7649        unsafe {
7650            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7651            s.assume_init()
7652        }
7653    }
7654}
7655#[repr(C)]
7656#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7657pub struct WGPUPipelineLayoutDescriptor {
7658    pub nextInChain: *mut WGPUChainedStruct,
7659    pub label: WGPUStringView,
7660    pub bindGroupLayoutCount: usize,
7661    pub bindGroupLayouts: *const WGPUBindGroupLayout,
7662    pub immediateSize: u32,
7663}
7664#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7665const _: () = {
7666    ["Size of WGPUPipelineLayoutDescriptor"]
7667        [::core::mem::size_of::<WGPUPipelineLayoutDescriptor>() - 48usize];
7668    ["Alignment of WGPUPipelineLayoutDescriptor"]
7669        [::core::mem::align_of::<WGPUPipelineLayoutDescriptor>() - 8usize];
7670    ["Offset of field: WGPUPipelineLayoutDescriptor::nextInChain"]
7671        [::core::mem::offset_of!(WGPUPipelineLayoutDescriptor, nextInChain) - 0usize];
7672    ["Offset of field: WGPUPipelineLayoutDescriptor::label"]
7673        [::core::mem::offset_of!(WGPUPipelineLayoutDescriptor, label) - 8usize];
7674    ["Offset of field: WGPUPipelineLayoutDescriptor::bindGroupLayoutCount"]
7675        [::core::mem::offset_of!(WGPUPipelineLayoutDescriptor, bindGroupLayoutCount) - 24usize];
7676    ["Offset of field: WGPUPipelineLayoutDescriptor::bindGroupLayouts"]
7677        [::core::mem::offset_of!(WGPUPipelineLayoutDescriptor, bindGroupLayouts) - 32usize];
7678    ["Offset of field: WGPUPipelineLayoutDescriptor::immediateSize"]
7679        [::core::mem::offset_of!(WGPUPipelineLayoutDescriptor, immediateSize) - 40usize];
7680};
7681impl Default for WGPUPipelineLayoutDescriptor {
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 WGPURenderPassPixelLocalStorage {
7693    pub chain: WGPUChainedStruct,
7694    pub totalPixelLocalStorageSize: u64,
7695    pub storageAttachmentCount: usize,
7696    pub storageAttachments: *const WGPURenderPassStorageAttachment,
7697}
7698#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7699const _: () = {
7700    ["Size of WGPURenderPassPixelLocalStorage"]
7701        [::core::mem::size_of::<WGPURenderPassPixelLocalStorage>() - 40usize];
7702    ["Alignment of WGPURenderPassPixelLocalStorage"]
7703        [::core::mem::align_of::<WGPURenderPassPixelLocalStorage>() - 8usize];
7704    ["Offset of field: WGPURenderPassPixelLocalStorage::chain"]
7705        [::core::mem::offset_of!(WGPURenderPassPixelLocalStorage, chain) - 0usize];
7706    ["Offset of field: WGPURenderPassPixelLocalStorage::totalPixelLocalStorageSize"][::core::mem::offset_of!(
7707        WGPURenderPassPixelLocalStorage,
7708        totalPixelLocalStorageSize
7709    ) - 16usize];
7710    ["Offset of field: WGPURenderPassPixelLocalStorage::storageAttachmentCount"][::core::mem::offset_of!(
7711        WGPURenderPassPixelLocalStorage,
7712        storageAttachmentCount
7713    ) - 24usize];
7714    ["Offset of field: WGPURenderPassPixelLocalStorage::storageAttachments"]
7715        [::core::mem::offset_of!(WGPURenderPassPixelLocalStorage, storageAttachments) - 32usize];
7716};
7717impl Default for WGPURenderPassPixelLocalStorage {
7718    fn default() -> Self {
7719        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7720        unsafe {
7721            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7722            s.assume_init()
7723        }
7724    }
7725}
7726#[repr(C)]
7727#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7728pub struct WGPUSharedTextureMemoryDescriptor {
7729    pub nextInChain: *mut WGPUChainedStruct,
7730    pub label: WGPUStringView,
7731}
7732#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7733const _: () = {
7734    ["Size of WGPUSharedTextureMemoryDescriptor"]
7735        [::core::mem::size_of::<WGPUSharedTextureMemoryDescriptor>() - 24usize];
7736    ["Alignment of WGPUSharedTextureMemoryDescriptor"]
7737        [::core::mem::align_of::<WGPUSharedTextureMemoryDescriptor>() - 8usize];
7738    ["Offset of field: WGPUSharedTextureMemoryDescriptor::nextInChain"]
7739        [::core::mem::offset_of!(WGPUSharedTextureMemoryDescriptor, nextInChain) - 0usize];
7740    ["Offset of field: WGPUSharedTextureMemoryDescriptor::label"]
7741        [::core::mem::offset_of!(WGPUSharedTextureMemoryDescriptor, label) - 8usize];
7742};
7743impl Default for WGPUSharedTextureMemoryDescriptor {
7744    fn default() -> Self {
7745        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7746        unsafe {
7747            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7748            s.assume_init()
7749        }
7750    }
7751}
7752#[repr(C)]
7753pub struct WGPUSharedTextureMemoryProperties {
7754    pub nextInChain: *mut WGPUChainedStruct,
7755    pub usage: WGPUTextureUsage,
7756    pub size: WGPUExtent3D,
7757    pub format: WGPUTextureFormat,
7758}
7759#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7760const _: () = {
7761    ["Size of WGPUSharedTextureMemoryProperties"]
7762        [::core::mem::size_of::<WGPUSharedTextureMemoryProperties>() - 32usize];
7763    ["Alignment of WGPUSharedTextureMemoryProperties"]
7764        [::core::mem::align_of::<WGPUSharedTextureMemoryProperties>() - 8usize];
7765    ["Offset of field: WGPUSharedTextureMemoryProperties::nextInChain"]
7766        [::core::mem::offset_of!(WGPUSharedTextureMemoryProperties, nextInChain) - 0usize];
7767    ["Offset of field: WGPUSharedTextureMemoryProperties::usage"]
7768        [::core::mem::offset_of!(WGPUSharedTextureMemoryProperties, usage) - 8usize];
7769    ["Offset of field: WGPUSharedTextureMemoryProperties::size"]
7770        [::core::mem::offset_of!(WGPUSharedTextureMemoryProperties, size) - 16usize];
7771    ["Offset of field: WGPUSharedTextureMemoryProperties::format"]
7772        [::core::mem::offset_of!(WGPUSharedTextureMemoryProperties, format) - 28usize];
7773};
7774impl Default for WGPUSharedTextureMemoryProperties {
7775    fn default() -> Self {
7776        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7777        unsafe {
7778            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7779            s.assume_init()
7780        }
7781    }
7782}
7783#[repr(C)]
7784#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7785pub struct WGPUVertexState {
7786    pub nextInChain: *mut WGPUChainedStruct,
7787    pub module: WGPUShaderModule,
7788    pub entryPoint: WGPUStringView,
7789    pub constantCount: usize,
7790    pub constants: *const WGPUConstantEntry,
7791    pub bufferCount: usize,
7792    pub buffers: *const WGPUVertexBufferLayout,
7793}
7794#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7795const _: () = {
7796    ["Size of WGPUVertexState"][::core::mem::size_of::<WGPUVertexState>() - 64usize];
7797    ["Alignment of WGPUVertexState"][::core::mem::align_of::<WGPUVertexState>() - 8usize];
7798    ["Offset of field: WGPUVertexState::nextInChain"]
7799        [::core::mem::offset_of!(WGPUVertexState, nextInChain) - 0usize];
7800    ["Offset of field: WGPUVertexState::module"]
7801        [::core::mem::offset_of!(WGPUVertexState, module) - 8usize];
7802    ["Offset of field: WGPUVertexState::entryPoint"]
7803        [::core::mem::offset_of!(WGPUVertexState, entryPoint) - 16usize];
7804    ["Offset of field: WGPUVertexState::constantCount"]
7805        [::core::mem::offset_of!(WGPUVertexState, constantCount) - 32usize];
7806    ["Offset of field: WGPUVertexState::constants"]
7807        [::core::mem::offset_of!(WGPUVertexState, constants) - 40usize];
7808    ["Offset of field: WGPUVertexState::bufferCount"]
7809        [::core::mem::offset_of!(WGPUVertexState, bufferCount) - 48usize];
7810    ["Offset of field: WGPUVertexState::buffers"]
7811        [::core::mem::offset_of!(WGPUVertexState, buffers) - 56usize];
7812};
7813impl Default for WGPUVertexState {
7814    fn default() -> Self {
7815        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7816        unsafe {
7817            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7818            s.assume_init()
7819        }
7820    }
7821}
7822#[repr(C)]
7823#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7824pub struct WGPUFragmentState {
7825    pub nextInChain: *mut WGPUChainedStruct,
7826    pub module: WGPUShaderModule,
7827    pub entryPoint: WGPUStringView,
7828    pub constantCount: usize,
7829    pub constants: *const WGPUConstantEntry,
7830    pub targetCount: usize,
7831    pub targets: *const WGPUColorTargetState,
7832}
7833#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7834const _: () = {
7835    ["Size of WGPUFragmentState"][::core::mem::size_of::<WGPUFragmentState>() - 64usize];
7836    ["Alignment of WGPUFragmentState"][::core::mem::align_of::<WGPUFragmentState>() - 8usize];
7837    ["Offset of field: WGPUFragmentState::nextInChain"]
7838        [::core::mem::offset_of!(WGPUFragmentState, nextInChain) - 0usize];
7839    ["Offset of field: WGPUFragmentState::module"]
7840        [::core::mem::offset_of!(WGPUFragmentState, module) - 8usize];
7841    ["Offset of field: WGPUFragmentState::entryPoint"]
7842        [::core::mem::offset_of!(WGPUFragmentState, entryPoint) - 16usize];
7843    ["Offset of field: WGPUFragmentState::constantCount"]
7844        [::core::mem::offset_of!(WGPUFragmentState, constantCount) - 32usize];
7845    ["Offset of field: WGPUFragmentState::constants"]
7846        [::core::mem::offset_of!(WGPUFragmentState, constants) - 40usize];
7847    ["Offset of field: WGPUFragmentState::targetCount"]
7848        [::core::mem::offset_of!(WGPUFragmentState, targetCount) - 48usize];
7849    ["Offset of field: WGPUFragmentState::targets"]
7850        [::core::mem::offset_of!(WGPUFragmentState, targets) - 56usize];
7851};
7852impl Default for WGPUFragmentState {
7853    fn default() -> Self {
7854        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7855        unsafe {
7856            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7857            s.assume_init()
7858        }
7859    }
7860}
7861#[repr(C)]
7862#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7863pub struct WGPURenderPassDescriptor {
7864    pub nextInChain: *mut WGPUChainedStruct,
7865    pub label: WGPUStringView,
7866    pub colorAttachmentCount: usize,
7867    pub colorAttachments: *const WGPURenderPassColorAttachment,
7868    pub depthStencilAttachment: *const WGPURenderPassDepthStencilAttachment,
7869    pub occlusionQuerySet: WGPUQuerySet,
7870    pub timestampWrites: *const WGPUPassTimestampWrites,
7871}
7872#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7873const _: () = {
7874    ["Size of WGPURenderPassDescriptor"]
7875        [::core::mem::size_of::<WGPURenderPassDescriptor>() - 64usize];
7876    ["Alignment of WGPURenderPassDescriptor"]
7877        [::core::mem::align_of::<WGPURenderPassDescriptor>() - 8usize];
7878    ["Offset of field: WGPURenderPassDescriptor::nextInChain"]
7879        [::core::mem::offset_of!(WGPURenderPassDescriptor, nextInChain) - 0usize];
7880    ["Offset of field: WGPURenderPassDescriptor::label"]
7881        [::core::mem::offset_of!(WGPURenderPassDescriptor, label) - 8usize];
7882    ["Offset of field: WGPURenderPassDescriptor::colorAttachmentCount"]
7883        [::core::mem::offset_of!(WGPURenderPassDescriptor, colorAttachmentCount) - 24usize];
7884    ["Offset of field: WGPURenderPassDescriptor::colorAttachments"]
7885        [::core::mem::offset_of!(WGPURenderPassDescriptor, colorAttachments) - 32usize];
7886    ["Offset of field: WGPURenderPassDescriptor::depthStencilAttachment"]
7887        [::core::mem::offset_of!(WGPURenderPassDescriptor, depthStencilAttachment) - 40usize];
7888    ["Offset of field: WGPURenderPassDescriptor::occlusionQuerySet"]
7889        [::core::mem::offset_of!(WGPURenderPassDescriptor, occlusionQuerySet) - 48usize];
7890    ["Offset of field: WGPURenderPassDescriptor::timestampWrites"]
7891        [::core::mem::offset_of!(WGPURenderPassDescriptor, timestampWrites) - 56usize];
7892};
7893impl Default for WGPURenderPassDescriptor {
7894    fn default() -> Self {
7895        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7896        unsafe {
7897            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7898            s.assume_init()
7899        }
7900    }
7901}
7902#[repr(C)]
7903#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
7904pub struct WGPURenderPipelineDescriptor {
7905    pub nextInChain: *mut WGPUChainedStruct,
7906    pub label: WGPUStringView,
7907    pub layout: WGPUPipelineLayout,
7908    pub vertex: WGPUVertexState,
7909    pub primitive: WGPUPrimitiveState,
7910    pub depthStencil: *const WGPUDepthStencilState,
7911    pub multisample: WGPUMultisampleState,
7912    pub fragment: *const WGPUFragmentState,
7913}
7914#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7915const _: () = {
7916    ["Size of WGPURenderPipelineDescriptor"]
7917        [::core::mem::size_of::<WGPURenderPipelineDescriptor>() - 168usize];
7918    ["Alignment of WGPURenderPipelineDescriptor"]
7919        [::core::mem::align_of::<WGPURenderPipelineDescriptor>() - 8usize];
7920    ["Offset of field: WGPURenderPipelineDescriptor::nextInChain"]
7921        [::core::mem::offset_of!(WGPURenderPipelineDescriptor, nextInChain) - 0usize];
7922    ["Offset of field: WGPURenderPipelineDescriptor::label"]
7923        [::core::mem::offset_of!(WGPURenderPipelineDescriptor, label) - 8usize];
7924    ["Offset of field: WGPURenderPipelineDescriptor::layout"]
7925        [::core::mem::offset_of!(WGPURenderPipelineDescriptor, layout) - 24usize];
7926    ["Offset of field: WGPURenderPipelineDescriptor::vertex"]
7927        [::core::mem::offset_of!(WGPURenderPipelineDescriptor, vertex) - 32usize];
7928    ["Offset of field: WGPURenderPipelineDescriptor::primitive"]
7929        [::core::mem::offset_of!(WGPURenderPipelineDescriptor, primitive) - 96usize];
7930    ["Offset of field: WGPURenderPipelineDescriptor::depthStencil"]
7931        [::core::mem::offset_of!(WGPURenderPipelineDescriptor, depthStencil) - 128usize];
7932    ["Offset of field: WGPURenderPipelineDescriptor::multisample"]
7933        [::core::mem::offset_of!(WGPURenderPipelineDescriptor, multisample) - 136usize];
7934    ["Offset of field: WGPURenderPipelineDescriptor::fragment"]
7935        [::core::mem::offset_of!(WGPURenderPipelineDescriptor, fragment) - 160usize];
7936};
7937impl Default for WGPURenderPipelineDescriptor {
7938    fn default() -> Self {
7939        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
7940        unsafe {
7941            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7942            s.assume_init()
7943        }
7944    }
7945}
7946pub type WGPURenderPassDescriptorMaxDrawCount = WGPURenderPassMaxDrawCount;
7947pub type WGPUShaderModuleSPIRVDescriptor = WGPUShaderSourceSPIRV;
7948pub type WGPUShaderModuleWGSLDescriptor = WGPUShaderSourceWGSL;
7949pub type WGPUSurfaceDescriptorFromAndroidNativeWindow = WGPUSurfaceSourceAndroidNativeWindow;
7950pub type WGPUSurfaceDescriptorFromMetalLayer = WGPUSurfaceSourceMetalLayer;
7951pub type WGPUSurfaceDescriptorFromWaylandSurface = WGPUSurfaceSourceWaylandSurface;
7952pub type WGPUSurfaceDescriptorFromWindowsHWND = WGPUSurfaceSourceWindowsHWND;
7953pub type WGPUSurfaceDescriptorFromXcbWindow = WGPUSurfaceSourceXCBWindow;
7954pub type WGPUSurfaceDescriptorFromXlibWindow = WGPUSurfaceSourceXlibWindow;
7955pub type WGPUProcAdapterInfoFreeMembers =
7956    ::core::option::Option<unsafe extern "C" fn(value: WGPUAdapterInfo)>;
7957pub type WGPUProcAdapterPropertiesMemoryHeapsFreeMembers =
7958    ::core::option::Option<unsafe extern "C" fn(value: WGPUAdapterPropertiesMemoryHeaps)>;
7959pub type WGPUProcAdapterPropertiesSubgroupMatrixConfigsFreeMembers =
7960    ::core::option::Option<unsafe extern "C" fn(value: WGPUAdapterPropertiesSubgroupMatrixConfigs)>;
7961pub type WGPUProcCreateInstance = ::core::option::Option<
7962    unsafe extern "C" fn(descriptor: *const WGPUInstanceDescriptor) -> WGPUInstance,
7963>;
7964pub type WGPUProcDawnDrmFormatCapabilitiesFreeMembers =
7965    ::core::option::Option<unsafe extern "C" fn(value: WGPUDawnDrmFormatCapabilities)>;
7966pub type WGPUProcGetInstanceCapabilities = ::core::option::Option<
7967    unsafe extern "C" fn(capabilities: *mut WGPUInstanceCapabilities) -> WGPUStatus,
7968>;
7969pub type WGPUProcGetProcAddress =
7970    ::core::option::Option<unsafe extern "C" fn(procName: WGPUStringView) -> WGPUProc>;
7971pub type WGPUProcSharedBufferMemoryEndAccessStateFreeMembers =
7972    ::core::option::Option<unsafe extern "C" fn(value: WGPUSharedBufferMemoryEndAccessState)>;
7973pub type WGPUProcSharedTextureMemoryEndAccessStateFreeMembers =
7974    ::core::option::Option<unsafe extern "C" fn(value: WGPUSharedTextureMemoryEndAccessState)>;
7975pub type WGPUProcSupportedFeaturesFreeMembers =
7976    ::core::option::Option<unsafe extern "C" fn(value: WGPUSupportedFeatures)>;
7977pub type WGPUProcSupportedWGSLLanguageFeaturesFreeMembers =
7978    ::core::option::Option<unsafe extern "C" fn(value: WGPUSupportedWGSLLanguageFeatures)>;
7979pub type WGPUProcSurfaceCapabilitiesFreeMembers =
7980    ::core::option::Option<unsafe extern "C" fn(value: WGPUSurfaceCapabilities)>;
7981pub type WGPUProcAdapterCreateDevice = ::core::option::Option<
7982    unsafe extern "C" fn(
7983        adapter: WGPUAdapter,
7984        descriptor: *const WGPUDeviceDescriptor,
7985    ) -> WGPUDevice,
7986>;
7987pub type WGPUProcAdapterGetFeatures = ::core::option::Option<
7988    unsafe extern "C" fn(adapter: WGPUAdapter, features: *mut WGPUSupportedFeatures),
7989>;
7990pub type WGPUProcAdapterGetFormatCapabilities = ::core::option::Option<
7991    unsafe extern "C" fn(
7992        adapter: WGPUAdapter,
7993        format: WGPUTextureFormat,
7994        capabilities: *mut WGPUDawnFormatCapabilities,
7995    ) -> WGPUStatus,
7996>;
7997pub type WGPUProcAdapterGetInfo = ::core::option::Option<
7998    unsafe extern "C" fn(adapter: WGPUAdapter, info: *mut WGPUAdapterInfo) -> WGPUStatus,
7999>;
8000pub type WGPUProcAdapterGetInstance =
8001    ::core::option::Option<unsafe extern "C" fn(adapter: WGPUAdapter) -> WGPUInstance>;
8002pub type WGPUProcAdapterGetLimits = ::core::option::Option<
8003    unsafe extern "C" fn(adapter: WGPUAdapter, limits: *mut WGPULimits) -> WGPUStatus,
8004>;
8005pub type WGPUProcAdapterHasFeature = ::core::option::Option<
8006    unsafe extern "C" fn(adapter: WGPUAdapter, feature: WGPUFeatureName) -> WGPUBool,
8007>;
8008pub type WGPUProcAdapterRequestDevice = ::core::option::Option<
8009    unsafe extern "C" fn(
8010        adapter: WGPUAdapter,
8011        options: *const WGPUDeviceDescriptor,
8012        callbackInfo: WGPURequestDeviceCallbackInfo,
8013    ) -> WGPUFuture,
8014>;
8015pub type WGPUProcAdapterAddRef = ::core::option::Option<unsafe extern "C" fn(adapter: WGPUAdapter)>;
8016pub type WGPUProcAdapterRelease =
8017    ::core::option::Option<unsafe extern "C" fn(adapter: WGPUAdapter)>;
8018pub type WGPUProcBindGroupSetLabel =
8019    ::core::option::Option<unsafe extern "C" fn(bindGroup: WGPUBindGroup, label: WGPUStringView)>;
8020pub type WGPUProcBindGroupAddRef =
8021    ::core::option::Option<unsafe extern "C" fn(bindGroup: WGPUBindGroup)>;
8022pub type WGPUProcBindGroupRelease =
8023    ::core::option::Option<unsafe extern "C" fn(bindGroup: WGPUBindGroup)>;
8024pub type WGPUProcBindGroupLayoutSetLabel = ::core::option::Option<
8025    unsafe extern "C" fn(bindGroupLayout: WGPUBindGroupLayout, label: WGPUStringView),
8026>;
8027pub type WGPUProcBindGroupLayoutAddRef =
8028    ::core::option::Option<unsafe extern "C" fn(bindGroupLayout: WGPUBindGroupLayout)>;
8029pub type WGPUProcBindGroupLayoutRelease =
8030    ::core::option::Option<unsafe extern "C" fn(bindGroupLayout: WGPUBindGroupLayout)>;
8031pub type WGPUProcBufferDestroy = ::core::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer)>;
8032pub type WGPUProcBufferGetConstMappedRange = ::core::option::Option<
8033    unsafe extern "C" fn(
8034        buffer: WGPUBuffer,
8035        offset: usize,
8036        size: usize,
8037    ) -> *const ::core::ffi::c_void,
8038>;
8039pub type WGPUProcBufferGetMappedRange = ::core::option::Option<
8040    unsafe extern "C" fn(
8041        buffer: WGPUBuffer,
8042        offset: usize,
8043        size: usize,
8044    ) -> *mut ::core::ffi::c_void,
8045>;
8046pub type WGPUProcBufferGetMapState =
8047    ::core::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer) -> WGPUBufferMapState>;
8048pub type WGPUProcBufferGetSize =
8049    ::core::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer) -> u64>;
8050pub type WGPUProcBufferGetUsage =
8051    ::core::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer) -> WGPUBufferUsage>;
8052pub type WGPUProcBufferMapAsync = ::core::option::Option<
8053    unsafe extern "C" fn(
8054        buffer: WGPUBuffer,
8055        mode: WGPUMapMode,
8056        offset: usize,
8057        size: usize,
8058        callbackInfo: WGPUBufferMapCallbackInfo,
8059    ) -> WGPUFuture,
8060>;
8061pub type WGPUProcBufferReadMappedRange = ::core::option::Option<
8062    unsafe extern "C" fn(
8063        buffer: WGPUBuffer,
8064        offset: usize,
8065        data: *mut ::core::ffi::c_void,
8066        size: usize,
8067    ) -> WGPUStatus,
8068>;
8069pub type WGPUProcBufferSetLabel =
8070    ::core::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer, label: WGPUStringView)>;
8071pub type WGPUProcBufferUnmap = ::core::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer)>;
8072pub type WGPUProcBufferWriteMappedRange = ::core::option::Option<
8073    unsafe extern "C" fn(
8074        buffer: WGPUBuffer,
8075        offset: usize,
8076        data: *const ::core::ffi::c_void,
8077        size: usize,
8078    ) -> WGPUStatus,
8079>;
8080pub type WGPUProcBufferAddRef = ::core::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer)>;
8081pub type WGPUProcBufferRelease = ::core::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer)>;
8082pub type WGPUProcCommandBufferSetLabel = ::core::option::Option<
8083    unsafe extern "C" fn(commandBuffer: WGPUCommandBuffer, label: WGPUStringView),
8084>;
8085pub type WGPUProcCommandBufferAddRef =
8086    ::core::option::Option<unsafe extern "C" fn(commandBuffer: WGPUCommandBuffer)>;
8087pub type WGPUProcCommandBufferRelease =
8088    ::core::option::Option<unsafe extern "C" fn(commandBuffer: WGPUCommandBuffer)>;
8089pub type WGPUProcCommandEncoderBeginComputePass = ::core::option::Option<
8090    unsafe extern "C" fn(
8091        commandEncoder: WGPUCommandEncoder,
8092        descriptor: *const WGPUComputePassDescriptor,
8093    ) -> WGPUComputePassEncoder,
8094>;
8095pub type WGPUProcCommandEncoderBeginRenderPass = ::core::option::Option<
8096    unsafe extern "C" fn(
8097        commandEncoder: WGPUCommandEncoder,
8098        descriptor: *const WGPURenderPassDescriptor,
8099    ) -> WGPURenderPassEncoder,
8100>;
8101pub type WGPUProcCommandEncoderClearBuffer = ::core::option::Option<
8102    unsafe extern "C" fn(
8103        commandEncoder: WGPUCommandEncoder,
8104        buffer: WGPUBuffer,
8105        offset: u64,
8106        size: u64,
8107    ),
8108>;
8109pub type WGPUProcCommandEncoderCopyBufferToBuffer = ::core::option::Option<
8110    unsafe extern "C" fn(
8111        commandEncoder: WGPUCommandEncoder,
8112        source: WGPUBuffer,
8113        sourceOffset: u64,
8114        destination: WGPUBuffer,
8115        destinationOffset: u64,
8116        size: u64,
8117    ),
8118>;
8119pub type WGPUProcCommandEncoderCopyBufferToTexture = ::core::option::Option<
8120    unsafe extern "C" fn(
8121        commandEncoder: WGPUCommandEncoder,
8122        source: *const WGPUTexelCopyBufferInfo,
8123        destination: *const WGPUTexelCopyTextureInfo,
8124        copySize: *const WGPUExtent3D,
8125    ),
8126>;
8127pub type WGPUProcCommandEncoderCopyTextureToBuffer = ::core::option::Option<
8128    unsafe extern "C" fn(
8129        commandEncoder: WGPUCommandEncoder,
8130        source: *const WGPUTexelCopyTextureInfo,
8131        destination: *const WGPUTexelCopyBufferInfo,
8132        copySize: *const WGPUExtent3D,
8133    ),
8134>;
8135pub type WGPUProcCommandEncoderCopyTextureToTexture = ::core::option::Option<
8136    unsafe extern "C" fn(
8137        commandEncoder: WGPUCommandEncoder,
8138        source: *const WGPUTexelCopyTextureInfo,
8139        destination: *const WGPUTexelCopyTextureInfo,
8140        copySize: *const WGPUExtent3D,
8141    ),
8142>;
8143pub type WGPUProcCommandEncoderFinish = ::core::option::Option<
8144    unsafe extern "C" fn(
8145        commandEncoder: WGPUCommandEncoder,
8146        descriptor: *const WGPUCommandBufferDescriptor,
8147    ) -> WGPUCommandBuffer,
8148>;
8149pub type WGPUProcCommandEncoderInjectValidationError = ::core::option::Option<
8150    unsafe extern "C" fn(commandEncoder: WGPUCommandEncoder, message: WGPUStringView),
8151>;
8152pub type WGPUProcCommandEncoderInsertDebugMarker = ::core::option::Option<
8153    unsafe extern "C" fn(commandEncoder: WGPUCommandEncoder, markerLabel: WGPUStringView),
8154>;
8155pub type WGPUProcCommandEncoderPopDebugGroup =
8156    ::core::option::Option<unsafe extern "C" fn(commandEncoder: WGPUCommandEncoder)>;
8157pub type WGPUProcCommandEncoderPushDebugGroup = ::core::option::Option<
8158    unsafe extern "C" fn(commandEncoder: WGPUCommandEncoder, groupLabel: WGPUStringView),
8159>;
8160pub type WGPUProcCommandEncoderResolveQuerySet = ::core::option::Option<
8161    unsafe extern "C" fn(
8162        commandEncoder: WGPUCommandEncoder,
8163        querySet: WGPUQuerySet,
8164        firstQuery: u32,
8165        queryCount: u32,
8166        destination: WGPUBuffer,
8167        destinationOffset: u64,
8168    ),
8169>;
8170pub type WGPUProcCommandEncoderSetLabel = ::core::option::Option<
8171    unsafe extern "C" fn(commandEncoder: WGPUCommandEncoder, label: WGPUStringView),
8172>;
8173pub type WGPUProcCommandEncoderWriteBuffer = ::core::option::Option<
8174    unsafe extern "C" fn(
8175        commandEncoder: WGPUCommandEncoder,
8176        buffer: WGPUBuffer,
8177        bufferOffset: u64,
8178        data: *const u8,
8179        size: u64,
8180    ),
8181>;
8182pub type WGPUProcCommandEncoderWriteTimestamp = ::core::option::Option<
8183    unsafe extern "C" fn(
8184        commandEncoder: WGPUCommandEncoder,
8185        querySet: WGPUQuerySet,
8186        queryIndex: u32,
8187    ),
8188>;
8189pub type WGPUProcCommandEncoderAddRef =
8190    ::core::option::Option<unsafe extern "C" fn(commandEncoder: WGPUCommandEncoder)>;
8191pub type WGPUProcCommandEncoderRelease =
8192    ::core::option::Option<unsafe extern "C" fn(commandEncoder: WGPUCommandEncoder)>;
8193pub type WGPUProcComputePassEncoderDispatchWorkgroups = ::core::option::Option<
8194    unsafe extern "C" fn(
8195        computePassEncoder: WGPUComputePassEncoder,
8196        workgroupCountX: u32,
8197        workgroupCountY: u32,
8198        workgroupCountZ: u32,
8199    ),
8200>;
8201pub type WGPUProcComputePassEncoderDispatchWorkgroupsIndirect = ::core::option::Option<
8202    unsafe extern "C" fn(
8203        computePassEncoder: WGPUComputePassEncoder,
8204        indirectBuffer: WGPUBuffer,
8205        indirectOffset: u64,
8206    ),
8207>;
8208pub type WGPUProcComputePassEncoderEnd =
8209    ::core::option::Option<unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder)>;
8210pub type WGPUProcComputePassEncoderInsertDebugMarker = ::core::option::Option<
8211    unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder, markerLabel: WGPUStringView),
8212>;
8213pub type WGPUProcComputePassEncoderPopDebugGroup =
8214    ::core::option::Option<unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder)>;
8215pub type WGPUProcComputePassEncoderPushDebugGroup = ::core::option::Option<
8216    unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder, groupLabel: WGPUStringView),
8217>;
8218pub type WGPUProcComputePassEncoderSetBindGroup = ::core::option::Option<
8219    unsafe extern "C" fn(
8220        computePassEncoder: WGPUComputePassEncoder,
8221        groupIndex: u32,
8222        group: WGPUBindGroup,
8223        dynamicOffsetCount: usize,
8224        dynamicOffsets: *const u32,
8225    ),
8226>;
8227pub type WGPUProcComputePassEncoderSetImmediateData = ::core::option::Option<
8228    unsafe extern "C" fn(
8229        computePassEncoder: WGPUComputePassEncoder,
8230        offset: u32,
8231        data: *const ::core::ffi::c_void,
8232        size: usize,
8233    ),
8234>;
8235pub type WGPUProcComputePassEncoderSetLabel = ::core::option::Option<
8236    unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder, label: WGPUStringView),
8237>;
8238pub type WGPUProcComputePassEncoderSetPipeline = ::core::option::Option<
8239    unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder, pipeline: WGPUComputePipeline),
8240>;
8241pub type WGPUProcComputePassEncoderWriteTimestamp = ::core::option::Option<
8242    unsafe extern "C" fn(
8243        computePassEncoder: WGPUComputePassEncoder,
8244        querySet: WGPUQuerySet,
8245        queryIndex: u32,
8246    ),
8247>;
8248pub type WGPUProcComputePassEncoderAddRef =
8249    ::core::option::Option<unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder)>;
8250pub type WGPUProcComputePassEncoderRelease =
8251    ::core::option::Option<unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder)>;
8252pub type WGPUProcComputePipelineGetBindGroupLayout = ::core::option::Option<
8253    unsafe extern "C" fn(
8254        computePipeline: WGPUComputePipeline,
8255        groupIndex: u32,
8256    ) -> WGPUBindGroupLayout,
8257>;
8258pub type WGPUProcComputePipelineSetLabel = ::core::option::Option<
8259    unsafe extern "C" fn(computePipeline: WGPUComputePipeline, label: WGPUStringView),
8260>;
8261pub type WGPUProcComputePipelineAddRef =
8262    ::core::option::Option<unsafe extern "C" fn(computePipeline: WGPUComputePipeline)>;
8263pub type WGPUProcComputePipelineRelease =
8264    ::core::option::Option<unsafe extern "C" fn(computePipeline: WGPUComputePipeline)>;
8265pub type WGPUProcDeviceCreateBindGroup = ::core::option::Option<
8266    unsafe extern "C" fn(
8267        device: WGPUDevice,
8268        descriptor: *const WGPUBindGroupDescriptor,
8269    ) -> WGPUBindGroup,
8270>;
8271pub type WGPUProcDeviceCreateBindGroupLayout = ::core::option::Option<
8272    unsafe extern "C" fn(
8273        device: WGPUDevice,
8274        descriptor: *const WGPUBindGroupLayoutDescriptor,
8275    ) -> WGPUBindGroupLayout,
8276>;
8277pub type WGPUProcDeviceCreateBuffer = ::core::option::Option<
8278    unsafe extern "C" fn(device: WGPUDevice, descriptor: *const WGPUBufferDescriptor) -> WGPUBuffer,
8279>;
8280pub type WGPUProcDeviceCreateCommandEncoder = ::core::option::Option<
8281    unsafe extern "C" fn(
8282        device: WGPUDevice,
8283        descriptor: *const WGPUCommandEncoderDescriptor,
8284    ) -> WGPUCommandEncoder,
8285>;
8286pub type WGPUProcDeviceCreateComputePipeline = ::core::option::Option<
8287    unsafe extern "C" fn(
8288        device: WGPUDevice,
8289        descriptor: *const WGPUComputePipelineDescriptor,
8290    ) -> WGPUComputePipeline,
8291>;
8292pub type WGPUProcDeviceCreateComputePipelineAsync = ::core::option::Option<
8293    unsafe extern "C" fn(
8294        device: WGPUDevice,
8295        descriptor: *const WGPUComputePipelineDescriptor,
8296        callbackInfo: WGPUCreateComputePipelineAsyncCallbackInfo,
8297    ) -> WGPUFuture,
8298>;
8299pub type WGPUProcDeviceCreateErrorBuffer = ::core::option::Option<
8300    unsafe extern "C" fn(device: WGPUDevice, descriptor: *const WGPUBufferDescriptor) -> WGPUBuffer,
8301>;
8302pub type WGPUProcDeviceCreateErrorExternalTexture =
8303    ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice) -> WGPUExternalTexture>;
8304pub type WGPUProcDeviceCreateErrorShaderModule = ::core::option::Option<
8305    unsafe extern "C" fn(
8306        device: WGPUDevice,
8307        descriptor: *const WGPUShaderModuleDescriptor,
8308        errorMessage: WGPUStringView,
8309    ) -> WGPUShaderModule,
8310>;
8311pub type WGPUProcDeviceCreateErrorTexture = ::core::option::Option<
8312    unsafe extern "C" fn(
8313        device: WGPUDevice,
8314        descriptor: *const WGPUTextureDescriptor,
8315    ) -> WGPUTexture,
8316>;
8317pub type WGPUProcDeviceCreateExternalTexture = ::core::option::Option<
8318    unsafe extern "C" fn(
8319        device: WGPUDevice,
8320        externalTextureDescriptor: *const WGPUExternalTextureDescriptor,
8321    ) -> WGPUExternalTexture,
8322>;
8323pub type WGPUProcDeviceCreatePipelineLayout = ::core::option::Option<
8324    unsafe extern "C" fn(
8325        device: WGPUDevice,
8326        descriptor: *const WGPUPipelineLayoutDescriptor,
8327    ) -> WGPUPipelineLayout,
8328>;
8329pub type WGPUProcDeviceCreateQuerySet = ::core::option::Option<
8330    unsafe extern "C" fn(
8331        device: WGPUDevice,
8332        descriptor: *const WGPUQuerySetDescriptor,
8333    ) -> WGPUQuerySet,
8334>;
8335pub type WGPUProcDeviceCreateRenderBundleEncoder = ::core::option::Option<
8336    unsafe extern "C" fn(
8337        device: WGPUDevice,
8338        descriptor: *const WGPURenderBundleEncoderDescriptor,
8339    ) -> WGPURenderBundleEncoder,
8340>;
8341pub type WGPUProcDeviceCreateRenderPipeline = ::core::option::Option<
8342    unsafe extern "C" fn(
8343        device: WGPUDevice,
8344        descriptor: *const WGPURenderPipelineDescriptor,
8345    ) -> WGPURenderPipeline,
8346>;
8347pub type WGPUProcDeviceCreateRenderPipelineAsync = ::core::option::Option<
8348    unsafe extern "C" fn(
8349        device: WGPUDevice,
8350        descriptor: *const WGPURenderPipelineDescriptor,
8351        callbackInfo: WGPUCreateRenderPipelineAsyncCallbackInfo,
8352    ) -> WGPUFuture,
8353>;
8354pub type WGPUProcDeviceCreateSampler = ::core::option::Option<
8355    unsafe extern "C" fn(
8356        device: WGPUDevice,
8357        descriptor: *const WGPUSamplerDescriptor,
8358    ) -> WGPUSampler,
8359>;
8360pub type WGPUProcDeviceCreateShaderModule = ::core::option::Option<
8361    unsafe extern "C" fn(
8362        device: WGPUDevice,
8363        descriptor: *const WGPUShaderModuleDescriptor,
8364    ) -> WGPUShaderModule,
8365>;
8366pub type WGPUProcDeviceCreateTexture = ::core::option::Option<
8367    unsafe extern "C" fn(
8368        device: WGPUDevice,
8369        descriptor: *const WGPUTextureDescriptor,
8370    ) -> WGPUTexture,
8371>;
8372pub type WGPUProcDeviceDestroy = ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice)>;
8373pub type WGPUProcDeviceForceLoss = ::core::option::Option<
8374    unsafe extern "C" fn(device: WGPUDevice, type_: WGPUDeviceLostReason, message: WGPUStringView),
8375>;
8376pub type WGPUProcDeviceGetAdapter =
8377    ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice) -> WGPUAdapter>;
8378pub type WGPUProcDeviceGetAdapterInfo = ::core::option::Option<
8379    unsafe extern "C" fn(device: WGPUDevice, adapterInfo: *mut WGPUAdapterInfo) -> WGPUStatus,
8380>;
8381pub type WGPUProcDeviceGetAHardwareBufferProperties = ::core::option::Option<
8382    unsafe extern "C" fn(
8383        device: WGPUDevice,
8384        handle: *mut ::core::ffi::c_void,
8385        properties: *mut WGPUAHardwareBufferProperties,
8386    ) -> WGPUStatus,
8387>;
8388pub type WGPUProcDeviceGetFeatures = ::core::option::Option<
8389    unsafe extern "C" fn(device: WGPUDevice, features: *mut WGPUSupportedFeatures),
8390>;
8391pub type WGPUProcDeviceGetLimits = ::core::option::Option<
8392    unsafe extern "C" fn(device: WGPUDevice, limits: *mut WGPULimits) -> WGPUStatus,
8393>;
8394pub type WGPUProcDeviceGetLostFuture =
8395    ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice) -> WGPUFuture>;
8396pub type WGPUProcDeviceGetQueue =
8397    ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice) -> WGPUQueue>;
8398pub type WGPUProcDeviceHasFeature = ::core::option::Option<
8399    unsafe extern "C" fn(device: WGPUDevice, feature: WGPUFeatureName) -> WGPUBool,
8400>;
8401pub type WGPUProcDeviceImportSharedBufferMemory = ::core::option::Option<
8402    unsafe extern "C" fn(
8403        device: WGPUDevice,
8404        descriptor: *const WGPUSharedBufferMemoryDescriptor,
8405    ) -> WGPUSharedBufferMemory,
8406>;
8407pub type WGPUProcDeviceImportSharedFence = ::core::option::Option<
8408    unsafe extern "C" fn(
8409        device: WGPUDevice,
8410        descriptor: *const WGPUSharedFenceDescriptor,
8411    ) -> WGPUSharedFence,
8412>;
8413pub type WGPUProcDeviceImportSharedTextureMemory = ::core::option::Option<
8414    unsafe extern "C" fn(
8415        device: WGPUDevice,
8416        descriptor: *const WGPUSharedTextureMemoryDescriptor,
8417    ) -> WGPUSharedTextureMemory,
8418>;
8419pub type WGPUProcDeviceInjectError = ::core::option::Option<
8420    unsafe extern "C" fn(device: WGPUDevice, type_: WGPUErrorType, message: WGPUStringView),
8421>;
8422pub type WGPUProcDevicePopErrorScope = ::core::option::Option<
8423    unsafe extern "C" fn(
8424        device: WGPUDevice,
8425        callbackInfo: WGPUPopErrorScopeCallbackInfo,
8426    ) -> WGPUFuture,
8427>;
8428pub type WGPUProcDevicePushErrorScope =
8429    ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice, filter: WGPUErrorFilter)>;
8430pub type WGPUProcDeviceSetLabel =
8431    ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice, label: WGPUStringView)>;
8432pub type WGPUProcDeviceSetLoggingCallback = ::core::option::Option<
8433    unsafe extern "C" fn(device: WGPUDevice, callbackInfo: WGPULoggingCallbackInfo),
8434>;
8435pub type WGPUProcDeviceTick = ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice)>;
8436pub type WGPUProcDeviceValidateTextureDescriptor = ::core::option::Option<
8437    unsafe extern "C" fn(device: WGPUDevice, descriptor: *const WGPUTextureDescriptor),
8438>;
8439pub type WGPUProcDeviceAddRef = ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice)>;
8440pub type WGPUProcDeviceRelease = ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice)>;
8441pub type WGPUProcExternalTextureDestroy =
8442    ::core::option::Option<unsafe extern "C" fn(externalTexture: WGPUExternalTexture)>;
8443pub type WGPUProcExternalTextureExpire =
8444    ::core::option::Option<unsafe extern "C" fn(externalTexture: WGPUExternalTexture)>;
8445pub type WGPUProcExternalTextureRefresh =
8446    ::core::option::Option<unsafe extern "C" fn(externalTexture: WGPUExternalTexture)>;
8447pub type WGPUProcExternalTextureSetLabel = ::core::option::Option<
8448    unsafe extern "C" fn(externalTexture: WGPUExternalTexture, label: WGPUStringView),
8449>;
8450pub type WGPUProcExternalTextureAddRef =
8451    ::core::option::Option<unsafe extern "C" fn(externalTexture: WGPUExternalTexture)>;
8452pub type WGPUProcExternalTextureRelease =
8453    ::core::option::Option<unsafe extern "C" fn(externalTexture: WGPUExternalTexture)>;
8454pub type WGPUProcInstanceCreateSurface = ::core::option::Option<
8455    unsafe extern "C" fn(
8456        instance: WGPUInstance,
8457        descriptor: *const WGPUSurfaceDescriptor,
8458    ) -> WGPUSurface,
8459>;
8460pub type WGPUProcInstanceGetWGSLLanguageFeatures = ::core::option::Option<
8461    unsafe extern "C" fn(
8462        instance: WGPUInstance,
8463        features: *mut WGPUSupportedWGSLLanguageFeatures,
8464    ) -> WGPUStatus,
8465>;
8466pub type WGPUProcInstanceHasWGSLLanguageFeature = ::core::option::Option<
8467    unsafe extern "C" fn(instance: WGPUInstance, feature: WGPUWGSLLanguageFeatureName) -> WGPUBool,
8468>;
8469pub type WGPUProcInstanceProcessEvents =
8470    ::core::option::Option<unsafe extern "C" fn(instance: WGPUInstance)>;
8471pub type WGPUProcInstanceRequestAdapter = ::core::option::Option<
8472    unsafe extern "C" fn(
8473        instance: WGPUInstance,
8474        options: *const WGPURequestAdapterOptions,
8475        callbackInfo: WGPURequestAdapterCallbackInfo,
8476    ) -> WGPUFuture,
8477>;
8478pub type WGPUProcInstanceWaitAny = ::core::option::Option<
8479    unsafe extern "C" fn(
8480        instance: WGPUInstance,
8481        futureCount: usize,
8482        futures: *mut WGPUFutureWaitInfo,
8483        timeoutNS: u64,
8484    ) -> WGPUWaitStatus,
8485>;
8486pub type WGPUProcInstanceAddRef =
8487    ::core::option::Option<unsafe extern "C" fn(instance: WGPUInstance)>;
8488pub type WGPUProcInstanceRelease =
8489    ::core::option::Option<unsafe extern "C" fn(instance: WGPUInstance)>;
8490pub type WGPUProcPipelineLayoutSetLabel = ::core::option::Option<
8491    unsafe extern "C" fn(pipelineLayout: WGPUPipelineLayout, label: WGPUStringView),
8492>;
8493pub type WGPUProcPipelineLayoutAddRef =
8494    ::core::option::Option<unsafe extern "C" fn(pipelineLayout: WGPUPipelineLayout)>;
8495pub type WGPUProcPipelineLayoutRelease =
8496    ::core::option::Option<unsafe extern "C" fn(pipelineLayout: WGPUPipelineLayout)>;
8497pub type WGPUProcQuerySetDestroy =
8498    ::core::option::Option<unsafe extern "C" fn(querySet: WGPUQuerySet)>;
8499pub type WGPUProcQuerySetGetCount =
8500    ::core::option::Option<unsafe extern "C" fn(querySet: WGPUQuerySet) -> u32>;
8501pub type WGPUProcQuerySetGetType =
8502    ::core::option::Option<unsafe extern "C" fn(querySet: WGPUQuerySet) -> WGPUQueryType>;
8503pub type WGPUProcQuerySetSetLabel =
8504    ::core::option::Option<unsafe extern "C" fn(querySet: WGPUQuerySet, label: WGPUStringView)>;
8505pub type WGPUProcQuerySetAddRef =
8506    ::core::option::Option<unsafe extern "C" fn(querySet: WGPUQuerySet)>;
8507pub type WGPUProcQuerySetRelease =
8508    ::core::option::Option<unsafe extern "C" fn(querySet: WGPUQuerySet)>;
8509pub type WGPUProcQueueCopyExternalTextureForBrowser = ::core::option::Option<
8510    unsafe extern "C" fn(
8511        queue: WGPUQueue,
8512        source: *const WGPUImageCopyExternalTexture,
8513        destination: *const WGPUTexelCopyTextureInfo,
8514        copySize: *const WGPUExtent3D,
8515        options: *const WGPUCopyTextureForBrowserOptions,
8516    ),
8517>;
8518pub type WGPUProcQueueCopyTextureForBrowser = ::core::option::Option<
8519    unsafe extern "C" fn(
8520        queue: WGPUQueue,
8521        source: *const WGPUTexelCopyTextureInfo,
8522        destination: *const WGPUTexelCopyTextureInfo,
8523        copySize: *const WGPUExtent3D,
8524        options: *const WGPUCopyTextureForBrowserOptions,
8525    ),
8526>;
8527pub type WGPUProcQueueOnSubmittedWorkDone = ::core::option::Option<
8528    unsafe extern "C" fn(
8529        queue: WGPUQueue,
8530        callbackInfo: WGPUQueueWorkDoneCallbackInfo,
8531    ) -> WGPUFuture,
8532>;
8533pub type WGPUProcQueueSetLabel =
8534    ::core::option::Option<unsafe extern "C" fn(queue: WGPUQueue, label: WGPUStringView)>;
8535pub type WGPUProcQueueSubmit = ::core::option::Option<
8536    unsafe extern "C" fn(queue: WGPUQueue, commandCount: usize, commands: *const WGPUCommandBuffer),
8537>;
8538pub type WGPUProcQueueWriteBuffer = ::core::option::Option<
8539    unsafe extern "C" fn(
8540        queue: WGPUQueue,
8541        buffer: WGPUBuffer,
8542        bufferOffset: u64,
8543        data: *const ::core::ffi::c_void,
8544        size: usize,
8545    ),
8546>;
8547pub type WGPUProcQueueWriteTexture = ::core::option::Option<
8548    unsafe extern "C" fn(
8549        queue: WGPUQueue,
8550        destination: *const WGPUTexelCopyTextureInfo,
8551        data: *const ::core::ffi::c_void,
8552        dataSize: usize,
8553        dataLayout: *const WGPUTexelCopyBufferLayout,
8554        writeSize: *const WGPUExtent3D,
8555    ),
8556>;
8557pub type WGPUProcQueueAddRef = ::core::option::Option<unsafe extern "C" fn(queue: WGPUQueue)>;
8558pub type WGPUProcQueueRelease = ::core::option::Option<unsafe extern "C" fn(queue: WGPUQueue)>;
8559pub type WGPUProcRenderBundleSetLabel = ::core::option::Option<
8560    unsafe extern "C" fn(renderBundle: WGPURenderBundle, label: WGPUStringView),
8561>;
8562pub type WGPUProcRenderBundleAddRef =
8563    ::core::option::Option<unsafe extern "C" fn(renderBundle: WGPURenderBundle)>;
8564pub type WGPUProcRenderBundleRelease =
8565    ::core::option::Option<unsafe extern "C" fn(renderBundle: WGPURenderBundle)>;
8566pub type WGPUProcRenderBundleEncoderDraw = ::core::option::Option<
8567    unsafe extern "C" fn(
8568        renderBundleEncoder: WGPURenderBundleEncoder,
8569        vertexCount: u32,
8570        instanceCount: u32,
8571        firstVertex: u32,
8572        firstInstance: u32,
8573    ),
8574>;
8575pub type WGPUProcRenderBundleEncoderDrawIndexed = ::core::option::Option<
8576    unsafe extern "C" fn(
8577        renderBundleEncoder: WGPURenderBundleEncoder,
8578        indexCount: u32,
8579        instanceCount: u32,
8580        firstIndex: u32,
8581        baseVertex: i32,
8582        firstInstance: u32,
8583    ),
8584>;
8585pub type WGPUProcRenderBundleEncoderDrawIndexedIndirect = ::core::option::Option<
8586    unsafe extern "C" fn(
8587        renderBundleEncoder: WGPURenderBundleEncoder,
8588        indirectBuffer: WGPUBuffer,
8589        indirectOffset: u64,
8590    ),
8591>;
8592pub type WGPUProcRenderBundleEncoderDrawIndirect = ::core::option::Option<
8593    unsafe extern "C" fn(
8594        renderBundleEncoder: WGPURenderBundleEncoder,
8595        indirectBuffer: WGPUBuffer,
8596        indirectOffset: u64,
8597    ),
8598>;
8599pub type WGPUProcRenderBundleEncoderFinish = ::core::option::Option<
8600    unsafe extern "C" fn(
8601        renderBundleEncoder: WGPURenderBundleEncoder,
8602        descriptor: *const WGPURenderBundleDescriptor,
8603    ) -> WGPURenderBundle,
8604>;
8605pub type WGPUProcRenderBundleEncoderInsertDebugMarker = ::core::option::Option<
8606    unsafe extern "C" fn(renderBundleEncoder: WGPURenderBundleEncoder, markerLabel: WGPUStringView),
8607>;
8608pub type WGPUProcRenderBundleEncoderPopDebugGroup =
8609    ::core::option::Option<unsafe extern "C" fn(renderBundleEncoder: WGPURenderBundleEncoder)>;
8610pub type WGPUProcRenderBundleEncoderPushDebugGroup = ::core::option::Option<
8611    unsafe extern "C" fn(renderBundleEncoder: WGPURenderBundleEncoder, groupLabel: WGPUStringView),
8612>;
8613pub type WGPUProcRenderBundleEncoderSetBindGroup = ::core::option::Option<
8614    unsafe extern "C" fn(
8615        renderBundleEncoder: WGPURenderBundleEncoder,
8616        groupIndex: u32,
8617        group: WGPUBindGroup,
8618        dynamicOffsetCount: usize,
8619        dynamicOffsets: *const u32,
8620    ),
8621>;
8622pub type WGPUProcRenderBundleEncoderSetImmediateData = ::core::option::Option<
8623    unsafe extern "C" fn(
8624        renderBundleEncoder: WGPURenderBundleEncoder,
8625        offset: u32,
8626        data: *const ::core::ffi::c_void,
8627        size: usize,
8628    ),
8629>;
8630pub type WGPUProcRenderBundleEncoderSetIndexBuffer = ::core::option::Option<
8631    unsafe extern "C" fn(
8632        renderBundleEncoder: WGPURenderBundleEncoder,
8633        buffer: WGPUBuffer,
8634        format: WGPUIndexFormat,
8635        offset: u64,
8636        size: u64,
8637    ),
8638>;
8639pub type WGPUProcRenderBundleEncoderSetLabel = ::core::option::Option<
8640    unsafe extern "C" fn(renderBundleEncoder: WGPURenderBundleEncoder, label: WGPUStringView),
8641>;
8642pub type WGPUProcRenderBundleEncoderSetPipeline = ::core::option::Option<
8643    unsafe extern "C" fn(
8644        renderBundleEncoder: WGPURenderBundleEncoder,
8645        pipeline: WGPURenderPipeline,
8646    ),
8647>;
8648pub type WGPUProcRenderBundleEncoderSetVertexBuffer = ::core::option::Option<
8649    unsafe extern "C" fn(
8650        renderBundleEncoder: WGPURenderBundleEncoder,
8651        slot: u32,
8652        buffer: WGPUBuffer,
8653        offset: u64,
8654        size: u64,
8655    ),
8656>;
8657pub type WGPUProcRenderBundleEncoderAddRef =
8658    ::core::option::Option<unsafe extern "C" fn(renderBundleEncoder: WGPURenderBundleEncoder)>;
8659pub type WGPUProcRenderBundleEncoderRelease =
8660    ::core::option::Option<unsafe extern "C" fn(renderBundleEncoder: WGPURenderBundleEncoder)>;
8661pub type WGPUProcRenderPassEncoderBeginOcclusionQuery = ::core::option::Option<
8662    unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder, queryIndex: u32),
8663>;
8664pub type WGPUProcRenderPassEncoderDraw = ::core::option::Option<
8665    unsafe extern "C" fn(
8666        renderPassEncoder: WGPURenderPassEncoder,
8667        vertexCount: u32,
8668        instanceCount: u32,
8669        firstVertex: u32,
8670        firstInstance: u32,
8671    ),
8672>;
8673pub type WGPUProcRenderPassEncoderDrawIndexed = ::core::option::Option<
8674    unsafe extern "C" fn(
8675        renderPassEncoder: WGPURenderPassEncoder,
8676        indexCount: u32,
8677        instanceCount: u32,
8678        firstIndex: u32,
8679        baseVertex: i32,
8680        firstInstance: u32,
8681    ),
8682>;
8683pub type WGPUProcRenderPassEncoderDrawIndexedIndirect = ::core::option::Option<
8684    unsafe extern "C" fn(
8685        renderPassEncoder: WGPURenderPassEncoder,
8686        indirectBuffer: WGPUBuffer,
8687        indirectOffset: u64,
8688    ),
8689>;
8690pub type WGPUProcRenderPassEncoderDrawIndirect = ::core::option::Option<
8691    unsafe extern "C" fn(
8692        renderPassEncoder: WGPURenderPassEncoder,
8693        indirectBuffer: WGPUBuffer,
8694        indirectOffset: u64,
8695    ),
8696>;
8697pub type WGPUProcRenderPassEncoderEnd =
8698    ::core::option::Option<unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder)>;
8699pub type WGPUProcRenderPassEncoderEndOcclusionQuery =
8700    ::core::option::Option<unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder)>;
8701pub type WGPUProcRenderPassEncoderExecuteBundles = ::core::option::Option<
8702    unsafe extern "C" fn(
8703        renderPassEncoder: WGPURenderPassEncoder,
8704        bundleCount: usize,
8705        bundles: *const WGPURenderBundle,
8706    ),
8707>;
8708pub type WGPUProcRenderPassEncoderInsertDebugMarker = ::core::option::Option<
8709    unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder, markerLabel: WGPUStringView),
8710>;
8711pub type WGPUProcRenderPassEncoderMultiDrawIndexedIndirect = ::core::option::Option<
8712    unsafe extern "C" fn(
8713        renderPassEncoder: WGPURenderPassEncoder,
8714        indirectBuffer: WGPUBuffer,
8715        indirectOffset: u64,
8716        maxDrawCount: u32,
8717        drawCountBuffer: WGPUBuffer,
8718        drawCountBufferOffset: u64,
8719    ),
8720>;
8721pub type WGPUProcRenderPassEncoderMultiDrawIndirect = ::core::option::Option<
8722    unsafe extern "C" fn(
8723        renderPassEncoder: WGPURenderPassEncoder,
8724        indirectBuffer: WGPUBuffer,
8725        indirectOffset: u64,
8726        maxDrawCount: u32,
8727        drawCountBuffer: WGPUBuffer,
8728        drawCountBufferOffset: u64,
8729    ),
8730>;
8731pub type WGPUProcRenderPassEncoderPixelLocalStorageBarrier =
8732    ::core::option::Option<unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder)>;
8733pub type WGPUProcRenderPassEncoderPopDebugGroup =
8734    ::core::option::Option<unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder)>;
8735pub type WGPUProcRenderPassEncoderPushDebugGroup = ::core::option::Option<
8736    unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder, groupLabel: WGPUStringView),
8737>;
8738pub type WGPUProcRenderPassEncoderSetBindGroup = ::core::option::Option<
8739    unsafe extern "C" fn(
8740        renderPassEncoder: WGPURenderPassEncoder,
8741        groupIndex: u32,
8742        group: WGPUBindGroup,
8743        dynamicOffsetCount: usize,
8744        dynamicOffsets: *const u32,
8745    ),
8746>;
8747pub type WGPUProcRenderPassEncoderSetBlendConstant = ::core::option::Option<
8748    unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder, color: *const WGPUColor),
8749>;
8750pub type WGPUProcRenderPassEncoderSetImmediateData = ::core::option::Option<
8751    unsafe extern "C" fn(
8752        renderPassEncoder: WGPURenderPassEncoder,
8753        offset: u32,
8754        data: *const ::core::ffi::c_void,
8755        size: usize,
8756    ),
8757>;
8758pub type WGPUProcRenderPassEncoderSetIndexBuffer = ::core::option::Option<
8759    unsafe extern "C" fn(
8760        renderPassEncoder: WGPURenderPassEncoder,
8761        buffer: WGPUBuffer,
8762        format: WGPUIndexFormat,
8763        offset: u64,
8764        size: u64,
8765    ),
8766>;
8767pub type WGPUProcRenderPassEncoderSetLabel = ::core::option::Option<
8768    unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder, label: WGPUStringView),
8769>;
8770pub type WGPUProcRenderPassEncoderSetPipeline = ::core::option::Option<
8771    unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder, pipeline: WGPURenderPipeline),
8772>;
8773pub type WGPUProcRenderPassEncoderSetScissorRect = ::core::option::Option<
8774    unsafe extern "C" fn(
8775        renderPassEncoder: WGPURenderPassEncoder,
8776        x: u32,
8777        y: u32,
8778        width: u32,
8779        height: u32,
8780    ),
8781>;
8782pub type WGPUProcRenderPassEncoderSetStencilReference = ::core::option::Option<
8783    unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder, reference: u32),
8784>;
8785pub type WGPUProcRenderPassEncoderSetVertexBuffer = ::core::option::Option<
8786    unsafe extern "C" fn(
8787        renderPassEncoder: WGPURenderPassEncoder,
8788        slot: u32,
8789        buffer: WGPUBuffer,
8790        offset: u64,
8791        size: u64,
8792    ),
8793>;
8794pub type WGPUProcRenderPassEncoderSetViewport = ::core::option::Option<
8795    unsafe extern "C" fn(
8796        renderPassEncoder: WGPURenderPassEncoder,
8797        x: f32,
8798        y: f32,
8799        width: f32,
8800        height: f32,
8801        minDepth: f32,
8802        maxDepth: f32,
8803    ),
8804>;
8805pub type WGPUProcRenderPassEncoderWriteTimestamp = ::core::option::Option<
8806    unsafe extern "C" fn(
8807        renderPassEncoder: WGPURenderPassEncoder,
8808        querySet: WGPUQuerySet,
8809        queryIndex: u32,
8810    ),
8811>;
8812pub type WGPUProcRenderPassEncoderAddRef =
8813    ::core::option::Option<unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder)>;
8814pub type WGPUProcRenderPassEncoderRelease =
8815    ::core::option::Option<unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder)>;
8816pub type WGPUProcRenderPipelineGetBindGroupLayout = ::core::option::Option<
8817    unsafe extern "C" fn(
8818        renderPipeline: WGPURenderPipeline,
8819        groupIndex: u32,
8820    ) -> WGPUBindGroupLayout,
8821>;
8822pub type WGPUProcRenderPipelineSetLabel = ::core::option::Option<
8823    unsafe extern "C" fn(renderPipeline: WGPURenderPipeline, label: WGPUStringView),
8824>;
8825pub type WGPUProcRenderPipelineAddRef =
8826    ::core::option::Option<unsafe extern "C" fn(renderPipeline: WGPURenderPipeline)>;
8827pub type WGPUProcRenderPipelineRelease =
8828    ::core::option::Option<unsafe extern "C" fn(renderPipeline: WGPURenderPipeline)>;
8829pub type WGPUProcSamplerSetLabel =
8830    ::core::option::Option<unsafe extern "C" fn(sampler: WGPUSampler, label: WGPUStringView)>;
8831pub type WGPUProcSamplerAddRef = ::core::option::Option<unsafe extern "C" fn(sampler: WGPUSampler)>;
8832pub type WGPUProcSamplerRelease =
8833    ::core::option::Option<unsafe extern "C" fn(sampler: WGPUSampler)>;
8834pub type WGPUProcShaderModuleGetCompilationInfo = ::core::option::Option<
8835    unsafe extern "C" fn(
8836        shaderModule: WGPUShaderModule,
8837        callbackInfo: WGPUCompilationInfoCallbackInfo,
8838    ) -> WGPUFuture,
8839>;
8840pub type WGPUProcShaderModuleSetLabel = ::core::option::Option<
8841    unsafe extern "C" fn(shaderModule: WGPUShaderModule, label: WGPUStringView),
8842>;
8843pub type WGPUProcShaderModuleAddRef =
8844    ::core::option::Option<unsafe extern "C" fn(shaderModule: WGPUShaderModule)>;
8845pub type WGPUProcShaderModuleRelease =
8846    ::core::option::Option<unsafe extern "C" fn(shaderModule: WGPUShaderModule)>;
8847pub type WGPUProcSharedBufferMemoryBeginAccess = ::core::option::Option<
8848    unsafe extern "C" fn(
8849        sharedBufferMemory: WGPUSharedBufferMemory,
8850        buffer: WGPUBuffer,
8851        descriptor: *const WGPUSharedBufferMemoryBeginAccessDescriptor,
8852    ) -> WGPUStatus,
8853>;
8854pub type WGPUProcSharedBufferMemoryCreateBuffer = ::core::option::Option<
8855    unsafe extern "C" fn(
8856        sharedBufferMemory: WGPUSharedBufferMemory,
8857        descriptor: *const WGPUBufferDescriptor,
8858    ) -> WGPUBuffer,
8859>;
8860pub type WGPUProcSharedBufferMemoryEndAccess = ::core::option::Option<
8861    unsafe extern "C" fn(
8862        sharedBufferMemory: WGPUSharedBufferMemory,
8863        buffer: WGPUBuffer,
8864        descriptor: *mut WGPUSharedBufferMemoryEndAccessState,
8865    ) -> WGPUStatus,
8866>;
8867pub type WGPUProcSharedBufferMemoryGetProperties = ::core::option::Option<
8868    unsafe extern "C" fn(
8869        sharedBufferMemory: WGPUSharedBufferMemory,
8870        properties: *mut WGPUSharedBufferMemoryProperties,
8871    ) -> WGPUStatus,
8872>;
8873pub type WGPUProcSharedBufferMemoryIsDeviceLost = ::core::option::Option<
8874    unsafe extern "C" fn(sharedBufferMemory: WGPUSharedBufferMemory) -> WGPUBool,
8875>;
8876pub type WGPUProcSharedBufferMemorySetLabel = ::core::option::Option<
8877    unsafe extern "C" fn(sharedBufferMemory: WGPUSharedBufferMemory, label: WGPUStringView),
8878>;
8879pub type WGPUProcSharedBufferMemoryAddRef =
8880    ::core::option::Option<unsafe extern "C" fn(sharedBufferMemory: WGPUSharedBufferMemory)>;
8881pub type WGPUProcSharedBufferMemoryRelease =
8882    ::core::option::Option<unsafe extern "C" fn(sharedBufferMemory: WGPUSharedBufferMemory)>;
8883pub type WGPUProcSharedFenceExportInfo = ::core::option::Option<
8884    unsafe extern "C" fn(sharedFence: WGPUSharedFence, info: *mut WGPUSharedFenceExportInfo),
8885>;
8886pub type WGPUProcSharedFenceAddRef =
8887    ::core::option::Option<unsafe extern "C" fn(sharedFence: WGPUSharedFence)>;
8888pub type WGPUProcSharedFenceRelease =
8889    ::core::option::Option<unsafe extern "C" fn(sharedFence: WGPUSharedFence)>;
8890pub type WGPUProcSharedTextureMemoryBeginAccess = ::core::option::Option<
8891    unsafe extern "C" fn(
8892        sharedTextureMemory: WGPUSharedTextureMemory,
8893        texture: WGPUTexture,
8894        descriptor: *const WGPUSharedTextureMemoryBeginAccessDescriptor,
8895    ) -> WGPUStatus,
8896>;
8897pub type WGPUProcSharedTextureMemoryCreateTexture = ::core::option::Option<
8898    unsafe extern "C" fn(
8899        sharedTextureMemory: WGPUSharedTextureMemory,
8900        descriptor: *const WGPUTextureDescriptor,
8901    ) -> WGPUTexture,
8902>;
8903pub type WGPUProcSharedTextureMemoryEndAccess = ::core::option::Option<
8904    unsafe extern "C" fn(
8905        sharedTextureMemory: WGPUSharedTextureMemory,
8906        texture: WGPUTexture,
8907        descriptor: *mut WGPUSharedTextureMemoryEndAccessState,
8908    ) -> WGPUStatus,
8909>;
8910pub type WGPUProcSharedTextureMemoryGetProperties = ::core::option::Option<
8911    unsafe extern "C" fn(
8912        sharedTextureMemory: WGPUSharedTextureMemory,
8913        properties: *mut WGPUSharedTextureMemoryProperties,
8914    ) -> WGPUStatus,
8915>;
8916pub type WGPUProcSharedTextureMemoryIsDeviceLost = ::core::option::Option<
8917    unsafe extern "C" fn(sharedTextureMemory: WGPUSharedTextureMemory) -> WGPUBool,
8918>;
8919pub type WGPUProcSharedTextureMemorySetLabel = ::core::option::Option<
8920    unsafe extern "C" fn(sharedTextureMemory: WGPUSharedTextureMemory, label: WGPUStringView),
8921>;
8922pub type WGPUProcSharedTextureMemoryAddRef =
8923    ::core::option::Option<unsafe extern "C" fn(sharedTextureMemory: WGPUSharedTextureMemory)>;
8924pub type WGPUProcSharedTextureMemoryRelease =
8925    ::core::option::Option<unsafe extern "C" fn(sharedTextureMemory: WGPUSharedTextureMemory)>;
8926pub type WGPUProcSurfaceConfigure = ::core::option::Option<
8927    unsafe extern "C" fn(surface: WGPUSurface, config: *const WGPUSurfaceConfiguration),
8928>;
8929pub type WGPUProcSurfaceGetCapabilities = ::core::option::Option<
8930    unsafe extern "C" fn(
8931        surface: WGPUSurface,
8932        adapter: WGPUAdapter,
8933        capabilities: *mut WGPUSurfaceCapabilities,
8934    ) -> WGPUStatus,
8935>;
8936pub type WGPUProcSurfaceGetCurrentTexture = ::core::option::Option<
8937    unsafe extern "C" fn(surface: WGPUSurface, surfaceTexture: *mut WGPUSurfaceTexture),
8938>;
8939pub type WGPUProcSurfacePresent =
8940    ::core::option::Option<unsafe extern "C" fn(surface: WGPUSurface)>;
8941pub type WGPUProcSurfaceSetLabel =
8942    ::core::option::Option<unsafe extern "C" fn(surface: WGPUSurface, label: WGPUStringView)>;
8943pub type WGPUProcSurfaceUnconfigure =
8944    ::core::option::Option<unsafe extern "C" fn(surface: WGPUSurface)>;
8945pub type WGPUProcSurfaceAddRef = ::core::option::Option<unsafe extern "C" fn(surface: WGPUSurface)>;
8946pub type WGPUProcSurfaceRelease =
8947    ::core::option::Option<unsafe extern "C" fn(surface: WGPUSurface)>;
8948pub type WGPUProcTextureCreateErrorView = ::core::option::Option<
8949    unsafe extern "C" fn(
8950        texture: WGPUTexture,
8951        descriptor: *const WGPUTextureViewDescriptor,
8952    ) -> WGPUTextureView,
8953>;
8954pub type WGPUProcTextureCreateView = ::core::option::Option<
8955    unsafe extern "C" fn(
8956        texture: WGPUTexture,
8957        descriptor: *const WGPUTextureViewDescriptor,
8958    ) -> WGPUTextureView,
8959>;
8960pub type WGPUProcTextureDestroy =
8961    ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture)>;
8962pub type WGPUProcTextureGetDepthOrArrayLayers =
8963    ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> u32>;
8964pub type WGPUProcTextureGetDimension =
8965    ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> WGPUTextureDimension>;
8966pub type WGPUProcTextureGetFormat =
8967    ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> WGPUTextureFormat>;
8968pub type WGPUProcTextureGetHeight =
8969    ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> u32>;
8970pub type WGPUProcTextureGetMipLevelCount =
8971    ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> u32>;
8972pub type WGPUProcTextureGetSampleCount =
8973    ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> u32>;
8974pub type WGPUProcTextureGetUsage =
8975    ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> WGPUTextureUsage>;
8976pub type WGPUProcTextureGetWidth =
8977    ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> u32>;
8978pub type WGPUProcTextureSetLabel =
8979    ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture, label: WGPUStringView)>;
8980pub type WGPUProcTextureAddRef = ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture)>;
8981pub type WGPUProcTextureRelease =
8982    ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture)>;
8983pub type WGPUProcTextureViewSetLabel = ::core::option::Option<
8984    unsafe extern "C" fn(textureView: WGPUTextureView, label: WGPUStringView),
8985>;
8986pub type WGPUProcTextureViewAddRef =
8987    ::core::option::Option<unsafe extern "C" fn(textureView: WGPUTextureView)>;
8988pub type WGPUProcTextureViewRelease =
8989    ::core::option::Option<unsafe extern "C" fn(textureView: WGPUTextureView)>;
8990unsafe extern "C" {
8991    pub fn wgpuAdapterInfoFreeMembers(value: WGPUAdapterInfo);
8992}
8993unsafe extern "C" {
8994    pub fn wgpuAdapterPropertiesMemoryHeapsFreeMembers(value: WGPUAdapterPropertiesMemoryHeaps);
8995}
8996unsafe extern "C" {
8997    pub fn wgpuAdapterPropertiesSubgroupMatrixConfigsFreeMembers(
8998        value: WGPUAdapterPropertiesSubgroupMatrixConfigs,
8999    );
9000}
9001unsafe extern "C" {
9002    pub fn wgpuCreateInstance(descriptor: *const WGPUInstanceDescriptor) -> WGPUInstance;
9003}
9004unsafe extern "C" {
9005    pub fn wgpuDawnDrmFormatCapabilitiesFreeMembers(value: WGPUDawnDrmFormatCapabilities);
9006}
9007unsafe extern "C" {
9008    pub fn wgpuGetInstanceCapabilities(capabilities: *mut WGPUInstanceCapabilities) -> WGPUStatus;
9009}
9010unsafe extern "C" {
9011    pub fn wgpuGetProcAddress(procName: WGPUStringView) -> WGPUProc;
9012}
9013unsafe extern "C" {
9014    pub fn wgpuSharedBufferMemoryEndAccessStateFreeMembers(
9015        value: WGPUSharedBufferMemoryEndAccessState,
9016    );
9017}
9018unsafe extern "C" {
9019    pub fn wgpuSharedTextureMemoryEndAccessStateFreeMembers(
9020        value: WGPUSharedTextureMemoryEndAccessState,
9021    );
9022}
9023unsafe extern "C" {
9024    pub fn wgpuSupportedFeaturesFreeMembers(value: WGPUSupportedFeatures);
9025}
9026unsafe extern "C" {
9027    pub fn wgpuSupportedWGSLLanguageFeaturesFreeMembers(value: WGPUSupportedWGSLLanguageFeatures);
9028}
9029unsafe extern "C" {
9030    pub fn wgpuSurfaceCapabilitiesFreeMembers(value: WGPUSurfaceCapabilities);
9031}
9032unsafe extern "C" {
9033    pub fn wgpuAdapterCreateDevice(
9034        adapter: WGPUAdapter,
9035        descriptor: *const WGPUDeviceDescriptor,
9036    ) -> WGPUDevice;
9037}
9038unsafe extern "C" {
9039    pub fn wgpuAdapterGetFeatures(adapter: WGPUAdapter, features: *mut WGPUSupportedFeatures);
9040}
9041unsafe extern "C" {
9042    pub fn wgpuAdapterGetFormatCapabilities(
9043        adapter: WGPUAdapter,
9044        format: WGPUTextureFormat,
9045        capabilities: *mut WGPUDawnFormatCapabilities,
9046    ) -> WGPUStatus;
9047}
9048unsafe extern "C" {
9049    pub fn wgpuAdapterGetInfo(adapter: WGPUAdapter, info: *mut WGPUAdapterInfo) -> WGPUStatus;
9050}
9051unsafe extern "C" {
9052    pub fn wgpuAdapterGetInstance(adapter: WGPUAdapter) -> WGPUInstance;
9053}
9054unsafe extern "C" {
9055    pub fn wgpuAdapterGetLimits(adapter: WGPUAdapter, limits: *mut WGPULimits) -> WGPUStatus;
9056}
9057unsafe extern "C" {
9058    pub fn wgpuAdapterHasFeature(adapter: WGPUAdapter, feature: WGPUFeatureName) -> WGPUBool;
9059}
9060unsafe extern "C" {
9061    pub fn wgpuAdapterRequestDevice(
9062        adapter: WGPUAdapter,
9063        options: *const WGPUDeviceDescriptor,
9064        callbackInfo: WGPURequestDeviceCallbackInfo,
9065    ) -> WGPUFuture;
9066}
9067unsafe extern "C" {
9068    pub fn wgpuAdapterAddRef(adapter: WGPUAdapter);
9069}
9070unsafe extern "C" {
9071    pub fn wgpuAdapterRelease(adapter: WGPUAdapter);
9072}
9073unsafe extern "C" {
9074    pub fn wgpuBindGroupSetLabel(bindGroup: WGPUBindGroup, label: WGPUStringView);
9075}
9076unsafe extern "C" {
9077    pub fn wgpuBindGroupAddRef(bindGroup: WGPUBindGroup);
9078}
9079unsafe extern "C" {
9080    pub fn wgpuBindGroupRelease(bindGroup: WGPUBindGroup);
9081}
9082unsafe extern "C" {
9083    pub fn wgpuBindGroupLayoutSetLabel(bindGroupLayout: WGPUBindGroupLayout, label: WGPUStringView);
9084}
9085unsafe extern "C" {
9086    pub fn wgpuBindGroupLayoutAddRef(bindGroupLayout: WGPUBindGroupLayout);
9087}
9088unsafe extern "C" {
9089    pub fn wgpuBindGroupLayoutRelease(bindGroupLayout: WGPUBindGroupLayout);
9090}
9091unsafe extern "C" {
9092    pub fn wgpuBufferDestroy(buffer: WGPUBuffer);
9093}
9094unsafe extern "C" {
9095    pub fn wgpuBufferGetConstMappedRange(
9096        buffer: WGPUBuffer,
9097        offset: usize,
9098        size: usize,
9099    ) -> *const ::core::ffi::c_void;
9100}
9101unsafe extern "C" {
9102    pub fn wgpuBufferGetMappedRange(
9103        buffer: WGPUBuffer,
9104        offset: usize,
9105        size: usize,
9106    ) -> *mut ::core::ffi::c_void;
9107}
9108unsafe extern "C" {
9109    pub fn wgpuBufferGetMapState(buffer: WGPUBuffer) -> WGPUBufferMapState;
9110}
9111unsafe extern "C" {
9112    pub fn wgpuBufferGetSize(buffer: WGPUBuffer) -> u64;
9113}
9114unsafe extern "C" {
9115    pub fn wgpuBufferGetUsage(buffer: WGPUBuffer) -> WGPUBufferUsage;
9116}
9117unsafe extern "C" {
9118    pub fn wgpuBufferMapAsync(
9119        buffer: WGPUBuffer,
9120        mode: WGPUMapMode,
9121        offset: usize,
9122        size: usize,
9123        callbackInfo: WGPUBufferMapCallbackInfo,
9124    ) -> WGPUFuture;
9125}
9126unsafe extern "C" {
9127    pub fn wgpuBufferReadMappedRange(
9128        buffer: WGPUBuffer,
9129        offset: usize,
9130        data: *mut ::core::ffi::c_void,
9131        size: usize,
9132    ) -> WGPUStatus;
9133}
9134unsafe extern "C" {
9135    pub fn wgpuBufferSetLabel(buffer: WGPUBuffer, label: WGPUStringView);
9136}
9137unsafe extern "C" {
9138    pub fn wgpuBufferUnmap(buffer: WGPUBuffer);
9139}
9140unsafe extern "C" {
9141    pub fn wgpuBufferWriteMappedRange(
9142        buffer: WGPUBuffer,
9143        offset: usize,
9144        data: *const ::core::ffi::c_void,
9145        size: usize,
9146    ) -> WGPUStatus;
9147}
9148unsafe extern "C" {
9149    pub fn wgpuBufferAddRef(buffer: WGPUBuffer);
9150}
9151unsafe extern "C" {
9152    pub fn wgpuBufferRelease(buffer: WGPUBuffer);
9153}
9154unsafe extern "C" {
9155    pub fn wgpuCommandBufferSetLabel(commandBuffer: WGPUCommandBuffer, label: WGPUStringView);
9156}
9157unsafe extern "C" {
9158    pub fn wgpuCommandBufferAddRef(commandBuffer: WGPUCommandBuffer);
9159}
9160unsafe extern "C" {
9161    pub fn wgpuCommandBufferRelease(commandBuffer: WGPUCommandBuffer);
9162}
9163unsafe extern "C" {
9164    pub fn wgpuCommandEncoderBeginComputePass(
9165        commandEncoder: WGPUCommandEncoder,
9166        descriptor: *const WGPUComputePassDescriptor,
9167    ) -> WGPUComputePassEncoder;
9168}
9169unsafe extern "C" {
9170    pub fn wgpuCommandEncoderBeginRenderPass(
9171        commandEncoder: WGPUCommandEncoder,
9172        descriptor: *const WGPURenderPassDescriptor,
9173    ) -> WGPURenderPassEncoder;
9174}
9175unsafe extern "C" {
9176    pub fn wgpuCommandEncoderClearBuffer(
9177        commandEncoder: WGPUCommandEncoder,
9178        buffer: WGPUBuffer,
9179        offset: u64,
9180        size: u64,
9181    );
9182}
9183unsafe extern "C" {
9184    pub fn wgpuCommandEncoderCopyBufferToBuffer(
9185        commandEncoder: WGPUCommandEncoder,
9186        source: WGPUBuffer,
9187        sourceOffset: u64,
9188        destination: WGPUBuffer,
9189        destinationOffset: u64,
9190        size: u64,
9191    );
9192}
9193unsafe extern "C" {
9194    pub fn wgpuCommandEncoderCopyBufferToTexture(
9195        commandEncoder: WGPUCommandEncoder,
9196        source: *const WGPUTexelCopyBufferInfo,
9197        destination: *const WGPUTexelCopyTextureInfo,
9198        copySize: *const WGPUExtent3D,
9199    );
9200}
9201unsafe extern "C" {
9202    pub fn wgpuCommandEncoderCopyTextureToBuffer(
9203        commandEncoder: WGPUCommandEncoder,
9204        source: *const WGPUTexelCopyTextureInfo,
9205        destination: *const WGPUTexelCopyBufferInfo,
9206        copySize: *const WGPUExtent3D,
9207    );
9208}
9209unsafe extern "C" {
9210    pub fn wgpuCommandEncoderCopyTextureToTexture(
9211        commandEncoder: WGPUCommandEncoder,
9212        source: *const WGPUTexelCopyTextureInfo,
9213        destination: *const WGPUTexelCopyTextureInfo,
9214        copySize: *const WGPUExtent3D,
9215    );
9216}
9217unsafe extern "C" {
9218    pub fn wgpuCommandEncoderFinish(
9219        commandEncoder: WGPUCommandEncoder,
9220        descriptor: *const WGPUCommandBufferDescriptor,
9221    ) -> WGPUCommandBuffer;
9222}
9223unsafe extern "C" {
9224    pub fn wgpuCommandEncoderInjectValidationError(
9225        commandEncoder: WGPUCommandEncoder,
9226        message: WGPUStringView,
9227    );
9228}
9229unsafe extern "C" {
9230    pub fn wgpuCommandEncoderInsertDebugMarker(
9231        commandEncoder: WGPUCommandEncoder,
9232        markerLabel: WGPUStringView,
9233    );
9234}
9235unsafe extern "C" {
9236    pub fn wgpuCommandEncoderPopDebugGroup(commandEncoder: WGPUCommandEncoder);
9237}
9238unsafe extern "C" {
9239    pub fn wgpuCommandEncoderPushDebugGroup(
9240        commandEncoder: WGPUCommandEncoder,
9241        groupLabel: WGPUStringView,
9242    );
9243}
9244unsafe extern "C" {
9245    pub fn wgpuCommandEncoderResolveQuerySet(
9246        commandEncoder: WGPUCommandEncoder,
9247        querySet: WGPUQuerySet,
9248        firstQuery: u32,
9249        queryCount: u32,
9250        destination: WGPUBuffer,
9251        destinationOffset: u64,
9252    );
9253}
9254unsafe extern "C" {
9255    pub fn wgpuCommandEncoderSetLabel(commandEncoder: WGPUCommandEncoder, label: WGPUStringView);
9256}
9257unsafe extern "C" {
9258    pub fn wgpuCommandEncoderWriteBuffer(
9259        commandEncoder: WGPUCommandEncoder,
9260        buffer: WGPUBuffer,
9261        bufferOffset: u64,
9262        data: *const u8,
9263        size: u64,
9264    );
9265}
9266unsafe extern "C" {
9267    pub fn wgpuCommandEncoderWriteTimestamp(
9268        commandEncoder: WGPUCommandEncoder,
9269        querySet: WGPUQuerySet,
9270        queryIndex: u32,
9271    );
9272}
9273unsafe extern "C" {
9274    pub fn wgpuCommandEncoderAddRef(commandEncoder: WGPUCommandEncoder);
9275}
9276unsafe extern "C" {
9277    pub fn wgpuCommandEncoderRelease(commandEncoder: WGPUCommandEncoder);
9278}
9279unsafe extern "C" {
9280    pub fn wgpuComputePassEncoderDispatchWorkgroups(
9281        computePassEncoder: WGPUComputePassEncoder,
9282        workgroupCountX: u32,
9283        workgroupCountY: u32,
9284        workgroupCountZ: u32,
9285    );
9286}
9287unsafe extern "C" {
9288    pub fn wgpuComputePassEncoderDispatchWorkgroupsIndirect(
9289        computePassEncoder: WGPUComputePassEncoder,
9290        indirectBuffer: WGPUBuffer,
9291        indirectOffset: u64,
9292    );
9293}
9294unsafe extern "C" {
9295    pub fn wgpuComputePassEncoderEnd(computePassEncoder: WGPUComputePassEncoder);
9296}
9297unsafe extern "C" {
9298    pub fn wgpuComputePassEncoderInsertDebugMarker(
9299        computePassEncoder: WGPUComputePassEncoder,
9300        markerLabel: WGPUStringView,
9301    );
9302}
9303unsafe extern "C" {
9304    pub fn wgpuComputePassEncoderPopDebugGroup(computePassEncoder: WGPUComputePassEncoder);
9305}
9306unsafe extern "C" {
9307    pub fn wgpuComputePassEncoderPushDebugGroup(
9308        computePassEncoder: WGPUComputePassEncoder,
9309        groupLabel: WGPUStringView,
9310    );
9311}
9312unsafe extern "C" {
9313    pub fn wgpuComputePassEncoderSetBindGroup(
9314        computePassEncoder: WGPUComputePassEncoder,
9315        groupIndex: u32,
9316        group: WGPUBindGroup,
9317        dynamicOffsetCount: usize,
9318        dynamicOffsets: *const u32,
9319    );
9320}
9321unsafe extern "C" {
9322    pub fn wgpuComputePassEncoderSetImmediateData(
9323        computePassEncoder: WGPUComputePassEncoder,
9324        offset: u32,
9325        data: *const ::core::ffi::c_void,
9326        size: usize,
9327    );
9328}
9329unsafe extern "C" {
9330    pub fn wgpuComputePassEncoderSetLabel(
9331        computePassEncoder: WGPUComputePassEncoder,
9332        label: WGPUStringView,
9333    );
9334}
9335unsafe extern "C" {
9336    pub fn wgpuComputePassEncoderSetPipeline(
9337        computePassEncoder: WGPUComputePassEncoder,
9338        pipeline: WGPUComputePipeline,
9339    );
9340}
9341unsafe extern "C" {
9342    pub fn wgpuComputePassEncoderWriteTimestamp(
9343        computePassEncoder: WGPUComputePassEncoder,
9344        querySet: WGPUQuerySet,
9345        queryIndex: u32,
9346    );
9347}
9348unsafe extern "C" {
9349    pub fn wgpuComputePassEncoderAddRef(computePassEncoder: WGPUComputePassEncoder);
9350}
9351unsafe extern "C" {
9352    pub fn wgpuComputePassEncoderRelease(computePassEncoder: WGPUComputePassEncoder);
9353}
9354unsafe extern "C" {
9355    pub fn wgpuComputePipelineGetBindGroupLayout(
9356        computePipeline: WGPUComputePipeline,
9357        groupIndex: u32,
9358    ) -> WGPUBindGroupLayout;
9359}
9360unsafe extern "C" {
9361    pub fn wgpuComputePipelineSetLabel(computePipeline: WGPUComputePipeline, label: WGPUStringView);
9362}
9363unsafe extern "C" {
9364    pub fn wgpuComputePipelineAddRef(computePipeline: WGPUComputePipeline);
9365}
9366unsafe extern "C" {
9367    pub fn wgpuComputePipelineRelease(computePipeline: WGPUComputePipeline);
9368}
9369unsafe extern "C" {
9370    pub fn wgpuDeviceCreateBindGroup(
9371        device: WGPUDevice,
9372        descriptor: *const WGPUBindGroupDescriptor,
9373    ) -> WGPUBindGroup;
9374}
9375unsafe extern "C" {
9376    pub fn wgpuDeviceCreateBindGroupLayout(
9377        device: WGPUDevice,
9378        descriptor: *const WGPUBindGroupLayoutDescriptor,
9379    ) -> WGPUBindGroupLayout;
9380}
9381unsafe extern "C" {
9382    pub fn wgpuDeviceCreateBuffer(
9383        device: WGPUDevice,
9384        descriptor: *const WGPUBufferDescriptor,
9385    ) -> WGPUBuffer;
9386}
9387unsafe extern "C" {
9388    pub fn wgpuDeviceCreateCommandEncoder(
9389        device: WGPUDevice,
9390        descriptor: *const WGPUCommandEncoderDescriptor,
9391    ) -> WGPUCommandEncoder;
9392}
9393unsafe extern "C" {
9394    pub fn wgpuDeviceCreateComputePipeline(
9395        device: WGPUDevice,
9396        descriptor: *const WGPUComputePipelineDescriptor,
9397    ) -> WGPUComputePipeline;
9398}
9399unsafe extern "C" {
9400    pub fn wgpuDeviceCreateComputePipelineAsync(
9401        device: WGPUDevice,
9402        descriptor: *const WGPUComputePipelineDescriptor,
9403        callbackInfo: WGPUCreateComputePipelineAsyncCallbackInfo,
9404    ) -> WGPUFuture;
9405}
9406unsafe extern "C" {
9407    pub fn wgpuDeviceCreateErrorBuffer(
9408        device: WGPUDevice,
9409        descriptor: *const WGPUBufferDescriptor,
9410    ) -> WGPUBuffer;
9411}
9412unsafe extern "C" {
9413    pub fn wgpuDeviceCreateErrorExternalTexture(device: WGPUDevice) -> WGPUExternalTexture;
9414}
9415unsafe extern "C" {
9416    pub fn wgpuDeviceCreateErrorShaderModule(
9417        device: WGPUDevice,
9418        descriptor: *const WGPUShaderModuleDescriptor,
9419        errorMessage: WGPUStringView,
9420    ) -> WGPUShaderModule;
9421}
9422unsafe extern "C" {
9423    pub fn wgpuDeviceCreateErrorTexture(
9424        device: WGPUDevice,
9425        descriptor: *const WGPUTextureDescriptor,
9426    ) -> WGPUTexture;
9427}
9428unsafe extern "C" {
9429    pub fn wgpuDeviceCreateExternalTexture(
9430        device: WGPUDevice,
9431        externalTextureDescriptor: *const WGPUExternalTextureDescriptor,
9432    ) -> WGPUExternalTexture;
9433}
9434unsafe extern "C" {
9435    pub fn wgpuDeviceCreatePipelineLayout(
9436        device: WGPUDevice,
9437        descriptor: *const WGPUPipelineLayoutDescriptor,
9438    ) -> WGPUPipelineLayout;
9439}
9440unsafe extern "C" {
9441    pub fn wgpuDeviceCreateQuerySet(
9442        device: WGPUDevice,
9443        descriptor: *const WGPUQuerySetDescriptor,
9444    ) -> WGPUQuerySet;
9445}
9446unsafe extern "C" {
9447    pub fn wgpuDeviceCreateRenderBundleEncoder(
9448        device: WGPUDevice,
9449        descriptor: *const WGPURenderBundleEncoderDescriptor,
9450    ) -> WGPURenderBundleEncoder;
9451}
9452unsafe extern "C" {
9453    pub fn wgpuDeviceCreateRenderPipeline(
9454        device: WGPUDevice,
9455        descriptor: *const WGPURenderPipelineDescriptor,
9456    ) -> WGPURenderPipeline;
9457}
9458unsafe extern "C" {
9459    pub fn wgpuDeviceCreateRenderPipelineAsync(
9460        device: WGPUDevice,
9461        descriptor: *const WGPURenderPipelineDescriptor,
9462        callbackInfo: WGPUCreateRenderPipelineAsyncCallbackInfo,
9463    ) -> WGPUFuture;
9464}
9465unsafe extern "C" {
9466    pub fn wgpuDeviceCreateSampler(
9467        device: WGPUDevice,
9468        descriptor: *const WGPUSamplerDescriptor,
9469    ) -> WGPUSampler;
9470}
9471unsafe extern "C" {
9472    pub fn wgpuDeviceCreateShaderModule(
9473        device: WGPUDevice,
9474        descriptor: *const WGPUShaderModuleDescriptor,
9475    ) -> WGPUShaderModule;
9476}
9477unsafe extern "C" {
9478    pub fn wgpuDeviceCreateTexture(
9479        device: WGPUDevice,
9480        descriptor: *const WGPUTextureDescriptor,
9481    ) -> WGPUTexture;
9482}
9483unsafe extern "C" {
9484    pub fn wgpuDeviceDestroy(device: WGPUDevice);
9485}
9486unsafe extern "C" {
9487    pub fn wgpuDeviceForceLoss(
9488        device: WGPUDevice,
9489        type_: WGPUDeviceLostReason,
9490        message: WGPUStringView,
9491    );
9492}
9493unsafe extern "C" {
9494    pub fn wgpuDeviceGetAdapter(device: WGPUDevice) -> WGPUAdapter;
9495}
9496unsafe extern "C" {
9497    pub fn wgpuDeviceGetAdapterInfo(
9498        device: WGPUDevice,
9499        adapterInfo: *mut WGPUAdapterInfo,
9500    ) -> WGPUStatus;
9501}
9502unsafe extern "C" {
9503    pub fn wgpuDeviceGetAHardwareBufferProperties(
9504        device: WGPUDevice,
9505        handle: *mut ::core::ffi::c_void,
9506        properties: *mut WGPUAHardwareBufferProperties,
9507    ) -> WGPUStatus;
9508}
9509unsafe extern "C" {
9510    pub fn wgpuDeviceGetFeatures(device: WGPUDevice, features: *mut WGPUSupportedFeatures);
9511}
9512unsafe extern "C" {
9513    pub fn wgpuDeviceGetLimits(device: WGPUDevice, limits: *mut WGPULimits) -> WGPUStatus;
9514}
9515unsafe extern "C" {
9516    pub fn wgpuDeviceGetLostFuture(device: WGPUDevice) -> WGPUFuture;
9517}
9518unsafe extern "C" {
9519    pub fn wgpuDeviceGetQueue(device: WGPUDevice) -> WGPUQueue;
9520}
9521unsafe extern "C" {
9522    pub fn wgpuDeviceHasFeature(device: WGPUDevice, feature: WGPUFeatureName) -> WGPUBool;
9523}
9524unsafe extern "C" {
9525    pub fn wgpuDeviceImportSharedBufferMemory(
9526        device: WGPUDevice,
9527        descriptor: *const WGPUSharedBufferMemoryDescriptor,
9528    ) -> WGPUSharedBufferMemory;
9529}
9530unsafe extern "C" {
9531    pub fn wgpuDeviceImportSharedFence(
9532        device: WGPUDevice,
9533        descriptor: *const WGPUSharedFenceDescriptor,
9534    ) -> WGPUSharedFence;
9535}
9536unsafe extern "C" {
9537    pub fn wgpuDeviceImportSharedTextureMemory(
9538        device: WGPUDevice,
9539        descriptor: *const WGPUSharedTextureMemoryDescriptor,
9540    ) -> WGPUSharedTextureMemory;
9541}
9542unsafe extern "C" {
9543    pub fn wgpuDeviceInjectError(device: WGPUDevice, type_: WGPUErrorType, message: WGPUStringView);
9544}
9545unsafe extern "C" {
9546    pub fn wgpuDevicePopErrorScope(
9547        device: WGPUDevice,
9548        callbackInfo: WGPUPopErrorScopeCallbackInfo,
9549    ) -> WGPUFuture;
9550}
9551unsafe extern "C" {
9552    pub fn wgpuDevicePushErrorScope(device: WGPUDevice, filter: WGPUErrorFilter);
9553}
9554unsafe extern "C" {
9555    pub fn wgpuDeviceSetLabel(device: WGPUDevice, label: WGPUStringView);
9556}
9557unsafe extern "C" {
9558    pub fn wgpuDeviceSetLoggingCallback(device: WGPUDevice, callbackInfo: WGPULoggingCallbackInfo);
9559}
9560unsafe extern "C" {
9561    pub fn wgpuDeviceTick(device: WGPUDevice);
9562}
9563unsafe extern "C" {
9564    pub fn wgpuDeviceValidateTextureDescriptor(
9565        device: WGPUDevice,
9566        descriptor: *const WGPUTextureDescriptor,
9567    );
9568}
9569unsafe extern "C" {
9570    pub fn wgpuDeviceAddRef(device: WGPUDevice);
9571}
9572unsafe extern "C" {
9573    pub fn wgpuDeviceRelease(device: WGPUDevice);
9574}
9575unsafe extern "C" {
9576    pub fn wgpuExternalTextureDestroy(externalTexture: WGPUExternalTexture);
9577}
9578unsafe extern "C" {
9579    pub fn wgpuExternalTextureExpire(externalTexture: WGPUExternalTexture);
9580}
9581unsafe extern "C" {
9582    pub fn wgpuExternalTextureRefresh(externalTexture: WGPUExternalTexture);
9583}
9584unsafe extern "C" {
9585    pub fn wgpuExternalTextureSetLabel(externalTexture: WGPUExternalTexture, label: WGPUStringView);
9586}
9587unsafe extern "C" {
9588    pub fn wgpuExternalTextureAddRef(externalTexture: WGPUExternalTexture);
9589}
9590unsafe extern "C" {
9591    pub fn wgpuExternalTextureRelease(externalTexture: WGPUExternalTexture);
9592}
9593unsafe extern "C" {
9594    pub fn wgpuInstanceCreateSurface(
9595        instance: WGPUInstance,
9596        descriptor: *const WGPUSurfaceDescriptor,
9597    ) -> WGPUSurface;
9598}
9599unsafe extern "C" {
9600    pub fn wgpuInstanceGetWGSLLanguageFeatures(
9601        instance: WGPUInstance,
9602        features: *mut WGPUSupportedWGSLLanguageFeatures,
9603    ) -> WGPUStatus;
9604}
9605unsafe extern "C" {
9606    pub fn wgpuInstanceHasWGSLLanguageFeature(
9607        instance: WGPUInstance,
9608        feature: WGPUWGSLLanguageFeatureName,
9609    ) -> WGPUBool;
9610}
9611unsafe extern "C" {
9612    pub fn wgpuInstanceProcessEvents(instance: WGPUInstance);
9613}
9614unsafe extern "C" {
9615    pub fn wgpuInstanceRequestAdapter(
9616        instance: WGPUInstance,
9617        options: *const WGPURequestAdapterOptions,
9618        callbackInfo: WGPURequestAdapterCallbackInfo,
9619    ) -> WGPUFuture;
9620}
9621unsafe extern "C" {
9622    pub fn wgpuInstanceWaitAny(
9623        instance: WGPUInstance,
9624        futureCount: usize,
9625        futures: *mut WGPUFutureWaitInfo,
9626        timeoutNS: u64,
9627    ) -> WGPUWaitStatus;
9628}
9629unsafe extern "C" {
9630    pub fn wgpuInstanceAddRef(instance: WGPUInstance);
9631}
9632unsafe extern "C" {
9633    pub fn wgpuInstanceRelease(instance: WGPUInstance);
9634}
9635unsafe extern "C" {
9636    pub fn wgpuPipelineLayoutSetLabel(pipelineLayout: WGPUPipelineLayout, label: WGPUStringView);
9637}
9638unsafe extern "C" {
9639    pub fn wgpuPipelineLayoutAddRef(pipelineLayout: WGPUPipelineLayout);
9640}
9641unsafe extern "C" {
9642    pub fn wgpuPipelineLayoutRelease(pipelineLayout: WGPUPipelineLayout);
9643}
9644unsafe extern "C" {
9645    pub fn wgpuQuerySetDestroy(querySet: WGPUQuerySet);
9646}
9647unsafe extern "C" {
9648    pub fn wgpuQuerySetGetCount(querySet: WGPUQuerySet) -> u32;
9649}
9650unsafe extern "C" {
9651    pub fn wgpuQuerySetGetType(querySet: WGPUQuerySet) -> WGPUQueryType;
9652}
9653unsafe extern "C" {
9654    pub fn wgpuQuerySetSetLabel(querySet: WGPUQuerySet, label: WGPUStringView);
9655}
9656unsafe extern "C" {
9657    pub fn wgpuQuerySetAddRef(querySet: WGPUQuerySet);
9658}
9659unsafe extern "C" {
9660    pub fn wgpuQuerySetRelease(querySet: WGPUQuerySet);
9661}
9662unsafe extern "C" {
9663    pub fn wgpuQueueCopyExternalTextureForBrowser(
9664        queue: WGPUQueue,
9665        source: *const WGPUImageCopyExternalTexture,
9666        destination: *const WGPUTexelCopyTextureInfo,
9667        copySize: *const WGPUExtent3D,
9668        options: *const WGPUCopyTextureForBrowserOptions,
9669    );
9670}
9671unsafe extern "C" {
9672    pub fn wgpuQueueCopyTextureForBrowser(
9673        queue: WGPUQueue,
9674        source: *const WGPUTexelCopyTextureInfo,
9675        destination: *const WGPUTexelCopyTextureInfo,
9676        copySize: *const WGPUExtent3D,
9677        options: *const WGPUCopyTextureForBrowserOptions,
9678    );
9679}
9680unsafe extern "C" {
9681    pub fn wgpuQueueOnSubmittedWorkDone(
9682        queue: WGPUQueue,
9683        callbackInfo: WGPUQueueWorkDoneCallbackInfo,
9684    ) -> WGPUFuture;
9685}
9686unsafe extern "C" {
9687    pub fn wgpuQueueSetLabel(queue: WGPUQueue, label: WGPUStringView);
9688}
9689unsafe extern "C" {
9690    pub fn wgpuQueueSubmit(
9691        queue: WGPUQueue,
9692        commandCount: usize,
9693        commands: *const WGPUCommandBuffer,
9694    );
9695}
9696unsafe extern "C" {
9697    pub fn wgpuQueueWriteBuffer(
9698        queue: WGPUQueue,
9699        buffer: WGPUBuffer,
9700        bufferOffset: u64,
9701        data: *const ::core::ffi::c_void,
9702        size: usize,
9703    );
9704}
9705unsafe extern "C" {
9706    pub fn wgpuQueueWriteTexture(
9707        queue: WGPUQueue,
9708        destination: *const WGPUTexelCopyTextureInfo,
9709        data: *const ::core::ffi::c_void,
9710        dataSize: usize,
9711        dataLayout: *const WGPUTexelCopyBufferLayout,
9712        writeSize: *const WGPUExtent3D,
9713    );
9714}
9715unsafe extern "C" {
9716    pub fn wgpuQueueAddRef(queue: WGPUQueue);
9717}
9718unsafe extern "C" {
9719    pub fn wgpuQueueRelease(queue: WGPUQueue);
9720}
9721unsafe extern "C" {
9722    pub fn wgpuRenderBundleSetLabel(renderBundle: WGPURenderBundle, label: WGPUStringView);
9723}
9724unsafe extern "C" {
9725    pub fn wgpuRenderBundleAddRef(renderBundle: WGPURenderBundle);
9726}
9727unsafe extern "C" {
9728    pub fn wgpuRenderBundleRelease(renderBundle: WGPURenderBundle);
9729}
9730unsafe extern "C" {
9731    pub fn wgpuRenderBundleEncoderDraw(
9732        renderBundleEncoder: WGPURenderBundleEncoder,
9733        vertexCount: u32,
9734        instanceCount: u32,
9735        firstVertex: u32,
9736        firstInstance: u32,
9737    );
9738}
9739unsafe extern "C" {
9740    pub fn wgpuRenderBundleEncoderDrawIndexed(
9741        renderBundleEncoder: WGPURenderBundleEncoder,
9742        indexCount: u32,
9743        instanceCount: u32,
9744        firstIndex: u32,
9745        baseVertex: i32,
9746        firstInstance: u32,
9747    );
9748}
9749unsafe extern "C" {
9750    pub fn wgpuRenderBundleEncoderDrawIndexedIndirect(
9751        renderBundleEncoder: WGPURenderBundleEncoder,
9752        indirectBuffer: WGPUBuffer,
9753        indirectOffset: u64,
9754    );
9755}
9756unsafe extern "C" {
9757    pub fn wgpuRenderBundleEncoderDrawIndirect(
9758        renderBundleEncoder: WGPURenderBundleEncoder,
9759        indirectBuffer: WGPUBuffer,
9760        indirectOffset: u64,
9761    );
9762}
9763unsafe extern "C" {
9764    pub fn wgpuRenderBundleEncoderFinish(
9765        renderBundleEncoder: WGPURenderBundleEncoder,
9766        descriptor: *const WGPURenderBundleDescriptor,
9767    ) -> WGPURenderBundle;
9768}
9769unsafe extern "C" {
9770    pub fn wgpuRenderBundleEncoderInsertDebugMarker(
9771        renderBundleEncoder: WGPURenderBundleEncoder,
9772        markerLabel: WGPUStringView,
9773    );
9774}
9775unsafe extern "C" {
9776    pub fn wgpuRenderBundleEncoderPopDebugGroup(renderBundleEncoder: WGPURenderBundleEncoder);
9777}
9778unsafe extern "C" {
9779    pub fn wgpuRenderBundleEncoderPushDebugGroup(
9780        renderBundleEncoder: WGPURenderBundleEncoder,
9781        groupLabel: WGPUStringView,
9782    );
9783}
9784unsafe extern "C" {
9785    pub fn wgpuRenderBundleEncoderSetBindGroup(
9786        renderBundleEncoder: WGPURenderBundleEncoder,
9787        groupIndex: u32,
9788        group: WGPUBindGroup,
9789        dynamicOffsetCount: usize,
9790        dynamicOffsets: *const u32,
9791    );
9792}
9793unsafe extern "C" {
9794    pub fn wgpuRenderBundleEncoderSetImmediateData(
9795        renderBundleEncoder: WGPURenderBundleEncoder,
9796        offset: u32,
9797        data: *const ::core::ffi::c_void,
9798        size: usize,
9799    );
9800}
9801unsafe extern "C" {
9802    pub fn wgpuRenderBundleEncoderSetIndexBuffer(
9803        renderBundleEncoder: WGPURenderBundleEncoder,
9804        buffer: WGPUBuffer,
9805        format: WGPUIndexFormat,
9806        offset: u64,
9807        size: u64,
9808    );
9809}
9810unsafe extern "C" {
9811    pub fn wgpuRenderBundleEncoderSetLabel(
9812        renderBundleEncoder: WGPURenderBundleEncoder,
9813        label: WGPUStringView,
9814    );
9815}
9816unsafe extern "C" {
9817    pub fn wgpuRenderBundleEncoderSetPipeline(
9818        renderBundleEncoder: WGPURenderBundleEncoder,
9819        pipeline: WGPURenderPipeline,
9820    );
9821}
9822unsafe extern "C" {
9823    pub fn wgpuRenderBundleEncoderSetVertexBuffer(
9824        renderBundleEncoder: WGPURenderBundleEncoder,
9825        slot: u32,
9826        buffer: WGPUBuffer,
9827        offset: u64,
9828        size: u64,
9829    );
9830}
9831unsafe extern "C" {
9832    pub fn wgpuRenderBundleEncoderAddRef(renderBundleEncoder: WGPURenderBundleEncoder);
9833}
9834unsafe extern "C" {
9835    pub fn wgpuRenderBundleEncoderRelease(renderBundleEncoder: WGPURenderBundleEncoder);
9836}
9837unsafe extern "C" {
9838    pub fn wgpuRenderPassEncoderBeginOcclusionQuery(
9839        renderPassEncoder: WGPURenderPassEncoder,
9840        queryIndex: u32,
9841    );
9842}
9843unsafe extern "C" {
9844    pub fn wgpuRenderPassEncoderDraw(
9845        renderPassEncoder: WGPURenderPassEncoder,
9846        vertexCount: u32,
9847        instanceCount: u32,
9848        firstVertex: u32,
9849        firstInstance: u32,
9850    );
9851}
9852unsafe extern "C" {
9853    pub fn wgpuRenderPassEncoderDrawIndexed(
9854        renderPassEncoder: WGPURenderPassEncoder,
9855        indexCount: u32,
9856        instanceCount: u32,
9857        firstIndex: u32,
9858        baseVertex: i32,
9859        firstInstance: u32,
9860    );
9861}
9862unsafe extern "C" {
9863    pub fn wgpuRenderPassEncoderDrawIndexedIndirect(
9864        renderPassEncoder: WGPURenderPassEncoder,
9865        indirectBuffer: WGPUBuffer,
9866        indirectOffset: u64,
9867    );
9868}
9869unsafe extern "C" {
9870    pub fn wgpuRenderPassEncoderDrawIndirect(
9871        renderPassEncoder: WGPURenderPassEncoder,
9872        indirectBuffer: WGPUBuffer,
9873        indirectOffset: u64,
9874    );
9875}
9876unsafe extern "C" {
9877    pub fn wgpuRenderPassEncoderEnd(renderPassEncoder: WGPURenderPassEncoder);
9878}
9879unsafe extern "C" {
9880    pub fn wgpuRenderPassEncoderEndOcclusionQuery(renderPassEncoder: WGPURenderPassEncoder);
9881}
9882unsafe extern "C" {
9883    pub fn wgpuRenderPassEncoderExecuteBundles(
9884        renderPassEncoder: WGPURenderPassEncoder,
9885        bundleCount: usize,
9886        bundles: *const WGPURenderBundle,
9887    );
9888}
9889unsafe extern "C" {
9890    pub fn wgpuRenderPassEncoderInsertDebugMarker(
9891        renderPassEncoder: WGPURenderPassEncoder,
9892        markerLabel: WGPUStringView,
9893    );
9894}
9895unsafe extern "C" {
9896    pub fn wgpuRenderPassEncoderMultiDrawIndexedIndirect(
9897        renderPassEncoder: WGPURenderPassEncoder,
9898        indirectBuffer: WGPUBuffer,
9899        indirectOffset: u64,
9900        maxDrawCount: u32,
9901        drawCountBuffer: WGPUBuffer,
9902        drawCountBufferOffset: u64,
9903    );
9904}
9905unsafe extern "C" {
9906    pub fn wgpuRenderPassEncoderMultiDrawIndirect(
9907        renderPassEncoder: WGPURenderPassEncoder,
9908        indirectBuffer: WGPUBuffer,
9909        indirectOffset: u64,
9910        maxDrawCount: u32,
9911        drawCountBuffer: WGPUBuffer,
9912        drawCountBufferOffset: u64,
9913    );
9914}
9915unsafe extern "C" {
9916    pub fn wgpuRenderPassEncoderPixelLocalStorageBarrier(renderPassEncoder: WGPURenderPassEncoder);
9917}
9918unsafe extern "C" {
9919    pub fn wgpuRenderPassEncoderPopDebugGroup(renderPassEncoder: WGPURenderPassEncoder);
9920}
9921unsafe extern "C" {
9922    pub fn wgpuRenderPassEncoderPushDebugGroup(
9923        renderPassEncoder: WGPURenderPassEncoder,
9924        groupLabel: WGPUStringView,
9925    );
9926}
9927unsafe extern "C" {
9928    pub fn wgpuRenderPassEncoderSetBindGroup(
9929        renderPassEncoder: WGPURenderPassEncoder,
9930        groupIndex: u32,
9931        group: WGPUBindGroup,
9932        dynamicOffsetCount: usize,
9933        dynamicOffsets: *const u32,
9934    );
9935}
9936unsafe extern "C" {
9937    pub fn wgpuRenderPassEncoderSetBlendConstant(
9938        renderPassEncoder: WGPURenderPassEncoder,
9939        color: *const WGPUColor,
9940    );
9941}
9942unsafe extern "C" {
9943    pub fn wgpuRenderPassEncoderSetImmediateData(
9944        renderPassEncoder: WGPURenderPassEncoder,
9945        offset: u32,
9946        data: *const ::core::ffi::c_void,
9947        size: usize,
9948    );
9949}
9950unsafe extern "C" {
9951    pub fn wgpuRenderPassEncoderSetIndexBuffer(
9952        renderPassEncoder: WGPURenderPassEncoder,
9953        buffer: WGPUBuffer,
9954        format: WGPUIndexFormat,
9955        offset: u64,
9956        size: u64,
9957    );
9958}
9959unsafe extern "C" {
9960    pub fn wgpuRenderPassEncoderSetLabel(
9961        renderPassEncoder: WGPURenderPassEncoder,
9962        label: WGPUStringView,
9963    );
9964}
9965unsafe extern "C" {
9966    pub fn wgpuRenderPassEncoderSetPipeline(
9967        renderPassEncoder: WGPURenderPassEncoder,
9968        pipeline: WGPURenderPipeline,
9969    );
9970}
9971unsafe extern "C" {
9972    pub fn wgpuRenderPassEncoderSetScissorRect(
9973        renderPassEncoder: WGPURenderPassEncoder,
9974        x: u32,
9975        y: u32,
9976        width: u32,
9977        height: u32,
9978    );
9979}
9980unsafe extern "C" {
9981    pub fn wgpuRenderPassEncoderSetStencilReference(
9982        renderPassEncoder: WGPURenderPassEncoder,
9983        reference: u32,
9984    );
9985}
9986unsafe extern "C" {
9987    pub fn wgpuRenderPassEncoderSetVertexBuffer(
9988        renderPassEncoder: WGPURenderPassEncoder,
9989        slot: u32,
9990        buffer: WGPUBuffer,
9991        offset: u64,
9992        size: u64,
9993    );
9994}
9995unsafe extern "C" {
9996    pub fn wgpuRenderPassEncoderSetViewport(
9997        renderPassEncoder: WGPURenderPassEncoder,
9998        x: f32,
9999        y: f32,
10000        width: f32,
10001        height: f32,
10002        minDepth: f32,
10003        maxDepth: f32,
10004    );
10005}
10006unsafe extern "C" {
10007    pub fn wgpuRenderPassEncoderWriteTimestamp(
10008        renderPassEncoder: WGPURenderPassEncoder,
10009        querySet: WGPUQuerySet,
10010        queryIndex: u32,
10011    );
10012}
10013unsafe extern "C" {
10014    pub fn wgpuRenderPassEncoderAddRef(renderPassEncoder: WGPURenderPassEncoder);
10015}
10016unsafe extern "C" {
10017    pub fn wgpuRenderPassEncoderRelease(renderPassEncoder: WGPURenderPassEncoder);
10018}
10019unsafe extern "C" {
10020    pub fn wgpuRenderPipelineGetBindGroupLayout(
10021        renderPipeline: WGPURenderPipeline,
10022        groupIndex: u32,
10023    ) -> WGPUBindGroupLayout;
10024}
10025unsafe extern "C" {
10026    pub fn wgpuRenderPipelineSetLabel(renderPipeline: WGPURenderPipeline, label: WGPUStringView);
10027}
10028unsafe extern "C" {
10029    pub fn wgpuRenderPipelineAddRef(renderPipeline: WGPURenderPipeline);
10030}
10031unsafe extern "C" {
10032    pub fn wgpuRenderPipelineRelease(renderPipeline: WGPURenderPipeline);
10033}
10034unsafe extern "C" {
10035    pub fn wgpuSamplerSetLabel(sampler: WGPUSampler, label: WGPUStringView);
10036}
10037unsafe extern "C" {
10038    pub fn wgpuSamplerAddRef(sampler: WGPUSampler);
10039}
10040unsafe extern "C" {
10041    pub fn wgpuSamplerRelease(sampler: WGPUSampler);
10042}
10043unsafe extern "C" {
10044    pub fn wgpuShaderModuleGetCompilationInfo(
10045        shaderModule: WGPUShaderModule,
10046        callbackInfo: WGPUCompilationInfoCallbackInfo,
10047    ) -> WGPUFuture;
10048}
10049unsafe extern "C" {
10050    pub fn wgpuShaderModuleSetLabel(shaderModule: WGPUShaderModule, label: WGPUStringView);
10051}
10052unsafe extern "C" {
10053    pub fn wgpuShaderModuleAddRef(shaderModule: WGPUShaderModule);
10054}
10055unsafe extern "C" {
10056    pub fn wgpuShaderModuleRelease(shaderModule: WGPUShaderModule);
10057}
10058unsafe extern "C" {
10059    pub fn wgpuSharedBufferMemoryBeginAccess(
10060        sharedBufferMemory: WGPUSharedBufferMemory,
10061        buffer: WGPUBuffer,
10062        descriptor: *const WGPUSharedBufferMemoryBeginAccessDescriptor,
10063    ) -> WGPUStatus;
10064}
10065unsafe extern "C" {
10066    pub fn wgpuSharedBufferMemoryCreateBuffer(
10067        sharedBufferMemory: WGPUSharedBufferMemory,
10068        descriptor: *const WGPUBufferDescriptor,
10069    ) -> WGPUBuffer;
10070}
10071unsafe extern "C" {
10072    pub fn wgpuSharedBufferMemoryEndAccess(
10073        sharedBufferMemory: WGPUSharedBufferMemory,
10074        buffer: WGPUBuffer,
10075        descriptor: *mut WGPUSharedBufferMemoryEndAccessState,
10076    ) -> WGPUStatus;
10077}
10078unsafe extern "C" {
10079    pub fn wgpuSharedBufferMemoryGetProperties(
10080        sharedBufferMemory: WGPUSharedBufferMemory,
10081        properties: *mut WGPUSharedBufferMemoryProperties,
10082    ) -> WGPUStatus;
10083}
10084unsafe extern "C" {
10085    pub fn wgpuSharedBufferMemoryIsDeviceLost(
10086        sharedBufferMemory: WGPUSharedBufferMemory,
10087    ) -> WGPUBool;
10088}
10089unsafe extern "C" {
10090    pub fn wgpuSharedBufferMemorySetLabel(
10091        sharedBufferMemory: WGPUSharedBufferMemory,
10092        label: WGPUStringView,
10093    );
10094}
10095unsafe extern "C" {
10096    pub fn wgpuSharedBufferMemoryAddRef(sharedBufferMemory: WGPUSharedBufferMemory);
10097}
10098unsafe extern "C" {
10099    pub fn wgpuSharedBufferMemoryRelease(sharedBufferMemory: WGPUSharedBufferMemory);
10100}
10101unsafe extern "C" {
10102    pub fn wgpuSharedFenceExportInfo(
10103        sharedFence: WGPUSharedFence,
10104        info: *mut WGPUSharedFenceExportInfo,
10105    );
10106}
10107unsafe extern "C" {
10108    pub fn wgpuSharedFenceAddRef(sharedFence: WGPUSharedFence);
10109}
10110unsafe extern "C" {
10111    pub fn wgpuSharedFenceRelease(sharedFence: WGPUSharedFence);
10112}
10113unsafe extern "C" {
10114    pub fn wgpuSharedTextureMemoryBeginAccess(
10115        sharedTextureMemory: WGPUSharedTextureMemory,
10116        texture: WGPUTexture,
10117        descriptor: *const WGPUSharedTextureMemoryBeginAccessDescriptor,
10118    ) -> WGPUStatus;
10119}
10120unsafe extern "C" {
10121    pub fn wgpuSharedTextureMemoryCreateTexture(
10122        sharedTextureMemory: WGPUSharedTextureMemory,
10123        descriptor: *const WGPUTextureDescriptor,
10124    ) -> WGPUTexture;
10125}
10126unsafe extern "C" {
10127    pub fn wgpuSharedTextureMemoryEndAccess(
10128        sharedTextureMemory: WGPUSharedTextureMemory,
10129        texture: WGPUTexture,
10130        descriptor: *mut WGPUSharedTextureMemoryEndAccessState,
10131    ) -> WGPUStatus;
10132}
10133unsafe extern "C" {
10134    pub fn wgpuSharedTextureMemoryGetProperties(
10135        sharedTextureMemory: WGPUSharedTextureMemory,
10136        properties: *mut WGPUSharedTextureMemoryProperties,
10137    ) -> WGPUStatus;
10138}
10139unsafe extern "C" {
10140    pub fn wgpuSharedTextureMemoryIsDeviceLost(
10141        sharedTextureMemory: WGPUSharedTextureMemory,
10142    ) -> WGPUBool;
10143}
10144unsafe extern "C" {
10145    pub fn wgpuSharedTextureMemorySetLabel(
10146        sharedTextureMemory: WGPUSharedTextureMemory,
10147        label: WGPUStringView,
10148    );
10149}
10150unsafe extern "C" {
10151    pub fn wgpuSharedTextureMemoryAddRef(sharedTextureMemory: WGPUSharedTextureMemory);
10152}
10153unsafe extern "C" {
10154    pub fn wgpuSharedTextureMemoryRelease(sharedTextureMemory: WGPUSharedTextureMemory);
10155}
10156unsafe extern "C" {
10157    pub fn wgpuSurfaceConfigure(surface: WGPUSurface, config: *const WGPUSurfaceConfiguration);
10158}
10159unsafe extern "C" {
10160    pub fn wgpuSurfaceGetCapabilities(
10161        surface: WGPUSurface,
10162        adapter: WGPUAdapter,
10163        capabilities: *mut WGPUSurfaceCapabilities,
10164    ) -> WGPUStatus;
10165}
10166unsafe extern "C" {
10167    pub fn wgpuSurfaceGetCurrentTexture(
10168        surface: WGPUSurface,
10169        surfaceTexture: *mut WGPUSurfaceTexture,
10170    );
10171}
10172unsafe extern "C" {
10173    pub fn wgpuSurfacePresent(surface: WGPUSurface);
10174}
10175unsafe extern "C" {
10176    pub fn wgpuSurfaceSetLabel(surface: WGPUSurface, label: WGPUStringView);
10177}
10178unsafe extern "C" {
10179    pub fn wgpuSurfaceUnconfigure(surface: WGPUSurface);
10180}
10181unsafe extern "C" {
10182    pub fn wgpuSurfaceAddRef(surface: WGPUSurface);
10183}
10184unsafe extern "C" {
10185    pub fn wgpuSurfaceRelease(surface: WGPUSurface);
10186}
10187unsafe extern "C" {
10188    pub fn wgpuTextureCreateErrorView(
10189        texture: WGPUTexture,
10190        descriptor: *const WGPUTextureViewDescriptor,
10191    ) -> WGPUTextureView;
10192}
10193unsafe extern "C" {
10194    pub fn wgpuTextureCreateView(
10195        texture: WGPUTexture,
10196        descriptor: *const WGPUTextureViewDescriptor,
10197    ) -> WGPUTextureView;
10198}
10199unsafe extern "C" {
10200    pub fn wgpuTextureDestroy(texture: WGPUTexture);
10201}
10202unsafe extern "C" {
10203    pub fn wgpuTextureGetDepthOrArrayLayers(texture: WGPUTexture) -> u32;
10204}
10205unsafe extern "C" {
10206    pub fn wgpuTextureGetDimension(texture: WGPUTexture) -> WGPUTextureDimension;
10207}
10208unsafe extern "C" {
10209    pub fn wgpuTextureGetFormat(texture: WGPUTexture) -> WGPUTextureFormat;
10210}
10211unsafe extern "C" {
10212    pub fn wgpuTextureGetHeight(texture: WGPUTexture) -> u32;
10213}
10214unsafe extern "C" {
10215    pub fn wgpuTextureGetMipLevelCount(texture: WGPUTexture) -> u32;
10216}
10217unsafe extern "C" {
10218    pub fn wgpuTextureGetSampleCount(texture: WGPUTexture) -> u32;
10219}
10220unsafe extern "C" {
10221    pub fn wgpuTextureGetUsage(texture: WGPUTexture) -> WGPUTextureUsage;
10222}
10223unsafe extern "C" {
10224    pub fn wgpuTextureGetWidth(texture: WGPUTexture) -> u32;
10225}
10226unsafe extern "C" {
10227    pub fn wgpuTextureSetLabel(texture: WGPUTexture, label: WGPUStringView);
10228}
10229unsafe extern "C" {
10230    pub fn wgpuTextureAddRef(texture: WGPUTexture);
10231}
10232unsafe extern "C" {
10233    pub fn wgpuTextureRelease(texture: WGPUTexture);
10234}
10235unsafe extern "C" {
10236    pub fn wgpuTextureViewSetLabel(textureView: WGPUTextureView, label: WGPUStringView);
10237}
10238unsafe extern "C" {
10239    pub fn wgpuTextureViewAddRef(textureView: WGPUTextureView);
10240}
10241unsafe extern "C" {
10242    pub fn wgpuTextureViewRelease(textureView: WGPUTextureView);
10243}
10244#[repr(C)]
10245#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
10246pub struct __crt_locale_data {
10247    pub _address: u8,
10248}
10249#[repr(C)]
10250#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
10251pub struct __crt_multibyte_data {
10252    pub _address: u8,
10253}