1pub 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)]
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};
167#[repr(C)]
168#[derive(Debug, Copy, Clone)]
169pub struct __crt_locale_pointers {
170 pub locinfo: *mut __crt_locale_data,
171 pub mbcinfo: *mut __crt_multibyte_data,
172}
173#[allow(clippy::unnecessary_operation, clippy::identity_op)]
174const _: () = {
175 ["Size of __crt_locale_pointers"][::core::mem::size_of::<__crt_locale_pointers>() - 16usize];
176 ["Alignment of __crt_locale_pointers"]
177 [::core::mem::align_of::<__crt_locale_pointers>() - 8usize];
178 ["Offset of field: __crt_locale_pointers::locinfo"]
179 [::core::mem::offset_of!(__crt_locale_pointers, locinfo) - 0usize];
180 ["Offset of field: __crt_locale_pointers::mbcinfo"]
181 [::core::mem::offset_of!(__crt_locale_pointers, mbcinfo) - 8usize];
182};
183pub type _locale_t = *mut __crt_locale_pointers;
184#[repr(C)]
185#[derive(Debug, Copy, Clone)]
186pub struct _Mbstatet {
187 pub _Wchar: ::core::ffi::c_ulong,
188 pub _Byte: ::core::ffi::c_ushort,
189 pub _State: ::core::ffi::c_ushort,
190}
191#[allow(clippy::unnecessary_operation, clippy::identity_op)]
192const _: () = {
193 ["Size of _Mbstatet"][::core::mem::size_of::<_Mbstatet>() - 8usize];
194 ["Alignment of _Mbstatet"][::core::mem::align_of::<_Mbstatet>() - 4usize];
195 ["Offset of field: _Mbstatet::_Wchar"][::core::mem::offset_of!(_Mbstatet, _Wchar) - 0usize];
196 ["Offset of field: _Mbstatet::_Byte"][::core::mem::offset_of!(_Mbstatet, _Byte) - 4usize];
197 ["Offset of field: _Mbstatet::_State"][::core::mem::offset_of!(_Mbstatet, _State) - 6usize];
198};
199pub type mbstate_t = _Mbstatet;
200pub type time_t = __time64_t;
201pub type rsize_t = usize;
202unsafe extern "C" {
203 pub fn _errno() -> *mut ::core::ffi::c_int;
204}
205unsafe extern "C" {
206 pub fn _set_errno(_Value: ::core::ffi::c_int) -> errno_t;
207}
208unsafe extern "C" {
209 pub fn _get_errno(_Value: *mut ::core::ffi::c_int) -> errno_t;
210}
211unsafe extern "C" {
212 pub fn __threadid() -> ::core::ffi::c_ulong;
213}
214unsafe extern "C" {
215 pub fn __threadhandle() -> usize;
216}
217#[repr(C)]
218#[derive(Debug, Copy, Clone)]
219pub struct _exception {
220 pub type_: ::core::ffi::c_int,
221 pub name: *mut ::core::ffi::c_char,
222 pub arg1: f64,
223 pub arg2: f64,
224 pub retval: f64,
225}
226#[allow(clippy::unnecessary_operation, clippy::identity_op)]
227const _: () = {
228 ["Size of _exception"][::core::mem::size_of::<_exception>() - 40usize];
229 ["Alignment of _exception"][::core::mem::align_of::<_exception>() - 8usize];
230 ["Offset of field: _exception::type_"][::core::mem::offset_of!(_exception, type_) - 0usize];
231 ["Offset of field: _exception::name"][::core::mem::offset_of!(_exception, name) - 8usize];
232 ["Offset of field: _exception::arg1"][::core::mem::offset_of!(_exception, arg1) - 16usize];
233 ["Offset of field: _exception::arg2"][::core::mem::offset_of!(_exception, arg2) - 24usize];
234 ["Offset of field: _exception::retval"][::core::mem::offset_of!(_exception, retval) - 32usize];
235};
236#[repr(C)]
237#[derive(Debug, Copy, Clone)]
238pub struct _complex {
239 pub x: f64,
240 pub y: f64,
241}
242#[allow(clippy::unnecessary_operation, clippy::identity_op)]
243const _: () = {
244 ["Size of _complex"][::core::mem::size_of::<_complex>() - 16usize];
245 ["Alignment of _complex"][::core::mem::align_of::<_complex>() - 8usize];
246 ["Offset of field: _complex::x"][::core::mem::offset_of!(_complex, x) - 0usize];
247 ["Offset of field: _complex::y"][::core::mem::offset_of!(_complex, y) - 8usize];
248};
249pub type float_t = f32;
250pub type double_t = f64;
251unsafe extern "C" {
252 pub static _HUGE: f64;
253}
254unsafe extern "C" {
255 pub fn _fperrraise(_Except: ::core::ffi::c_int);
256}
257unsafe extern "C" {
258 pub fn _dclass(_X: f64) -> ::core::ffi::c_short;
259}
260unsafe extern "C" {
261 pub fn _ldclass(_X: f64) -> ::core::ffi::c_short;
262}
263unsafe extern "C" {
264 pub fn _fdclass(_X: f32) -> ::core::ffi::c_short;
265}
266unsafe extern "C" {
267 pub fn _dsign(_X: f64) -> ::core::ffi::c_int;
268}
269unsafe extern "C" {
270 pub fn _ldsign(_X: f64) -> ::core::ffi::c_int;
271}
272unsafe extern "C" {
273 pub fn _fdsign(_X: f32) -> ::core::ffi::c_int;
274}
275unsafe extern "C" {
276 pub fn _dpcomp(_X: f64, _Y: f64) -> ::core::ffi::c_int;
277}
278unsafe extern "C" {
279 pub fn _ldpcomp(_X: f64, _Y: f64) -> ::core::ffi::c_int;
280}
281unsafe extern "C" {
282 pub fn _fdpcomp(_X: f32, _Y: f32) -> ::core::ffi::c_int;
283}
284unsafe extern "C" {
285 pub fn _dtest(_Px: *mut f64) -> ::core::ffi::c_short;
286}
287unsafe extern "C" {
288 pub fn _ldtest(_Px: *mut f64) -> ::core::ffi::c_short;
289}
290unsafe extern "C" {
291 pub fn _fdtest(_Px: *mut f32) -> ::core::ffi::c_short;
292}
293unsafe extern "C" {
294 pub fn _d_int(_Px: *mut f64, _Xexp: ::core::ffi::c_short) -> ::core::ffi::c_short;
295}
296unsafe extern "C" {
297 pub fn _ld_int(_Px: *mut f64, _Xexp: ::core::ffi::c_short) -> ::core::ffi::c_short;
298}
299unsafe extern "C" {
300 pub fn _fd_int(_Px: *mut f32, _Xexp: ::core::ffi::c_short) -> ::core::ffi::c_short;
301}
302unsafe extern "C" {
303 pub fn _dscale(_Px: *mut f64, _Lexp: ::core::ffi::c_long) -> ::core::ffi::c_short;
304}
305unsafe extern "C" {
306 pub fn _ldscale(_Px: *mut f64, _Lexp: ::core::ffi::c_long) -> ::core::ffi::c_short;
307}
308unsafe extern "C" {
309 pub fn _fdscale(_Px: *mut f32, _Lexp: ::core::ffi::c_long) -> ::core::ffi::c_short;
310}
311unsafe extern "C" {
312 pub fn _dunscale(_Pex: *mut ::core::ffi::c_short, _Px: *mut f64) -> ::core::ffi::c_short;
313}
314unsafe extern "C" {
315 pub fn _ldunscale(_Pex: *mut ::core::ffi::c_short, _Px: *mut f64) -> ::core::ffi::c_short;
316}
317unsafe extern "C" {
318 pub fn _fdunscale(_Pex: *mut ::core::ffi::c_short, _Px: *mut f32) -> ::core::ffi::c_short;
319}
320unsafe extern "C" {
321 pub fn _dexp(_Px: *mut f64, _Y: f64, _Eoff: ::core::ffi::c_long) -> ::core::ffi::c_short;
322}
323unsafe extern "C" {
324 pub fn _ldexp(_Px: *mut f64, _Y: f64, _Eoff: ::core::ffi::c_long) -> ::core::ffi::c_short;
325}
326unsafe extern "C" {
327 pub fn _fdexp(_Px: *mut f32, _Y: f32, _Eoff: ::core::ffi::c_long) -> ::core::ffi::c_short;
328}
329unsafe extern "C" {
330 pub fn _dnorm(_Ps: *mut ::core::ffi::c_ushort) -> ::core::ffi::c_short;
331}
332unsafe extern "C" {
333 pub fn _fdnorm(_Ps: *mut ::core::ffi::c_ushort) -> ::core::ffi::c_short;
334}
335unsafe extern "C" {
336 pub fn _dpoly(_X: f64, _Tab: *const f64, _N: ::core::ffi::c_int) -> f64;
337}
338unsafe extern "C" {
339 pub fn _ldpoly(_X: f64, _Tab: *const f64, _N: ::core::ffi::c_int) -> f64;
340}
341unsafe extern "C" {
342 pub fn _fdpoly(_X: f32, _Tab: *const f32, _N: ::core::ffi::c_int) -> f32;
343}
344unsafe extern "C" {
345 pub fn _dlog(_X: f64, _Baseflag: ::core::ffi::c_int) -> f64;
346}
347unsafe extern "C" {
348 pub fn _ldlog(_X: f64, _Baseflag: ::core::ffi::c_int) -> f64;
349}
350unsafe extern "C" {
351 pub fn _fdlog(_X: f32, _Baseflag: ::core::ffi::c_int) -> f32;
352}
353unsafe extern "C" {
354 pub fn _dsin(_X: f64, _Qoff: ::core::ffi::c_uint) -> f64;
355}
356unsafe extern "C" {
357 pub fn _ldsin(_X: f64, _Qoff: ::core::ffi::c_uint) -> f64;
358}
359unsafe extern "C" {
360 pub fn _fdsin(_X: f32, _Qoff: ::core::ffi::c_uint) -> f32;
361}
362#[repr(C)]
363#[derive(Copy, Clone)]
364pub union _double_val {
365 pub _Sh: [::core::ffi::c_ushort; 4usize],
366 pub _Val: f64,
367}
368#[allow(clippy::unnecessary_operation, clippy::identity_op)]
369const _: () = {
370 ["Size of _double_val"][::core::mem::size_of::<_double_val>() - 8usize];
371 ["Alignment of _double_val"][::core::mem::align_of::<_double_val>() - 8usize];
372 ["Offset of field: _double_val::_Sh"][::core::mem::offset_of!(_double_val, _Sh) - 0usize];
373 ["Offset of field: _double_val::_Val"][::core::mem::offset_of!(_double_val, _Val) - 0usize];
374};
375#[repr(C)]
376#[derive(Copy, Clone)]
377pub union _float_val {
378 pub _Sh: [::core::ffi::c_ushort; 2usize],
379 pub _Val: f32,
380}
381#[allow(clippy::unnecessary_operation, clippy::identity_op)]
382const _: () = {
383 ["Size of _float_val"][::core::mem::size_of::<_float_val>() - 4usize];
384 ["Alignment of _float_val"][::core::mem::align_of::<_float_val>() - 4usize];
385 ["Offset of field: _float_val::_Sh"][::core::mem::offset_of!(_float_val, _Sh) - 0usize];
386 ["Offset of field: _float_val::_Val"][::core::mem::offset_of!(_float_val, _Val) - 0usize];
387};
388#[repr(C)]
389#[derive(Copy, Clone)]
390pub union _ldouble_val {
391 pub _Sh: [::core::ffi::c_ushort; 4usize],
392 pub _Val: f64,
393}
394#[allow(clippy::unnecessary_operation, clippy::identity_op)]
395const _: () = {
396 ["Size of _ldouble_val"][::core::mem::size_of::<_ldouble_val>() - 8usize];
397 ["Alignment of _ldouble_val"][::core::mem::align_of::<_ldouble_val>() - 8usize];
398 ["Offset of field: _ldouble_val::_Sh"][::core::mem::offset_of!(_ldouble_val, _Sh) - 0usize];
399 ["Offset of field: _ldouble_val::_Val"][::core::mem::offset_of!(_ldouble_val, _Val) - 0usize];
400};
401#[repr(C)]
402#[derive(Copy, Clone)]
403pub union _float_const {
404 pub _Word: [::core::ffi::c_ushort; 4usize],
405 pub _Float: f32,
406 pub _Double: f64,
407 pub _Long_double: f64,
408}
409#[allow(clippy::unnecessary_operation, clippy::identity_op)]
410const _: () = {
411 ["Size of _float_const"][::core::mem::size_of::<_float_const>() - 8usize];
412 ["Alignment of _float_const"][::core::mem::align_of::<_float_const>() - 8usize];
413 ["Offset of field: _float_const::_Word"][::core::mem::offset_of!(_float_const, _Word) - 0usize];
414 ["Offset of field: _float_const::_Float"]
415 [::core::mem::offset_of!(_float_const, _Float) - 0usize];
416 ["Offset of field: _float_const::_Double"]
417 [::core::mem::offset_of!(_float_const, _Double) - 0usize];
418 ["Offset of field: _float_const::_Long_double"]
419 [::core::mem::offset_of!(_float_const, _Long_double) - 0usize];
420};
421unsafe extern "C" {
422 pub static _Denorm_C: _float_const;
423}
424unsafe extern "C" {
425 pub static _Inf_C: _float_const;
426}
427unsafe extern "C" {
428 pub static _Nan_C: _float_const;
429}
430unsafe extern "C" {
431 pub static _Snan_C: _float_const;
432}
433unsafe extern "C" {
434 pub static _Hugeval_C: _float_const;
435}
436unsafe extern "C" {
437 pub static _FDenorm_C: _float_const;
438}
439unsafe extern "C" {
440 pub static _FInf_C: _float_const;
441}
442unsafe extern "C" {
443 pub static _FNan_C: _float_const;
444}
445unsafe extern "C" {
446 pub static _FSnan_C: _float_const;
447}
448unsafe extern "C" {
449 pub static _LDenorm_C: _float_const;
450}
451unsafe extern "C" {
452 pub static _LInf_C: _float_const;
453}
454unsafe extern "C" {
455 pub static _LNan_C: _float_const;
456}
457unsafe extern "C" {
458 pub static _LSnan_C: _float_const;
459}
460unsafe extern "C" {
461 pub static _Eps_C: _float_const;
462}
463unsafe extern "C" {
464 pub static _Rteps_C: _float_const;
465}
466unsafe extern "C" {
467 pub static _FEps_C: _float_const;
468}
469unsafe extern "C" {
470 pub static _FRteps_C: _float_const;
471}
472unsafe extern "C" {
473 pub static _LEps_C: _float_const;
474}
475unsafe extern "C" {
476 pub static _LRteps_C: _float_const;
477}
478unsafe extern "C" {
479 pub static _Zero_C: f64;
480}
481unsafe extern "C" {
482 pub static _Xbig_C: f64;
483}
484unsafe extern "C" {
485 pub static _FZero_C: f32;
486}
487unsafe extern "C" {
488 pub static _FXbig_C: f32;
489}
490unsafe extern "C" {
491 pub static _LZero_C: f64;
492}
493unsafe extern "C" {
494 pub static _LXbig_C: f64;
495}
496unsafe extern "C" {
497 pub fn abs(_X: ::core::ffi::c_int) -> ::core::ffi::c_int;
498}
499unsafe extern "C" {
500 pub fn labs(_X: ::core::ffi::c_long) -> ::core::ffi::c_long;
501}
502unsafe extern "C" {
503 pub fn llabs(_X: ::core::ffi::c_longlong) -> ::core::ffi::c_longlong;
504}
505unsafe extern "C" {
506 pub fn acos(_X: f64) -> f64;
507}
508unsafe extern "C" {
509 pub fn asin(_X: f64) -> f64;
510}
511unsafe extern "C" {
512 pub fn atan(_X: f64) -> f64;
513}
514unsafe extern "C" {
515 pub fn atan2(_Y: f64, _X: f64) -> f64;
516}
517unsafe extern "C" {
518 pub fn cos(_X: f64) -> f64;
519}
520unsafe extern "C" {
521 pub fn cosh(_X: f64) -> f64;
522}
523unsafe extern "C" {
524 pub fn exp(_X: f64) -> f64;
525}
526unsafe extern "C" {
527 pub fn fabs(_X: f64) -> f64;
528}
529unsafe extern "C" {
530 pub fn fmod(_X: f64, _Y: f64) -> f64;
531}
532unsafe extern "C" {
533 pub fn log(_X: f64) -> f64;
534}
535unsafe extern "C" {
536 pub fn log10(_X: f64) -> f64;
537}
538unsafe extern "C" {
539 pub fn pow(_X: f64, _Y: f64) -> f64;
540}
541unsafe extern "C" {
542 pub fn sin(_X: f64) -> f64;
543}
544unsafe extern "C" {
545 pub fn sinh(_X: f64) -> f64;
546}
547unsafe extern "C" {
548 pub fn sqrt(_X: f64) -> f64;
549}
550unsafe extern "C" {
551 pub fn tan(_X: f64) -> f64;
552}
553unsafe extern "C" {
554 pub fn tanh(_X: f64) -> f64;
555}
556unsafe extern "C" {
557 pub fn acosh(_X: f64) -> f64;
558}
559unsafe extern "C" {
560 pub fn asinh(_X: f64) -> f64;
561}
562unsafe extern "C" {
563 pub fn atanh(_X: f64) -> f64;
564}
565unsafe extern "C" {
566 pub fn atof(_String: *const ::core::ffi::c_char) -> f64;
567}
568unsafe extern "C" {
569 pub fn _atof_l(_String: *const ::core::ffi::c_char, _Locale: _locale_t) -> f64;
570}
571unsafe extern "C" {
572 pub fn _cabs(_Complex_value: _complex) -> f64;
573}
574unsafe extern "C" {
575 pub fn cbrt(_X: f64) -> f64;
576}
577unsafe extern "C" {
578 pub fn ceil(_X: f64) -> f64;
579}
580unsafe extern "C" {
581 pub fn _chgsign(_X: f64) -> f64;
582}
583unsafe extern "C" {
584 pub fn copysign(_Number: f64, _Sign: f64) -> f64;
585}
586unsafe extern "C" {
587 pub fn _copysign(_Number: f64, _Sign: f64) -> f64;
588}
589unsafe extern "C" {
590 pub fn erf(_X: f64) -> f64;
591}
592unsafe extern "C" {
593 pub fn erfc(_X: f64) -> f64;
594}
595unsafe extern "C" {
596 pub fn exp2(_X: f64) -> f64;
597}
598unsafe extern "C" {
599 pub fn expm1(_X: f64) -> f64;
600}
601unsafe extern "C" {
602 pub fn fdim(_X: f64, _Y: f64) -> f64;
603}
604unsafe extern "C" {
605 pub fn floor(_X: f64) -> f64;
606}
607unsafe extern "C" {
608 pub fn fma(_X: f64, _Y: f64, _Z: f64) -> f64;
609}
610unsafe extern "C" {
611 pub fn fmax(_X: f64, _Y: f64) -> f64;
612}
613unsafe extern "C" {
614 pub fn fmin(_X: f64, _Y: f64) -> f64;
615}
616unsafe extern "C" {
617 pub fn frexp(_X: f64, _Y: *mut ::core::ffi::c_int) -> f64;
618}
619unsafe extern "C" {
620 pub fn hypot(_X: f64, _Y: f64) -> f64;
621}
622unsafe extern "C" {
623 pub fn _hypot(_X: f64, _Y: f64) -> f64;
624}
625unsafe extern "C" {
626 pub fn ilogb(_X: f64) -> ::core::ffi::c_int;
627}
628unsafe extern "C" {
629 pub fn ldexp(_X: f64, _Y: ::core::ffi::c_int) -> f64;
630}
631unsafe extern "C" {
632 pub fn lgamma(_X: f64) -> f64;
633}
634unsafe extern "C" {
635 pub fn llrint(_X: f64) -> ::core::ffi::c_longlong;
636}
637unsafe extern "C" {
638 pub fn llround(_X: f64) -> ::core::ffi::c_longlong;
639}
640unsafe extern "C" {
641 pub fn log1p(_X: f64) -> f64;
642}
643unsafe extern "C" {
644 pub fn log2(_X: f64) -> f64;
645}
646unsafe extern "C" {
647 pub fn logb(_X: f64) -> f64;
648}
649unsafe extern "C" {
650 pub fn lrint(_X: f64) -> ::core::ffi::c_long;
651}
652unsafe extern "C" {
653 pub fn lround(_X: f64) -> ::core::ffi::c_long;
654}
655unsafe extern "C" {
656 pub fn _matherr(_Except: *mut _exception) -> ::core::ffi::c_int;
657}
658unsafe extern "C" {
659 pub fn modf(_X: f64, _Y: *mut f64) -> f64;
660}
661unsafe extern "C" {
662 pub fn nan(_X: *const ::core::ffi::c_char) -> f64;
663}
664unsafe extern "C" {
665 pub fn nearbyint(_X: f64) -> f64;
666}
667unsafe extern "C" {
668 pub fn nextafter(_X: f64, _Y: f64) -> f64;
669}
670unsafe extern "C" {
671 pub fn nexttoward(_X: f64, _Y: f64) -> f64;
672}
673unsafe extern "C" {
674 pub fn remainder(_X: f64, _Y: f64) -> f64;
675}
676unsafe extern "C" {
677 pub fn remquo(_X: f64, _Y: f64, _Z: *mut ::core::ffi::c_int) -> f64;
678}
679unsafe extern "C" {
680 pub fn rint(_X: f64) -> f64;
681}
682unsafe extern "C" {
683 pub fn round(_X: f64) -> f64;
684}
685unsafe extern "C" {
686 pub fn scalbln(_X: f64, _Y: ::core::ffi::c_long) -> f64;
687}
688unsafe extern "C" {
689 pub fn scalbn(_X: f64, _Y: ::core::ffi::c_int) -> f64;
690}
691unsafe extern "C" {
692 pub fn tgamma(_X: f64) -> f64;
693}
694unsafe extern "C" {
695 pub fn trunc(_X: f64) -> f64;
696}
697unsafe extern "C" {
698 pub fn _j0(_X: f64) -> f64;
699}
700unsafe extern "C" {
701 pub fn _j1(_X: f64) -> f64;
702}
703unsafe extern "C" {
704 pub fn _jn(_X: ::core::ffi::c_int, _Y: f64) -> f64;
705}
706unsafe extern "C" {
707 pub fn _y0(_X: f64) -> f64;
708}
709unsafe extern "C" {
710 pub fn _y1(_X: f64) -> f64;
711}
712unsafe extern "C" {
713 pub fn _yn(_X: ::core::ffi::c_int, _Y: f64) -> f64;
714}
715unsafe extern "C" {
716 pub fn acoshf(_X: f32) -> f32;
717}
718unsafe extern "C" {
719 pub fn asinhf(_X: f32) -> f32;
720}
721unsafe extern "C" {
722 pub fn atanhf(_X: f32) -> f32;
723}
724unsafe extern "C" {
725 pub fn cbrtf(_X: f32) -> f32;
726}
727unsafe extern "C" {
728 pub fn _chgsignf(_X: f32) -> f32;
729}
730unsafe extern "C" {
731 pub fn copysignf(_Number: f32, _Sign: f32) -> f32;
732}
733unsafe extern "C" {
734 pub fn _copysignf(_Number: f32, _Sign: f32) -> f32;
735}
736unsafe extern "C" {
737 pub fn erff(_X: f32) -> f32;
738}
739unsafe extern "C" {
740 pub fn erfcf(_X: f32) -> f32;
741}
742unsafe extern "C" {
743 pub fn expm1f(_X: f32) -> f32;
744}
745unsafe extern "C" {
746 pub fn exp2f(_X: f32) -> f32;
747}
748unsafe extern "C" {
749 pub fn fdimf(_X: f32, _Y: f32) -> f32;
750}
751unsafe extern "C" {
752 pub fn fmaf(_X: f32, _Y: f32, _Z: f32) -> f32;
753}
754unsafe extern "C" {
755 pub fn fmaxf(_X: f32, _Y: f32) -> f32;
756}
757unsafe extern "C" {
758 pub fn fminf(_X: f32, _Y: f32) -> f32;
759}
760unsafe extern "C" {
761 pub fn _hypotf(_X: f32, _Y: f32) -> f32;
762}
763unsafe extern "C" {
764 pub fn ilogbf(_X: f32) -> ::core::ffi::c_int;
765}
766unsafe extern "C" {
767 pub fn lgammaf(_X: f32) -> f32;
768}
769unsafe extern "C" {
770 pub fn llrintf(_X: f32) -> ::core::ffi::c_longlong;
771}
772unsafe extern "C" {
773 pub fn llroundf(_X: f32) -> ::core::ffi::c_longlong;
774}
775unsafe extern "C" {
776 pub fn log1pf(_X: f32) -> f32;
777}
778unsafe extern "C" {
779 pub fn log2f(_X: f32) -> f32;
780}
781unsafe extern "C" {
782 pub fn logbf(_X: f32) -> f32;
783}
784unsafe extern "C" {
785 pub fn lrintf(_X: f32) -> ::core::ffi::c_long;
786}
787unsafe extern "C" {
788 pub fn lroundf(_X: f32) -> ::core::ffi::c_long;
789}
790unsafe extern "C" {
791 pub fn nanf(_X: *const ::core::ffi::c_char) -> f32;
792}
793unsafe extern "C" {
794 pub fn nearbyintf(_X: f32) -> f32;
795}
796unsafe extern "C" {
797 pub fn nextafterf(_X: f32, _Y: f32) -> f32;
798}
799unsafe extern "C" {
800 pub fn nexttowardf(_X: f32, _Y: f64) -> f32;
801}
802unsafe extern "C" {
803 pub fn remainderf(_X: f32, _Y: f32) -> f32;
804}
805unsafe extern "C" {
806 pub fn remquof(_X: f32, _Y: f32, _Z: *mut ::core::ffi::c_int) -> f32;
807}
808unsafe extern "C" {
809 pub fn rintf(_X: f32) -> f32;
810}
811unsafe extern "C" {
812 pub fn roundf(_X: f32) -> f32;
813}
814unsafe extern "C" {
815 pub fn scalblnf(_X: f32, _Y: ::core::ffi::c_long) -> f32;
816}
817unsafe extern "C" {
818 pub fn scalbnf(_X: f32, _Y: ::core::ffi::c_int) -> f32;
819}
820unsafe extern "C" {
821 pub fn tgammaf(_X: f32) -> f32;
822}
823unsafe extern "C" {
824 pub fn truncf(_X: f32) -> f32;
825}
826unsafe extern "C" {
827 pub fn _logbf(_X: f32) -> f32;
828}
829unsafe extern "C" {
830 pub fn _nextafterf(_X: f32, _Y: f32) -> f32;
831}
832unsafe extern "C" {
833 pub fn _finitef(_X: f32) -> ::core::ffi::c_int;
834}
835unsafe extern "C" {
836 pub fn _isnanf(_X: f32) -> ::core::ffi::c_int;
837}
838unsafe extern "C" {
839 pub fn _fpclassf(_X: f32) -> ::core::ffi::c_int;
840}
841unsafe extern "C" {
842 pub fn _set_FMA3_enable(_Flag: ::core::ffi::c_int) -> ::core::ffi::c_int;
843}
844unsafe extern "C" {
845 pub fn _get_FMA3_enable() -> ::core::ffi::c_int;
846}
847unsafe extern "C" {
848 pub fn acosf(_X: f32) -> f32;
849}
850unsafe extern "C" {
851 pub fn asinf(_X: f32) -> f32;
852}
853unsafe extern "C" {
854 pub fn atan2f(_Y: f32, _X: f32) -> f32;
855}
856unsafe extern "C" {
857 pub fn atanf(_X: f32) -> f32;
858}
859unsafe extern "C" {
860 pub fn ceilf(_X: f32) -> f32;
861}
862unsafe extern "C" {
863 pub fn cosf(_X: f32) -> f32;
864}
865unsafe extern "C" {
866 pub fn coshf(_X: f32) -> f32;
867}
868unsafe extern "C" {
869 pub fn expf(_X: f32) -> f32;
870}
871unsafe extern "C" {
872 pub fn floorf(_X: f32) -> f32;
873}
874unsafe extern "C" {
875 pub fn fmodf(_X: f32, _Y: f32) -> f32;
876}
877unsafe extern "C" {
878 pub fn log10f(_X: f32) -> f32;
879}
880unsafe extern "C" {
881 pub fn logf(_X: f32) -> f32;
882}
883unsafe extern "C" {
884 pub fn modff(_X: f32, _Y: *mut f32) -> f32;
885}
886unsafe extern "C" {
887 pub fn powf(_X: f32, _Y: f32) -> f32;
888}
889unsafe extern "C" {
890 pub fn sinf(_X: f32) -> f32;
891}
892unsafe extern "C" {
893 pub fn sinhf(_X: f32) -> f32;
894}
895unsafe extern "C" {
896 pub fn sqrtf(_X: f32) -> f32;
897}
898unsafe extern "C" {
899 pub fn tanf(_X: f32) -> f32;
900}
901unsafe extern "C" {
902 pub fn tanhf(_X: f32) -> f32;
903}
904unsafe extern "C" {
905 pub fn acoshl(_X: f64) -> f64;
906}
907unsafe extern "C" {
908 pub fn asinhl(_X: f64) -> f64;
909}
910unsafe extern "C" {
911 pub fn atanhl(_X: f64) -> f64;
912}
913unsafe extern "C" {
914 pub fn cbrtl(_X: f64) -> f64;
915}
916unsafe extern "C" {
917 pub fn copysignl(_Number: f64, _Sign: f64) -> f64;
918}
919unsafe extern "C" {
920 pub fn erfl(_X: f64) -> f64;
921}
922unsafe extern "C" {
923 pub fn erfcl(_X: f64) -> f64;
924}
925unsafe extern "C" {
926 pub fn exp2l(_X: f64) -> f64;
927}
928unsafe extern "C" {
929 pub fn expm1l(_X: f64) -> f64;
930}
931unsafe extern "C" {
932 pub fn fdiml(_X: f64, _Y: f64) -> f64;
933}
934unsafe extern "C" {
935 pub fn fmal(_X: f64, _Y: f64, _Z: f64) -> f64;
936}
937unsafe extern "C" {
938 pub fn fmaxl(_X: f64, _Y: f64) -> f64;
939}
940unsafe extern "C" {
941 pub fn fminl(_X: f64, _Y: f64) -> f64;
942}
943unsafe extern "C" {
944 pub fn ilogbl(_X: f64) -> ::core::ffi::c_int;
945}
946unsafe extern "C" {
947 pub fn lgammal(_X: f64) -> f64;
948}
949unsafe extern "C" {
950 pub fn llrintl(_X: f64) -> ::core::ffi::c_longlong;
951}
952unsafe extern "C" {
953 pub fn llroundl(_X: f64) -> ::core::ffi::c_longlong;
954}
955unsafe extern "C" {
956 pub fn log1pl(_X: f64) -> f64;
957}
958unsafe extern "C" {
959 pub fn log2l(_X: f64) -> f64;
960}
961unsafe extern "C" {
962 pub fn logbl(_X: f64) -> f64;
963}
964unsafe extern "C" {
965 pub fn lrintl(_X: f64) -> ::core::ffi::c_long;
966}
967unsafe extern "C" {
968 pub fn lroundl(_X: f64) -> ::core::ffi::c_long;
969}
970unsafe extern "C" {
971 pub fn nanl(_X: *const ::core::ffi::c_char) -> f64;
972}
973unsafe extern "C" {
974 pub fn nearbyintl(_X: f64) -> f64;
975}
976unsafe extern "C" {
977 pub fn nextafterl(_X: f64, _Y: f64) -> f64;
978}
979unsafe extern "C" {
980 pub fn nexttowardl(_X: f64, _Y: f64) -> f64;
981}
982unsafe extern "C" {
983 pub fn remainderl(_X: f64, _Y: f64) -> f64;
984}
985unsafe extern "C" {
986 pub fn remquol(_X: f64, _Y: f64, _Z: *mut ::core::ffi::c_int) -> f64;
987}
988unsafe extern "C" {
989 pub fn rintl(_X: f64) -> f64;
990}
991unsafe extern "C" {
992 pub fn roundl(_X: f64) -> f64;
993}
994unsafe extern "C" {
995 pub fn scalblnl(_X: f64, _Y: ::core::ffi::c_long) -> f64;
996}
997unsafe extern "C" {
998 pub fn scalbnl(_X: f64, _Y: ::core::ffi::c_int) -> f64;
999}
1000unsafe extern "C" {
1001 pub fn tgammal(_X: f64) -> f64;
1002}
1003unsafe extern "C" {
1004 pub fn truncl(_X: f64) -> f64;
1005}
1006unsafe extern "C" {
1007 pub static mut HUGE: f64;
1008}
1009unsafe extern "C" {
1010 pub fn j0(_X: f64) -> f64;
1011}
1012unsafe extern "C" {
1013 pub fn j1(_X: f64) -> f64;
1014}
1015unsafe extern "C" {
1016 pub fn jn(_X: ::core::ffi::c_int, _Y: f64) -> f64;
1017}
1018unsafe extern "C" {
1019 pub fn y0(_X: f64) -> f64;
1020}
1021unsafe extern "C" {
1022 pub fn y1(_X: f64) -> f64;
1023}
1024unsafe extern "C" {
1025 pub fn yn(_X: ::core::ffi::c_int, _Y: f64) -> f64;
1026}
1027#[repr(C)]
1028#[derive(Debug, Copy, Clone)]
1029pub struct WGPUStringView {
1030 pub data: *const ::core::ffi::c_char,
1031 pub length: usize,
1032}
1033#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1034const _: () = {
1035 ["Size of WGPUStringView"][::core::mem::size_of::<WGPUStringView>() - 16usize];
1036 ["Alignment of WGPUStringView"][::core::mem::align_of::<WGPUStringView>() - 8usize];
1037 ["Offset of field: WGPUStringView::data"]
1038 [::core::mem::offset_of!(WGPUStringView, data) - 0usize];
1039 ["Offset of field: WGPUStringView::length"]
1040 [::core::mem::offset_of!(WGPUStringView, length) - 8usize];
1041};
1042pub type WGPUFlags = u64;
1043pub type WGPUBool = u32;
1044#[repr(C)]
1045#[derive(Debug, Copy, Clone)]
1046pub struct WGPUAdapterImpl {
1047 _unused: [u8; 0],
1048}
1049pub type WGPUAdapter = *mut WGPUAdapterImpl;
1050#[repr(C)]
1051#[derive(Debug, Copy, Clone)]
1052pub struct WGPUBindGroupImpl {
1053 _unused: [u8; 0],
1054}
1055pub type WGPUBindGroup = *mut WGPUBindGroupImpl;
1056#[repr(C)]
1057#[derive(Debug, Copy, Clone)]
1058pub struct WGPUBindGroupLayoutImpl {
1059 _unused: [u8; 0],
1060}
1061pub type WGPUBindGroupLayout = *mut WGPUBindGroupLayoutImpl;
1062#[repr(C)]
1063#[derive(Debug, Copy, Clone)]
1064pub struct WGPUBufferImpl {
1065 _unused: [u8; 0],
1066}
1067pub type WGPUBuffer = *mut WGPUBufferImpl;
1068#[repr(C)]
1069#[derive(Debug, Copy, Clone)]
1070pub struct WGPUCommandBufferImpl {
1071 _unused: [u8; 0],
1072}
1073pub type WGPUCommandBuffer = *mut WGPUCommandBufferImpl;
1074#[repr(C)]
1075#[derive(Debug, Copy, Clone)]
1076pub struct WGPUCommandEncoderImpl {
1077 _unused: [u8; 0],
1078}
1079pub type WGPUCommandEncoder = *mut WGPUCommandEncoderImpl;
1080#[repr(C)]
1081#[derive(Debug, Copy, Clone)]
1082pub struct WGPUComputePassEncoderImpl {
1083 _unused: [u8; 0],
1084}
1085pub type WGPUComputePassEncoder = *mut WGPUComputePassEncoderImpl;
1086#[repr(C)]
1087#[derive(Debug, Copy, Clone)]
1088pub struct WGPUComputePipelineImpl {
1089 _unused: [u8; 0],
1090}
1091pub type WGPUComputePipeline = *mut WGPUComputePipelineImpl;
1092#[repr(C)]
1093#[derive(Debug, Copy, Clone)]
1094pub struct WGPUDeviceImpl {
1095 _unused: [u8; 0],
1096}
1097pub type WGPUDevice = *mut WGPUDeviceImpl;
1098#[repr(C)]
1099#[derive(Debug, Copy, Clone)]
1100pub struct WGPUExternalTextureImpl {
1101 _unused: [u8; 0],
1102}
1103pub type WGPUExternalTexture = *mut WGPUExternalTextureImpl;
1104#[repr(C)]
1105#[derive(Debug, Copy, Clone)]
1106pub struct WGPUInstanceImpl {
1107 _unused: [u8; 0],
1108}
1109pub type WGPUInstance = *mut WGPUInstanceImpl;
1110#[repr(C)]
1111#[derive(Debug, Copy, Clone)]
1112pub struct WGPUPipelineLayoutImpl {
1113 _unused: [u8; 0],
1114}
1115pub type WGPUPipelineLayout = *mut WGPUPipelineLayoutImpl;
1116#[repr(C)]
1117#[derive(Debug, Copy, Clone)]
1118pub struct WGPUQuerySetImpl {
1119 _unused: [u8; 0],
1120}
1121pub type WGPUQuerySet = *mut WGPUQuerySetImpl;
1122#[repr(C)]
1123#[derive(Debug, Copy, Clone)]
1124pub struct WGPUQueueImpl {
1125 _unused: [u8; 0],
1126}
1127pub type WGPUQueue = *mut WGPUQueueImpl;
1128#[repr(C)]
1129#[derive(Debug, Copy, Clone)]
1130pub struct WGPURenderBundleImpl {
1131 _unused: [u8; 0],
1132}
1133pub type WGPURenderBundle = *mut WGPURenderBundleImpl;
1134#[repr(C)]
1135#[derive(Debug, Copy, Clone)]
1136pub struct WGPURenderBundleEncoderImpl {
1137 _unused: [u8; 0],
1138}
1139pub type WGPURenderBundleEncoder = *mut WGPURenderBundleEncoderImpl;
1140#[repr(C)]
1141#[derive(Debug, Copy, Clone)]
1142pub struct WGPURenderPassEncoderImpl {
1143 _unused: [u8; 0],
1144}
1145pub type WGPURenderPassEncoder = *mut WGPURenderPassEncoderImpl;
1146#[repr(C)]
1147#[derive(Debug, Copy, Clone)]
1148pub struct WGPURenderPipelineImpl {
1149 _unused: [u8; 0],
1150}
1151pub type WGPURenderPipeline = *mut WGPURenderPipelineImpl;
1152#[repr(C)]
1153#[derive(Debug, Copy, Clone)]
1154pub struct WGPUSamplerImpl {
1155 _unused: [u8; 0],
1156}
1157pub type WGPUSampler = *mut WGPUSamplerImpl;
1158#[repr(C)]
1159#[derive(Debug, Copy, Clone)]
1160pub struct WGPUShaderModuleImpl {
1161 _unused: [u8; 0],
1162}
1163pub type WGPUShaderModule = *mut WGPUShaderModuleImpl;
1164#[repr(C)]
1165#[derive(Debug, Copy, Clone)]
1166pub struct WGPUSharedBufferMemoryImpl {
1167 _unused: [u8; 0],
1168}
1169pub type WGPUSharedBufferMemory = *mut WGPUSharedBufferMemoryImpl;
1170#[repr(C)]
1171#[derive(Debug, Copy, Clone)]
1172pub struct WGPUSharedFenceImpl {
1173 _unused: [u8; 0],
1174}
1175pub type WGPUSharedFence = *mut WGPUSharedFenceImpl;
1176#[repr(C)]
1177#[derive(Debug, Copy, Clone)]
1178pub struct WGPUSharedTextureMemoryImpl {
1179 _unused: [u8; 0],
1180}
1181pub type WGPUSharedTextureMemory = *mut WGPUSharedTextureMemoryImpl;
1182#[repr(C)]
1183#[derive(Debug, Copy, Clone)]
1184pub struct WGPUSurfaceImpl {
1185 _unused: [u8; 0],
1186}
1187pub type WGPUSurface = *mut WGPUSurfaceImpl;
1188#[repr(C)]
1189#[derive(Debug, Copy, Clone)]
1190pub struct WGPUTextureImpl {
1191 _unused: [u8; 0],
1192}
1193pub type WGPUTexture = *mut WGPUTextureImpl;
1194#[repr(C)]
1195#[derive(Debug, Copy, Clone)]
1196pub struct WGPUTextureViewImpl {
1197 _unused: [u8; 0],
1198}
1199pub type WGPUTextureView = *mut WGPUTextureViewImpl;
1200pub const WGPUAdapterType_WGPUAdapterType_DiscreteGPU: WGPUAdapterType = 1;
1201pub const WGPUAdapterType_WGPUAdapterType_IntegratedGPU: WGPUAdapterType = 2;
1202pub const WGPUAdapterType_WGPUAdapterType_CPU: WGPUAdapterType = 3;
1203pub const WGPUAdapterType_WGPUAdapterType_Unknown: WGPUAdapterType = 4;
1204pub const WGPUAdapterType_WGPUAdapterType_Force32: WGPUAdapterType = 2147483647;
1205pub type WGPUAdapterType = ::core::ffi::c_int;
1206pub const WGPUAddressMode_WGPUAddressMode_Undefined: WGPUAddressMode = 0;
1207pub const WGPUAddressMode_WGPUAddressMode_ClampToEdge: WGPUAddressMode = 1;
1208pub const WGPUAddressMode_WGPUAddressMode_Repeat: WGPUAddressMode = 2;
1209pub const WGPUAddressMode_WGPUAddressMode_MirrorRepeat: WGPUAddressMode = 3;
1210pub const WGPUAddressMode_WGPUAddressMode_Force32: WGPUAddressMode = 2147483647;
1211pub type WGPUAddressMode = ::core::ffi::c_int;
1212pub const WGPUAlphaMode_WGPUAlphaMode_Opaque: WGPUAlphaMode = 1;
1213pub const WGPUAlphaMode_WGPUAlphaMode_Premultiplied: WGPUAlphaMode = 2;
1214pub const WGPUAlphaMode_WGPUAlphaMode_Unpremultiplied: WGPUAlphaMode = 3;
1215pub const WGPUAlphaMode_WGPUAlphaMode_Force32: WGPUAlphaMode = 2147483647;
1216pub type WGPUAlphaMode = ::core::ffi::c_int;
1217pub const WGPUBackendType_WGPUBackendType_Undefined: WGPUBackendType = 0;
1218pub const WGPUBackendType_WGPUBackendType_Null: WGPUBackendType = 1;
1219pub const WGPUBackendType_WGPUBackendType_WebGPU: WGPUBackendType = 2;
1220pub const WGPUBackendType_WGPUBackendType_D3D11: WGPUBackendType = 3;
1221pub const WGPUBackendType_WGPUBackendType_D3D12: WGPUBackendType = 4;
1222pub const WGPUBackendType_WGPUBackendType_Metal: WGPUBackendType = 5;
1223pub const WGPUBackendType_WGPUBackendType_Vulkan: WGPUBackendType = 6;
1224pub const WGPUBackendType_WGPUBackendType_OpenGL: WGPUBackendType = 7;
1225pub const WGPUBackendType_WGPUBackendType_OpenGLES: WGPUBackendType = 8;
1226pub const WGPUBackendType_WGPUBackendType_Force32: WGPUBackendType = 2147483647;
1227pub type WGPUBackendType = ::core::ffi::c_int;
1228pub const WGPUBlendFactor_WGPUBlendFactor_Undefined: WGPUBlendFactor = 0;
1229pub const WGPUBlendFactor_WGPUBlendFactor_Zero: WGPUBlendFactor = 1;
1230pub const WGPUBlendFactor_WGPUBlendFactor_One: WGPUBlendFactor = 2;
1231pub const WGPUBlendFactor_WGPUBlendFactor_Src: WGPUBlendFactor = 3;
1232pub const WGPUBlendFactor_WGPUBlendFactor_OneMinusSrc: WGPUBlendFactor = 4;
1233pub const WGPUBlendFactor_WGPUBlendFactor_SrcAlpha: WGPUBlendFactor = 5;
1234pub const WGPUBlendFactor_WGPUBlendFactor_OneMinusSrcAlpha: WGPUBlendFactor = 6;
1235pub const WGPUBlendFactor_WGPUBlendFactor_Dst: WGPUBlendFactor = 7;
1236pub const WGPUBlendFactor_WGPUBlendFactor_OneMinusDst: WGPUBlendFactor = 8;
1237pub const WGPUBlendFactor_WGPUBlendFactor_DstAlpha: WGPUBlendFactor = 9;
1238pub const WGPUBlendFactor_WGPUBlendFactor_OneMinusDstAlpha: WGPUBlendFactor = 10;
1239pub const WGPUBlendFactor_WGPUBlendFactor_SrcAlphaSaturated: WGPUBlendFactor = 11;
1240pub const WGPUBlendFactor_WGPUBlendFactor_Constant: WGPUBlendFactor = 12;
1241pub const WGPUBlendFactor_WGPUBlendFactor_OneMinusConstant: WGPUBlendFactor = 13;
1242pub const WGPUBlendFactor_WGPUBlendFactor_Src1: WGPUBlendFactor = 14;
1243pub const WGPUBlendFactor_WGPUBlendFactor_OneMinusSrc1: WGPUBlendFactor = 15;
1244pub const WGPUBlendFactor_WGPUBlendFactor_Src1Alpha: WGPUBlendFactor = 16;
1245pub const WGPUBlendFactor_WGPUBlendFactor_OneMinusSrc1Alpha: WGPUBlendFactor = 17;
1246pub const WGPUBlendFactor_WGPUBlendFactor_Force32: WGPUBlendFactor = 2147483647;
1247pub type WGPUBlendFactor = ::core::ffi::c_int;
1248pub const WGPUBlendOperation_WGPUBlendOperation_Undefined: WGPUBlendOperation = 0;
1249pub const WGPUBlendOperation_WGPUBlendOperation_Add: WGPUBlendOperation = 1;
1250pub const WGPUBlendOperation_WGPUBlendOperation_Subtract: WGPUBlendOperation = 2;
1251pub const WGPUBlendOperation_WGPUBlendOperation_ReverseSubtract: WGPUBlendOperation = 3;
1252pub const WGPUBlendOperation_WGPUBlendOperation_Min: WGPUBlendOperation = 4;
1253pub const WGPUBlendOperation_WGPUBlendOperation_Max: WGPUBlendOperation = 5;
1254pub const WGPUBlendOperation_WGPUBlendOperation_Force32: WGPUBlendOperation = 2147483647;
1255pub type WGPUBlendOperation = ::core::ffi::c_int;
1256pub const WGPUBufferBindingType_WGPUBufferBindingType_BindingNotUsed: WGPUBufferBindingType = 0;
1257pub const WGPUBufferBindingType_WGPUBufferBindingType_Undefined: WGPUBufferBindingType = 1;
1258pub const WGPUBufferBindingType_WGPUBufferBindingType_Uniform: WGPUBufferBindingType = 2;
1259pub const WGPUBufferBindingType_WGPUBufferBindingType_Storage: WGPUBufferBindingType = 3;
1260pub const WGPUBufferBindingType_WGPUBufferBindingType_ReadOnlyStorage: WGPUBufferBindingType = 4;
1261pub const WGPUBufferBindingType_WGPUBufferBindingType_Force32: WGPUBufferBindingType = 2147483647;
1262pub type WGPUBufferBindingType = ::core::ffi::c_int;
1263pub const WGPUBufferMapState_WGPUBufferMapState_Unmapped: WGPUBufferMapState = 1;
1264pub const WGPUBufferMapState_WGPUBufferMapState_Pending: WGPUBufferMapState = 2;
1265pub const WGPUBufferMapState_WGPUBufferMapState_Mapped: WGPUBufferMapState = 3;
1266pub const WGPUBufferMapState_WGPUBufferMapState_Force32: WGPUBufferMapState = 2147483647;
1267pub type WGPUBufferMapState = ::core::ffi::c_int;
1268pub const WGPUCallbackMode_WGPUCallbackMode_WaitAnyOnly: WGPUCallbackMode = 1;
1269pub const WGPUCallbackMode_WGPUCallbackMode_AllowProcessEvents: WGPUCallbackMode = 2;
1270pub const WGPUCallbackMode_WGPUCallbackMode_AllowSpontaneous: WGPUCallbackMode = 3;
1271pub const WGPUCallbackMode_WGPUCallbackMode_Force32: WGPUCallbackMode = 2147483647;
1272pub type WGPUCallbackMode = ::core::ffi::c_int;
1273pub const WGPUCompareFunction_WGPUCompareFunction_Undefined: WGPUCompareFunction = 0;
1274pub const WGPUCompareFunction_WGPUCompareFunction_Never: WGPUCompareFunction = 1;
1275pub const WGPUCompareFunction_WGPUCompareFunction_Less: WGPUCompareFunction = 2;
1276pub const WGPUCompareFunction_WGPUCompareFunction_Equal: WGPUCompareFunction = 3;
1277pub const WGPUCompareFunction_WGPUCompareFunction_LessEqual: WGPUCompareFunction = 4;
1278pub const WGPUCompareFunction_WGPUCompareFunction_Greater: WGPUCompareFunction = 5;
1279pub const WGPUCompareFunction_WGPUCompareFunction_NotEqual: WGPUCompareFunction = 6;
1280pub const WGPUCompareFunction_WGPUCompareFunction_GreaterEqual: WGPUCompareFunction = 7;
1281pub const WGPUCompareFunction_WGPUCompareFunction_Always: WGPUCompareFunction = 8;
1282pub const WGPUCompareFunction_WGPUCompareFunction_Force32: WGPUCompareFunction = 2147483647;
1283pub type WGPUCompareFunction = ::core::ffi::c_int;
1284pub const WGPUCompilationInfoRequestStatus_WGPUCompilationInfoRequestStatus_Success:
1285 WGPUCompilationInfoRequestStatus = 1;
1286pub const WGPUCompilationInfoRequestStatus_WGPUCompilationInfoRequestStatus_CallbackCancelled:
1287 WGPUCompilationInfoRequestStatus = 2;
1288pub const WGPUCompilationInfoRequestStatus_WGPUCompilationInfoRequestStatus_Force32:
1289 WGPUCompilationInfoRequestStatus = 2147483647;
1290pub type WGPUCompilationInfoRequestStatus = ::core::ffi::c_int;
1291pub const WGPUCompilationMessageType_WGPUCompilationMessageType_Error: WGPUCompilationMessageType =
1292 1;
1293pub const WGPUCompilationMessageType_WGPUCompilationMessageType_Warning:
1294 WGPUCompilationMessageType = 2;
1295pub const WGPUCompilationMessageType_WGPUCompilationMessageType_Info: WGPUCompilationMessageType =
1296 3;
1297pub const WGPUCompilationMessageType_WGPUCompilationMessageType_Force32:
1298 WGPUCompilationMessageType = 2147483647;
1299pub type WGPUCompilationMessageType = ::core::ffi::c_int;
1300pub const WGPUCompositeAlphaMode_WGPUCompositeAlphaMode_Auto: WGPUCompositeAlphaMode = 0;
1301pub const WGPUCompositeAlphaMode_WGPUCompositeAlphaMode_Opaque: WGPUCompositeAlphaMode = 1;
1302pub const WGPUCompositeAlphaMode_WGPUCompositeAlphaMode_Premultiplied: WGPUCompositeAlphaMode = 2;
1303pub const WGPUCompositeAlphaMode_WGPUCompositeAlphaMode_Unpremultiplied: WGPUCompositeAlphaMode = 3;
1304pub const WGPUCompositeAlphaMode_WGPUCompositeAlphaMode_Inherit: WGPUCompositeAlphaMode = 4;
1305pub const WGPUCompositeAlphaMode_WGPUCompositeAlphaMode_Force32: WGPUCompositeAlphaMode =
1306 2147483647;
1307pub type WGPUCompositeAlphaMode = ::core::ffi::c_int;
1308pub const WGPUCreatePipelineAsyncStatus_WGPUCreatePipelineAsyncStatus_Success:
1309 WGPUCreatePipelineAsyncStatus = 1;
1310pub const WGPUCreatePipelineAsyncStatus_WGPUCreatePipelineAsyncStatus_CallbackCancelled:
1311 WGPUCreatePipelineAsyncStatus = 2;
1312pub const WGPUCreatePipelineAsyncStatus_WGPUCreatePipelineAsyncStatus_ValidationError:
1313 WGPUCreatePipelineAsyncStatus = 3;
1314pub const WGPUCreatePipelineAsyncStatus_WGPUCreatePipelineAsyncStatus_InternalError:
1315 WGPUCreatePipelineAsyncStatus = 4;
1316pub const WGPUCreatePipelineAsyncStatus_WGPUCreatePipelineAsyncStatus_Force32:
1317 WGPUCreatePipelineAsyncStatus = 2147483647;
1318pub type WGPUCreatePipelineAsyncStatus = ::core::ffi::c_int;
1319pub const WGPUCullMode_WGPUCullMode_Undefined: WGPUCullMode = 0;
1320pub const WGPUCullMode_WGPUCullMode_None: WGPUCullMode = 1;
1321pub const WGPUCullMode_WGPUCullMode_Front: WGPUCullMode = 2;
1322pub const WGPUCullMode_WGPUCullMode_Back: WGPUCullMode = 3;
1323pub const WGPUCullMode_WGPUCullMode_Force32: WGPUCullMode = 2147483647;
1324pub type WGPUCullMode = ::core::ffi::c_int;
1325pub const WGPUDeviceLostReason_WGPUDeviceLostReason_Unknown: WGPUDeviceLostReason = 1;
1326pub const WGPUDeviceLostReason_WGPUDeviceLostReason_Destroyed: WGPUDeviceLostReason = 2;
1327pub const WGPUDeviceLostReason_WGPUDeviceLostReason_CallbackCancelled: WGPUDeviceLostReason = 3;
1328pub const WGPUDeviceLostReason_WGPUDeviceLostReason_FailedCreation: WGPUDeviceLostReason = 4;
1329pub const WGPUDeviceLostReason_WGPUDeviceLostReason_Force32: WGPUDeviceLostReason = 2147483647;
1330pub type WGPUDeviceLostReason = ::core::ffi::c_int;
1331pub const WGPUErrorFilter_WGPUErrorFilter_Validation: WGPUErrorFilter = 1;
1332pub const WGPUErrorFilter_WGPUErrorFilter_OutOfMemory: WGPUErrorFilter = 2;
1333pub const WGPUErrorFilter_WGPUErrorFilter_Internal: WGPUErrorFilter = 3;
1334pub const WGPUErrorFilter_WGPUErrorFilter_Force32: WGPUErrorFilter = 2147483647;
1335pub type WGPUErrorFilter = ::core::ffi::c_int;
1336pub const WGPUErrorType_WGPUErrorType_NoError: WGPUErrorType = 1;
1337pub const WGPUErrorType_WGPUErrorType_Validation: WGPUErrorType = 2;
1338pub const WGPUErrorType_WGPUErrorType_OutOfMemory: WGPUErrorType = 3;
1339pub const WGPUErrorType_WGPUErrorType_Internal: WGPUErrorType = 4;
1340pub const WGPUErrorType_WGPUErrorType_Unknown: WGPUErrorType = 5;
1341pub const WGPUErrorType_WGPUErrorType_Force32: WGPUErrorType = 2147483647;
1342pub type WGPUErrorType = ::core::ffi::c_int;
1343pub const WGPUExternalTextureRotation_WGPUExternalTextureRotation_Rotate0Degrees:
1344 WGPUExternalTextureRotation = 1;
1345pub const WGPUExternalTextureRotation_WGPUExternalTextureRotation_Rotate90Degrees:
1346 WGPUExternalTextureRotation = 2;
1347pub const WGPUExternalTextureRotation_WGPUExternalTextureRotation_Rotate180Degrees:
1348 WGPUExternalTextureRotation = 3;
1349pub const WGPUExternalTextureRotation_WGPUExternalTextureRotation_Rotate270Degrees:
1350 WGPUExternalTextureRotation = 4;
1351pub const WGPUExternalTextureRotation_WGPUExternalTextureRotation_Force32:
1352 WGPUExternalTextureRotation = 2147483647;
1353pub type WGPUExternalTextureRotation = ::core::ffi::c_int;
1354pub const WGPUFeatureLevel_WGPUFeatureLevel_Undefined: WGPUFeatureLevel = 0;
1355pub const WGPUFeatureLevel_WGPUFeatureLevel_Compatibility: WGPUFeatureLevel = 1;
1356pub const WGPUFeatureLevel_WGPUFeatureLevel_Core: WGPUFeatureLevel = 2;
1357pub const WGPUFeatureLevel_WGPUFeatureLevel_Force32: WGPUFeatureLevel = 2147483647;
1358pub type WGPUFeatureLevel = ::core::ffi::c_int;
1359pub const WGPUFeatureName_WGPUFeatureName_DepthClipControl: WGPUFeatureName = 1;
1360pub const WGPUFeatureName_WGPUFeatureName_Depth32FloatStencil8: WGPUFeatureName = 2;
1361pub const WGPUFeatureName_WGPUFeatureName_TimestampQuery: WGPUFeatureName = 3;
1362pub const WGPUFeatureName_WGPUFeatureName_TextureCompressionBC: WGPUFeatureName = 4;
1363pub const WGPUFeatureName_WGPUFeatureName_TextureCompressionBCSliced3D: WGPUFeatureName = 5;
1364pub const WGPUFeatureName_WGPUFeatureName_TextureCompressionETC2: WGPUFeatureName = 6;
1365pub const WGPUFeatureName_WGPUFeatureName_TextureCompressionASTC: WGPUFeatureName = 7;
1366pub const WGPUFeatureName_WGPUFeatureName_TextureCompressionASTCSliced3D: WGPUFeatureName = 8;
1367pub const WGPUFeatureName_WGPUFeatureName_IndirectFirstInstance: WGPUFeatureName = 9;
1368pub const WGPUFeatureName_WGPUFeatureName_ShaderF16: WGPUFeatureName = 10;
1369pub const WGPUFeatureName_WGPUFeatureName_RG11B10UfloatRenderable: WGPUFeatureName = 11;
1370pub const WGPUFeatureName_WGPUFeatureName_BGRA8UnormStorage: WGPUFeatureName = 12;
1371pub const WGPUFeatureName_WGPUFeatureName_Float32Filterable: WGPUFeatureName = 13;
1372pub const WGPUFeatureName_WGPUFeatureName_Float32Blendable: WGPUFeatureName = 14;
1373pub const WGPUFeatureName_WGPUFeatureName_ClipDistances: WGPUFeatureName = 15;
1374pub const WGPUFeatureName_WGPUFeatureName_DualSourceBlending: WGPUFeatureName = 16;
1375pub const WGPUFeatureName_WGPUFeatureName_Subgroups: WGPUFeatureName = 17;
1376pub const WGPUFeatureName_WGPUFeatureName_CoreFeaturesAndLimits: WGPUFeatureName = 18;
1377pub const WGPUFeatureName_WGPUFeatureName_DawnInternalUsages: WGPUFeatureName = 327680;
1378pub const WGPUFeatureName_WGPUFeatureName_DawnMultiPlanarFormats: WGPUFeatureName = 327681;
1379pub const WGPUFeatureName_WGPUFeatureName_DawnNative: WGPUFeatureName = 327682;
1380pub const WGPUFeatureName_WGPUFeatureName_ChromiumExperimentalTimestampQueryInsidePasses:
1381 WGPUFeatureName = 327683;
1382pub const WGPUFeatureName_WGPUFeatureName_ImplicitDeviceSynchronization: WGPUFeatureName = 327684;
1383pub const WGPUFeatureName_WGPUFeatureName_TransientAttachments: WGPUFeatureName = 327686;
1384pub const WGPUFeatureName_WGPUFeatureName_MSAARenderToSingleSampled: WGPUFeatureName = 327687;
1385pub const WGPUFeatureName_WGPUFeatureName_D3D11MultithreadProtected: WGPUFeatureName = 327688;
1386pub const WGPUFeatureName_WGPUFeatureName_ANGLETextureSharing: WGPUFeatureName = 327689;
1387pub const WGPUFeatureName_WGPUFeatureName_PixelLocalStorageCoherent: WGPUFeatureName = 327690;
1388pub const WGPUFeatureName_WGPUFeatureName_PixelLocalStorageNonCoherent: WGPUFeatureName = 327691;
1389pub const WGPUFeatureName_WGPUFeatureName_Unorm16TextureFormats: WGPUFeatureName = 327692;
1390pub const WGPUFeatureName_WGPUFeatureName_Snorm16TextureFormats: WGPUFeatureName = 327693;
1391pub const WGPUFeatureName_WGPUFeatureName_MultiPlanarFormatExtendedUsages: WGPUFeatureName = 327694;
1392pub const WGPUFeatureName_WGPUFeatureName_MultiPlanarFormatP010: WGPUFeatureName = 327695;
1393pub const WGPUFeatureName_WGPUFeatureName_HostMappedPointer: WGPUFeatureName = 327696;
1394pub const WGPUFeatureName_WGPUFeatureName_MultiPlanarRenderTargets: WGPUFeatureName = 327697;
1395pub const WGPUFeatureName_WGPUFeatureName_MultiPlanarFormatNv12a: WGPUFeatureName = 327698;
1396pub const WGPUFeatureName_WGPUFeatureName_FramebufferFetch: WGPUFeatureName = 327699;
1397pub const WGPUFeatureName_WGPUFeatureName_BufferMapExtendedUsages: WGPUFeatureName = 327700;
1398pub const WGPUFeatureName_WGPUFeatureName_AdapterPropertiesMemoryHeaps: WGPUFeatureName = 327701;
1399pub const WGPUFeatureName_WGPUFeatureName_AdapterPropertiesD3D: WGPUFeatureName = 327702;
1400pub const WGPUFeatureName_WGPUFeatureName_AdapterPropertiesVk: WGPUFeatureName = 327703;
1401pub const WGPUFeatureName_WGPUFeatureName_R8UnormStorage: WGPUFeatureName = 327704;
1402pub const WGPUFeatureName_WGPUFeatureName_DawnFormatCapabilities: WGPUFeatureName = 327705;
1403pub const WGPUFeatureName_WGPUFeatureName_DawnDrmFormatCapabilities: WGPUFeatureName = 327706;
1404pub const WGPUFeatureName_WGPUFeatureName_Norm16TextureFormats: WGPUFeatureName = 327707;
1405pub const WGPUFeatureName_WGPUFeatureName_MultiPlanarFormatNv16: WGPUFeatureName = 327708;
1406pub const WGPUFeatureName_WGPUFeatureName_MultiPlanarFormatNv24: WGPUFeatureName = 327709;
1407pub const WGPUFeatureName_WGPUFeatureName_MultiPlanarFormatP210: WGPUFeatureName = 327710;
1408pub const WGPUFeatureName_WGPUFeatureName_MultiPlanarFormatP410: WGPUFeatureName = 327711;
1409pub const WGPUFeatureName_WGPUFeatureName_SharedTextureMemoryVkDedicatedAllocation:
1410 WGPUFeatureName = 327712;
1411pub const WGPUFeatureName_WGPUFeatureName_SharedTextureMemoryAHardwareBuffer: WGPUFeatureName =
1412 327713;
1413pub const WGPUFeatureName_WGPUFeatureName_SharedTextureMemoryDmaBuf: WGPUFeatureName = 327714;
1414pub const WGPUFeatureName_WGPUFeatureName_SharedTextureMemoryOpaqueFD: WGPUFeatureName = 327715;
1415pub const WGPUFeatureName_WGPUFeatureName_SharedTextureMemoryZirconHandle: WGPUFeatureName = 327716;
1416pub const WGPUFeatureName_WGPUFeatureName_SharedTextureMemoryDXGISharedHandle: WGPUFeatureName =
1417 327717;
1418pub const WGPUFeatureName_WGPUFeatureName_SharedTextureMemoryD3D11Texture2D: WGPUFeatureName =
1419 327718;
1420pub const WGPUFeatureName_WGPUFeatureName_SharedTextureMemoryIOSurface: WGPUFeatureName = 327719;
1421pub const WGPUFeatureName_WGPUFeatureName_SharedTextureMemoryEGLImage: WGPUFeatureName = 327720;
1422pub const WGPUFeatureName_WGPUFeatureName_SharedFenceVkSemaphoreOpaqueFD: WGPUFeatureName = 327721;
1423pub const WGPUFeatureName_WGPUFeatureName_SharedFenceSyncFD: WGPUFeatureName = 327722;
1424pub const WGPUFeatureName_WGPUFeatureName_SharedFenceVkSemaphoreZirconHandle: WGPUFeatureName =
1425 327723;
1426pub const WGPUFeatureName_WGPUFeatureName_SharedFenceDXGISharedHandle: WGPUFeatureName = 327724;
1427pub const WGPUFeatureName_WGPUFeatureName_SharedFenceMTLSharedEvent: WGPUFeatureName = 327725;
1428pub const WGPUFeatureName_WGPUFeatureName_SharedBufferMemoryD3D12Resource: WGPUFeatureName = 327726;
1429pub const WGPUFeatureName_WGPUFeatureName_StaticSamplers: WGPUFeatureName = 327727;
1430pub const WGPUFeatureName_WGPUFeatureName_YCbCrVulkanSamplers: WGPUFeatureName = 327728;
1431pub const WGPUFeatureName_WGPUFeatureName_ShaderModuleCompilationOptions: WGPUFeatureName = 327729;
1432pub const WGPUFeatureName_WGPUFeatureName_DawnLoadResolveTexture: WGPUFeatureName = 327730;
1433pub const WGPUFeatureName_WGPUFeatureName_DawnPartialLoadResolveTexture: WGPUFeatureName = 327731;
1434pub const WGPUFeatureName_WGPUFeatureName_MultiDrawIndirect: WGPUFeatureName = 327732;
1435pub const WGPUFeatureName_WGPUFeatureName_DawnTexelCopyBufferRowAlignment: WGPUFeatureName = 327733;
1436pub const WGPUFeatureName_WGPUFeatureName_FlexibleTextureViews: WGPUFeatureName = 327734;
1437pub const WGPUFeatureName_WGPUFeatureName_ChromiumExperimentalSubgroupMatrix: WGPUFeatureName =
1438 327735;
1439pub const WGPUFeatureName_WGPUFeatureName_SharedFenceEGLSync: WGPUFeatureName = 327736;
1440pub const WGPUFeatureName_WGPUFeatureName_DawnDeviceAllocatorControl: WGPUFeatureName = 327737;
1441pub const WGPUFeatureName_WGPUFeatureName_Force32: WGPUFeatureName = 2147483647;
1442pub type WGPUFeatureName = ::core::ffi::c_int;
1443pub const WGPUFilterMode_WGPUFilterMode_Undefined: WGPUFilterMode = 0;
1444pub const WGPUFilterMode_WGPUFilterMode_Nearest: WGPUFilterMode = 1;
1445pub const WGPUFilterMode_WGPUFilterMode_Linear: WGPUFilterMode = 2;
1446pub const WGPUFilterMode_WGPUFilterMode_Force32: WGPUFilterMode = 2147483647;
1447pub type WGPUFilterMode = ::core::ffi::c_int;
1448pub const WGPUFrontFace_WGPUFrontFace_Undefined: WGPUFrontFace = 0;
1449pub const WGPUFrontFace_WGPUFrontFace_CCW: WGPUFrontFace = 1;
1450pub const WGPUFrontFace_WGPUFrontFace_CW: WGPUFrontFace = 2;
1451pub const WGPUFrontFace_WGPUFrontFace_Force32: WGPUFrontFace = 2147483647;
1452pub type WGPUFrontFace = ::core::ffi::c_int;
1453pub const WGPUIndexFormat_WGPUIndexFormat_Undefined: WGPUIndexFormat = 0;
1454pub const WGPUIndexFormat_WGPUIndexFormat_Uint16: WGPUIndexFormat = 1;
1455pub const WGPUIndexFormat_WGPUIndexFormat_Uint32: WGPUIndexFormat = 2;
1456pub const WGPUIndexFormat_WGPUIndexFormat_Force32: WGPUIndexFormat = 2147483647;
1457pub type WGPUIndexFormat = ::core::ffi::c_int;
1458pub const WGPULoadOp_WGPULoadOp_Undefined: WGPULoadOp = 0;
1459pub const WGPULoadOp_WGPULoadOp_Load: WGPULoadOp = 1;
1460pub const WGPULoadOp_WGPULoadOp_Clear: WGPULoadOp = 2;
1461pub const WGPULoadOp_WGPULoadOp_ExpandResolveTexture: WGPULoadOp = 327683;
1462pub const WGPULoadOp_WGPULoadOp_Force32: WGPULoadOp = 2147483647;
1463pub type WGPULoadOp = ::core::ffi::c_int;
1464pub const WGPULoggingType_WGPULoggingType_Verbose: WGPULoggingType = 1;
1465pub const WGPULoggingType_WGPULoggingType_Info: WGPULoggingType = 2;
1466pub const WGPULoggingType_WGPULoggingType_Warning: WGPULoggingType = 3;
1467pub const WGPULoggingType_WGPULoggingType_Error: WGPULoggingType = 4;
1468pub const WGPULoggingType_WGPULoggingType_Force32: WGPULoggingType = 2147483647;
1469pub type WGPULoggingType = ::core::ffi::c_int;
1470pub const WGPUMapAsyncStatus_WGPUMapAsyncStatus_Success: WGPUMapAsyncStatus = 1;
1471pub const WGPUMapAsyncStatus_WGPUMapAsyncStatus_CallbackCancelled: WGPUMapAsyncStatus = 2;
1472pub const WGPUMapAsyncStatus_WGPUMapAsyncStatus_Error: WGPUMapAsyncStatus = 3;
1473pub const WGPUMapAsyncStatus_WGPUMapAsyncStatus_Aborted: WGPUMapAsyncStatus = 4;
1474pub const WGPUMapAsyncStatus_WGPUMapAsyncStatus_Force32: WGPUMapAsyncStatus = 2147483647;
1475pub type WGPUMapAsyncStatus = ::core::ffi::c_int;
1476pub const WGPUMipmapFilterMode_WGPUMipmapFilterMode_Undefined: WGPUMipmapFilterMode = 0;
1477pub const WGPUMipmapFilterMode_WGPUMipmapFilterMode_Nearest: WGPUMipmapFilterMode = 1;
1478pub const WGPUMipmapFilterMode_WGPUMipmapFilterMode_Linear: WGPUMipmapFilterMode = 2;
1479pub const WGPUMipmapFilterMode_WGPUMipmapFilterMode_Force32: WGPUMipmapFilterMode = 2147483647;
1480pub type WGPUMipmapFilterMode = ::core::ffi::c_int;
1481pub const WGPUOptionalBool_WGPUOptionalBool_False: WGPUOptionalBool = 0;
1482pub const WGPUOptionalBool_WGPUOptionalBool_True: WGPUOptionalBool = 1;
1483pub const WGPUOptionalBool_WGPUOptionalBool_Undefined: WGPUOptionalBool = 2;
1484pub const WGPUOptionalBool_WGPUOptionalBool_Force32: WGPUOptionalBool = 2147483647;
1485pub type WGPUOptionalBool = ::core::ffi::c_int;
1486pub const WGPUPopErrorScopeStatus_WGPUPopErrorScopeStatus_Success: WGPUPopErrorScopeStatus = 1;
1487pub const WGPUPopErrorScopeStatus_WGPUPopErrorScopeStatus_CallbackCancelled:
1488 WGPUPopErrorScopeStatus = 2;
1489pub const WGPUPopErrorScopeStatus_WGPUPopErrorScopeStatus_Error: WGPUPopErrorScopeStatus = 3;
1490pub const WGPUPopErrorScopeStatus_WGPUPopErrorScopeStatus_Force32: WGPUPopErrorScopeStatus =
1491 2147483647;
1492pub type WGPUPopErrorScopeStatus = ::core::ffi::c_int;
1493pub const WGPUPowerPreference_WGPUPowerPreference_Undefined: WGPUPowerPreference = 0;
1494pub const WGPUPowerPreference_WGPUPowerPreference_LowPower: WGPUPowerPreference = 1;
1495pub const WGPUPowerPreference_WGPUPowerPreference_HighPerformance: WGPUPowerPreference = 2;
1496pub const WGPUPowerPreference_WGPUPowerPreference_Force32: WGPUPowerPreference = 2147483647;
1497pub type WGPUPowerPreference = ::core::ffi::c_int;
1498pub const WGPUPredefinedColorSpace_WGPUPredefinedColorSpace_SRGB: WGPUPredefinedColorSpace = 1;
1499pub const WGPUPredefinedColorSpace_WGPUPredefinedColorSpace_DisplayP3: WGPUPredefinedColorSpace = 2;
1500pub const WGPUPredefinedColorSpace_WGPUPredefinedColorSpace_Force32: WGPUPredefinedColorSpace =
1501 2147483647;
1502pub type WGPUPredefinedColorSpace = ::core::ffi::c_int;
1503pub const WGPUPresentMode_WGPUPresentMode_Undefined: WGPUPresentMode = 0;
1504pub const WGPUPresentMode_WGPUPresentMode_Fifo: WGPUPresentMode = 1;
1505pub const WGPUPresentMode_WGPUPresentMode_FifoRelaxed: WGPUPresentMode = 2;
1506pub const WGPUPresentMode_WGPUPresentMode_Immediate: WGPUPresentMode = 3;
1507pub const WGPUPresentMode_WGPUPresentMode_Mailbox: WGPUPresentMode = 4;
1508pub const WGPUPresentMode_WGPUPresentMode_Force32: WGPUPresentMode = 2147483647;
1509pub type WGPUPresentMode = ::core::ffi::c_int;
1510pub const WGPUPrimitiveTopology_WGPUPrimitiveTopology_Undefined: WGPUPrimitiveTopology = 0;
1511pub const WGPUPrimitiveTopology_WGPUPrimitiveTopology_PointList: WGPUPrimitiveTopology = 1;
1512pub const WGPUPrimitiveTopology_WGPUPrimitiveTopology_LineList: WGPUPrimitiveTopology = 2;
1513pub const WGPUPrimitiveTopology_WGPUPrimitiveTopology_LineStrip: WGPUPrimitiveTopology = 3;
1514pub const WGPUPrimitiveTopology_WGPUPrimitiveTopology_TriangleList: WGPUPrimitiveTopology = 4;
1515pub const WGPUPrimitiveTopology_WGPUPrimitiveTopology_TriangleStrip: WGPUPrimitiveTopology = 5;
1516pub const WGPUPrimitiveTopology_WGPUPrimitiveTopology_Force32: WGPUPrimitiveTopology = 2147483647;
1517pub type WGPUPrimitiveTopology = ::core::ffi::c_int;
1518pub const WGPUQueryType_WGPUQueryType_Occlusion: WGPUQueryType = 1;
1519pub const WGPUQueryType_WGPUQueryType_Timestamp: WGPUQueryType = 2;
1520pub const WGPUQueryType_WGPUQueryType_Force32: WGPUQueryType = 2147483647;
1521pub type WGPUQueryType = ::core::ffi::c_int;
1522pub const WGPUQueueWorkDoneStatus_WGPUQueueWorkDoneStatus_Success: WGPUQueueWorkDoneStatus = 1;
1523pub const WGPUQueueWorkDoneStatus_WGPUQueueWorkDoneStatus_CallbackCancelled:
1524 WGPUQueueWorkDoneStatus = 2;
1525pub const WGPUQueueWorkDoneStatus_WGPUQueueWorkDoneStatus_Error: WGPUQueueWorkDoneStatus = 3;
1526pub const WGPUQueueWorkDoneStatus_WGPUQueueWorkDoneStatus_Force32: WGPUQueueWorkDoneStatus =
1527 2147483647;
1528pub type WGPUQueueWorkDoneStatus = ::core::ffi::c_int;
1529pub const WGPURequestAdapterStatus_WGPURequestAdapterStatus_Success: WGPURequestAdapterStatus = 1;
1530pub const WGPURequestAdapterStatus_WGPURequestAdapterStatus_CallbackCancelled:
1531 WGPURequestAdapterStatus = 2;
1532pub const WGPURequestAdapterStatus_WGPURequestAdapterStatus_Unavailable: WGPURequestAdapterStatus =
1533 3;
1534pub const WGPURequestAdapterStatus_WGPURequestAdapterStatus_Error: WGPURequestAdapterStatus = 4;
1535pub const WGPURequestAdapterStatus_WGPURequestAdapterStatus_Force32: WGPURequestAdapterStatus =
1536 2147483647;
1537pub type WGPURequestAdapterStatus = ::core::ffi::c_int;
1538pub const WGPURequestDeviceStatus_WGPURequestDeviceStatus_Success: WGPURequestDeviceStatus = 1;
1539pub const WGPURequestDeviceStatus_WGPURequestDeviceStatus_CallbackCancelled:
1540 WGPURequestDeviceStatus = 2;
1541pub const WGPURequestDeviceStatus_WGPURequestDeviceStatus_Error: WGPURequestDeviceStatus = 3;
1542pub const WGPURequestDeviceStatus_WGPURequestDeviceStatus_Force32: WGPURequestDeviceStatus =
1543 2147483647;
1544pub type WGPURequestDeviceStatus = ::core::ffi::c_int;
1545pub const WGPUSamplerBindingType_WGPUSamplerBindingType_BindingNotUsed: WGPUSamplerBindingType = 0;
1546pub const WGPUSamplerBindingType_WGPUSamplerBindingType_Undefined: WGPUSamplerBindingType = 1;
1547pub const WGPUSamplerBindingType_WGPUSamplerBindingType_Filtering: WGPUSamplerBindingType = 2;
1548pub const WGPUSamplerBindingType_WGPUSamplerBindingType_NonFiltering: WGPUSamplerBindingType = 3;
1549pub const WGPUSamplerBindingType_WGPUSamplerBindingType_Comparison: WGPUSamplerBindingType = 4;
1550pub const WGPUSamplerBindingType_WGPUSamplerBindingType_Force32: WGPUSamplerBindingType =
1551 2147483647;
1552pub type WGPUSamplerBindingType = ::core::ffi::c_int;
1553pub const WGPUSharedFenceType_WGPUSharedFenceType_VkSemaphoreOpaqueFD: WGPUSharedFenceType = 1;
1554pub const WGPUSharedFenceType_WGPUSharedFenceType_SyncFD: WGPUSharedFenceType = 2;
1555pub const WGPUSharedFenceType_WGPUSharedFenceType_VkSemaphoreZirconHandle: WGPUSharedFenceType = 3;
1556pub const WGPUSharedFenceType_WGPUSharedFenceType_DXGISharedHandle: WGPUSharedFenceType = 4;
1557pub const WGPUSharedFenceType_WGPUSharedFenceType_MTLSharedEvent: WGPUSharedFenceType = 5;
1558pub const WGPUSharedFenceType_WGPUSharedFenceType_EGLSync: WGPUSharedFenceType = 6;
1559pub const WGPUSharedFenceType_WGPUSharedFenceType_Force32: WGPUSharedFenceType = 2147483647;
1560pub type WGPUSharedFenceType = ::core::ffi::c_int;
1561pub const WGPUStatus_WGPUStatus_Success: WGPUStatus = 1;
1562pub const WGPUStatus_WGPUStatus_Error: WGPUStatus = 2;
1563pub const WGPUStatus_WGPUStatus_Force32: WGPUStatus = 2147483647;
1564pub type WGPUStatus = ::core::ffi::c_int;
1565pub const WGPUStencilOperation_WGPUStencilOperation_Undefined: WGPUStencilOperation = 0;
1566pub const WGPUStencilOperation_WGPUStencilOperation_Keep: WGPUStencilOperation = 1;
1567pub const WGPUStencilOperation_WGPUStencilOperation_Zero: WGPUStencilOperation = 2;
1568pub const WGPUStencilOperation_WGPUStencilOperation_Replace: WGPUStencilOperation = 3;
1569pub const WGPUStencilOperation_WGPUStencilOperation_Invert: WGPUStencilOperation = 4;
1570pub const WGPUStencilOperation_WGPUStencilOperation_IncrementClamp: WGPUStencilOperation = 5;
1571pub const WGPUStencilOperation_WGPUStencilOperation_DecrementClamp: WGPUStencilOperation = 6;
1572pub const WGPUStencilOperation_WGPUStencilOperation_IncrementWrap: WGPUStencilOperation = 7;
1573pub const WGPUStencilOperation_WGPUStencilOperation_DecrementWrap: WGPUStencilOperation = 8;
1574pub const WGPUStencilOperation_WGPUStencilOperation_Force32: WGPUStencilOperation = 2147483647;
1575pub type WGPUStencilOperation = ::core::ffi::c_int;
1576pub const WGPUStorageTextureAccess_WGPUStorageTextureAccess_BindingNotUsed:
1577 WGPUStorageTextureAccess = 0;
1578pub const WGPUStorageTextureAccess_WGPUStorageTextureAccess_Undefined: WGPUStorageTextureAccess = 1;
1579pub const WGPUStorageTextureAccess_WGPUStorageTextureAccess_WriteOnly: WGPUStorageTextureAccess = 2;
1580pub const WGPUStorageTextureAccess_WGPUStorageTextureAccess_ReadOnly: WGPUStorageTextureAccess = 3;
1581pub const WGPUStorageTextureAccess_WGPUStorageTextureAccess_ReadWrite: WGPUStorageTextureAccess = 4;
1582pub const WGPUStorageTextureAccess_WGPUStorageTextureAccess_Force32: WGPUStorageTextureAccess =
1583 2147483647;
1584pub type WGPUStorageTextureAccess = ::core::ffi::c_int;
1585pub const WGPUStoreOp_WGPUStoreOp_Undefined: WGPUStoreOp = 0;
1586pub const WGPUStoreOp_WGPUStoreOp_Store: WGPUStoreOp = 1;
1587pub const WGPUStoreOp_WGPUStoreOp_Discard: WGPUStoreOp = 2;
1588pub const WGPUStoreOp_WGPUStoreOp_Force32: WGPUStoreOp = 2147483647;
1589pub type WGPUStoreOp = ::core::ffi::c_int;
1590pub const WGPUSType_WGPUSType_ShaderSourceSPIRV: WGPUSType = 1;
1591pub const WGPUSType_WGPUSType_ShaderSourceWGSL: WGPUSType = 2;
1592pub const WGPUSType_WGPUSType_RenderPassMaxDrawCount: WGPUSType = 3;
1593pub const WGPUSType_WGPUSType_SurfaceSourceMetalLayer: WGPUSType = 4;
1594pub const WGPUSType_WGPUSType_SurfaceSourceWindowsHWND: WGPUSType = 5;
1595pub const WGPUSType_WGPUSType_SurfaceSourceXlibWindow: WGPUSType = 6;
1596pub const WGPUSType_WGPUSType_SurfaceSourceWaylandSurface: WGPUSType = 7;
1597pub const WGPUSType_WGPUSType_SurfaceSourceAndroidNativeWindow: WGPUSType = 8;
1598pub const WGPUSType_WGPUSType_SurfaceSourceXCBWindow: WGPUSType = 9;
1599pub const WGPUSType_WGPUSType_SurfaceColorManagement: WGPUSType = 10;
1600pub const WGPUSType_WGPUSType_RequestAdapterWebXROptions: WGPUSType = 11;
1601pub const WGPUSType_WGPUSType_AdapterPropertiesSubgroups: WGPUSType = 12;
1602pub const WGPUSType_WGPUSType_BindGroupLayoutEntryArraySize: WGPUSType = 13;
1603pub const WGPUSType_WGPUSType_TextureBindingViewDimensionDescriptor: WGPUSType = 131072;
1604pub const WGPUSType_WGPUSType_EmscriptenSurfaceSourceCanvasHTMLSelector: WGPUSType = 262144;
1605pub const WGPUSType_WGPUSType_SurfaceDescriptorFromWindowsCoreWindow: WGPUSType = 327680;
1606pub const WGPUSType_WGPUSType_ExternalTextureBindingEntry: WGPUSType = 327681;
1607pub const WGPUSType_WGPUSType_ExternalTextureBindingLayout: WGPUSType = 327682;
1608pub const WGPUSType_WGPUSType_SurfaceDescriptorFromWindowsUWPSwapChainPanel: WGPUSType = 327683;
1609pub const WGPUSType_WGPUSType_DawnTextureInternalUsageDescriptor: WGPUSType = 327684;
1610pub const WGPUSType_WGPUSType_DawnEncoderInternalUsageDescriptor: WGPUSType = 327685;
1611pub const WGPUSType_WGPUSType_DawnInstanceDescriptor: WGPUSType = 327686;
1612pub const WGPUSType_WGPUSType_DawnCacheDeviceDescriptor: WGPUSType = 327687;
1613pub const WGPUSType_WGPUSType_DawnAdapterPropertiesPowerPreference: WGPUSType = 327688;
1614pub const WGPUSType_WGPUSType_DawnBufferDescriptorErrorInfoFromWireClient: WGPUSType = 327689;
1615pub const WGPUSType_WGPUSType_DawnTogglesDescriptor: WGPUSType = 327690;
1616pub const WGPUSType_WGPUSType_DawnShaderModuleSPIRVOptionsDescriptor: WGPUSType = 327691;
1617pub const WGPUSType_WGPUSType_RequestAdapterOptionsLUID: WGPUSType = 327692;
1618pub const WGPUSType_WGPUSType_RequestAdapterOptionsGetGLProc: WGPUSType = 327693;
1619pub const WGPUSType_WGPUSType_RequestAdapterOptionsD3D11Device: WGPUSType = 327694;
1620pub const WGPUSType_WGPUSType_DawnRenderPassColorAttachmentRenderToSingleSampled: WGPUSType =
1621 327695;
1622pub const WGPUSType_WGPUSType_RenderPassPixelLocalStorage: WGPUSType = 327696;
1623pub const WGPUSType_WGPUSType_PipelineLayoutPixelLocalStorage: WGPUSType = 327697;
1624pub const WGPUSType_WGPUSType_BufferHostMappedPointer: WGPUSType = 327698;
1625pub const WGPUSType_WGPUSType_AdapterPropertiesMemoryHeaps: WGPUSType = 327699;
1626pub const WGPUSType_WGPUSType_AdapterPropertiesD3D: WGPUSType = 327700;
1627pub const WGPUSType_WGPUSType_AdapterPropertiesVk: WGPUSType = 327701;
1628pub const WGPUSType_WGPUSType_DawnWireWGSLControl: WGPUSType = 327702;
1629pub const WGPUSType_WGPUSType_DawnWGSLBlocklist: WGPUSType = 327703;
1630pub const WGPUSType_WGPUSType_DawnDrmFormatCapabilities: WGPUSType = 327704;
1631pub const WGPUSType_WGPUSType_ShaderModuleCompilationOptions: WGPUSType = 327705;
1632pub const WGPUSType_WGPUSType_ColorTargetStateExpandResolveTextureDawn: WGPUSType = 327706;
1633pub const WGPUSType_WGPUSType_RenderPassDescriptorExpandResolveRect: WGPUSType = 327707;
1634pub const WGPUSType_WGPUSType_SharedTextureMemoryVkDedicatedAllocationDescriptor: WGPUSType =
1635 327708;
1636pub const WGPUSType_WGPUSType_SharedTextureMemoryAHardwareBufferDescriptor: WGPUSType = 327709;
1637pub const WGPUSType_WGPUSType_SharedTextureMemoryDmaBufDescriptor: WGPUSType = 327710;
1638pub const WGPUSType_WGPUSType_SharedTextureMemoryOpaqueFDDescriptor: WGPUSType = 327711;
1639pub const WGPUSType_WGPUSType_SharedTextureMemoryZirconHandleDescriptor: WGPUSType = 327712;
1640pub const WGPUSType_WGPUSType_SharedTextureMemoryDXGISharedHandleDescriptor: WGPUSType = 327713;
1641pub const WGPUSType_WGPUSType_SharedTextureMemoryD3D11Texture2DDescriptor: WGPUSType = 327714;
1642pub const WGPUSType_WGPUSType_SharedTextureMemoryIOSurfaceDescriptor: WGPUSType = 327715;
1643pub const WGPUSType_WGPUSType_SharedTextureMemoryEGLImageDescriptor: WGPUSType = 327716;
1644pub const WGPUSType_WGPUSType_SharedTextureMemoryInitializedBeginState: WGPUSType = 327717;
1645pub const WGPUSType_WGPUSType_SharedTextureMemoryInitializedEndState: WGPUSType = 327718;
1646pub const WGPUSType_WGPUSType_SharedTextureMemoryVkImageLayoutBeginState: WGPUSType = 327719;
1647pub const WGPUSType_WGPUSType_SharedTextureMemoryVkImageLayoutEndState: WGPUSType = 327720;
1648pub const WGPUSType_WGPUSType_SharedTextureMemoryD3DSwapchainBeginState: WGPUSType = 327721;
1649pub const WGPUSType_WGPUSType_SharedFenceVkSemaphoreOpaqueFDDescriptor: WGPUSType = 327722;
1650pub const WGPUSType_WGPUSType_SharedFenceVkSemaphoreOpaqueFDExportInfo: WGPUSType = 327723;
1651pub const WGPUSType_WGPUSType_SharedFenceSyncFDDescriptor: WGPUSType = 327724;
1652pub const WGPUSType_WGPUSType_SharedFenceSyncFDExportInfo: WGPUSType = 327725;
1653pub const WGPUSType_WGPUSType_SharedFenceVkSemaphoreZirconHandleDescriptor: WGPUSType = 327726;
1654pub const WGPUSType_WGPUSType_SharedFenceVkSemaphoreZirconHandleExportInfo: WGPUSType = 327727;
1655pub const WGPUSType_WGPUSType_SharedFenceDXGISharedHandleDescriptor: WGPUSType = 327728;
1656pub const WGPUSType_WGPUSType_SharedFenceDXGISharedHandleExportInfo: WGPUSType = 327729;
1657pub const WGPUSType_WGPUSType_SharedFenceMTLSharedEventDescriptor: WGPUSType = 327730;
1658pub const WGPUSType_WGPUSType_SharedFenceMTLSharedEventExportInfo: WGPUSType = 327731;
1659pub const WGPUSType_WGPUSType_SharedBufferMemoryD3D12ResourceDescriptor: WGPUSType = 327732;
1660pub const WGPUSType_WGPUSType_StaticSamplerBindingLayout: WGPUSType = 327733;
1661pub const WGPUSType_WGPUSType_YCbCrVkDescriptor: WGPUSType = 327734;
1662pub const WGPUSType_WGPUSType_SharedTextureMemoryAHardwareBufferProperties: WGPUSType = 327735;
1663pub const WGPUSType_WGPUSType_AHardwareBufferProperties: WGPUSType = 327736;
1664pub const WGPUSType_WGPUSType_DawnTexelCopyBufferRowAlignmentLimits: WGPUSType = 327738;
1665pub const WGPUSType_WGPUSType_AdapterPropertiesSubgroupMatrixConfigs: WGPUSType = 327739;
1666pub const WGPUSType_WGPUSType_SharedFenceEGLSyncDescriptor: WGPUSType = 327740;
1667pub const WGPUSType_WGPUSType_SharedFenceEGLSyncExportInfo: WGPUSType = 327741;
1668pub const WGPUSType_WGPUSType_DawnInjectedInvalidSType: WGPUSType = 327742;
1669pub const WGPUSType_WGPUSType_DawnCompilationMessageUtf16: WGPUSType = 327743;
1670pub const WGPUSType_WGPUSType_DawnFakeBufferOOMForTesting: WGPUSType = 327744;
1671pub const WGPUSType_WGPUSType_SurfaceDescriptorFromWindowsWinUISwapChainPanel: WGPUSType = 327745;
1672pub const WGPUSType_WGPUSType_DawnDeviceAllocatorControl: WGPUSType = 327746;
1673pub const WGPUSType_WGPUSType_DawnHostMappedPointerLimits: WGPUSType = 327747;
1674pub const WGPUSType_WGPUSType_RenderPassDescriptorResolveRect: WGPUSType = 327748;
1675pub const WGPUSType_WGPUSType_Force32: WGPUSType = 2147483647;
1676pub type WGPUSType = ::core::ffi::c_int;
1677pub const WGPUSubgroupMatrixComponentType_WGPUSubgroupMatrixComponentType_F32:
1678 WGPUSubgroupMatrixComponentType = 1;
1679pub const WGPUSubgroupMatrixComponentType_WGPUSubgroupMatrixComponentType_F16:
1680 WGPUSubgroupMatrixComponentType = 2;
1681pub const WGPUSubgroupMatrixComponentType_WGPUSubgroupMatrixComponentType_U32:
1682 WGPUSubgroupMatrixComponentType = 3;
1683pub const WGPUSubgroupMatrixComponentType_WGPUSubgroupMatrixComponentType_I32:
1684 WGPUSubgroupMatrixComponentType = 4;
1685pub const WGPUSubgroupMatrixComponentType_WGPUSubgroupMatrixComponentType_Force32:
1686 WGPUSubgroupMatrixComponentType = 2147483647;
1687pub type WGPUSubgroupMatrixComponentType = ::core::ffi::c_int;
1688pub const WGPUSurfaceGetCurrentTextureStatus_WGPUSurfaceGetCurrentTextureStatus_SuccessOptimal:
1689 WGPUSurfaceGetCurrentTextureStatus = 1;
1690pub const WGPUSurfaceGetCurrentTextureStatus_WGPUSurfaceGetCurrentTextureStatus_SuccessSuboptimal : WGPUSurfaceGetCurrentTextureStatus = 2 ;
1691pub const WGPUSurfaceGetCurrentTextureStatus_WGPUSurfaceGetCurrentTextureStatus_Timeout:
1692 WGPUSurfaceGetCurrentTextureStatus = 3;
1693pub const WGPUSurfaceGetCurrentTextureStatus_WGPUSurfaceGetCurrentTextureStatus_Outdated:
1694 WGPUSurfaceGetCurrentTextureStatus = 4;
1695pub const WGPUSurfaceGetCurrentTextureStatus_WGPUSurfaceGetCurrentTextureStatus_Lost:
1696 WGPUSurfaceGetCurrentTextureStatus = 5;
1697pub const WGPUSurfaceGetCurrentTextureStatus_WGPUSurfaceGetCurrentTextureStatus_Error:
1698 WGPUSurfaceGetCurrentTextureStatus = 6;
1699pub const WGPUSurfaceGetCurrentTextureStatus_WGPUSurfaceGetCurrentTextureStatus_Force32:
1700 WGPUSurfaceGetCurrentTextureStatus = 2147483647;
1701pub type WGPUSurfaceGetCurrentTextureStatus = ::core::ffi::c_int;
1702pub const WGPUTextureAspect_WGPUTextureAspect_Undefined: WGPUTextureAspect = 0;
1703pub const WGPUTextureAspect_WGPUTextureAspect_All: WGPUTextureAspect = 1;
1704pub const WGPUTextureAspect_WGPUTextureAspect_StencilOnly: WGPUTextureAspect = 2;
1705pub const WGPUTextureAspect_WGPUTextureAspect_DepthOnly: WGPUTextureAspect = 3;
1706pub const WGPUTextureAspect_WGPUTextureAspect_Plane0Only: WGPUTextureAspect = 327680;
1707pub const WGPUTextureAspect_WGPUTextureAspect_Plane1Only: WGPUTextureAspect = 327681;
1708pub const WGPUTextureAspect_WGPUTextureAspect_Plane2Only: WGPUTextureAspect = 327682;
1709pub const WGPUTextureAspect_WGPUTextureAspect_Force32: WGPUTextureAspect = 2147483647;
1710pub type WGPUTextureAspect = ::core::ffi::c_int;
1711pub const WGPUTextureDimension_WGPUTextureDimension_Undefined: WGPUTextureDimension = 0;
1712pub const WGPUTextureDimension_WGPUTextureDimension_1D: WGPUTextureDimension = 1;
1713pub const WGPUTextureDimension_WGPUTextureDimension_2D: WGPUTextureDimension = 2;
1714pub const WGPUTextureDimension_WGPUTextureDimension_3D: WGPUTextureDimension = 3;
1715pub const WGPUTextureDimension_WGPUTextureDimension_Force32: WGPUTextureDimension = 2147483647;
1716pub type WGPUTextureDimension = ::core::ffi::c_int;
1717pub const WGPUTextureFormat_WGPUTextureFormat_Undefined: WGPUTextureFormat = 0;
1718pub const WGPUTextureFormat_WGPUTextureFormat_R8Unorm: WGPUTextureFormat = 1;
1719pub const WGPUTextureFormat_WGPUTextureFormat_R8Snorm: WGPUTextureFormat = 2;
1720pub const WGPUTextureFormat_WGPUTextureFormat_R8Uint: WGPUTextureFormat = 3;
1721pub const WGPUTextureFormat_WGPUTextureFormat_R8Sint: WGPUTextureFormat = 4;
1722pub const WGPUTextureFormat_WGPUTextureFormat_R16Uint: WGPUTextureFormat = 5;
1723pub const WGPUTextureFormat_WGPUTextureFormat_R16Sint: WGPUTextureFormat = 6;
1724pub const WGPUTextureFormat_WGPUTextureFormat_R16Float: WGPUTextureFormat = 7;
1725pub const WGPUTextureFormat_WGPUTextureFormat_RG8Unorm: WGPUTextureFormat = 8;
1726pub const WGPUTextureFormat_WGPUTextureFormat_RG8Snorm: WGPUTextureFormat = 9;
1727pub const WGPUTextureFormat_WGPUTextureFormat_RG8Uint: WGPUTextureFormat = 10;
1728pub const WGPUTextureFormat_WGPUTextureFormat_RG8Sint: WGPUTextureFormat = 11;
1729pub const WGPUTextureFormat_WGPUTextureFormat_R32Float: WGPUTextureFormat = 12;
1730pub const WGPUTextureFormat_WGPUTextureFormat_R32Uint: WGPUTextureFormat = 13;
1731pub const WGPUTextureFormat_WGPUTextureFormat_R32Sint: WGPUTextureFormat = 14;
1732pub const WGPUTextureFormat_WGPUTextureFormat_RG16Uint: WGPUTextureFormat = 15;
1733pub const WGPUTextureFormat_WGPUTextureFormat_RG16Sint: WGPUTextureFormat = 16;
1734pub const WGPUTextureFormat_WGPUTextureFormat_RG16Float: WGPUTextureFormat = 17;
1735pub const WGPUTextureFormat_WGPUTextureFormat_RGBA8Unorm: WGPUTextureFormat = 18;
1736pub const WGPUTextureFormat_WGPUTextureFormat_RGBA8UnormSrgb: WGPUTextureFormat = 19;
1737pub const WGPUTextureFormat_WGPUTextureFormat_RGBA8Snorm: WGPUTextureFormat = 20;
1738pub const WGPUTextureFormat_WGPUTextureFormat_RGBA8Uint: WGPUTextureFormat = 21;
1739pub const WGPUTextureFormat_WGPUTextureFormat_RGBA8Sint: WGPUTextureFormat = 22;
1740pub const WGPUTextureFormat_WGPUTextureFormat_BGRA8Unorm: WGPUTextureFormat = 23;
1741pub const WGPUTextureFormat_WGPUTextureFormat_BGRA8UnormSrgb: WGPUTextureFormat = 24;
1742pub const WGPUTextureFormat_WGPUTextureFormat_RGB10A2Uint: WGPUTextureFormat = 25;
1743pub const WGPUTextureFormat_WGPUTextureFormat_RGB10A2Unorm: WGPUTextureFormat = 26;
1744pub const WGPUTextureFormat_WGPUTextureFormat_RG11B10Ufloat: WGPUTextureFormat = 27;
1745pub const WGPUTextureFormat_WGPUTextureFormat_RGB9E5Ufloat: WGPUTextureFormat = 28;
1746pub const WGPUTextureFormat_WGPUTextureFormat_RG32Float: WGPUTextureFormat = 29;
1747pub const WGPUTextureFormat_WGPUTextureFormat_RG32Uint: WGPUTextureFormat = 30;
1748pub const WGPUTextureFormat_WGPUTextureFormat_RG32Sint: WGPUTextureFormat = 31;
1749pub const WGPUTextureFormat_WGPUTextureFormat_RGBA16Uint: WGPUTextureFormat = 32;
1750pub const WGPUTextureFormat_WGPUTextureFormat_RGBA16Sint: WGPUTextureFormat = 33;
1751pub const WGPUTextureFormat_WGPUTextureFormat_RGBA16Float: WGPUTextureFormat = 34;
1752pub const WGPUTextureFormat_WGPUTextureFormat_RGBA32Float: WGPUTextureFormat = 35;
1753pub const WGPUTextureFormat_WGPUTextureFormat_RGBA32Uint: WGPUTextureFormat = 36;
1754pub const WGPUTextureFormat_WGPUTextureFormat_RGBA32Sint: WGPUTextureFormat = 37;
1755pub const WGPUTextureFormat_WGPUTextureFormat_Stencil8: WGPUTextureFormat = 38;
1756pub const WGPUTextureFormat_WGPUTextureFormat_Depth16Unorm: WGPUTextureFormat = 39;
1757pub const WGPUTextureFormat_WGPUTextureFormat_Depth24Plus: WGPUTextureFormat = 40;
1758pub const WGPUTextureFormat_WGPUTextureFormat_Depth24PlusStencil8: WGPUTextureFormat = 41;
1759pub const WGPUTextureFormat_WGPUTextureFormat_Depth32Float: WGPUTextureFormat = 42;
1760pub const WGPUTextureFormat_WGPUTextureFormat_Depth32FloatStencil8: WGPUTextureFormat = 43;
1761pub const WGPUTextureFormat_WGPUTextureFormat_BC1RGBAUnorm: WGPUTextureFormat = 44;
1762pub const WGPUTextureFormat_WGPUTextureFormat_BC1RGBAUnormSrgb: WGPUTextureFormat = 45;
1763pub const WGPUTextureFormat_WGPUTextureFormat_BC2RGBAUnorm: WGPUTextureFormat = 46;
1764pub const WGPUTextureFormat_WGPUTextureFormat_BC2RGBAUnormSrgb: WGPUTextureFormat = 47;
1765pub const WGPUTextureFormat_WGPUTextureFormat_BC3RGBAUnorm: WGPUTextureFormat = 48;
1766pub const WGPUTextureFormat_WGPUTextureFormat_BC3RGBAUnormSrgb: WGPUTextureFormat = 49;
1767pub const WGPUTextureFormat_WGPUTextureFormat_BC4RUnorm: WGPUTextureFormat = 50;
1768pub const WGPUTextureFormat_WGPUTextureFormat_BC4RSnorm: WGPUTextureFormat = 51;
1769pub const WGPUTextureFormat_WGPUTextureFormat_BC5RGUnorm: WGPUTextureFormat = 52;
1770pub const WGPUTextureFormat_WGPUTextureFormat_BC5RGSnorm: WGPUTextureFormat = 53;
1771pub const WGPUTextureFormat_WGPUTextureFormat_BC6HRGBUfloat: WGPUTextureFormat = 54;
1772pub const WGPUTextureFormat_WGPUTextureFormat_BC6HRGBFloat: WGPUTextureFormat = 55;
1773pub const WGPUTextureFormat_WGPUTextureFormat_BC7RGBAUnorm: WGPUTextureFormat = 56;
1774pub const WGPUTextureFormat_WGPUTextureFormat_BC7RGBAUnormSrgb: WGPUTextureFormat = 57;
1775pub const WGPUTextureFormat_WGPUTextureFormat_ETC2RGB8Unorm: WGPUTextureFormat = 58;
1776pub const WGPUTextureFormat_WGPUTextureFormat_ETC2RGB8UnormSrgb: WGPUTextureFormat = 59;
1777pub const WGPUTextureFormat_WGPUTextureFormat_ETC2RGB8A1Unorm: WGPUTextureFormat = 60;
1778pub const WGPUTextureFormat_WGPUTextureFormat_ETC2RGB8A1UnormSrgb: WGPUTextureFormat = 61;
1779pub const WGPUTextureFormat_WGPUTextureFormat_ETC2RGBA8Unorm: WGPUTextureFormat = 62;
1780pub const WGPUTextureFormat_WGPUTextureFormat_ETC2RGBA8UnormSrgb: WGPUTextureFormat = 63;
1781pub const WGPUTextureFormat_WGPUTextureFormat_EACR11Unorm: WGPUTextureFormat = 64;
1782pub const WGPUTextureFormat_WGPUTextureFormat_EACR11Snorm: WGPUTextureFormat = 65;
1783pub const WGPUTextureFormat_WGPUTextureFormat_EACRG11Unorm: WGPUTextureFormat = 66;
1784pub const WGPUTextureFormat_WGPUTextureFormat_EACRG11Snorm: WGPUTextureFormat = 67;
1785pub const WGPUTextureFormat_WGPUTextureFormat_ASTC4x4Unorm: WGPUTextureFormat = 68;
1786pub const WGPUTextureFormat_WGPUTextureFormat_ASTC4x4UnormSrgb: WGPUTextureFormat = 69;
1787pub const WGPUTextureFormat_WGPUTextureFormat_ASTC5x4Unorm: WGPUTextureFormat = 70;
1788pub const WGPUTextureFormat_WGPUTextureFormat_ASTC5x4UnormSrgb: WGPUTextureFormat = 71;
1789pub const WGPUTextureFormat_WGPUTextureFormat_ASTC5x5Unorm: WGPUTextureFormat = 72;
1790pub const WGPUTextureFormat_WGPUTextureFormat_ASTC5x5UnormSrgb: WGPUTextureFormat = 73;
1791pub const WGPUTextureFormat_WGPUTextureFormat_ASTC6x5Unorm: WGPUTextureFormat = 74;
1792pub const WGPUTextureFormat_WGPUTextureFormat_ASTC6x5UnormSrgb: WGPUTextureFormat = 75;
1793pub const WGPUTextureFormat_WGPUTextureFormat_ASTC6x6Unorm: WGPUTextureFormat = 76;
1794pub const WGPUTextureFormat_WGPUTextureFormat_ASTC6x6UnormSrgb: WGPUTextureFormat = 77;
1795pub const WGPUTextureFormat_WGPUTextureFormat_ASTC8x5Unorm: WGPUTextureFormat = 78;
1796pub const WGPUTextureFormat_WGPUTextureFormat_ASTC8x5UnormSrgb: WGPUTextureFormat = 79;
1797pub const WGPUTextureFormat_WGPUTextureFormat_ASTC8x6Unorm: WGPUTextureFormat = 80;
1798pub const WGPUTextureFormat_WGPUTextureFormat_ASTC8x6UnormSrgb: WGPUTextureFormat = 81;
1799pub const WGPUTextureFormat_WGPUTextureFormat_ASTC8x8Unorm: WGPUTextureFormat = 82;
1800pub const WGPUTextureFormat_WGPUTextureFormat_ASTC8x8UnormSrgb: WGPUTextureFormat = 83;
1801pub const WGPUTextureFormat_WGPUTextureFormat_ASTC10x5Unorm: WGPUTextureFormat = 84;
1802pub const WGPUTextureFormat_WGPUTextureFormat_ASTC10x5UnormSrgb: WGPUTextureFormat = 85;
1803pub const WGPUTextureFormat_WGPUTextureFormat_ASTC10x6Unorm: WGPUTextureFormat = 86;
1804pub const WGPUTextureFormat_WGPUTextureFormat_ASTC10x6UnormSrgb: WGPUTextureFormat = 87;
1805pub const WGPUTextureFormat_WGPUTextureFormat_ASTC10x8Unorm: WGPUTextureFormat = 88;
1806pub const WGPUTextureFormat_WGPUTextureFormat_ASTC10x8UnormSrgb: WGPUTextureFormat = 89;
1807pub const WGPUTextureFormat_WGPUTextureFormat_ASTC10x10Unorm: WGPUTextureFormat = 90;
1808pub const WGPUTextureFormat_WGPUTextureFormat_ASTC10x10UnormSrgb: WGPUTextureFormat = 91;
1809pub const WGPUTextureFormat_WGPUTextureFormat_ASTC12x10Unorm: WGPUTextureFormat = 92;
1810pub const WGPUTextureFormat_WGPUTextureFormat_ASTC12x10UnormSrgb: WGPUTextureFormat = 93;
1811pub const WGPUTextureFormat_WGPUTextureFormat_ASTC12x12Unorm: WGPUTextureFormat = 94;
1812pub const WGPUTextureFormat_WGPUTextureFormat_ASTC12x12UnormSrgb: WGPUTextureFormat = 95;
1813pub const WGPUTextureFormat_WGPUTextureFormat_R16Unorm: WGPUTextureFormat = 327680;
1814pub const WGPUTextureFormat_WGPUTextureFormat_RG16Unorm: WGPUTextureFormat = 327681;
1815pub const WGPUTextureFormat_WGPUTextureFormat_RGBA16Unorm: WGPUTextureFormat = 327682;
1816pub const WGPUTextureFormat_WGPUTextureFormat_R16Snorm: WGPUTextureFormat = 327683;
1817pub const WGPUTextureFormat_WGPUTextureFormat_RG16Snorm: WGPUTextureFormat = 327684;
1818pub const WGPUTextureFormat_WGPUTextureFormat_RGBA16Snorm: WGPUTextureFormat = 327685;
1819pub const WGPUTextureFormat_WGPUTextureFormat_R8BG8Biplanar420Unorm: WGPUTextureFormat = 327686;
1820pub const WGPUTextureFormat_WGPUTextureFormat_R10X6BG10X6Biplanar420Unorm: WGPUTextureFormat =
1821 327687;
1822pub const WGPUTextureFormat_WGPUTextureFormat_R8BG8A8Triplanar420Unorm: WGPUTextureFormat = 327688;
1823pub const WGPUTextureFormat_WGPUTextureFormat_R8BG8Biplanar422Unorm: WGPUTextureFormat = 327689;
1824pub const WGPUTextureFormat_WGPUTextureFormat_R8BG8Biplanar444Unorm: WGPUTextureFormat = 327690;
1825pub const WGPUTextureFormat_WGPUTextureFormat_R10X6BG10X6Biplanar422Unorm: WGPUTextureFormat =
1826 327691;
1827pub const WGPUTextureFormat_WGPUTextureFormat_R10X6BG10X6Biplanar444Unorm: WGPUTextureFormat =
1828 327692;
1829pub const WGPUTextureFormat_WGPUTextureFormat_External: WGPUTextureFormat = 327693;
1830pub const WGPUTextureFormat_WGPUTextureFormat_Force32: WGPUTextureFormat = 2147483647;
1831pub type WGPUTextureFormat = ::core::ffi::c_int;
1832pub const WGPUTextureSampleType_WGPUTextureSampleType_BindingNotUsed: WGPUTextureSampleType = 0;
1833pub const WGPUTextureSampleType_WGPUTextureSampleType_Undefined: WGPUTextureSampleType = 1;
1834pub const WGPUTextureSampleType_WGPUTextureSampleType_Float: WGPUTextureSampleType = 2;
1835pub const WGPUTextureSampleType_WGPUTextureSampleType_UnfilterableFloat: WGPUTextureSampleType = 3;
1836pub const WGPUTextureSampleType_WGPUTextureSampleType_Depth: WGPUTextureSampleType = 4;
1837pub const WGPUTextureSampleType_WGPUTextureSampleType_Sint: WGPUTextureSampleType = 5;
1838pub const WGPUTextureSampleType_WGPUTextureSampleType_Uint: WGPUTextureSampleType = 6;
1839pub const WGPUTextureSampleType_WGPUTextureSampleType_Force32: WGPUTextureSampleType = 2147483647;
1840pub type WGPUTextureSampleType = ::core::ffi::c_int;
1841pub const WGPUTextureViewDimension_WGPUTextureViewDimension_Undefined: WGPUTextureViewDimension = 0;
1842pub const WGPUTextureViewDimension_WGPUTextureViewDimension_1D: WGPUTextureViewDimension = 1;
1843pub const WGPUTextureViewDimension_WGPUTextureViewDimension_2D: WGPUTextureViewDimension = 2;
1844pub const WGPUTextureViewDimension_WGPUTextureViewDimension_2DArray: WGPUTextureViewDimension = 3;
1845pub const WGPUTextureViewDimension_WGPUTextureViewDimension_Cube: WGPUTextureViewDimension = 4;
1846pub const WGPUTextureViewDimension_WGPUTextureViewDimension_CubeArray: WGPUTextureViewDimension = 5;
1847pub const WGPUTextureViewDimension_WGPUTextureViewDimension_3D: WGPUTextureViewDimension = 6;
1848pub const WGPUTextureViewDimension_WGPUTextureViewDimension_Force32: WGPUTextureViewDimension =
1849 2147483647;
1850pub type WGPUTextureViewDimension = ::core::ffi::c_int;
1851pub const WGPUToneMappingMode_WGPUToneMappingMode_Standard: WGPUToneMappingMode = 1;
1852pub const WGPUToneMappingMode_WGPUToneMappingMode_Extended: WGPUToneMappingMode = 2;
1853pub const WGPUToneMappingMode_WGPUToneMappingMode_Force32: WGPUToneMappingMode = 2147483647;
1854pub type WGPUToneMappingMode = ::core::ffi::c_int;
1855pub const WGPUVertexFormat_WGPUVertexFormat_Uint8: WGPUVertexFormat = 1;
1856pub const WGPUVertexFormat_WGPUVertexFormat_Uint8x2: WGPUVertexFormat = 2;
1857pub const WGPUVertexFormat_WGPUVertexFormat_Uint8x4: WGPUVertexFormat = 3;
1858pub const WGPUVertexFormat_WGPUVertexFormat_Sint8: WGPUVertexFormat = 4;
1859pub const WGPUVertexFormat_WGPUVertexFormat_Sint8x2: WGPUVertexFormat = 5;
1860pub const WGPUVertexFormat_WGPUVertexFormat_Sint8x4: WGPUVertexFormat = 6;
1861pub const WGPUVertexFormat_WGPUVertexFormat_Unorm8: WGPUVertexFormat = 7;
1862pub const WGPUVertexFormat_WGPUVertexFormat_Unorm8x2: WGPUVertexFormat = 8;
1863pub const WGPUVertexFormat_WGPUVertexFormat_Unorm8x4: WGPUVertexFormat = 9;
1864pub const WGPUVertexFormat_WGPUVertexFormat_Snorm8: WGPUVertexFormat = 10;
1865pub const WGPUVertexFormat_WGPUVertexFormat_Snorm8x2: WGPUVertexFormat = 11;
1866pub const WGPUVertexFormat_WGPUVertexFormat_Snorm8x4: WGPUVertexFormat = 12;
1867pub const WGPUVertexFormat_WGPUVertexFormat_Uint16: WGPUVertexFormat = 13;
1868pub const WGPUVertexFormat_WGPUVertexFormat_Uint16x2: WGPUVertexFormat = 14;
1869pub const WGPUVertexFormat_WGPUVertexFormat_Uint16x4: WGPUVertexFormat = 15;
1870pub const WGPUVertexFormat_WGPUVertexFormat_Sint16: WGPUVertexFormat = 16;
1871pub const WGPUVertexFormat_WGPUVertexFormat_Sint16x2: WGPUVertexFormat = 17;
1872pub const WGPUVertexFormat_WGPUVertexFormat_Sint16x4: WGPUVertexFormat = 18;
1873pub const WGPUVertexFormat_WGPUVertexFormat_Unorm16: WGPUVertexFormat = 19;
1874pub const WGPUVertexFormat_WGPUVertexFormat_Unorm16x2: WGPUVertexFormat = 20;
1875pub const WGPUVertexFormat_WGPUVertexFormat_Unorm16x4: WGPUVertexFormat = 21;
1876pub const WGPUVertexFormat_WGPUVertexFormat_Snorm16: WGPUVertexFormat = 22;
1877pub const WGPUVertexFormat_WGPUVertexFormat_Snorm16x2: WGPUVertexFormat = 23;
1878pub const WGPUVertexFormat_WGPUVertexFormat_Snorm16x4: WGPUVertexFormat = 24;
1879pub const WGPUVertexFormat_WGPUVertexFormat_Float16: WGPUVertexFormat = 25;
1880pub const WGPUVertexFormat_WGPUVertexFormat_Float16x2: WGPUVertexFormat = 26;
1881pub const WGPUVertexFormat_WGPUVertexFormat_Float16x4: WGPUVertexFormat = 27;
1882pub const WGPUVertexFormat_WGPUVertexFormat_Float32: WGPUVertexFormat = 28;
1883pub const WGPUVertexFormat_WGPUVertexFormat_Float32x2: WGPUVertexFormat = 29;
1884pub const WGPUVertexFormat_WGPUVertexFormat_Float32x3: WGPUVertexFormat = 30;
1885pub const WGPUVertexFormat_WGPUVertexFormat_Float32x4: WGPUVertexFormat = 31;
1886pub const WGPUVertexFormat_WGPUVertexFormat_Uint32: WGPUVertexFormat = 32;
1887pub const WGPUVertexFormat_WGPUVertexFormat_Uint32x2: WGPUVertexFormat = 33;
1888pub const WGPUVertexFormat_WGPUVertexFormat_Uint32x3: WGPUVertexFormat = 34;
1889pub const WGPUVertexFormat_WGPUVertexFormat_Uint32x4: WGPUVertexFormat = 35;
1890pub const WGPUVertexFormat_WGPUVertexFormat_Sint32: WGPUVertexFormat = 36;
1891pub const WGPUVertexFormat_WGPUVertexFormat_Sint32x2: WGPUVertexFormat = 37;
1892pub const WGPUVertexFormat_WGPUVertexFormat_Sint32x3: WGPUVertexFormat = 38;
1893pub const WGPUVertexFormat_WGPUVertexFormat_Sint32x4: WGPUVertexFormat = 39;
1894pub const WGPUVertexFormat_WGPUVertexFormat_Unorm10_10_10_2: WGPUVertexFormat = 40;
1895pub const WGPUVertexFormat_WGPUVertexFormat_Unorm8x4BGRA: WGPUVertexFormat = 41;
1896pub const WGPUVertexFormat_WGPUVertexFormat_Force32: WGPUVertexFormat = 2147483647;
1897pub type WGPUVertexFormat = ::core::ffi::c_int;
1898pub const WGPUVertexStepMode_WGPUVertexStepMode_Undefined: WGPUVertexStepMode = 0;
1899pub const WGPUVertexStepMode_WGPUVertexStepMode_Vertex: WGPUVertexStepMode = 1;
1900pub const WGPUVertexStepMode_WGPUVertexStepMode_Instance: WGPUVertexStepMode = 2;
1901pub const WGPUVertexStepMode_WGPUVertexStepMode_Force32: WGPUVertexStepMode = 2147483647;
1902pub type WGPUVertexStepMode = ::core::ffi::c_int;
1903pub const WGPUWaitStatus_WGPUWaitStatus_Success: WGPUWaitStatus = 1;
1904pub const WGPUWaitStatus_WGPUWaitStatus_TimedOut: WGPUWaitStatus = 2;
1905pub const WGPUWaitStatus_WGPUWaitStatus_Error: WGPUWaitStatus = 3;
1906pub const WGPUWaitStatus_WGPUWaitStatus_Force32: WGPUWaitStatus = 2147483647;
1907pub type WGPUWaitStatus = ::core::ffi::c_int;
1908pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_ReadonlyAndReadwriteStorageTextures : WGPUWGSLLanguageFeatureName = 1 ;
1909pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_Packed4x8IntegerDotProduct:
1910 WGPUWGSLLanguageFeatureName = 2;
1911pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_UnrestrictedPointerParameters:
1912 WGPUWGSLLanguageFeatureName = 3;
1913pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_PointerCompositeAccess:
1914 WGPUWGSLLanguageFeatureName = 4;
1915pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_SizedBindingArray:
1916 WGPUWGSLLanguageFeatureName = 5;
1917pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_ChromiumTestingUnimplemented:
1918 WGPUWGSLLanguageFeatureName = 327680;
1919pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_ChromiumTestingUnsafeExperimental : WGPUWGSLLanguageFeatureName = 327681 ;
1920pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_ChromiumTestingExperimental:
1921 WGPUWGSLLanguageFeatureName = 327682;
1922pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_ChromiumTestingShippedWithKillswitch : WGPUWGSLLanguageFeatureName = 327683 ;
1923pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_ChromiumTestingShipped:
1924 WGPUWGSLLanguageFeatureName = 327684;
1925pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_Force32:
1926 WGPUWGSLLanguageFeatureName = 2147483647;
1927pub type WGPUWGSLLanguageFeatureName = ::core::ffi::c_int;
1928pub type WGPUBufferUsage = WGPUFlags;
1929pub const WGPUBufferUsage_None: WGPUBufferUsage = 0;
1930pub const WGPUBufferUsage_MapRead: WGPUBufferUsage = 1;
1931pub const WGPUBufferUsage_MapWrite: WGPUBufferUsage = 2;
1932pub const WGPUBufferUsage_CopySrc: WGPUBufferUsage = 4;
1933pub const WGPUBufferUsage_CopyDst: WGPUBufferUsage = 8;
1934pub const WGPUBufferUsage_Index: WGPUBufferUsage = 16;
1935pub const WGPUBufferUsage_Vertex: WGPUBufferUsage = 32;
1936pub const WGPUBufferUsage_Uniform: WGPUBufferUsage = 64;
1937pub const WGPUBufferUsage_Storage: WGPUBufferUsage = 128;
1938pub const WGPUBufferUsage_Indirect: WGPUBufferUsage = 256;
1939pub const WGPUBufferUsage_QueryResolve: WGPUBufferUsage = 512;
1940pub type WGPUColorWriteMask = WGPUFlags;
1941pub const WGPUColorWriteMask_None: WGPUColorWriteMask = 0;
1942pub const WGPUColorWriteMask_Red: WGPUColorWriteMask = 1;
1943pub const WGPUColorWriteMask_Green: WGPUColorWriteMask = 2;
1944pub const WGPUColorWriteMask_Blue: WGPUColorWriteMask = 4;
1945pub const WGPUColorWriteMask_Alpha: WGPUColorWriteMask = 8;
1946pub const WGPUColorWriteMask_All: WGPUColorWriteMask = 15;
1947pub type WGPUHeapProperty = WGPUFlags;
1948pub const WGPUHeapProperty_None: WGPUHeapProperty = 0;
1949pub const WGPUHeapProperty_DeviceLocal: WGPUHeapProperty = 1;
1950pub const WGPUHeapProperty_HostVisible: WGPUHeapProperty = 2;
1951pub const WGPUHeapProperty_HostCoherent: WGPUHeapProperty = 4;
1952pub const WGPUHeapProperty_HostUncached: WGPUHeapProperty = 8;
1953pub const WGPUHeapProperty_HostCached: WGPUHeapProperty = 16;
1954pub type WGPUMapMode = WGPUFlags;
1955pub const WGPUMapMode_None: WGPUMapMode = 0;
1956pub const WGPUMapMode_Read: WGPUMapMode = 1;
1957pub const WGPUMapMode_Write: WGPUMapMode = 2;
1958pub type WGPUShaderStage = WGPUFlags;
1959pub const WGPUShaderStage_None: WGPUShaderStage = 0;
1960pub const WGPUShaderStage_Vertex: WGPUShaderStage = 1;
1961pub const WGPUShaderStage_Fragment: WGPUShaderStage = 2;
1962pub const WGPUShaderStage_Compute: WGPUShaderStage = 4;
1963pub type WGPUTextureUsage = WGPUFlags;
1964pub const WGPUTextureUsage_None: WGPUTextureUsage = 0;
1965pub const WGPUTextureUsage_CopySrc: WGPUTextureUsage = 1;
1966pub const WGPUTextureUsage_CopyDst: WGPUTextureUsage = 2;
1967pub const WGPUTextureUsage_TextureBinding: WGPUTextureUsage = 4;
1968pub const WGPUTextureUsage_StorageBinding: WGPUTextureUsage = 8;
1969pub const WGPUTextureUsage_RenderAttachment: WGPUTextureUsage = 16;
1970pub const WGPUTextureUsage_TransientAttachment: WGPUTextureUsage = 32;
1971pub const WGPUTextureUsage_StorageAttachment: WGPUTextureUsage = 64;
1972pub type WGPUCallback =
1973 ::core::option::Option<unsafe extern "C" fn(userdata: *mut ::core::ffi::c_void)>;
1974pub type WGPUDawnLoadCacheDataFunction = ::core::option::Option<
1975 unsafe extern "C" fn(
1976 key: *const ::core::ffi::c_void,
1977 keySize: usize,
1978 value: *mut ::core::ffi::c_void,
1979 valueSize: usize,
1980 userdata: *mut ::core::ffi::c_void,
1981 ) -> usize,
1982>;
1983pub type WGPUDawnStoreCacheDataFunction = ::core::option::Option<
1984 unsafe extern "C" fn(
1985 key: *const ::core::ffi::c_void,
1986 keySize: usize,
1987 value: *const ::core::ffi::c_void,
1988 valueSize: usize,
1989 userdata: *mut ::core::ffi::c_void,
1990 ),
1991>;
1992pub type WGPUProc = ::core::option::Option<unsafe extern "C" fn()>;
1993pub type WGPUBufferMapCallback = ::core::option::Option<
1994 unsafe extern "C" fn(
1995 status: WGPUMapAsyncStatus,
1996 message: WGPUStringView,
1997 userdata1: *mut ::core::ffi::c_void,
1998 userdata2: *mut ::core::ffi::c_void,
1999 ),
2000>;
2001pub type WGPUCompilationInfoCallback = ::core::option::Option<
2002 unsafe extern "C" fn(
2003 status: WGPUCompilationInfoRequestStatus,
2004 compilationInfo: *const WGPUCompilationInfo,
2005 userdata1: *mut ::core::ffi::c_void,
2006 userdata2: *mut ::core::ffi::c_void,
2007 ),
2008>;
2009pub type WGPUCreateComputePipelineAsyncCallback = ::core::option::Option<
2010 unsafe extern "C" fn(
2011 status: WGPUCreatePipelineAsyncStatus,
2012 pipeline: WGPUComputePipeline,
2013 message: WGPUStringView,
2014 userdata1: *mut ::core::ffi::c_void,
2015 userdata2: *mut ::core::ffi::c_void,
2016 ),
2017>;
2018pub type WGPUCreateRenderPipelineAsyncCallback = ::core::option::Option<
2019 unsafe extern "C" fn(
2020 status: WGPUCreatePipelineAsyncStatus,
2021 pipeline: WGPURenderPipeline,
2022 message: WGPUStringView,
2023 userdata1: *mut ::core::ffi::c_void,
2024 userdata2: *mut ::core::ffi::c_void,
2025 ),
2026>;
2027pub type WGPUDeviceLostCallback = ::core::option::Option<
2028 unsafe extern "C" fn(
2029 device: *const WGPUDevice,
2030 reason: WGPUDeviceLostReason,
2031 message: WGPUStringView,
2032 userdata1: *mut ::core::ffi::c_void,
2033 userdata2: *mut ::core::ffi::c_void,
2034 ),
2035>;
2036pub type WGPULoggingCallback = ::core::option::Option<
2037 unsafe extern "C" fn(
2038 type_: WGPULoggingType,
2039 message: WGPUStringView,
2040 userdata1: *mut ::core::ffi::c_void,
2041 userdata2: *mut ::core::ffi::c_void,
2042 ),
2043>;
2044pub type WGPUPopErrorScopeCallback = ::core::option::Option<
2045 unsafe extern "C" fn(
2046 status: WGPUPopErrorScopeStatus,
2047 type_: WGPUErrorType,
2048 message: WGPUStringView,
2049 userdata1: *mut ::core::ffi::c_void,
2050 userdata2: *mut ::core::ffi::c_void,
2051 ),
2052>;
2053pub type WGPUQueueWorkDoneCallback = ::core::option::Option<
2054 unsafe extern "C" fn(
2055 status: WGPUQueueWorkDoneStatus,
2056 userdata1: *mut ::core::ffi::c_void,
2057 userdata2: *mut ::core::ffi::c_void,
2058 ),
2059>;
2060pub type WGPURequestAdapterCallback = ::core::option::Option<
2061 unsafe extern "C" fn(
2062 status: WGPURequestAdapterStatus,
2063 adapter: WGPUAdapter,
2064 message: WGPUStringView,
2065 userdata1: *mut ::core::ffi::c_void,
2066 userdata2: *mut ::core::ffi::c_void,
2067 ),
2068>;
2069pub type WGPURequestDeviceCallback = ::core::option::Option<
2070 unsafe extern "C" fn(
2071 status: WGPURequestDeviceStatus,
2072 device: WGPUDevice,
2073 message: WGPUStringView,
2074 userdata1: *mut ::core::ffi::c_void,
2075 userdata2: *mut ::core::ffi::c_void,
2076 ),
2077>;
2078pub type WGPUUncapturedErrorCallback = ::core::option::Option<
2079 unsafe extern "C" fn(
2080 device: *const WGPUDevice,
2081 type_: WGPUErrorType,
2082 message: WGPUStringView,
2083 userdata1: *mut ::core::ffi::c_void,
2084 userdata2: *mut ::core::ffi::c_void,
2085 ),
2086>;
2087#[repr(C)]
2088#[derive(Debug, Copy, Clone)]
2089pub struct WGPUChainedStruct {
2090 pub next: *mut WGPUChainedStruct,
2091 pub sType: WGPUSType,
2092}
2093#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2094const _: () = {
2095 ["Size of WGPUChainedStruct"][::core::mem::size_of::<WGPUChainedStruct>() - 16usize];
2096 ["Alignment of WGPUChainedStruct"][::core::mem::align_of::<WGPUChainedStruct>() - 8usize];
2097 ["Offset of field: WGPUChainedStruct::next"]
2098 [::core::mem::offset_of!(WGPUChainedStruct, next) - 0usize];
2099 ["Offset of field: WGPUChainedStruct::sType"]
2100 [::core::mem::offset_of!(WGPUChainedStruct, sType) - 8usize];
2101};
2102#[repr(C)]
2103#[derive(Debug, Copy, Clone)]
2104pub struct WGPUBufferMapCallbackInfo {
2105 pub nextInChain: *mut WGPUChainedStruct,
2106 pub mode: WGPUCallbackMode,
2107 pub callback: WGPUBufferMapCallback,
2108 pub userdata1: *mut ::core::ffi::c_void,
2109 pub userdata2: *mut ::core::ffi::c_void,
2110}
2111#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2112const _: () = {
2113 ["Size of WGPUBufferMapCallbackInfo"]
2114 [::core::mem::size_of::<WGPUBufferMapCallbackInfo>() - 40usize];
2115 ["Alignment of WGPUBufferMapCallbackInfo"]
2116 [::core::mem::align_of::<WGPUBufferMapCallbackInfo>() - 8usize];
2117 ["Offset of field: WGPUBufferMapCallbackInfo::nextInChain"]
2118 [::core::mem::offset_of!(WGPUBufferMapCallbackInfo, nextInChain) - 0usize];
2119 ["Offset of field: WGPUBufferMapCallbackInfo::mode"]
2120 [::core::mem::offset_of!(WGPUBufferMapCallbackInfo, mode) - 8usize];
2121 ["Offset of field: WGPUBufferMapCallbackInfo::callback"]
2122 [::core::mem::offset_of!(WGPUBufferMapCallbackInfo, callback) - 16usize];
2123 ["Offset of field: WGPUBufferMapCallbackInfo::userdata1"]
2124 [::core::mem::offset_of!(WGPUBufferMapCallbackInfo, userdata1) - 24usize];
2125 ["Offset of field: WGPUBufferMapCallbackInfo::userdata2"]
2126 [::core::mem::offset_of!(WGPUBufferMapCallbackInfo, userdata2) - 32usize];
2127};
2128#[repr(C)]
2129#[derive(Debug, Copy, Clone)]
2130pub struct WGPUCompilationInfoCallbackInfo {
2131 pub nextInChain: *mut WGPUChainedStruct,
2132 pub mode: WGPUCallbackMode,
2133 pub callback: WGPUCompilationInfoCallback,
2134 pub userdata1: *mut ::core::ffi::c_void,
2135 pub userdata2: *mut ::core::ffi::c_void,
2136}
2137#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2138const _: () = {
2139 ["Size of WGPUCompilationInfoCallbackInfo"]
2140 [::core::mem::size_of::<WGPUCompilationInfoCallbackInfo>() - 40usize];
2141 ["Alignment of WGPUCompilationInfoCallbackInfo"]
2142 [::core::mem::align_of::<WGPUCompilationInfoCallbackInfo>() - 8usize];
2143 ["Offset of field: WGPUCompilationInfoCallbackInfo::nextInChain"]
2144 [::core::mem::offset_of!(WGPUCompilationInfoCallbackInfo, nextInChain) - 0usize];
2145 ["Offset of field: WGPUCompilationInfoCallbackInfo::mode"]
2146 [::core::mem::offset_of!(WGPUCompilationInfoCallbackInfo, mode) - 8usize];
2147 ["Offset of field: WGPUCompilationInfoCallbackInfo::callback"]
2148 [::core::mem::offset_of!(WGPUCompilationInfoCallbackInfo, callback) - 16usize];
2149 ["Offset of field: WGPUCompilationInfoCallbackInfo::userdata1"]
2150 [::core::mem::offset_of!(WGPUCompilationInfoCallbackInfo, userdata1) - 24usize];
2151 ["Offset of field: WGPUCompilationInfoCallbackInfo::userdata2"]
2152 [::core::mem::offset_of!(WGPUCompilationInfoCallbackInfo, userdata2) - 32usize];
2153};
2154#[repr(C)]
2155#[derive(Debug, Copy, Clone)]
2156pub struct WGPUCreateComputePipelineAsyncCallbackInfo {
2157 pub nextInChain: *mut WGPUChainedStruct,
2158 pub mode: WGPUCallbackMode,
2159 pub callback: WGPUCreateComputePipelineAsyncCallback,
2160 pub userdata1: *mut ::core::ffi::c_void,
2161 pub userdata2: *mut ::core::ffi::c_void,
2162}
2163#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2164const _: () = {
2165 ["Size of WGPUCreateComputePipelineAsyncCallbackInfo"]
2166 [::core::mem::size_of::<WGPUCreateComputePipelineAsyncCallbackInfo>() - 40usize];
2167 ["Alignment of WGPUCreateComputePipelineAsyncCallbackInfo"]
2168 [::core::mem::align_of::<WGPUCreateComputePipelineAsyncCallbackInfo>() - 8usize];
2169 ["Offset of field: WGPUCreateComputePipelineAsyncCallbackInfo::nextInChain"]
2170 [::core::mem::offset_of!(WGPUCreateComputePipelineAsyncCallbackInfo, nextInChain) - 0usize];
2171 ["Offset of field: WGPUCreateComputePipelineAsyncCallbackInfo::mode"]
2172 [::core::mem::offset_of!(WGPUCreateComputePipelineAsyncCallbackInfo, mode) - 8usize];
2173 ["Offset of field: WGPUCreateComputePipelineAsyncCallbackInfo::callback"]
2174 [::core::mem::offset_of!(WGPUCreateComputePipelineAsyncCallbackInfo, callback) - 16usize];
2175 ["Offset of field: WGPUCreateComputePipelineAsyncCallbackInfo::userdata1"]
2176 [::core::mem::offset_of!(WGPUCreateComputePipelineAsyncCallbackInfo, userdata1) - 24usize];
2177 ["Offset of field: WGPUCreateComputePipelineAsyncCallbackInfo::userdata2"]
2178 [::core::mem::offset_of!(WGPUCreateComputePipelineAsyncCallbackInfo, userdata2) - 32usize];
2179};
2180#[repr(C)]
2181#[derive(Debug, Copy, Clone)]
2182pub struct WGPUCreateRenderPipelineAsyncCallbackInfo {
2183 pub nextInChain: *mut WGPUChainedStruct,
2184 pub mode: WGPUCallbackMode,
2185 pub callback: WGPUCreateRenderPipelineAsyncCallback,
2186 pub userdata1: *mut ::core::ffi::c_void,
2187 pub userdata2: *mut ::core::ffi::c_void,
2188}
2189#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2190const _: () = {
2191 ["Size of WGPUCreateRenderPipelineAsyncCallbackInfo"]
2192 [::core::mem::size_of::<WGPUCreateRenderPipelineAsyncCallbackInfo>() - 40usize];
2193 ["Alignment of WGPUCreateRenderPipelineAsyncCallbackInfo"]
2194 [::core::mem::align_of::<WGPUCreateRenderPipelineAsyncCallbackInfo>() - 8usize];
2195 ["Offset of field: WGPUCreateRenderPipelineAsyncCallbackInfo::nextInChain"]
2196 [::core::mem::offset_of!(WGPUCreateRenderPipelineAsyncCallbackInfo, nextInChain) - 0usize];
2197 ["Offset of field: WGPUCreateRenderPipelineAsyncCallbackInfo::mode"]
2198 [::core::mem::offset_of!(WGPUCreateRenderPipelineAsyncCallbackInfo, mode) - 8usize];
2199 ["Offset of field: WGPUCreateRenderPipelineAsyncCallbackInfo::callback"]
2200 [::core::mem::offset_of!(WGPUCreateRenderPipelineAsyncCallbackInfo, callback) - 16usize];
2201 ["Offset of field: WGPUCreateRenderPipelineAsyncCallbackInfo::userdata1"]
2202 [::core::mem::offset_of!(WGPUCreateRenderPipelineAsyncCallbackInfo, userdata1) - 24usize];
2203 ["Offset of field: WGPUCreateRenderPipelineAsyncCallbackInfo::userdata2"]
2204 [::core::mem::offset_of!(WGPUCreateRenderPipelineAsyncCallbackInfo, userdata2) - 32usize];
2205};
2206#[repr(C)]
2207#[derive(Debug, Copy, Clone)]
2208pub struct WGPUDeviceLostCallbackInfo {
2209 pub nextInChain: *mut WGPUChainedStruct,
2210 pub mode: WGPUCallbackMode,
2211 pub callback: WGPUDeviceLostCallback,
2212 pub userdata1: *mut ::core::ffi::c_void,
2213 pub userdata2: *mut ::core::ffi::c_void,
2214}
2215#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2216const _: () = {
2217 ["Size of WGPUDeviceLostCallbackInfo"]
2218 [::core::mem::size_of::<WGPUDeviceLostCallbackInfo>() - 40usize];
2219 ["Alignment of WGPUDeviceLostCallbackInfo"]
2220 [::core::mem::align_of::<WGPUDeviceLostCallbackInfo>() - 8usize];
2221 ["Offset of field: WGPUDeviceLostCallbackInfo::nextInChain"]
2222 [::core::mem::offset_of!(WGPUDeviceLostCallbackInfo, nextInChain) - 0usize];
2223 ["Offset of field: WGPUDeviceLostCallbackInfo::mode"]
2224 [::core::mem::offset_of!(WGPUDeviceLostCallbackInfo, mode) - 8usize];
2225 ["Offset of field: WGPUDeviceLostCallbackInfo::callback"]
2226 [::core::mem::offset_of!(WGPUDeviceLostCallbackInfo, callback) - 16usize];
2227 ["Offset of field: WGPUDeviceLostCallbackInfo::userdata1"]
2228 [::core::mem::offset_of!(WGPUDeviceLostCallbackInfo, userdata1) - 24usize];
2229 ["Offset of field: WGPUDeviceLostCallbackInfo::userdata2"]
2230 [::core::mem::offset_of!(WGPUDeviceLostCallbackInfo, userdata2) - 32usize];
2231};
2232#[repr(C)]
2233#[derive(Debug, Copy, Clone)]
2234pub struct WGPULoggingCallbackInfo {
2235 pub nextInChain: *mut WGPUChainedStruct,
2236 pub callback: WGPULoggingCallback,
2237 pub userdata1: *mut ::core::ffi::c_void,
2238 pub userdata2: *mut ::core::ffi::c_void,
2239}
2240#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2241const _: () = {
2242 ["Size of WGPULoggingCallbackInfo"]
2243 [::core::mem::size_of::<WGPULoggingCallbackInfo>() - 32usize];
2244 ["Alignment of WGPULoggingCallbackInfo"]
2245 [::core::mem::align_of::<WGPULoggingCallbackInfo>() - 8usize];
2246 ["Offset of field: WGPULoggingCallbackInfo::nextInChain"]
2247 [::core::mem::offset_of!(WGPULoggingCallbackInfo, nextInChain) - 0usize];
2248 ["Offset of field: WGPULoggingCallbackInfo::callback"]
2249 [::core::mem::offset_of!(WGPULoggingCallbackInfo, callback) - 8usize];
2250 ["Offset of field: WGPULoggingCallbackInfo::userdata1"]
2251 [::core::mem::offset_of!(WGPULoggingCallbackInfo, userdata1) - 16usize];
2252 ["Offset of field: WGPULoggingCallbackInfo::userdata2"]
2253 [::core::mem::offset_of!(WGPULoggingCallbackInfo, userdata2) - 24usize];
2254};
2255#[repr(C)]
2256#[derive(Debug, Copy, Clone)]
2257pub struct WGPUPopErrorScopeCallbackInfo {
2258 pub nextInChain: *mut WGPUChainedStruct,
2259 pub mode: WGPUCallbackMode,
2260 pub callback: WGPUPopErrorScopeCallback,
2261 pub userdata1: *mut ::core::ffi::c_void,
2262 pub userdata2: *mut ::core::ffi::c_void,
2263}
2264#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2265const _: () = {
2266 ["Size of WGPUPopErrorScopeCallbackInfo"]
2267 [::core::mem::size_of::<WGPUPopErrorScopeCallbackInfo>() - 40usize];
2268 ["Alignment of WGPUPopErrorScopeCallbackInfo"]
2269 [::core::mem::align_of::<WGPUPopErrorScopeCallbackInfo>() - 8usize];
2270 ["Offset of field: WGPUPopErrorScopeCallbackInfo::nextInChain"]
2271 [::core::mem::offset_of!(WGPUPopErrorScopeCallbackInfo, nextInChain) - 0usize];
2272 ["Offset of field: WGPUPopErrorScopeCallbackInfo::mode"]
2273 [::core::mem::offset_of!(WGPUPopErrorScopeCallbackInfo, mode) - 8usize];
2274 ["Offset of field: WGPUPopErrorScopeCallbackInfo::callback"]
2275 [::core::mem::offset_of!(WGPUPopErrorScopeCallbackInfo, callback) - 16usize];
2276 ["Offset of field: WGPUPopErrorScopeCallbackInfo::userdata1"]
2277 [::core::mem::offset_of!(WGPUPopErrorScopeCallbackInfo, userdata1) - 24usize];
2278 ["Offset of field: WGPUPopErrorScopeCallbackInfo::userdata2"]
2279 [::core::mem::offset_of!(WGPUPopErrorScopeCallbackInfo, userdata2) - 32usize];
2280};
2281#[repr(C)]
2282#[derive(Debug, Copy, Clone)]
2283pub struct WGPUQueueWorkDoneCallbackInfo {
2284 pub nextInChain: *mut WGPUChainedStruct,
2285 pub mode: WGPUCallbackMode,
2286 pub callback: WGPUQueueWorkDoneCallback,
2287 pub userdata1: *mut ::core::ffi::c_void,
2288 pub userdata2: *mut ::core::ffi::c_void,
2289}
2290#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2291const _: () = {
2292 ["Size of WGPUQueueWorkDoneCallbackInfo"]
2293 [::core::mem::size_of::<WGPUQueueWorkDoneCallbackInfo>() - 40usize];
2294 ["Alignment of WGPUQueueWorkDoneCallbackInfo"]
2295 [::core::mem::align_of::<WGPUQueueWorkDoneCallbackInfo>() - 8usize];
2296 ["Offset of field: WGPUQueueWorkDoneCallbackInfo::nextInChain"]
2297 [::core::mem::offset_of!(WGPUQueueWorkDoneCallbackInfo, nextInChain) - 0usize];
2298 ["Offset of field: WGPUQueueWorkDoneCallbackInfo::mode"]
2299 [::core::mem::offset_of!(WGPUQueueWorkDoneCallbackInfo, mode) - 8usize];
2300 ["Offset of field: WGPUQueueWorkDoneCallbackInfo::callback"]
2301 [::core::mem::offset_of!(WGPUQueueWorkDoneCallbackInfo, callback) - 16usize];
2302 ["Offset of field: WGPUQueueWorkDoneCallbackInfo::userdata1"]
2303 [::core::mem::offset_of!(WGPUQueueWorkDoneCallbackInfo, userdata1) - 24usize];
2304 ["Offset of field: WGPUQueueWorkDoneCallbackInfo::userdata2"]
2305 [::core::mem::offset_of!(WGPUQueueWorkDoneCallbackInfo, userdata2) - 32usize];
2306};
2307#[repr(C)]
2308#[derive(Debug, Copy, Clone)]
2309pub struct WGPURequestAdapterCallbackInfo {
2310 pub nextInChain: *mut WGPUChainedStruct,
2311 pub mode: WGPUCallbackMode,
2312 pub callback: WGPURequestAdapterCallback,
2313 pub userdata1: *mut ::core::ffi::c_void,
2314 pub userdata2: *mut ::core::ffi::c_void,
2315}
2316#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2317const _: () = {
2318 ["Size of WGPURequestAdapterCallbackInfo"]
2319 [::core::mem::size_of::<WGPURequestAdapterCallbackInfo>() - 40usize];
2320 ["Alignment of WGPURequestAdapterCallbackInfo"]
2321 [::core::mem::align_of::<WGPURequestAdapterCallbackInfo>() - 8usize];
2322 ["Offset of field: WGPURequestAdapterCallbackInfo::nextInChain"]
2323 [::core::mem::offset_of!(WGPURequestAdapterCallbackInfo, nextInChain) - 0usize];
2324 ["Offset of field: WGPURequestAdapterCallbackInfo::mode"]
2325 [::core::mem::offset_of!(WGPURequestAdapterCallbackInfo, mode) - 8usize];
2326 ["Offset of field: WGPURequestAdapterCallbackInfo::callback"]
2327 [::core::mem::offset_of!(WGPURequestAdapterCallbackInfo, callback) - 16usize];
2328 ["Offset of field: WGPURequestAdapterCallbackInfo::userdata1"]
2329 [::core::mem::offset_of!(WGPURequestAdapterCallbackInfo, userdata1) - 24usize];
2330 ["Offset of field: WGPURequestAdapterCallbackInfo::userdata2"]
2331 [::core::mem::offset_of!(WGPURequestAdapterCallbackInfo, userdata2) - 32usize];
2332};
2333#[repr(C)]
2334#[derive(Debug, Copy, Clone)]
2335pub struct WGPURequestDeviceCallbackInfo {
2336 pub nextInChain: *mut WGPUChainedStruct,
2337 pub mode: WGPUCallbackMode,
2338 pub callback: WGPURequestDeviceCallback,
2339 pub userdata1: *mut ::core::ffi::c_void,
2340 pub userdata2: *mut ::core::ffi::c_void,
2341}
2342#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2343const _: () = {
2344 ["Size of WGPURequestDeviceCallbackInfo"]
2345 [::core::mem::size_of::<WGPURequestDeviceCallbackInfo>() - 40usize];
2346 ["Alignment of WGPURequestDeviceCallbackInfo"]
2347 [::core::mem::align_of::<WGPURequestDeviceCallbackInfo>() - 8usize];
2348 ["Offset of field: WGPURequestDeviceCallbackInfo::nextInChain"]
2349 [::core::mem::offset_of!(WGPURequestDeviceCallbackInfo, nextInChain) - 0usize];
2350 ["Offset of field: WGPURequestDeviceCallbackInfo::mode"]
2351 [::core::mem::offset_of!(WGPURequestDeviceCallbackInfo, mode) - 8usize];
2352 ["Offset of field: WGPURequestDeviceCallbackInfo::callback"]
2353 [::core::mem::offset_of!(WGPURequestDeviceCallbackInfo, callback) - 16usize];
2354 ["Offset of field: WGPURequestDeviceCallbackInfo::userdata1"]
2355 [::core::mem::offset_of!(WGPURequestDeviceCallbackInfo, userdata1) - 24usize];
2356 ["Offset of field: WGPURequestDeviceCallbackInfo::userdata2"]
2357 [::core::mem::offset_of!(WGPURequestDeviceCallbackInfo, userdata2) - 32usize];
2358};
2359#[repr(C)]
2360#[derive(Debug, Copy, Clone)]
2361pub struct WGPUUncapturedErrorCallbackInfo {
2362 pub nextInChain: *mut WGPUChainedStruct,
2363 pub callback: WGPUUncapturedErrorCallback,
2364 pub userdata1: *mut ::core::ffi::c_void,
2365 pub userdata2: *mut ::core::ffi::c_void,
2366}
2367#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2368const _: () = {
2369 ["Size of WGPUUncapturedErrorCallbackInfo"]
2370 [::core::mem::size_of::<WGPUUncapturedErrorCallbackInfo>() - 32usize];
2371 ["Alignment of WGPUUncapturedErrorCallbackInfo"]
2372 [::core::mem::align_of::<WGPUUncapturedErrorCallbackInfo>() - 8usize];
2373 ["Offset of field: WGPUUncapturedErrorCallbackInfo::nextInChain"]
2374 [::core::mem::offset_of!(WGPUUncapturedErrorCallbackInfo, nextInChain) - 0usize];
2375 ["Offset of field: WGPUUncapturedErrorCallbackInfo::callback"]
2376 [::core::mem::offset_of!(WGPUUncapturedErrorCallbackInfo, callback) - 8usize];
2377 ["Offset of field: WGPUUncapturedErrorCallbackInfo::userdata1"]
2378 [::core::mem::offset_of!(WGPUUncapturedErrorCallbackInfo, userdata1) - 16usize];
2379 ["Offset of field: WGPUUncapturedErrorCallbackInfo::userdata2"]
2380 [::core::mem::offset_of!(WGPUUncapturedErrorCallbackInfo, userdata2) - 24usize];
2381};
2382#[repr(C)]
2383#[derive(Debug, Copy, Clone)]
2384pub struct WGPUAdapterPropertiesD3D {
2385 pub chain: WGPUChainedStruct,
2386 pub shaderModel: u32,
2387}
2388#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2389const _: () = {
2390 ["Size of WGPUAdapterPropertiesD3D"]
2391 [::core::mem::size_of::<WGPUAdapterPropertiesD3D>() - 24usize];
2392 ["Alignment of WGPUAdapterPropertiesD3D"]
2393 [::core::mem::align_of::<WGPUAdapterPropertiesD3D>() - 8usize];
2394 ["Offset of field: WGPUAdapterPropertiesD3D::chain"]
2395 [::core::mem::offset_of!(WGPUAdapterPropertiesD3D, chain) - 0usize];
2396 ["Offset of field: WGPUAdapterPropertiesD3D::shaderModel"]
2397 [::core::mem::offset_of!(WGPUAdapterPropertiesD3D, shaderModel) - 16usize];
2398};
2399#[repr(C)]
2400#[derive(Debug, Copy, Clone)]
2401pub struct WGPUAdapterPropertiesSubgroups {
2402 pub chain: WGPUChainedStruct,
2403 pub subgroupMinSize: u32,
2404 pub subgroupMaxSize: u32,
2405}
2406#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2407const _: () = {
2408 ["Size of WGPUAdapterPropertiesSubgroups"]
2409 [::core::mem::size_of::<WGPUAdapterPropertiesSubgroups>() - 24usize];
2410 ["Alignment of WGPUAdapterPropertiesSubgroups"]
2411 [::core::mem::align_of::<WGPUAdapterPropertiesSubgroups>() - 8usize];
2412 ["Offset of field: WGPUAdapterPropertiesSubgroups::chain"]
2413 [::core::mem::offset_of!(WGPUAdapterPropertiesSubgroups, chain) - 0usize];
2414 ["Offset of field: WGPUAdapterPropertiesSubgroups::subgroupMinSize"]
2415 [::core::mem::offset_of!(WGPUAdapterPropertiesSubgroups, subgroupMinSize) - 16usize];
2416 ["Offset of field: WGPUAdapterPropertiesSubgroups::subgroupMaxSize"]
2417 [::core::mem::offset_of!(WGPUAdapterPropertiesSubgroups, subgroupMaxSize) - 20usize];
2418};
2419#[repr(C)]
2420#[derive(Debug, Copy, Clone)]
2421pub struct WGPUAdapterPropertiesVk {
2422 pub chain: WGPUChainedStruct,
2423 pub driverVersion: u32,
2424}
2425#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2426const _: () = {
2427 ["Size of WGPUAdapterPropertiesVk"]
2428 [::core::mem::size_of::<WGPUAdapterPropertiesVk>() - 24usize];
2429 ["Alignment of WGPUAdapterPropertiesVk"]
2430 [::core::mem::align_of::<WGPUAdapterPropertiesVk>() - 8usize];
2431 ["Offset of field: WGPUAdapterPropertiesVk::chain"]
2432 [::core::mem::offset_of!(WGPUAdapterPropertiesVk, chain) - 0usize];
2433 ["Offset of field: WGPUAdapterPropertiesVk::driverVersion"]
2434 [::core::mem::offset_of!(WGPUAdapterPropertiesVk, driverVersion) - 16usize];
2435};
2436#[repr(C)]
2437#[derive(Debug, Copy, Clone)]
2438pub struct WGPUBindGroupLayoutEntryArraySize {
2439 pub chain: WGPUChainedStruct,
2440 pub arraySize: u32,
2441}
2442#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2443const _: () = {
2444 ["Size of WGPUBindGroupLayoutEntryArraySize"]
2445 [::core::mem::size_of::<WGPUBindGroupLayoutEntryArraySize>() - 24usize];
2446 ["Alignment of WGPUBindGroupLayoutEntryArraySize"]
2447 [::core::mem::align_of::<WGPUBindGroupLayoutEntryArraySize>() - 8usize];
2448 ["Offset of field: WGPUBindGroupLayoutEntryArraySize::chain"]
2449 [::core::mem::offset_of!(WGPUBindGroupLayoutEntryArraySize, chain) - 0usize];
2450 ["Offset of field: WGPUBindGroupLayoutEntryArraySize::arraySize"]
2451 [::core::mem::offset_of!(WGPUBindGroupLayoutEntryArraySize, arraySize) - 16usize];
2452};
2453#[repr(C)]
2454#[derive(Debug, Copy, Clone)]
2455pub struct WGPUBlendComponent {
2456 pub operation: WGPUBlendOperation,
2457 pub srcFactor: WGPUBlendFactor,
2458 pub dstFactor: WGPUBlendFactor,
2459}
2460#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2461const _: () = {
2462 ["Size of WGPUBlendComponent"][::core::mem::size_of::<WGPUBlendComponent>() - 12usize];
2463 ["Alignment of WGPUBlendComponent"][::core::mem::align_of::<WGPUBlendComponent>() - 4usize];
2464 ["Offset of field: WGPUBlendComponent::operation"]
2465 [::core::mem::offset_of!(WGPUBlendComponent, operation) - 0usize];
2466 ["Offset of field: WGPUBlendComponent::srcFactor"]
2467 [::core::mem::offset_of!(WGPUBlendComponent, srcFactor) - 4usize];
2468 ["Offset of field: WGPUBlendComponent::dstFactor"]
2469 [::core::mem::offset_of!(WGPUBlendComponent, dstFactor) - 8usize];
2470};
2471#[repr(C)]
2472#[derive(Debug, Copy, Clone)]
2473pub struct WGPUBufferBindingLayout {
2474 pub nextInChain: *mut WGPUChainedStruct,
2475 pub type_: WGPUBufferBindingType,
2476 pub hasDynamicOffset: WGPUBool,
2477 pub minBindingSize: u64,
2478}
2479#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2480const _: () = {
2481 ["Size of WGPUBufferBindingLayout"]
2482 [::core::mem::size_of::<WGPUBufferBindingLayout>() - 24usize];
2483 ["Alignment of WGPUBufferBindingLayout"]
2484 [::core::mem::align_of::<WGPUBufferBindingLayout>() - 8usize];
2485 ["Offset of field: WGPUBufferBindingLayout::nextInChain"]
2486 [::core::mem::offset_of!(WGPUBufferBindingLayout, nextInChain) - 0usize];
2487 ["Offset of field: WGPUBufferBindingLayout::type_"]
2488 [::core::mem::offset_of!(WGPUBufferBindingLayout, type_) - 8usize];
2489 ["Offset of field: WGPUBufferBindingLayout::hasDynamicOffset"]
2490 [::core::mem::offset_of!(WGPUBufferBindingLayout, hasDynamicOffset) - 12usize];
2491 ["Offset of field: WGPUBufferBindingLayout::minBindingSize"]
2492 [::core::mem::offset_of!(WGPUBufferBindingLayout, minBindingSize) - 16usize];
2493};
2494#[repr(C)]
2495#[derive(Debug, Copy, Clone)]
2496pub struct WGPUBufferHostMappedPointer {
2497 pub chain: WGPUChainedStruct,
2498 pub pointer: *mut ::core::ffi::c_void,
2499 pub disposeCallback: WGPUCallback,
2500 pub userdata: *mut ::core::ffi::c_void,
2501}
2502#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2503const _: () = {
2504 ["Size of WGPUBufferHostMappedPointer"]
2505 [::core::mem::size_of::<WGPUBufferHostMappedPointer>() - 40usize];
2506 ["Alignment of WGPUBufferHostMappedPointer"]
2507 [::core::mem::align_of::<WGPUBufferHostMappedPointer>() - 8usize];
2508 ["Offset of field: WGPUBufferHostMappedPointer::chain"]
2509 [::core::mem::offset_of!(WGPUBufferHostMappedPointer, chain) - 0usize];
2510 ["Offset of field: WGPUBufferHostMappedPointer::pointer"]
2511 [::core::mem::offset_of!(WGPUBufferHostMappedPointer, pointer) - 16usize];
2512 ["Offset of field: WGPUBufferHostMappedPointer::disposeCallback"]
2513 [::core::mem::offset_of!(WGPUBufferHostMappedPointer, disposeCallback) - 24usize];
2514 ["Offset of field: WGPUBufferHostMappedPointer::userdata"]
2515 [::core::mem::offset_of!(WGPUBufferHostMappedPointer, userdata) - 32usize];
2516};
2517#[repr(C)]
2518#[derive(Debug, Copy, Clone)]
2519pub struct WGPUColor {
2520 pub r: f64,
2521 pub g: f64,
2522 pub b: f64,
2523 pub a: f64,
2524}
2525#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2526const _: () = {
2527 ["Size of WGPUColor"][::core::mem::size_of::<WGPUColor>() - 32usize];
2528 ["Alignment of WGPUColor"][::core::mem::align_of::<WGPUColor>() - 8usize];
2529 ["Offset of field: WGPUColor::r"][::core::mem::offset_of!(WGPUColor, r) - 0usize];
2530 ["Offset of field: WGPUColor::g"][::core::mem::offset_of!(WGPUColor, g) - 8usize];
2531 ["Offset of field: WGPUColor::b"][::core::mem::offset_of!(WGPUColor, b) - 16usize];
2532 ["Offset of field: WGPUColor::a"][::core::mem::offset_of!(WGPUColor, a) - 24usize];
2533};
2534#[repr(C)]
2535#[derive(Debug, Copy, Clone)]
2536pub struct WGPUColorTargetStateExpandResolveTextureDawn {
2537 pub chain: WGPUChainedStruct,
2538 pub enabled: WGPUBool,
2539}
2540#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2541const _: () = {
2542 ["Size of WGPUColorTargetStateExpandResolveTextureDawn"]
2543 [::core::mem::size_of::<WGPUColorTargetStateExpandResolveTextureDawn>() - 24usize];
2544 ["Alignment of WGPUColorTargetStateExpandResolveTextureDawn"]
2545 [::core::mem::align_of::<WGPUColorTargetStateExpandResolveTextureDawn>() - 8usize];
2546 ["Offset of field: WGPUColorTargetStateExpandResolveTextureDawn::chain"]
2547 [::core::mem::offset_of!(WGPUColorTargetStateExpandResolveTextureDawn, chain) - 0usize];
2548 ["Offset of field: WGPUColorTargetStateExpandResolveTextureDawn::enabled"]
2549 [::core::mem::offset_of!(WGPUColorTargetStateExpandResolveTextureDawn, enabled) - 16usize];
2550};
2551#[repr(C)]
2552#[derive(Debug, Copy, Clone)]
2553pub struct WGPUCommandBufferDescriptor {
2554 pub nextInChain: *mut WGPUChainedStruct,
2555 pub label: WGPUStringView,
2556}
2557#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2558const _: () = {
2559 ["Size of WGPUCommandBufferDescriptor"]
2560 [::core::mem::size_of::<WGPUCommandBufferDescriptor>() - 24usize];
2561 ["Alignment of WGPUCommandBufferDescriptor"]
2562 [::core::mem::align_of::<WGPUCommandBufferDescriptor>() - 8usize];
2563 ["Offset of field: WGPUCommandBufferDescriptor::nextInChain"]
2564 [::core::mem::offset_of!(WGPUCommandBufferDescriptor, nextInChain) - 0usize];
2565 ["Offset of field: WGPUCommandBufferDescriptor::label"]
2566 [::core::mem::offset_of!(WGPUCommandBufferDescriptor, label) - 8usize];
2567};
2568#[repr(C)]
2569#[derive(Debug, Copy, Clone)]
2570pub struct WGPUConstantEntry {
2571 pub nextInChain: *mut WGPUChainedStruct,
2572 pub key: WGPUStringView,
2573 pub value: f64,
2574}
2575#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2576const _: () = {
2577 ["Size of WGPUConstantEntry"][::core::mem::size_of::<WGPUConstantEntry>() - 32usize];
2578 ["Alignment of WGPUConstantEntry"][::core::mem::align_of::<WGPUConstantEntry>() - 8usize];
2579 ["Offset of field: WGPUConstantEntry::nextInChain"]
2580 [::core::mem::offset_of!(WGPUConstantEntry, nextInChain) - 0usize];
2581 ["Offset of field: WGPUConstantEntry::key"]
2582 [::core::mem::offset_of!(WGPUConstantEntry, key) - 8usize];
2583 ["Offset of field: WGPUConstantEntry::value"]
2584 [::core::mem::offset_of!(WGPUConstantEntry, value) - 24usize];
2585};
2586#[repr(C)]
2587#[derive(Debug, Copy, Clone)]
2588pub struct WGPUCopyTextureForBrowserOptions {
2589 pub nextInChain: *mut WGPUChainedStruct,
2590 pub flipY: WGPUBool,
2591 pub needsColorSpaceConversion: WGPUBool,
2592 pub srcAlphaMode: WGPUAlphaMode,
2593 pub srcTransferFunctionParameters: *const f32,
2594 pub conversionMatrix: *const f32,
2595 pub dstTransferFunctionParameters: *const f32,
2596 pub dstAlphaMode: WGPUAlphaMode,
2597 pub internalUsage: WGPUBool,
2598}
2599#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2600const _: () = {
2601 ["Size of WGPUCopyTextureForBrowserOptions"]
2602 [::core::mem::size_of::<WGPUCopyTextureForBrowserOptions>() - 56usize];
2603 ["Alignment of WGPUCopyTextureForBrowserOptions"]
2604 [::core::mem::align_of::<WGPUCopyTextureForBrowserOptions>() - 8usize];
2605 ["Offset of field: WGPUCopyTextureForBrowserOptions::nextInChain"]
2606 [::core::mem::offset_of!(WGPUCopyTextureForBrowserOptions, nextInChain) - 0usize];
2607 ["Offset of field: WGPUCopyTextureForBrowserOptions::flipY"]
2608 [::core::mem::offset_of!(WGPUCopyTextureForBrowserOptions, flipY) - 8usize];
2609 ["Offset of field: WGPUCopyTextureForBrowserOptions::needsColorSpaceConversion"][::core::mem::offset_of!(
2610 WGPUCopyTextureForBrowserOptions,
2611 needsColorSpaceConversion
2612 ) - 12usize];
2613 ["Offset of field: WGPUCopyTextureForBrowserOptions::srcAlphaMode"]
2614 [::core::mem::offset_of!(WGPUCopyTextureForBrowserOptions, srcAlphaMode) - 16usize];
2615 ["Offset of field: WGPUCopyTextureForBrowserOptions::srcTransferFunctionParameters"][::core::mem::offset_of!(
2616 WGPUCopyTextureForBrowserOptions,
2617 srcTransferFunctionParameters
2618 )
2619 - 24usize];
2620 ["Offset of field: WGPUCopyTextureForBrowserOptions::conversionMatrix"]
2621 [::core::mem::offset_of!(WGPUCopyTextureForBrowserOptions, conversionMatrix) - 32usize];
2622 ["Offset of field: WGPUCopyTextureForBrowserOptions::dstTransferFunctionParameters"][::core::mem::offset_of!(
2623 WGPUCopyTextureForBrowserOptions,
2624 dstTransferFunctionParameters
2625 )
2626 - 40usize];
2627 ["Offset of field: WGPUCopyTextureForBrowserOptions::dstAlphaMode"]
2628 [::core::mem::offset_of!(WGPUCopyTextureForBrowserOptions, dstAlphaMode) - 48usize];
2629 ["Offset of field: WGPUCopyTextureForBrowserOptions::internalUsage"]
2630 [::core::mem::offset_of!(WGPUCopyTextureForBrowserOptions, internalUsage) - 52usize];
2631};
2632#[repr(C)]
2633#[derive(Debug, Copy, Clone)]
2634pub struct WGPUDawnAdapterPropertiesPowerPreference {
2635 pub chain: WGPUChainedStruct,
2636 pub powerPreference: WGPUPowerPreference,
2637}
2638#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2639const _: () = {
2640 ["Size of WGPUDawnAdapterPropertiesPowerPreference"]
2641 [::core::mem::size_of::<WGPUDawnAdapterPropertiesPowerPreference>() - 24usize];
2642 ["Alignment of WGPUDawnAdapterPropertiesPowerPreference"]
2643 [::core::mem::align_of::<WGPUDawnAdapterPropertiesPowerPreference>() - 8usize];
2644 ["Offset of field: WGPUDawnAdapterPropertiesPowerPreference::chain"]
2645 [::core::mem::offset_of!(WGPUDawnAdapterPropertiesPowerPreference, chain) - 0usize];
2646 ["Offset of field: WGPUDawnAdapterPropertiesPowerPreference::powerPreference"][::core::mem::offset_of!(
2647 WGPUDawnAdapterPropertiesPowerPreference,
2648 powerPreference
2649 ) - 16usize];
2650};
2651#[repr(C)]
2652#[derive(Debug, Copy, Clone)]
2653pub struct WGPUDawnBufferDescriptorErrorInfoFromWireClient {
2654 pub chain: WGPUChainedStruct,
2655 pub outOfMemory: WGPUBool,
2656}
2657#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2658const _: () = {
2659 ["Size of WGPUDawnBufferDescriptorErrorInfoFromWireClient"]
2660 [::core::mem::size_of::<WGPUDawnBufferDescriptorErrorInfoFromWireClient>() - 24usize];
2661 ["Alignment of WGPUDawnBufferDescriptorErrorInfoFromWireClient"]
2662 [::core::mem::align_of::<WGPUDawnBufferDescriptorErrorInfoFromWireClient>() - 8usize];
2663 ["Offset of field: WGPUDawnBufferDescriptorErrorInfoFromWireClient::chain"]
2664 [::core::mem::offset_of!(WGPUDawnBufferDescriptorErrorInfoFromWireClient, chain) - 0usize];
2665 ["Offset of field: WGPUDawnBufferDescriptorErrorInfoFromWireClient::outOfMemory"][::core::mem::offset_of!(
2666 WGPUDawnBufferDescriptorErrorInfoFromWireClient,
2667 outOfMemory
2668 ) - 16usize];
2669};
2670#[repr(C)]
2671#[derive(Debug, Copy, Clone)]
2672pub struct WGPUDawnCacheDeviceDescriptor {
2673 pub chain: WGPUChainedStruct,
2674 pub isolationKey: WGPUStringView,
2675 pub loadDataFunction: WGPUDawnLoadCacheDataFunction,
2676 pub storeDataFunction: WGPUDawnStoreCacheDataFunction,
2677 pub functionUserdata: *mut ::core::ffi::c_void,
2678}
2679#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2680const _: () = {
2681 ["Size of WGPUDawnCacheDeviceDescriptor"]
2682 [::core::mem::size_of::<WGPUDawnCacheDeviceDescriptor>() - 56usize];
2683 ["Alignment of WGPUDawnCacheDeviceDescriptor"]
2684 [::core::mem::align_of::<WGPUDawnCacheDeviceDescriptor>() - 8usize];
2685 ["Offset of field: WGPUDawnCacheDeviceDescriptor::chain"]
2686 [::core::mem::offset_of!(WGPUDawnCacheDeviceDescriptor, chain) - 0usize];
2687 ["Offset of field: WGPUDawnCacheDeviceDescriptor::isolationKey"]
2688 [::core::mem::offset_of!(WGPUDawnCacheDeviceDescriptor, isolationKey) - 16usize];
2689 ["Offset of field: WGPUDawnCacheDeviceDescriptor::loadDataFunction"]
2690 [::core::mem::offset_of!(WGPUDawnCacheDeviceDescriptor, loadDataFunction) - 32usize];
2691 ["Offset of field: WGPUDawnCacheDeviceDescriptor::storeDataFunction"]
2692 [::core::mem::offset_of!(WGPUDawnCacheDeviceDescriptor, storeDataFunction) - 40usize];
2693 ["Offset of field: WGPUDawnCacheDeviceDescriptor::functionUserdata"]
2694 [::core::mem::offset_of!(WGPUDawnCacheDeviceDescriptor, functionUserdata) - 48usize];
2695};
2696#[repr(C)]
2697#[derive(Debug, Copy, Clone)]
2698pub struct WGPUDawnCompilationMessageUtf16 {
2699 pub chain: WGPUChainedStruct,
2700 pub linePos: u64,
2701 pub offset: u64,
2702 pub length: u64,
2703}
2704#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2705const _: () = {
2706 ["Size of WGPUDawnCompilationMessageUtf16"]
2707 [::core::mem::size_of::<WGPUDawnCompilationMessageUtf16>() - 40usize];
2708 ["Alignment of WGPUDawnCompilationMessageUtf16"]
2709 [::core::mem::align_of::<WGPUDawnCompilationMessageUtf16>() - 8usize];
2710 ["Offset of field: WGPUDawnCompilationMessageUtf16::chain"]
2711 [::core::mem::offset_of!(WGPUDawnCompilationMessageUtf16, chain) - 0usize];
2712 ["Offset of field: WGPUDawnCompilationMessageUtf16::linePos"]
2713 [::core::mem::offset_of!(WGPUDawnCompilationMessageUtf16, linePos) - 16usize];
2714 ["Offset of field: WGPUDawnCompilationMessageUtf16::offset"]
2715 [::core::mem::offset_of!(WGPUDawnCompilationMessageUtf16, offset) - 24usize];
2716 ["Offset of field: WGPUDawnCompilationMessageUtf16::length"]
2717 [::core::mem::offset_of!(WGPUDawnCompilationMessageUtf16, length) - 32usize];
2718};
2719#[repr(C)]
2720#[derive(Debug, Copy, Clone)]
2721pub struct WGPUDawnDeviceAllocatorControl {
2722 pub chain: WGPUChainedStruct,
2723 pub allocatorHeapBlockSize: usize,
2724}
2725#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2726const _: () = {
2727 ["Size of WGPUDawnDeviceAllocatorControl"]
2728 [::core::mem::size_of::<WGPUDawnDeviceAllocatorControl>() - 24usize];
2729 ["Alignment of WGPUDawnDeviceAllocatorControl"]
2730 [::core::mem::align_of::<WGPUDawnDeviceAllocatorControl>() - 8usize];
2731 ["Offset of field: WGPUDawnDeviceAllocatorControl::chain"]
2732 [::core::mem::offset_of!(WGPUDawnDeviceAllocatorControl, chain) - 0usize];
2733 ["Offset of field: WGPUDawnDeviceAllocatorControl::allocatorHeapBlockSize"]
2734 [::core::mem::offset_of!(WGPUDawnDeviceAllocatorControl, allocatorHeapBlockSize) - 16usize];
2735};
2736#[repr(C)]
2737#[derive(Debug, Copy, Clone)]
2738pub struct WGPUDawnDrmFormatProperties {
2739 pub modifier: u64,
2740 pub modifierPlaneCount: u32,
2741}
2742#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2743const _: () = {
2744 ["Size of WGPUDawnDrmFormatProperties"]
2745 [::core::mem::size_of::<WGPUDawnDrmFormatProperties>() - 16usize];
2746 ["Alignment of WGPUDawnDrmFormatProperties"]
2747 [::core::mem::align_of::<WGPUDawnDrmFormatProperties>() - 8usize];
2748 ["Offset of field: WGPUDawnDrmFormatProperties::modifier"]
2749 [::core::mem::offset_of!(WGPUDawnDrmFormatProperties, modifier) - 0usize];
2750 ["Offset of field: WGPUDawnDrmFormatProperties::modifierPlaneCount"]
2751 [::core::mem::offset_of!(WGPUDawnDrmFormatProperties, modifierPlaneCount) - 8usize];
2752};
2753#[repr(C)]
2754#[derive(Debug, Copy, Clone)]
2755pub struct WGPUDawnEncoderInternalUsageDescriptor {
2756 pub chain: WGPUChainedStruct,
2757 pub useInternalUsages: WGPUBool,
2758}
2759#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2760const _: () = {
2761 ["Size of WGPUDawnEncoderInternalUsageDescriptor"]
2762 [::core::mem::size_of::<WGPUDawnEncoderInternalUsageDescriptor>() - 24usize];
2763 ["Alignment of WGPUDawnEncoderInternalUsageDescriptor"]
2764 [::core::mem::align_of::<WGPUDawnEncoderInternalUsageDescriptor>() - 8usize];
2765 ["Offset of field: WGPUDawnEncoderInternalUsageDescriptor::chain"]
2766 [::core::mem::offset_of!(WGPUDawnEncoderInternalUsageDescriptor, chain) - 0usize];
2767 ["Offset of field: WGPUDawnEncoderInternalUsageDescriptor::useInternalUsages"][::core::mem::offset_of!(
2768 WGPUDawnEncoderInternalUsageDescriptor,
2769 useInternalUsages
2770 ) - 16usize];
2771};
2772#[repr(C)]
2773#[derive(Debug, Copy, Clone)]
2774pub struct WGPUDawnFakeBufferOOMForTesting {
2775 pub chain: WGPUChainedStruct,
2776 pub fakeOOMAtWireClientMap: WGPUBool,
2777 pub fakeOOMAtNativeMap: WGPUBool,
2778 pub fakeOOMAtDevice: WGPUBool,
2779}
2780#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2781const _: () = {
2782 ["Size of WGPUDawnFakeBufferOOMForTesting"]
2783 [::core::mem::size_of::<WGPUDawnFakeBufferOOMForTesting>() - 32usize];
2784 ["Alignment of WGPUDawnFakeBufferOOMForTesting"]
2785 [::core::mem::align_of::<WGPUDawnFakeBufferOOMForTesting>() - 8usize];
2786 ["Offset of field: WGPUDawnFakeBufferOOMForTesting::chain"]
2787 [::core::mem::offset_of!(WGPUDawnFakeBufferOOMForTesting, chain) - 0usize];
2788 ["Offset of field: WGPUDawnFakeBufferOOMForTesting::fakeOOMAtWireClientMap"][::core::mem::offset_of!(
2789 WGPUDawnFakeBufferOOMForTesting,
2790 fakeOOMAtWireClientMap
2791 ) - 16usize];
2792 ["Offset of field: WGPUDawnFakeBufferOOMForTesting::fakeOOMAtNativeMap"]
2793 [::core::mem::offset_of!(WGPUDawnFakeBufferOOMForTesting, fakeOOMAtNativeMap) - 20usize];
2794 ["Offset of field: WGPUDawnFakeBufferOOMForTesting::fakeOOMAtDevice"]
2795 [::core::mem::offset_of!(WGPUDawnFakeBufferOOMForTesting, fakeOOMAtDevice) - 24usize];
2796};
2797#[repr(C)]
2798#[derive(Debug, Copy, Clone)]
2799pub struct WGPUDawnHostMappedPointerLimits {
2800 pub chain: WGPUChainedStruct,
2801 pub hostMappedPointerAlignment: u32,
2802}
2803#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2804const _: () = {
2805 ["Size of WGPUDawnHostMappedPointerLimits"]
2806 [::core::mem::size_of::<WGPUDawnHostMappedPointerLimits>() - 24usize];
2807 ["Alignment of WGPUDawnHostMappedPointerLimits"]
2808 [::core::mem::align_of::<WGPUDawnHostMappedPointerLimits>() - 8usize];
2809 ["Offset of field: WGPUDawnHostMappedPointerLimits::chain"]
2810 [::core::mem::offset_of!(WGPUDawnHostMappedPointerLimits, chain) - 0usize];
2811 ["Offset of field: WGPUDawnHostMappedPointerLimits::hostMappedPointerAlignment"][::core::mem::offset_of!(
2812 WGPUDawnHostMappedPointerLimits,
2813 hostMappedPointerAlignment
2814 ) - 16usize];
2815};
2816#[repr(C)]
2817#[derive(Debug, Copy, Clone)]
2818pub struct WGPUDawnInjectedInvalidSType {
2819 pub chain: WGPUChainedStruct,
2820 pub invalidSType: WGPUSType,
2821}
2822#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2823const _: () = {
2824 ["Size of WGPUDawnInjectedInvalidSType"]
2825 [::core::mem::size_of::<WGPUDawnInjectedInvalidSType>() - 24usize];
2826 ["Alignment of WGPUDawnInjectedInvalidSType"]
2827 [::core::mem::align_of::<WGPUDawnInjectedInvalidSType>() - 8usize];
2828 ["Offset of field: WGPUDawnInjectedInvalidSType::chain"]
2829 [::core::mem::offset_of!(WGPUDawnInjectedInvalidSType, chain) - 0usize];
2830 ["Offset of field: WGPUDawnInjectedInvalidSType::invalidSType"]
2831 [::core::mem::offset_of!(WGPUDawnInjectedInvalidSType, invalidSType) - 16usize];
2832};
2833#[repr(C)]
2834#[derive(Debug, Copy, Clone)]
2835pub struct WGPUDawnRenderPassColorAttachmentRenderToSingleSampled {
2836 pub chain: WGPUChainedStruct,
2837 pub implicitSampleCount: u32,
2838}
2839#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2840const _: () = {
2841 ["Size of WGPUDawnRenderPassColorAttachmentRenderToSingleSampled"][::core::mem::size_of::<
2842 WGPUDawnRenderPassColorAttachmentRenderToSingleSampled,
2843 >() - 24usize];
2844 ["Alignment of WGPUDawnRenderPassColorAttachmentRenderToSingleSampled"][::core::mem::align_of::<
2845 WGPUDawnRenderPassColorAttachmentRenderToSingleSampled,
2846 >() - 8usize];
2847 ["Offset of field: WGPUDawnRenderPassColorAttachmentRenderToSingleSampled::chain"][::core::mem::offset_of!(
2848 WGPUDawnRenderPassColorAttachmentRenderToSingleSampled,
2849 chain
2850 ) - 0usize];
2851 ["Offset of field: WGPUDawnRenderPassColorAttachmentRenderToSingleSampled::implicitSampleCount"] [:: core :: mem :: offset_of ! (WGPUDawnRenderPassColorAttachmentRenderToSingleSampled , implicitSampleCount) - 16usize] ;
2852};
2853#[repr(C)]
2854#[derive(Debug, Copy, Clone)]
2855pub struct WGPUDawnShaderModuleSPIRVOptionsDescriptor {
2856 pub chain: WGPUChainedStruct,
2857 pub allowNonUniformDerivatives: WGPUBool,
2858}
2859#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2860const _: () = {
2861 ["Size of WGPUDawnShaderModuleSPIRVOptionsDescriptor"]
2862 [::core::mem::size_of::<WGPUDawnShaderModuleSPIRVOptionsDescriptor>() - 24usize];
2863 ["Alignment of WGPUDawnShaderModuleSPIRVOptionsDescriptor"]
2864 [::core::mem::align_of::<WGPUDawnShaderModuleSPIRVOptionsDescriptor>() - 8usize];
2865 ["Offset of field: WGPUDawnShaderModuleSPIRVOptionsDescriptor::chain"]
2866 [::core::mem::offset_of!(WGPUDawnShaderModuleSPIRVOptionsDescriptor, chain) - 0usize];
2867 ["Offset of field: WGPUDawnShaderModuleSPIRVOptionsDescriptor::allowNonUniformDerivatives"][::core::mem::offset_of!(
2868 WGPUDawnShaderModuleSPIRVOptionsDescriptor,
2869 allowNonUniformDerivatives
2870 )
2871 - 16usize];
2872};
2873#[repr(C)]
2874#[derive(Debug, Copy, Clone)]
2875pub struct WGPUDawnTexelCopyBufferRowAlignmentLimits {
2876 pub chain: WGPUChainedStruct,
2877 pub minTexelCopyBufferRowAlignment: u32,
2878}
2879#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2880const _: () = {
2881 ["Size of WGPUDawnTexelCopyBufferRowAlignmentLimits"]
2882 [::core::mem::size_of::<WGPUDawnTexelCopyBufferRowAlignmentLimits>() - 24usize];
2883 ["Alignment of WGPUDawnTexelCopyBufferRowAlignmentLimits"]
2884 [::core::mem::align_of::<WGPUDawnTexelCopyBufferRowAlignmentLimits>() - 8usize];
2885 ["Offset of field: WGPUDawnTexelCopyBufferRowAlignmentLimits::chain"]
2886 [::core::mem::offset_of!(WGPUDawnTexelCopyBufferRowAlignmentLimits, chain) - 0usize];
2887 ["Offset of field: WGPUDawnTexelCopyBufferRowAlignmentLimits::minTexelCopyBufferRowAlignment"] [:: core :: mem :: offset_of ! (WGPUDawnTexelCopyBufferRowAlignmentLimits , minTexelCopyBufferRowAlignment) - 16usize] ;
2888};
2889#[repr(C)]
2890#[derive(Debug, Copy, Clone)]
2891pub struct WGPUDawnTextureInternalUsageDescriptor {
2892 pub chain: WGPUChainedStruct,
2893 pub internalUsage: WGPUTextureUsage,
2894}
2895#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2896const _: () = {
2897 ["Size of WGPUDawnTextureInternalUsageDescriptor"]
2898 [::core::mem::size_of::<WGPUDawnTextureInternalUsageDescriptor>() - 24usize];
2899 ["Alignment of WGPUDawnTextureInternalUsageDescriptor"]
2900 [::core::mem::align_of::<WGPUDawnTextureInternalUsageDescriptor>() - 8usize];
2901 ["Offset of field: WGPUDawnTextureInternalUsageDescriptor::chain"]
2902 [::core::mem::offset_of!(WGPUDawnTextureInternalUsageDescriptor, chain) - 0usize];
2903 ["Offset of field: WGPUDawnTextureInternalUsageDescriptor::internalUsage"]
2904 [::core::mem::offset_of!(WGPUDawnTextureInternalUsageDescriptor, internalUsage) - 16usize];
2905};
2906#[repr(C)]
2907#[derive(Debug, Copy, Clone)]
2908pub struct WGPUDawnTogglesDescriptor {
2909 pub chain: WGPUChainedStruct,
2910 pub enabledToggleCount: usize,
2911 pub enabledToggles: *const *const ::core::ffi::c_char,
2912 pub disabledToggleCount: usize,
2913 pub disabledToggles: *const *const ::core::ffi::c_char,
2914}
2915#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2916const _: () = {
2917 ["Size of WGPUDawnTogglesDescriptor"]
2918 [::core::mem::size_of::<WGPUDawnTogglesDescriptor>() - 48usize];
2919 ["Alignment of WGPUDawnTogglesDescriptor"]
2920 [::core::mem::align_of::<WGPUDawnTogglesDescriptor>() - 8usize];
2921 ["Offset of field: WGPUDawnTogglesDescriptor::chain"]
2922 [::core::mem::offset_of!(WGPUDawnTogglesDescriptor, chain) - 0usize];
2923 ["Offset of field: WGPUDawnTogglesDescriptor::enabledToggleCount"]
2924 [::core::mem::offset_of!(WGPUDawnTogglesDescriptor, enabledToggleCount) - 16usize];
2925 ["Offset of field: WGPUDawnTogglesDescriptor::enabledToggles"]
2926 [::core::mem::offset_of!(WGPUDawnTogglesDescriptor, enabledToggles) - 24usize];
2927 ["Offset of field: WGPUDawnTogglesDescriptor::disabledToggleCount"]
2928 [::core::mem::offset_of!(WGPUDawnTogglesDescriptor, disabledToggleCount) - 32usize];
2929 ["Offset of field: WGPUDawnTogglesDescriptor::disabledToggles"]
2930 [::core::mem::offset_of!(WGPUDawnTogglesDescriptor, disabledToggles) - 40usize];
2931};
2932#[repr(C)]
2933#[derive(Debug, Copy, Clone)]
2934pub struct WGPUDawnWGSLBlocklist {
2935 pub chain: WGPUChainedStruct,
2936 pub blocklistedFeatureCount: usize,
2937 pub blocklistedFeatures: *const *const ::core::ffi::c_char,
2938}
2939#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2940const _: () = {
2941 ["Size of WGPUDawnWGSLBlocklist"][::core::mem::size_of::<WGPUDawnWGSLBlocklist>() - 32usize];
2942 ["Alignment of WGPUDawnWGSLBlocklist"]
2943 [::core::mem::align_of::<WGPUDawnWGSLBlocklist>() - 8usize];
2944 ["Offset of field: WGPUDawnWGSLBlocklist::chain"]
2945 [::core::mem::offset_of!(WGPUDawnWGSLBlocklist, chain) - 0usize];
2946 ["Offset of field: WGPUDawnWGSLBlocklist::blocklistedFeatureCount"]
2947 [::core::mem::offset_of!(WGPUDawnWGSLBlocklist, blocklistedFeatureCount) - 16usize];
2948 ["Offset of field: WGPUDawnWGSLBlocklist::blocklistedFeatures"]
2949 [::core::mem::offset_of!(WGPUDawnWGSLBlocklist, blocklistedFeatures) - 24usize];
2950};
2951#[repr(C)]
2952#[derive(Debug, Copy, Clone)]
2953pub struct WGPUDawnWireWGSLControl {
2954 pub chain: WGPUChainedStruct,
2955 pub enableExperimental: WGPUBool,
2956 pub enableUnsafe: WGPUBool,
2957 pub enableTesting: WGPUBool,
2958}
2959#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2960const _: () = {
2961 ["Size of WGPUDawnWireWGSLControl"]
2962 [::core::mem::size_of::<WGPUDawnWireWGSLControl>() - 32usize];
2963 ["Alignment of WGPUDawnWireWGSLControl"]
2964 [::core::mem::align_of::<WGPUDawnWireWGSLControl>() - 8usize];
2965 ["Offset of field: WGPUDawnWireWGSLControl::chain"]
2966 [::core::mem::offset_of!(WGPUDawnWireWGSLControl, chain) - 0usize];
2967 ["Offset of field: WGPUDawnWireWGSLControl::enableExperimental"]
2968 [::core::mem::offset_of!(WGPUDawnWireWGSLControl, enableExperimental) - 16usize];
2969 ["Offset of field: WGPUDawnWireWGSLControl::enableUnsafe"]
2970 [::core::mem::offset_of!(WGPUDawnWireWGSLControl, enableUnsafe) - 20usize];
2971 ["Offset of field: WGPUDawnWireWGSLControl::enableTesting"]
2972 [::core::mem::offset_of!(WGPUDawnWireWGSLControl, enableTesting) - 24usize];
2973};
2974#[repr(C)]
2975#[derive(Debug, Copy, Clone)]
2976pub struct WGPUEmscriptenSurfaceSourceCanvasHTMLSelector {
2977 pub chain: WGPUChainedStruct,
2978 pub selector: WGPUStringView,
2979}
2980#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2981const _: () = {
2982 ["Size of WGPUEmscriptenSurfaceSourceCanvasHTMLSelector"]
2983 [::core::mem::size_of::<WGPUEmscriptenSurfaceSourceCanvasHTMLSelector>() - 32usize];
2984 ["Alignment of WGPUEmscriptenSurfaceSourceCanvasHTMLSelector"]
2985 [::core::mem::align_of::<WGPUEmscriptenSurfaceSourceCanvasHTMLSelector>() - 8usize];
2986 ["Offset of field: WGPUEmscriptenSurfaceSourceCanvasHTMLSelector::chain"]
2987 [::core::mem::offset_of!(WGPUEmscriptenSurfaceSourceCanvasHTMLSelector, chain) - 0usize];
2988 ["Offset of field: WGPUEmscriptenSurfaceSourceCanvasHTMLSelector::selector"][::core::mem::offset_of!(
2989 WGPUEmscriptenSurfaceSourceCanvasHTMLSelector,
2990 selector
2991 ) - 16usize];
2992};
2993#[repr(C)]
2994#[derive(Debug, Copy, Clone)]
2995pub struct WGPUExtent2D {
2996 pub width: u32,
2997 pub height: u32,
2998}
2999#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3000const _: () = {
3001 ["Size of WGPUExtent2D"][::core::mem::size_of::<WGPUExtent2D>() - 8usize];
3002 ["Alignment of WGPUExtent2D"][::core::mem::align_of::<WGPUExtent2D>() - 4usize];
3003 ["Offset of field: WGPUExtent2D::width"][::core::mem::offset_of!(WGPUExtent2D, width) - 0usize];
3004 ["Offset of field: WGPUExtent2D::height"]
3005 [::core::mem::offset_of!(WGPUExtent2D, height) - 4usize];
3006};
3007#[repr(C)]
3008#[derive(Debug, Copy, Clone)]
3009pub struct WGPUExtent3D {
3010 pub width: u32,
3011 pub height: u32,
3012 pub depthOrArrayLayers: u32,
3013}
3014#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3015const _: () = {
3016 ["Size of WGPUExtent3D"][::core::mem::size_of::<WGPUExtent3D>() - 12usize];
3017 ["Alignment of WGPUExtent3D"][::core::mem::align_of::<WGPUExtent3D>() - 4usize];
3018 ["Offset of field: WGPUExtent3D::width"][::core::mem::offset_of!(WGPUExtent3D, width) - 0usize];
3019 ["Offset of field: WGPUExtent3D::height"]
3020 [::core::mem::offset_of!(WGPUExtent3D, height) - 4usize];
3021 ["Offset of field: WGPUExtent3D::depthOrArrayLayers"]
3022 [::core::mem::offset_of!(WGPUExtent3D, depthOrArrayLayers) - 8usize];
3023};
3024#[repr(C)]
3025#[derive(Debug, Copy, Clone)]
3026pub struct WGPUExternalTextureBindingEntry {
3027 pub chain: WGPUChainedStruct,
3028 pub externalTexture: WGPUExternalTexture,
3029}
3030#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3031const _: () = {
3032 ["Size of WGPUExternalTextureBindingEntry"]
3033 [::core::mem::size_of::<WGPUExternalTextureBindingEntry>() - 24usize];
3034 ["Alignment of WGPUExternalTextureBindingEntry"]
3035 [::core::mem::align_of::<WGPUExternalTextureBindingEntry>() - 8usize];
3036 ["Offset of field: WGPUExternalTextureBindingEntry::chain"]
3037 [::core::mem::offset_of!(WGPUExternalTextureBindingEntry, chain) - 0usize];
3038 ["Offset of field: WGPUExternalTextureBindingEntry::externalTexture"]
3039 [::core::mem::offset_of!(WGPUExternalTextureBindingEntry, externalTexture) - 16usize];
3040};
3041#[repr(C)]
3042#[derive(Debug, Copy, Clone)]
3043pub struct WGPUExternalTextureBindingLayout {
3044 pub chain: WGPUChainedStruct,
3045}
3046#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3047const _: () = {
3048 ["Size of WGPUExternalTextureBindingLayout"]
3049 [::core::mem::size_of::<WGPUExternalTextureBindingLayout>() - 16usize];
3050 ["Alignment of WGPUExternalTextureBindingLayout"]
3051 [::core::mem::align_of::<WGPUExternalTextureBindingLayout>() - 8usize];
3052 ["Offset of field: WGPUExternalTextureBindingLayout::chain"]
3053 [::core::mem::offset_of!(WGPUExternalTextureBindingLayout, chain) - 0usize];
3054};
3055#[repr(C)]
3056#[derive(Debug, Copy, Clone)]
3057pub struct WGPUFuture {
3058 pub id: u64,
3059}
3060#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3061const _: () = {
3062 ["Size of WGPUFuture"][::core::mem::size_of::<WGPUFuture>() - 8usize];
3063 ["Alignment of WGPUFuture"][::core::mem::align_of::<WGPUFuture>() - 8usize];
3064 ["Offset of field: WGPUFuture::id"][::core::mem::offset_of!(WGPUFuture, id) - 0usize];
3065};
3066#[repr(C)]
3067#[derive(Debug, Copy, Clone)]
3068pub struct WGPUInstanceCapabilities {
3069 pub nextInChain: *mut WGPUChainedStruct,
3070 pub timedWaitAnyEnable: WGPUBool,
3071 pub timedWaitAnyMaxCount: usize,
3072}
3073#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3074const _: () = {
3075 ["Size of WGPUInstanceCapabilities"]
3076 [::core::mem::size_of::<WGPUInstanceCapabilities>() - 24usize];
3077 ["Alignment of WGPUInstanceCapabilities"]
3078 [::core::mem::align_of::<WGPUInstanceCapabilities>() - 8usize];
3079 ["Offset of field: WGPUInstanceCapabilities::nextInChain"]
3080 [::core::mem::offset_of!(WGPUInstanceCapabilities, nextInChain) - 0usize];
3081 ["Offset of field: WGPUInstanceCapabilities::timedWaitAnyEnable"]
3082 [::core::mem::offset_of!(WGPUInstanceCapabilities, timedWaitAnyEnable) - 8usize];
3083 ["Offset of field: WGPUInstanceCapabilities::timedWaitAnyMaxCount"]
3084 [::core::mem::offset_of!(WGPUInstanceCapabilities, timedWaitAnyMaxCount) - 16usize];
3085};
3086#[repr(C)]
3087#[derive(Debug, Copy, Clone)]
3088pub struct WGPUINTERNAL_HAVE_EMDAWNWEBGPU_HEADER {
3089 pub unused: WGPUBool,
3090}
3091#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3092const _: () = {
3093 ["Size of WGPUINTERNAL_HAVE_EMDAWNWEBGPU_HEADER"]
3094 [::core::mem::size_of::<WGPUINTERNAL_HAVE_EMDAWNWEBGPU_HEADER>() - 4usize];
3095 ["Alignment of WGPUINTERNAL_HAVE_EMDAWNWEBGPU_HEADER"]
3096 [::core::mem::align_of::<WGPUINTERNAL_HAVE_EMDAWNWEBGPU_HEADER>() - 4usize];
3097 ["Offset of field: WGPUINTERNAL_HAVE_EMDAWNWEBGPU_HEADER::unused"]
3098 [::core::mem::offset_of!(WGPUINTERNAL_HAVE_EMDAWNWEBGPU_HEADER, unused) - 0usize];
3099};
3100#[repr(C)]
3101#[derive(Debug, Copy, Clone)]
3102pub struct WGPUMemoryHeapInfo {
3103 pub properties: WGPUHeapProperty,
3104 pub size: u64,
3105}
3106#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3107const _: () = {
3108 ["Size of WGPUMemoryHeapInfo"][::core::mem::size_of::<WGPUMemoryHeapInfo>() - 16usize];
3109 ["Alignment of WGPUMemoryHeapInfo"][::core::mem::align_of::<WGPUMemoryHeapInfo>() - 8usize];
3110 ["Offset of field: WGPUMemoryHeapInfo::properties"]
3111 [::core::mem::offset_of!(WGPUMemoryHeapInfo, properties) - 0usize];
3112 ["Offset of field: WGPUMemoryHeapInfo::size"]
3113 [::core::mem::offset_of!(WGPUMemoryHeapInfo, size) - 8usize];
3114};
3115#[repr(C)]
3116#[derive(Debug, Copy, Clone)]
3117pub struct WGPUMultisampleState {
3118 pub nextInChain: *mut WGPUChainedStruct,
3119 pub count: u32,
3120 pub mask: u32,
3121 pub alphaToCoverageEnabled: WGPUBool,
3122}
3123#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3124const _: () = {
3125 ["Size of WGPUMultisampleState"][::core::mem::size_of::<WGPUMultisampleState>() - 24usize];
3126 ["Alignment of WGPUMultisampleState"][::core::mem::align_of::<WGPUMultisampleState>() - 8usize];
3127 ["Offset of field: WGPUMultisampleState::nextInChain"]
3128 [::core::mem::offset_of!(WGPUMultisampleState, nextInChain) - 0usize];
3129 ["Offset of field: WGPUMultisampleState::count"]
3130 [::core::mem::offset_of!(WGPUMultisampleState, count) - 8usize];
3131 ["Offset of field: WGPUMultisampleState::mask"]
3132 [::core::mem::offset_of!(WGPUMultisampleState, mask) - 12usize];
3133 ["Offset of field: WGPUMultisampleState::alphaToCoverageEnabled"]
3134 [::core::mem::offset_of!(WGPUMultisampleState, alphaToCoverageEnabled) - 16usize];
3135};
3136#[repr(C)]
3137#[derive(Debug, Copy, Clone)]
3138pub struct WGPUOrigin2D {
3139 pub x: u32,
3140 pub y: u32,
3141}
3142#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3143const _: () = {
3144 ["Size of WGPUOrigin2D"][::core::mem::size_of::<WGPUOrigin2D>() - 8usize];
3145 ["Alignment of WGPUOrigin2D"][::core::mem::align_of::<WGPUOrigin2D>() - 4usize];
3146 ["Offset of field: WGPUOrigin2D::x"][::core::mem::offset_of!(WGPUOrigin2D, x) - 0usize];
3147 ["Offset of field: WGPUOrigin2D::y"][::core::mem::offset_of!(WGPUOrigin2D, y) - 4usize];
3148};
3149#[repr(C)]
3150#[derive(Debug, Copy, Clone)]
3151pub struct WGPUOrigin3D {
3152 pub x: u32,
3153 pub y: u32,
3154 pub z: u32,
3155}
3156#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3157const _: () = {
3158 ["Size of WGPUOrigin3D"][::core::mem::size_of::<WGPUOrigin3D>() - 12usize];
3159 ["Alignment of WGPUOrigin3D"][::core::mem::align_of::<WGPUOrigin3D>() - 4usize];
3160 ["Offset of field: WGPUOrigin3D::x"][::core::mem::offset_of!(WGPUOrigin3D, x) - 0usize];
3161 ["Offset of field: WGPUOrigin3D::y"][::core::mem::offset_of!(WGPUOrigin3D, y) - 4usize];
3162 ["Offset of field: WGPUOrigin3D::z"][::core::mem::offset_of!(WGPUOrigin3D, z) - 8usize];
3163};
3164#[repr(C)]
3165#[derive(Debug, Copy, Clone)]
3166pub struct WGPUPassTimestampWrites {
3167 pub nextInChain: *mut WGPUChainedStruct,
3168 pub querySet: WGPUQuerySet,
3169 pub beginningOfPassWriteIndex: u32,
3170 pub endOfPassWriteIndex: u32,
3171}
3172#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3173const _: () = {
3174 ["Size of WGPUPassTimestampWrites"]
3175 [::core::mem::size_of::<WGPUPassTimestampWrites>() - 24usize];
3176 ["Alignment of WGPUPassTimestampWrites"]
3177 [::core::mem::align_of::<WGPUPassTimestampWrites>() - 8usize];
3178 ["Offset of field: WGPUPassTimestampWrites::nextInChain"]
3179 [::core::mem::offset_of!(WGPUPassTimestampWrites, nextInChain) - 0usize];
3180 ["Offset of field: WGPUPassTimestampWrites::querySet"]
3181 [::core::mem::offset_of!(WGPUPassTimestampWrites, querySet) - 8usize];
3182 ["Offset of field: WGPUPassTimestampWrites::beginningOfPassWriteIndex"]
3183 [::core::mem::offset_of!(WGPUPassTimestampWrites, beginningOfPassWriteIndex) - 16usize];
3184 ["Offset of field: WGPUPassTimestampWrites::endOfPassWriteIndex"]
3185 [::core::mem::offset_of!(WGPUPassTimestampWrites, endOfPassWriteIndex) - 20usize];
3186};
3187#[repr(C)]
3188#[derive(Debug, Copy, Clone)]
3189pub struct WGPUPipelineLayoutStorageAttachment {
3190 pub nextInChain: *mut WGPUChainedStruct,
3191 pub offset: u64,
3192 pub format: WGPUTextureFormat,
3193}
3194#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3195const _: () = {
3196 ["Size of WGPUPipelineLayoutStorageAttachment"]
3197 [::core::mem::size_of::<WGPUPipelineLayoutStorageAttachment>() - 24usize];
3198 ["Alignment of WGPUPipelineLayoutStorageAttachment"]
3199 [::core::mem::align_of::<WGPUPipelineLayoutStorageAttachment>() - 8usize];
3200 ["Offset of field: WGPUPipelineLayoutStorageAttachment::nextInChain"]
3201 [::core::mem::offset_of!(WGPUPipelineLayoutStorageAttachment, nextInChain) - 0usize];
3202 ["Offset of field: WGPUPipelineLayoutStorageAttachment::offset"]
3203 [::core::mem::offset_of!(WGPUPipelineLayoutStorageAttachment, offset) - 8usize];
3204 ["Offset of field: WGPUPipelineLayoutStorageAttachment::format"]
3205 [::core::mem::offset_of!(WGPUPipelineLayoutStorageAttachment, format) - 16usize];
3206};
3207#[repr(C)]
3208#[derive(Debug, Copy, Clone)]
3209pub struct WGPUPrimitiveState {
3210 pub nextInChain: *mut WGPUChainedStruct,
3211 pub topology: WGPUPrimitiveTopology,
3212 pub stripIndexFormat: WGPUIndexFormat,
3213 pub frontFace: WGPUFrontFace,
3214 pub cullMode: WGPUCullMode,
3215 pub unclippedDepth: WGPUBool,
3216}
3217#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3218const _: () = {
3219 ["Size of WGPUPrimitiveState"][::core::mem::size_of::<WGPUPrimitiveState>() - 32usize];
3220 ["Alignment of WGPUPrimitiveState"][::core::mem::align_of::<WGPUPrimitiveState>() - 8usize];
3221 ["Offset of field: WGPUPrimitiveState::nextInChain"]
3222 [::core::mem::offset_of!(WGPUPrimitiveState, nextInChain) - 0usize];
3223 ["Offset of field: WGPUPrimitiveState::topology"]
3224 [::core::mem::offset_of!(WGPUPrimitiveState, topology) - 8usize];
3225 ["Offset of field: WGPUPrimitiveState::stripIndexFormat"]
3226 [::core::mem::offset_of!(WGPUPrimitiveState, stripIndexFormat) - 12usize];
3227 ["Offset of field: WGPUPrimitiveState::frontFace"]
3228 [::core::mem::offset_of!(WGPUPrimitiveState, frontFace) - 16usize];
3229 ["Offset of field: WGPUPrimitiveState::cullMode"]
3230 [::core::mem::offset_of!(WGPUPrimitiveState, cullMode) - 20usize];
3231 ["Offset of field: WGPUPrimitiveState::unclippedDepth"]
3232 [::core::mem::offset_of!(WGPUPrimitiveState, unclippedDepth) - 24usize];
3233};
3234#[repr(C)]
3235#[derive(Debug, Copy, Clone)]
3236pub struct WGPUQuerySetDescriptor {
3237 pub nextInChain: *mut WGPUChainedStruct,
3238 pub label: WGPUStringView,
3239 pub type_: WGPUQueryType,
3240 pub count: u32,
3241}
3242#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3243const _: () = {
3244 ["Size of WGPUQuerySetDescriptor"][::core::mem::size_of::<WGPUQuerySetDescriptor>() - 32usize];
3245 ["Alignment of WGPUQuerySetDescriptor"]
3246 [::core::mem::align_of::<WGPUQuerySetDescriptor>() - 8usize];
3247 ["Offset of field: WGPUQuerySetDescriptor::nextInChain"]
3248 [::core::mem::offset_of!(WGPUQuerySetDescriptor, nextInChain) - 0usize];
3249 ["Offset of field: WGPUQuerySetDescriptor::label"]
3250 [::core::mem::offset_of!(WGPUQuerySetDescriptor, label) - 8usize];
3251 ["Offset of field: WGPUQuerySetDescriptor::type_"]
3252 [::core::mem::offset_of!(WGPUQuerySetDescriptor, type_) - 24usize];
3253 ["Offset of field: WGPUQuerySetDescriptor::count"]
3254 [::core::mem::offset_of!(WGPUQuerySetDescriptor, count) - 28usize];
3255};
3256#[repr(C)]
3257#[derive(Debug, Copy, Clone)]
3258pub struct WGPUQueueDescriptor {
3259 pub nextInChain: *mut WGPUChainedStruct,
3260 pub label: WGPUStringView,
3261}
3262#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3263const _: () = {
3264 ["Size of WGPUQueueDescriptor"][::core::mem::size_of::<WGPUQueueDescriptor>() - 24usize];
3265 ["Alignment of WGPUQueueDescriptor"][::core::mem::align_of::<WGPUQueueDescriptor>() - 8usize];
3266 ["Offset of field: WGPUQueueDescriptor::nextInChain"]
3267 [::core::mem::offset_of!(WGPUQueueDescriptor, nextInChain) - 0usize];
3268 ["Offset of field: WGPUQueueDescriptor::label"]
3269 [::core::mem::offset_of!(WGPUQueueDescriptor, label) - 8usize];
3270};
3271#[repr(C)]
3272#[derive(Debug, Copy, Clone)]
3273pub struct WGPURenderBundleDescriptor {
3274 pub nextInChain: *mut WGPUChainedStruct,
3275 pub label: WGPUStringView,
3276}
3277#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3278const _: () = {
3279 ["Size of WGPURenderBundleDescriptor"]
3280 [::core::mem::size_of::<WGPURenderBundleDescriptor>() - 24usize];
3281 ["Alignment of WGPURenderBundleDescriptor"]
3282 [::core::mem::align_of::<WGPURenderBundleDescriptor>() - 8usize];
3283 ["Offset of field: WGPURenderBundleDescriptor::nextInChain"]
3284 [::core::mem::offset_of!(WGPURenderBundleDescriptor, nextInChain) - 0usize];
3285 ["Offset of field: WGPURenderBundleDescriptor::label"]
3286 [::core::mem::offset_of!(WGPURenderBundleDescriptor, label) - 8usize];
3287};
3288#[repr(C)]
3289#[derive(Debug, Copy, Clone)]
3290pub struct WGPURenderBundleEncoderDescriptor {
3291 pub nextInChain: *mut WGPUChainedStruct,
3292 pub label: WGPUStringView,
3293 pub colorFormatCount: usize,
3294 pub colorFormats: *const WGPUTextureFormat,
3295 pub depthStencilFormat: WGPUTextureFormat,
3296 pub sampleCount: u32,
3297 pub depthReadOnly: WGPUBool,
3298 pub stencilReadOnly: WGPUBool,
3299}
3300#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3301const _: () = {
3302 ["Size of WGPURenderBundleEncoderDescriptor"]
3303 [::core::mem::size_of::<WGPURenderBundleEncoderDescriptor>() - 56usize];
3304 ["Alignment of WGPURenderBundleEncoderDescriptor"]
3305 [::core::mem::align_of::<WGPURenderBundleEncoderDescriptor>() - 8usize];
3306 ["Offset of field: WGPURenderBundleEncoderDescriptor::nextInChain"]
3307 [::core::mem::offset_of!(WGPURenderBundleEncoderDescriptor, nextInChain) - 0usize];
3308 ["Offset of field: WGPURenderBundleEncoderDescriptor::label"]
3309 [::core::mem::offset_of!(WGPURenderBundleEncoderDescriptor, label) - 8usize];
3310 ["Offset of field: WGPURenderBundleEncoderDescriptor::colorFormatCount"]
3311 [::core::mem::offset_of!(WGPURenderBundleEncoderDescriptor, colorFormatCount) - 24usize];
3312 ["Offset of field: WGPURenderBundleEncoderDescriptor::colorFormats"]
3313 [::core::mem::offset_of!(WGPURenderBundleEncoderDescriptor, colorFormats) - 32usize];
3314 ["Offset of field: WGPURenderBundleEncoderDescriptor::depthStencilFormat"]
3315 [::core::mem::offset_of!(WGPURenderBundleEncoderDescriptor, depthStencilFormat) - 40usize];
3316 ["Offset of field: WGPURenderBundleEncoderDescriptor::sampleCount"]
3317 [::core::mem::offset_of!(WGPURenderBundleEncoderDescriptor, sampleCount) - 44usize];
3318 ["Offset of field: WGPURenderBundleEncoderDescriptor::depthReadOnly"]
3319 [::core::mem::offset_of!(WGPURenderBundleEncoderDescriptor, depthReadOnly) - 48usize];
3320 ["Offset of field: WGPURenderBundleEncoderDescriptor::stencilReadOnly"]
3321 [::core::mem::offset_of!(WGPURenderBundleEncoderDescriptor, stencilReadOnly) - 52usize];
3322};
3323#[repr(C)]
3324#[derive(Debug, Copy, Clone)]
3325pub struct WGPURenderPassDepthStencilAttachment {
3326 pub nextInChain: *mut WGPUChainedStruct,
3327 pub view: WGPUTextureView,
3328 pub depthLoadOp: WGPULoadOp,
3329 pub depthStoreOp: WGPUStoreOp,
3330 pub depthClearValue: f32,
3331 pub depthReadOnly: WGPUBool,
3332 pub stencilLoadOp: WGPULoadOp,
3333 pub stencilStoreOp: WGPUStoreOp,
3334 pub stencilClearValue: u32,
3335 pub stencilReadOnly: WGPUBool,
3336}
3337#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3338const _: () = {
3339 ["Size of WGPURenderPassDepthStencilAttachment"]
3340 [::core::mem::size_of::<WGPURenderPassDepthStencilAttachment>() - 48usize];
3341 ["Alignment of WGPURenderPassDepthStencilAttachment"]
3342 [::core::mem::align_of::<WGPURenderPassDepthStencilAttachment>() - 8usize];
3343 ["Offset of field: WGPURenderPassDepthStencilAttachment::nextInChain"]
3344 [::core::mem::offset_of!(WGPURenderPassDepthStencilAttachment, nextInChain) - 0usize];
3345 ["Offset of field: WGPURenderPassDepthStencilAttachment::view"]
3346 [::core::mem::offset_of!(WGPURenderPassDepthStencilAttachment, view) - 8usize];
3347 ["Offset of field: WGPURenderPassDepthStencilAttachment::depthLoadOp"]
3348 [::core::mem::offset_of!(WGPURenderPassDepthStencilAttachment, depthLoadOp) - 16usize];
3349 ["Offset of field: WGPURenderPassDepthStencilAttachment::depthStoreOp"]
3350 [::core::mem::offset_of!(WGPURenderPassDepthStencilAttachment, depthStoreOp) - 20usize];
3351 ["Offset of field: WGPURenderPassDepthStencilAttachment::depthClearValue"]
3352 [::core::mem::offset_of!(WGPURenderPassDepthStencilAttachment, depthClearValue) - 24usize];
3353 ["Offset of field: WGPURenderPassDepthStencilAttachment::depthReadOnly"]
3354 [::core::mem::offset_of!(WGPURenderPassDepthStencilAttachment, depthReadOnly) - 28usize];
3355 ["Offset of field: WGPURenderPassDepthStencilAttachment::stencilLoadOp"]
3356 [::core::mem::offset_of!(WGPURenderPassDepthStencilAttachment, stencilLoadOp) - 32usize];
3357 ["Offset of field: WGPURenderPassDepthStencilAttachment::stencilStoreOp"]
3358 [::core::mem::offset_of!(WGPURenderPassDepthStencilAttachment, stencilStoreOp) - 36usize];
3359 ["Offset of field: WGPURenderPassDepthStencilAttachment::stencilClearValue"][::core::mem::offset_of!(
3360 WGPURenderPassDepthStencilAttachment,
3361 stencilClearValue
3362 ) - 40usize];
3363 ["Offset of field: WGPURenderPassDepthStencilAttachment::stencilReadOnly"]
3364 [::core::mem::offset_of!(WGPURenderPassDepthStencilAttachment, stencilReadOnly) - 44usize];
3365};
3366#[repr(C)]
3367#[derive(Debug, Copy, Clone)]
3368pub struct WGPURenderPassDescriptorExpandResolveRect {
3369 pub chain: WGPUChainedStruct,
3370 pub x: u32,
3371 pub y: u32,
3372 pub width: u32,
3373 pub height: u32,
3374}
3375#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3376const _: () = {
3377 ["Size of WGPURenderPassDescriptorExpandResolveRect"]
3378 [::core::mem::size_of::<WGPURenderPassDescriptorExpandResolveRect>() - 32usize];
3379 ["Alignment of WGPURenderPassDescriptorExpandResolveRect"]
3380 [::core::mem::align_of::<WGPURenderPassDescriptorExpandResolveRect>() - 8usize];
3381 ["Offset of field: WGPURenderPassDescriptorExpandResolveRect::chain"]
3382 [::core::mem::offset_of!(WGPURenderPassDescriptorExpandResolveRect, chain) - 0usize];
3383 ["Offset of field: WGPURenderPassDescriptorExpandResolveRect::x"]
3384 [::core::mem::offset_of!(WGPURenderPassDescriptorExpandResolveRect, x) - 16usize];
3385 ["Offset of field: WGPURenderPassDescriptorExpandResolveRect::y"]
3386 [::core::mem::offset_of!(WGPURenderPassDescriptorExpandResolveRect, y) - 20usize];
3387 ["Offset of field: WGPURenderPassDescriptorExpandResolveRect::width"]
3388 [::core::mem::offset_of!(WGPURenderPassDescriptorExpandResolveRect, width) - 24usize];
3389 ["Offset of field: WGPURenderPassDescriptorExpandResolveRect::height"]
3390 [::core::mem::offset_of!(WGPURenderPassDescriptorExpandResolveRect, height) - 28usize];
3391};
3392#[repr(C)]
3393#[derive(Debug, Copy, Clone)]
3394pub struct WGPURenderPassDescriptorResolveRect {
3395 pub chain: WGPUChainedStruct,
3396 pub colorOffsetX: u32,
3397 pub colorOffsetY: u32,
3398 pub resolveOffsetX: u32,
3399 pub resolveOffsetY: u32,
3400 pub width: u32,
3401 pub height: u32,
3402}
3403#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3404const _: () = {
3405 ["Size of WGPURenderPassDescriptorResolveRect"]
3406 [::core::mem::size_of::<WGPURenderPassDescriptorResolveRect>() - 40usize];
3407 ["Alignment of WGPURenderPassDescriptorResolveRect"]
3408 [::core::mem::align_of::<WGPURenderPassDescriptorResolveRect>() - 8usize];
3409 ["Offset of field: WGPURenderPassDescriptorResolveRect::chain"]
3410 [::core::mem::offset_of!(WGPURenderPassDescriptorResolveRect, chain) - 0usize];
3411 ["Offset of field: WGPURenderPassDescriptorResolveRect::colorOffsetX"]
3412 [::core::mem::offset_of!(WGPURenderPassDescriptorResolveRect, colorOffsetX) - 16usize];
3413 ["Offset of field: WGPURenderPassDescriptorResolveRect::colorOffsetY"]
3414 [::core::mem::offset_of!(WGPURenderPassDescriptorResolveRect, colorOffsetY) - 20usize];
3415 ["Offset of field: WGPURenderPassDescriptorResolveRect::resolveOffsetX"]
3416 [::core::mem::offset_of!(WGPURenderPassDescriptorResolveRect, resolveOffsetX) - 24usize];
3417 ["Offset of field: WGPURenderPassDescriptorResolveRect::resolveOffsetY"]
3418 [::core::mem::offset_of!(WGPURenderPassDescriptorResolveRect, resolveOffsetY) - 28usize];
3419 ["Offset of field: WGPURenderPassDescriptorResolveRect::width"]
3420 [::core::mem::offset_of!(WGPURenderPassDescriptorResolveRect, width) - 32usize];
3421 ["Offset of field: WGPURenderPassDescriptorResolveRect::height"]
3422 [::core::mem::offset_of!(WGPURenderPassDescriptorResolveRect, height) - 36usize];
3423};
3424#[repr(C)]
3425#[derive(Debug, Copy, Clone)]
3426pub struct WGPURenderPassMaxDrawCount {
3427 pub chain: WGPUChainedStruct,
3428 pub maxDrawCount: u64,
3429}
3430#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3431const _: () = {
3432 ["Size of WGPURenderPassMaxDrawCount"]
3433 [::core::mem::size_of::<WGPURenderPassMaxDrawCount>() - 24usize];
3434 ["Alignment of WGPURenderPassMaxDrawCount"]
3435 [::core::mem::align_of::<WGPURenderPassMaxDrawCount>() - 8usize];
3436 ["Offset of field: WGPURenderPassMaxDrawCount::chain"]
3437 [::core::mem::offset_of!(WGPURenderPassMaxDrawCount, chain) - 0usize];
3438 ["Offset of field: WGPURenderPassMaxDrawCount::maxDrawCount"]
3439 [::core::mem::offset_of!(WGPURenderPassMaxDrawCount, maxDrawCount) - 16usize];
3440};
3441#[repr(C)]
3442#[derive(Debug, Copy, Clone)]
3443pub struct WGPURequestAdapterWebXROptions {
3444 pub chain: WGPUChainedStruct,
3445 pub xrCompatible: WGPUBool,
3446}
3447#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3448const _: () = {
3449 ["Size of WGPURequestAdapterWebXROptions"]
3450 [::core::mem::size_of::<WGPURequestAdapterWebXROptions>() - 24usize];
3451 ["Alignment of WGPURequestAdapterWebXROptions"]
3452 [::core::mem::align_of::<WGPURequestAdapterWebXROptions>() - 8usize];
3453 ["Offset of field: WGPURequestAdapterWebXROptions::chain"]
3454 [::core::mem::offset_of!(WGPURequestAdapterWebXROptions, chain) - 0usize];
3455 ["Offset of field: WGPURequestAdapterWebXROptions::xrCompatible"]
3456 [::core::mem::offset_of!(WGPURequestAdapterWebXROptions, xrCompatible) - 16usize];
3457};
3458#[repr(C)]
3459#[derive(Debug, Copy, Clone)]
3460pub struct WGPUSamplerBindingLayout {
3461 pub nextInChain: *mut WGPUChainedStruct,
3462 pub type_: WGPUSamplerBindingType,
3463}
3464#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3465const _: () = {
3466 ["Size of WGPUSamplerBindingLayout"]
3467 [::core::mem::size_of::<WGPUSamplerBindingLayout>() - 16usize];
3468 ["Alignment of WGPUSamplerBindingLayout"]
3469 [::core::mem::align_of::<WGPUSamplerBindingLayout>() - 8usize];
3470 ["Offset of field: WGPUSamplerBindingLayout::nextInChain"]
3471 [::core::mem::offset_of!(WGPUSamplerBindingLayout, nextInChain) - 0usize];
3472 ["Offset of field: WGPUSamplerBindingLayout::type_"]
3473 [::core::mem::offset_of!(WGPUSamplerBindingLayout, type_) - 8usize];
3474};
3475#[repr(C)]
3476#[derive(Debug, Copy, Clone)]
3477pub struct WGPUShaderModuleCompilationOptions {
3478 pub chain: WGPUChainedStruct,
3479 pub strictMath: WGPUBool,
3480}
3481#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3482const _: () = {
3483 ["Size of WGPUShaderModuleCompilationOptions"]
3484 [::core::mem::size_of::<WGPUShaderModuleCompilationOptions>() - 24usize];
3485 ["Alignment of WGPUShaderModuleCompilationOptions"]
3486 [::core::mem::align_of::<WGPUShaderModuleCompilationOptions>() - 8usize];
3487 ["Offset of field: WGPUShaderModuleCompilationOptions::chain"]
3488 [::core::mem::offset_of!(WGPUShaderModuleCompilationOptions, chain) - 0usize];
3489 ["Offset of field: WGPUShaderModuleCompilationOptions::strictMath"]
3490 [::core::mem::offset_of!(WGPUShaderModuleCompilationOptions, strictMath) - 16usize];
3491};
3492#[repr(C)]
3493#[derive(Debug, Copy, Clone)]
3494pub struct WGPUShaderSourceSPIRV {
3495 pub chain: WGPUChainedStruct,
3496 pub codeSize: u32,
3497 pub code: *const u32,
3498}
3499#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3500const _: () = {
3501 ["Size of WGPUShaderSourceSPIRV"][::core::mem::size_of::<WGPUShaderSourceSPIRV>() - 32usize];
3502 ["Alignment of WGPUShaderSourceSPIRV"]
3503 [::core::mem::align_of::<WGPUShaderSourceSPIRV>() - 8usize];
3504 ["Offset of field: WGPUShaderSourceSPIRV::chain"]
3505 [::core::mem::offset_of!(WGPUShaderSourceSPIRV, chain) - 0usize];
3506 ["Offset of field: WGPUShaderSourceSPIRV::codeSize"]
3507 [::core::mem::offset_of!(WGPUShaderSourceSPIRV, codeSize) - 16usize];
3508 ["Offset of field: WGPUShaderSourceSPIRV::code"]
3509 [::core::mem::offset_of!(WGPUShaderSourceSPIRV, code) - 24usize];
3510};
3511#[repr(C)]
3512#[derive(Debug, Copy, Clone)]
3513pub struct WGPUShaderSourceWGSL {
3514 pub chain: WGPUChainedStruct,
3515 pub code: WGPUStringView,
3516}
3517#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3518const _: () = {
3519 ["Size of WGPUShaderSourceWGSL"][::core::mem::size_of::<WGPUShaderSourceWGSL>() - 32usize];
3520 ["Alignment of WGPUShaderSourceWGSL"][::core::mem::align_of::<WGPUShaderSourceWGSL>() - 8usize];
3521 ["Offset of field: WGPUShaderSourceWGSL::chain"]
3522 [::core::mem::offset_of!(WGPUShaderSourceWGSL, chain) - 0usize];
3523 ["Offset of field: WGPUShaderSourceWGSL::code"]
3524 [::core::mem::offset_of!(WGPUShaderSourceWGSL, code) - 16usize];
3525};
3526#[repr(C)]
3527#[derive(Debug, Copy, Clone)]
3528pub struct WGPUSharedBufferMemoryBeginAccessDescriptor {
3529 pub nextInChain: *mut WGPUChainedStruct,
3530 pub initialized: WGPUBool,
3531 pub fenceCount: usize,
3532 pub fences: *const WGPUSharedFence,
3533 pub signaledValues: *const u64,
3534}
3535#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3536const _: () = {
3537 ["Size of WGPUSharedBufferMemoryBeginAccessDescriptor"]
3538 [::core::mem::size_of::<WGPUSharedBufferMemoryBeginAccessDescriptor>() - 40usize];
3539 ["Alignment of WGPUSharedBufferMemoryBeginAccessDescriptor"]
3540 [::core::mem::align_of::<WGPUSharedBufferMemoryBeginAccessDescriptor>() - 8usize];
3541 ["Offset of field: WGPUSharedBufferMemoryBeginAccessDescriptor::nextInChain"][::core::mem::offset_of!(
3542 WGPUSharedBufferMemoryBeginAccessDescriptor,
3543 nextInChain
3544 ) - 0usize];
3545 ["Offset of field: WGPUSharedBufferMemoryBeginAccessDescriptor::initialized"][::core::mem::offset_of!(
3546 WGPUSharedBufferMemoryBeginAccessDescriptor,
3547 initialized
3548 ) - 8usize];
3549 ["Offset of field: WGPUSharedBufferMemoryBeginAccessDescriptor::fenceCount"][::core::mem::offset_of!(
3550 WGPUSharedBufferMemoryBeginAccessDescriptor,
3551 fenceCount
3552 ) - 16usize];
3553 ["Offset of field: WGPUSharedBufferMemoryBeginAccessDescriptor::fences"]
3554 [::core::mem::offset_of!(WGPUSharedBufferMemoryBeginAccessDescriptor, fences) - 24usize];
3555 ["Offset of field: WGPUSharedBufferMemoryBeginAccessDescriptor::signaledValues"][::core::mem::offset_of!(
3556 WGPUSharedBufferMemoryBeginAccessDescriptor,
3557 signaledValues
3558 ) - 32usize];
3559};
3560#[repr(C)]
3561#[derive(Debug, Copy, Clone)]
3562pub struct WGPUSharedBufferMemoryDescriptor {
3563 pub nextInChain: *mut WGPUChainedStruct,
3564 pub label: WGPUStringView,
3565}
3566#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3567const _: () = {
3568 ["Size of WGPUSharedBufferMemoryDescriptor"]
3569 [::core::mem::size_of::<WGPUSharedBufferMemoryDescriptor>() - 24usize];
3570 ["Alignment of WGPUSharedBufferMemoryDescriptor"]
3571 [::core::mem::align_of::<WGPUSharedBufferMemoryDescriptor>() - 8usize];
3572 ["Offset of field: WGPUSharedBufferMemoryDescriptor::nextInChain"]
3573 [::core::mem::offset_of!(WGPUSharedBufferMemoryDescriptor, nextInChain) - 0usize];
3574 ["Offset of field: WGPUSharedBufferMemoryDescriptor::label"]
3575 [::core::mem::offset_of!(WGPUSharedBufferMemoryDescriptor, label) - 8usize];
3576};
3577#[repr(C)]
3578#[derive(Debug, Copy, Clone)]
3579pub struct WGPUSharedBufferMemoryEndAccessState {
3580 pub nextInChain: *mut WGPUChainedStruct,
3581 pub initialized: WGPUBool,
3582 pub fenceCount: usize,
3583 pub fences: *const WGPUSharedFence,
3584 pub signaledValues: *const u64,
3585}
3586#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3587const _: () = {
3588 ["Size of WGPUSharedBufferMemoryEndAccessState"]
3589 [::core::mem::size_of::<WGPUSharedBufferMemoryEndAccessState>() - 40usize];
3590 ["Alignment of WGPUSharedBufferMemoryEndAccessState"]
3591 [::core::mem::align_of::<WGPUSharedBufferMemoryEndAccessState>() - 8usize];
3592 ["Offset of field: WGPUSharedBufferMemoryEndAccessState::nextInChain"]
3593 [::core::mem::offset_of!(WGPUSharedBufferMemoryEndAccessState, nextInChain) - 0usize];
3594 ["Offset of field: WGPUSharedBufferMemoryEndAccessState::initialized"]
3595 [::core::mem::offset_of!(WGPUSharedBufferMemoryEndAccessState, initialized) - 8usize];
3596 ["Offset of field: WGPUSharedBufferMemoryEndAccessState::fenceCount"]
3597 [::core::mem::offset_of!(WGPUSharedBufferMemoryEndAccessState, fenceCount) - 16usize];
3598 ["Offset of field: WGPUSharedBufferMemoryEndAccessState::fences"]
3599 [::core::mem::offset_of!(WGPUSharedBufferMemoryEndAccessState, fences) - 24usize];
3600 ["Offset of field: WGPUSharedBufferMemoryEndAccessState::signaledValues"]
3601 [::core::mem::offset_of!(WGPUSharedBufferMemoryEndAccessState, signaledValues) - 32usize];
3602};
3603#[repr(C)]
3604#[derive(Debug, Copy, Clone)]
3605pub struct WGPUSharedBufferMemoryProperties {
3606 pub nextInChain: *mut WGPUChainedStruct,
3607 pub usage: WGPUBufferUsage,
3608 pub size: u64,
3609}
3610#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3611const _: () = {
3612 ["Size of WGPUSharedBufferMemoryProperties"]
3613 [::core::mem::size_of::<WGPUSharedBufferMemoryProperties>() - 24usize];
3614 ["Alignment of WGPUSharedBufferMemoryProperties"]
3615 [::core::mem::align_of::<WGPUSharedBufferMemoryProperties>() - 8usize];
3616 ["Offset of field: WGPUSharedBufferMemoryProperties::nextInChain"]
3617 [::core::mem::offset_of!(WGPUSharedBufferMemoryProperties, nextInChain) - 0usize];
3618 ["Offset of field: WGPUSharedBufferMemoryProperties::usage"]
3619 [::core::mem::offset_of!(WGPUSharedBufferMemoryProperties, usage) - 8usize];
3620 ["Offset of field: WGPUSharedBufferMemoryProperties::size"]
3621 [::core::mem::offset_of!(WGPUSharedBufferMemoryProperties, size) - 16usize];
3622};
3623#[repr(C)]
3624#[derive(Debug, Copy, Clone)]
3625pub struct WGPUSharedFenceDXGISharedHandleDescriptor {
3626 pub chain: WGPUChainedStruct,
3627 pub handle: *mut ::core::ffi::c_void,
3628}
3629#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3630const _: () = {
3631 ["Size of WGPUSharedFenceDXGISharedHandleDescriptor"]
3632 [::core::mem::size_of::<WGPUSharedFenceDXGISharedHandleDescriptor>() - 24usize];
3633 ["Alignment of WGPUSharedFenceDXGISharedHandleDescriptor"]
3634 [::core::mem::align_of::<WGPUSharedFenceDXGISharedHandleDescriptor>() - 8usize];
3635 ["Offset of field: WGPUSharedFenceDXGISharedHandleDescriptor::chain"]
3636 [::core::mem::offset_of!(WGPUSharedFenceDXGISharedHandleDescriptor, chain) - 0usize];
3637 ["Offset of field: WGPUSharedFenceDXGISharedHandleDescriptor::handle"]
3638 [::core::mem::offset_of!(WGPUSharedFenceDXGISharedHandleDescriptor, handle) - 16usize];
3639};
3640#[repr(C)]
3641#[derive(Debug, Copy, Clone)]
3642pub struct WGPUSharedFenceDXGISharedHandleExportInfo {
3643 pub chain: WGPUChainedStruct,
3644 pub handle: *mut ::core::ffi::c_void,
3645}
3646#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3647const _: () = {
3648 ["Size of WGPUSharedFenceDXGISharedHandleExportInfo"]
3649 [::core::mem::size_of::<WGPUSharedFenceDXGISharedHandleExportInfo>() - 24usize];
3650 ["Alignment of WGPUSharedFenceDXGISharedHandleExportInfo"]
3651 [::core::mem::align_of::<WGPUSharedFenceDXGISharedHandleExportInfo>() - 8usize];
3652 ["Offset of field: WGPUSharedFenceDXGISharedHandleExportInfo::chain"]
3653 [::core::mem::offset_of!(WGPUSharedFenceDXGISharedHandleExportInfo, chain) - 0usize];
3654 ["Offset of field: WGPUSharedFenceDXGISharedHandleExportInfo::handle"]
3655 [::core::mem::offset_of!(WGPUSharedFenceDXGISharedHandleExportInfo, handle) - 16usize];
3656};
3657#[repr(C)]
3658#[derive(Debug, Copy, Clone)]
3659pub struct WGPUSharedFenceEGLSyncDescriptor {
3660 pub chain: WGPUChainedStruct,
3661 pub sync: *mut ::core::ffi::c_void,
3662}
3663#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3664const _: () = {
3665 ["Size of WGPUSharedFenceEGLSyncDescriptor"]
3666 [::core::mem::size_of::<WGPUSharedFenceEGLSyncDescriptor>() - 24usize];
3667 ["Alignment of WGPUSharedFenceEGLSyncDescriptor"]
3668 [::core::mem::align_of::<WGPUSharedFenceEGLSyncDescriptor>() - 8usize];
3669 ["Offset of field: WGPUSharedFenceEGLSyncDescriptor::chain"]
3670 [::core::mem::offset_of!(WGPUSharedFenceEGLSyncDescriptor, chain) - 0usize];
3671 ["Offset of field: WGPUSharedFenceEGLSyncDescriptor::sync"]
3672 [::core::mem::offset_of!(WGPUSharedFenceEGLSyncDescriptor, sync) - 16usize];
3673};
3674#[repr(C)]
3675#[derive(Debug, Copy, Clone)]
3676pub struct WGPUSharedFenceEGLSyncExportInfo {
3677 pub chain: WGPUChainedStruct,
3678 pub sync: *mut ::core::ffi::c_void,
3679}
3680#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3681const _: () = {
3682 ["Size of WGPUSharedFenceEGLSyncExportInfo"]
3683 [::core::mem::size_of::<WGPUSharedFenceEGLSyncExportInfo>() - 24usize];
3684 ["Alignment of WGPUSharedFenceEGLSyncExportInfo"]
3685 [::core::mem::align_of::<WGPUSharedFenceEGLSyncExportInfo>() - 8usize];
3686 ["Offset of field: WGPUSharedFenceEGLSyncExportInfo::chain"]
3687 [::core::mem::offset_of!(WGPUSharedFenceEGLSyncExportInfo, chain) - 0usize];
3688 ["Offset of field: WGPUSharedFenceEGLSyncExportInfo::sync"]
3689 [::core::mem::offset_of!(WGPUSharedFenceEGLSyncExportInfo, sync) - 16usize];
3690};
3691#[repr(C)]
3692#[derive(Debug, Copy, Clone)]
3693pub struct WGPUSharedFenceMTLSharedEventDescriptor {
3694 pub chain: WGPUChainedStruct,
3695 pub sharedEvent: *mut ::core::ffi::c_void,
3696}
3697#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3698const _: () = {
3699 ["Size of WGPUSharedFenceMTLSharedEventDescriptor"]
3700 [::core::mem::size_of::<WGPUSharedFenceMTLSharedEventDescriptor>() - 24usize];
3701 ["Alignment of WGPUSharedFenceMTLSharedEventDescriptor"]
3702 [::core::mem::align_of::<WGPUSharedFenceMTLSharedEventDescriptor>() - 8usize];
3703 ["Offset of field: WGPUSharedFenceMTLSharedEventDescriptor::chain"]
3704 [::core::mem::offset_of!(WGPUSharedFenceMTLSharedEventDescriptor, chain) - 0usize];
3705 ["Offset of field: WGPUSharedFenceMTLSharedEventDescriptor::sharedEvent"]
3706 [::core::mem::offset_of!(WGPUSharedFenceMTLSharedEventDescriptor, sharedEvent) - 16usize];
3707};
3708#[repr(C)]
3709#[derive(Debug, Copy, Clone)]
3710pub struct WGPUSharedFenceMTLSharedEventExportInfo {
3711 pub chain: WGPUChainedStruct,
3712 pub sharedEvent: *mut ::core::ffi::c_void,
3713}
3714#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3715const _: () = {
3716 ["Size of WGPUSharedFenceMTLSharedEventExportInfo"]
3717 [::core::mem::size_of::<WGPUSharedFenceMTLSharedEventExportInfo>() - 24usize];
3718 ["Alignment of WGPUSharedFenceMTLSharedEventExportInfo"]
3719 [::core::mem::align_of::<WGPUSharedFenceMTLSharedEventExportInfo>() - 8usize];
3720 ["Offset of field: WGPUSharedFenceMTLSharedEventExportInfo::chain"]
3721 [::core::mem::offset_of!(WGPUSharedFenceMTLSharedEventExportInfo, chain) - 0usize];
3722 ["Offset of field: WGPUSharedFenceMTLSharedEventExportInfo::sharedEvent"]
3723 [::core::mem::offset_of!(WGPUSharedFenceMTLSharedEventExportInfo, sharedEvent) - 16usize];
3724};
3725#[repr(C)]
3726#[derive(Debug, Copy, Clone)]
3727pub struct WGPUSharedFenceSyncFDDescriptor {
3728 pub chain: WGPUChainedStruct,
3729 pub handle: ::core::ffi::c_int,
3730}
3731#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3732const _: () = {
3733 ["Size of WGPUSharedFenceSyncFDDescriptor"]
3734 [::core::mem::size_of::<WGPUSharedFenceSyncFDDescriptor>() - 24usize];
3735 ["Alignment of WGPUSharedFenceSyncFDDescriptor"]
3736 [::core::mem::align_of::<WGPUSharedFenceSyncFDDescriptor>() - 8usize];
3737 ["Offset of field: WGPUSharedFenceSyncFDDescriptor::chain"]
3738 [::core::mem::offset_of!(WGPUSharedFenceSyncFDDescriptor, chain) - 0usize];
3739 ["Offset of field: WGPUSharedFenceSyncFDDescriptor::handle"]
3740 [::core::mem::offset_of!(WGPUSharedFenceSyncFDDescriptor, handle) - 16usize];
3741};
3742#[repr(C)]
3743#[derive(Debug, Copy, Clone)]
3744pub struct WGPUSharedFenceSyncFDExportInfo {
3745 pub chain: WGPUChainedStruct,
3746 pub handle: ::core::ffi::c_int,
3747}
3748#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3749const _: () = {
3750 ["Size of WGPUSharedFenceSyncFDExportInfo"]
3751 [::core::mem::size_of::<WGPUSharedFenceSyncFDExportInfo>() - 24usize];
3752 ["Alignment of WGPUSharedFenceSyncFDExportInfo"]
3753 [::core::mem::align_of::<WGPUSharedFenceSyncFDExportInfo>() - 8usize];
3754 ["Offset of field: WGPUSharedFenceSyncFDExportInfo::chain"]
3755 [::core::mem::offset_of!(WGPUSharedFenceSyncFDExportInfo, chain) - 0usize];
3756 ["Offset of field: WGPUSharedFenceSyncFDExportInfo::handle"]
3757 [::core::mem::offset_of!(WGPUSharedFenceSyncFDExportInfo, handle) - 16usize];
3758};
3759#[repr(C)]
3760#[derive(Debug, Copy, Clone)]
3761pub struct WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor {
3762 pub chain: WGPUChainedStruct,
3763 pub handle: ::core::ffi::c_int,
3764}
3765#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3766const _: () = {
3767 ["Size of WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor"]
3768 [::core::mem::size_of::<WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor>() - 24usize];
3769 ["Alignment of WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor"]
3770 [::core::mem::align_of::<WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor>() - 8usize];
3771 ["Offset of field: WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor::chain"]
3772 [::core::mem::offset_of!(WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor, chain) - 0usize];
3773 ["Offset of field: WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor::handle"]
3774 [::core::mem::offset_of!(WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor, handle) - 16usize];
3775};
3776#[repr(C)]
3777#[derive(Debug, Copy, Clone)]
3778pub struct WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo {
3779 pub chain: WGPUChainedStruct,
3780 pub handle: ::core::ffi::c_int,
3781}
3782#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3783const _: () = {
3784 ["Size of WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo"]
3785 [::core::mem::size_of::<WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo>() - 24usize];
3786 ["Alignment of WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo"]
3787 [::core::mem::align_of::<WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo>() - 8usize];
3788 ["Offset of field: WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo::chain"]
3789 [::core::mem::offset_of!(WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo, chain) - 0usize];
3790 ["Offset of field: WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo::handle"]
3791 [::core::mem::offset_of!(WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo, handle) - 16usize];
3792};
3793#[repr(C)]
3794#[derive(Debug, Copy, Clone)]
3795pub struct WGPUSharedFenceVkSemaphoreZirconHandleDescriptor {
3796 pub chain: WGPUChainedStruct,
3797 pub handle: u32,
3798}
3799#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3800const _: () = {
3801 ["Size of WGPUSharedFenceVkSemaphoreZirconHandleDescriptor"]
3802 [::core::mem::size_of::<WGPUSharedFenceVkSemaphoreZirconHandleDescriptor>() - 24usize];
3803 ["Alignment of WGPUSharedFenceVkSemaphoreZirconHandleDescriptor"]
3804 [::core::mem::align_of::<WGPUSharedFenceVkSemaphoreZirconHandleDescriptor>() - 8usize];
3805 ["Offset of field: WGPUSharedFenceVkSemaphoreZirconHandleDescriptor::chain"]
3806 [::core::mem::offset_of!(WGPUSharedFenceVkSemaphoreZirconHandleDescriptor, chain) - 0usize];
3807 ["Offset of field: WGPUSharedFenceVkSemaphoreZirconHandleDescriptor::handle"][::core::mem::offset_of!(
3808 WGPUSharedFenceVkSemaphoreZirconHandleDescriptor,
3809 handle
3810 ) - 16usize];
3811};
3812#[repr(C)]
3813#[derive(Debug, Copy, Clone)]
3814pub struct WGPUSharedFenceVkSemaphoreZirconHandleExportInfo {
3815 pub chain: WGPUChainedStruct,
3816 pub handle: u32,
3817}
3818#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3819const _: () = {
3820 ["Size of WGPUSharedFenceVkSemaphoreZirconHandleExportInfo"]
3821 [::core::mem::size_of::<WGPUSharedFenceVkSemaphoreZirconHandleExportInfo>() - 24usize];
3822 ["Alignment of WGPUSharedFenceVkSemaphoreZirconHandleExportInfo"]
3823 [::core::mem::align_of::<WGPUSharedFenceVkSemaphoreZirconHandleExportInfo>() - 8usize];
3824 ["Offset of field: WGPUSharedFenceVkSemaphoreZirconHandleExportInfo::chain"]
3825 [::core::mem::offset_of!(WGPUSharedFenceVkSemaphoreZirconHandleExportInfo, chain) - 0usize];
3826 ["Offset of field: WGPUSharedFenceVkSemaphoreZirconHandleExportInfo::handle"][::core::mem::offset_of!(
3827 WGPUSharedFenceVkSemaphoreZirconHandleExportInfo,
3828 handle
3829 ) - 16usize];
3830};
3831#[repr(C)]
3832#[derive(Debug, Copy, Clone)]
3833pub struct WGPUSharedTextureMemoryAHardwareBufferDescriptor {
3834 pub chain: WGPUChainedStruct,
3835 pub handle: *mut ::core::ffi::c_void,
3836 pub useExternalFormat: WGPUBool,
3837}
3838#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3839const _: () = {
3840 ["Size of WGPUSharedTextureMemoryAHardwareBufferDescriptor"]
3841 [::core::mem::size_of::<WGPUSharedTextureMemoryAHardwareBufferDescriptor>() - 32usize];
3842 ["Alignment of WGPUSharedTextureMemoryAHardwareBufferDescriptor"]
3843 [::core::mem::align_of::<WGPUSharedTextureMemoryAHardwareBufferDescriptor>() - 8usize];
3844 ["Offset of field: WGPUSharedTextureMemoryAHardwareBufferDescriptor::chain"]
3845 [::core::mem::offset_of!(WGPUSharedTextureMemoryAHardwareBufferDescriptor, chain) - 0usize];
3846 ["Offset of field: WGPUSharedTextureMemoryAHardwareBufferDescriptor::handle"][::core::mem::offset_of!(
3847 WGPUSharedTextureMemoryAHardwareBufferDescriptor,
3848 handle
3849 ) - 16usize];
3850 ["Offset of field: WGPUSharedTextureMemoryAHardwareBufferDescriptor::useExternalFormat"][::core::mem::offset_of!(
3851 WGPUSharedTextureMemoryAHardwareBufferDescriptor,
3852 useExternalFormat
3853 )
3854 - 24usize];
3855};
3856#[repr(C)]
3857#[derive(Debug, Copy, Clone)]
3858pub struct WGPUSharedTextureMemoryD3DSwapchainBeginState {
3859 pub chain: WGPUChainedStruct,
3860 pub isSwapchain: WGPUBool,
3861}
3862#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3863const _: () = {
3864 ["Size of WGPUSharedTextureMemoryD3DSwapchainBeginState"]
3865 [::core::mem::size_of::<WGPUSharedTextureMemoryD3DSwapchainBeginState>() - 24usize];
3866 ["Alignment of WGPUSharedTextureMemoryD3DSwapchainBeginState"]
3867 [::core::mem::align_of::<WGPUSharedTextureMemoryD3DSwapchainBeginState>() - 8usize];
3868 ["Offset of field: WGPUSharedTextureMemoryD3DSwapchainBeginState::chain"]
3869 [::core::mem::offset_of!(WGPUSharedTextureMemoryD3DSwapchainBeginState, chain) - 0usize];
3870 ["Offset of field: WGPUSharedTextureMemoryD3DSwapchainBeginState::isSwapchain"][::core::mem::offset_of!(
3871 WGPUSharedTextureMemoryD3DSwapchainBeginState,
3872 isSwapchain
3873 ) - 16usize];
3874};
3875#[repr(C)]
3876#[derive(Debug, Copy, Clone)]
3877pub struct WGPUSharedTextureMemoryDmaBufPlane {
3878 pub fd: ::core::ffi::c_int,
3879 pub offset: u64,
3880 pub stride: u32,
3881}
3882#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3883const _: () = {
3884 ["Size of WGPUSharedTextureMemoryDmaBufPlane"]
3885 [::core::mem::size_of::<WGPUSharedTextureMemoryDmaBufPlane>() - 24usize];
3886 ["Alignment of WGPUSharedTextureMemoryDmaBufPlane"]
3887 [::core::mem::align_of::<WGPUSharedTextureMemoryDmaBufPlane>() - 8usize];
3888 ["Offset of field: WGPUSharedTextureMemoryDmaBufPlane::fd"]
3889 [::core::mem::offset_of!(WGPUSharedTextureMemoryDmaBufPlane, fd) - 0usize];
3890 ["Offset of field: WGPUSharedTextureMemoryDmaBufPlane::offset"]
3891 [::core::mem::offset_of!(WGPUSharedTextureMemoryDmaBufPlane, offset) - 8usize];
3892 ["Offset of field: WGPUSharedTextureMemoryDmaBufPlane::stride"]
3893 [::core::mem::offset_of!(WGPUSharedTextureMemoryDmaBufPlane, stride) - 16usize];
3894};
3895#[repr(C)]
3896#[derive(Debug, Copy, Clone)]
3897pub struct WGPUSharedTextureMemoryDXGISharedHandleDescriptor {
3898 pub chain: WGPUChainedStruct,
3899 pub handle: *mut ::core::ffi::c_void,
3900 pub useKeyedMutex: WGPUBool,
3901}
3902#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3903const _: () = {
3904 ["Size of WGPUSharedTextureMemoryDXGISharedHandleDescriptor"]
3905 [::core::mem::size_of::<WGPUSharedTextureMemoryDXGISharedHandleDescriptor>() - 32usize];
3906 ["Alignment of WGPUSharedTextureMemoryDXGISharedHandleDescriptor"]
3907 [::core::mem::align_of::<WGPUSharedTextureMemoryDXGISharedHandleDescriptor>() - 8usize];
3908 ["Offset of field: WGPUSharedTextureMemoryDXGISharedHandleDescriptor::chain"][::core::mem::offset_of!(
3909 WGPUSharedTextureMemoryDXGISharedHandleDescriptor,
3910 chain
3911 ) - 0usize];
3912 ["Offset of field: WGPUSharedTextureMemoryDXGISharedHandleDescriptor::handle"][::core::mem::offset_of!(
3913 WGPUSharedTextureMemoryDXGISharedHandleDescriptor,
3914 handle
3915 ) - 16usize];
3916 ["Offset of field: WGPUSharedTextureMemoryDXGISharedHandleDescriptor::useKeyedMutex"][::core::mem::offset_of!(
3917 WGPUSharedTextureMemoryDXGISharedHandleDescriptor,
3918 useKeyedMutex
3919 )
3920 - 24usize];
3921};
3922#[repr(C)]
3923#[derive(Debug, Copy, Clone)]
3924pub struct WGPUSharedTextureMemoryEGLImageDescriptor {
3925 pub chain: WGPUChainedStruct,
3926 pub image: *mut ::core::ffi::c_void,
3927}
3928#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3929const _: () = {
3930 ["Size of WGPUSharedTextureMemoryEGLImageDescriptor"]
3931 [::core::mem::size_of::<WGPUSharedTextureMemoryEGLImageDescriptor>() - 24usize];
3932 ["Alignment of WGPUSharedTextureMemoryEGLImageDescriptor"]
3933 [::core::mem::align_of::<WGPUSharedTextureMemoryEGLImageDescriptor>() - 8usize];
3934 ["Offset of field: WGPUSharedTextureMemoryEGLImageDescriptor::chain"]
3935 [::core::mem::offset_of!(WGPUSharedTextureMemoryEGLImageDescriptor, chain) - 0usize];
3936 ["Offset of field: WGPUSharedTextureMemoryEGLImageDescriptor::image"]
3937 [::core::mem::offset_of!(WGPUSharedTextureMemoryEGLImageDescriptor, image) - 16usize];
3938};
3939#[repr(C)]
3940#[derive(Debug, Copy, Clone)]
3941pub struct WGPUSharedTextureMemoryIOSurfaceDescriptor {
3942 pub chain: WGPUChainedStruct,
3943 pub ioSurface: *mut ::core::ffi::c_void,
3944 pub allowStorageBinding: WGPUBool,
3945}
3946#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3947const _: () = {
3948 ["Size of WGPUSharedTextureMemoryIOSurfaceDescriptor"]
3949 [::core::mem::size_of::<WGPUSharedTextureMemoryIOSurfaceDescriptor>() - 32usize];
3950 ["Alignment of WGPUSharedTextureMemoryIOSurfaceDescriptor"]
3951 [::core::mem::align_of::<WGPUSharedTextureMemoryIOSurfaceDescriptor>() - 8usize];
3952 ["Offset of field: WGPUSharedTextureMemoryIOSurfaceDescriptor::chain"]
3953 [::core::mem::offset_of!(WGPUSharedTextureMemoryIOSurfaceDescriptor, chain) - 0usize];
3954 ["Offset of field: WGPUSharedTextureMemoryIOSurfaceDescriptor::ioSurface"]
3955 [::core::mem::offset_of!(WGPUSharedTextureMemoryIOSurfaceDescriptor, ioSurface) - 16usize];
3956 ["Offset of field: WGPUSharedTextureMemoryIOSurfaceDescriptor::allowStorageBinding"][::core::mem::offset_of!(
3957 WGPUSharedTextureMemoryIOSurfaceDescriptor,
3958 allowStorageBinding
3959 )
3960 - 24usize];
3961};
3962#[repr(C)]
3963#[derive(Debug, Copy, Clone)]
3964pub struct WGPUSharedTextureMemoryOpaqueFDDescriptor {
3965 pub chain: WGPUChainedStruct,
3966 pub vkImageCreateInfo: *const ::core::ffi::c_void,
3967 pub memoryFD: ::core::ffi::c_int,
3968 pub memoryTypeIndex: u32,
3969 pub allocationSize: u64,
3970 pub dedicatedAllocation: WGPUBool,
3971}
3972#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3973const _: () = {
3974 ["Size of WGPUSharedTextureMemoryOpaqueFDDescriptor"]
3975 [::core::mem::size_of::<WGPUSharedTextureMemoryOpaqueFDDescriptor>() - 48usize];
3976 ["Alignment of WGPUSharedTextureMemoryOpaqueFDDescriptor"]
3977 [::core::mem::align_of::<WGPUSharedTextureMemoryOpaqueFDDescriptor>() - 8usize];
3978 ["Offset of field: WGPUSharedTextureMemoryOpaqueFDDescriptor::chain"]
3979 [::core::mem::offset_of!(WGPUSharedTextureMemoryOpaqueFDDescriptor, chain) - 0usize];
3980 ["Offset of field: WGPUSharedTextureMemoryOpaqueFDDescriptor::vkImageCreateInfo"][::core::mem::offset_of!(
3981 WGPUSharedTextureMemoryOpaqueFDDescriptor,
3982 vkImageCreateInfo
3983 ) - 16usize];
3984 ["Offset of field: WGPUSharedTextureMemoryOpaqueFDDescriptor::memoryFD"]
3985 [::core::mem::offset_of!(WGPUSharedTextureMemoryOpaqueFDDescriptor, memoryFD) - 24usize];
3986 ["Offset of field: WGPUSharedTextureMemoryOpaqueFDDescriptor::memoryTypeIndex"][::core::mem::offset_of!(
3987 WGPUSharedTextureMemoryOpaqueFDDescriptor,
3988 memoryTypeIndex
3989 ) - 28usize];
3990 ["Offset of field: WGPUSharedTextureMemoryOpaqueFDDescriptor::allocationSize"][::core::mem::offset_of!(
3991 WGPUSharedTextureMemoryOpaqueFDDescriptor,
3992 allocationSize
3993 ) - 32usize];
3994 ["Offset of field: WGPUSharedTextureMemoryOpaqueFDDescriptor::dedicatedAllocation"][::core::mem::offset_of!(
3995 WGPUSharedTextureMemoryOpaqueFDDescriptor,
3996 dedicatedAllocation
3997 )
3998 - 40usize];
3999};
4000#[repr(C)]
4001#[derive(Debug, Copy, Clone)]
4002pub struct WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor {
4003 pub chain: WGPUChainedStruct,
4004 pub dedicatedAllocation: WGPUBool,
4005}
4006#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4007const _: () = {
4008 ["Size of WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor"][::core::mem::size_of::<
4009 WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor,
4010 >() - 24usize];
4011 ["Alignment of WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor"][::core::mem::align_of::<
4012 WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor,
4013 >() - 8usize];
4014 ["Offset of field: WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor::chain"][::core::mem::offset_of!(
4015 WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor,
4016 chain
4017 ) - 0usize];
4018 ["Offset of field: WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor::dedicatedAllocation"] [:: core :: mem :: offset_of ! (WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor , dedicatedAllocation) - 16usize] ;
4019};
4020#[repr(C)]
4021#[derive(Debug, Copy, Clone)]
4022pub struct WGPUSharedTextureMemoryVkImageLayoutBeginState {
4023 pub chain: WGPUChainedStruct,
4024 pub oldLayout: i32,
4025 pub newLayout: i32,
4026}
4027#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4028const _: () = {
4029 ["Size of WGPUSharedTextureMemoryVkImageLayoutBeginState"]
4030 [::core::mem::size_of::<WGPUSharedTextureMemoryVkImageLayoutBeginState>() - 24usize];
4031 ["Alignment of WGPUSharedTextureMemoryVkImageLayoutBeginState"]
4032 [::core::mem::align_of::<WGPUSharedTextureMemoryVkImageLayoutBeginState>() - 8usize];
4033 ["Offset of field: WGPUSharedTextureMemoryVkImageLayoutBeginState::chain"]
4034 [::core::mem::offset_of!(WGPUSharedTextureMemoryVkImageLayoutBeginState, chain) - 0usize];
4035 ["Offset of field: WGPUSharedTextureMemoryVkImageLayoutBeginState::oldLayout"][::core::mem::offset_of!(
4036 WGPUSharedTextureMemoryVkImageLayoutBeginState,
4037 oldLayout
4038 ) - 16usize];
4039 ["Offset of field: WGPUSharedTextureMemoryVkImageLayoutBeginState::newLayout"][::core::mem::offset_of!(
4040 WGPUSharedTextureMemoryVkImageLayoutBeginState,
4041 newLayout
4042 ) - 20usize];
4043};
4044#[repr(C)]
4045#[derive(Debug, Copy, Clone)]
4046pub struct WGPUSharedTextureMemoryVkImageLayoutEndState {
4047 pub chain: WGPUChainedStruct,
4048 pub oldLayout: i32,
4049 pub newLayout: i32,
4050}
4051#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4052const _: () = {
4053 ["Size of WGPUSharedTextureMemoryVkImageLayoutEndState"]
4054 [::core::mem::size_of::<WGPUSharedTextureMemoryVkImageLayoutEndState>() - 24usize];
4055 ["Alignment of WGPUSharedTextureMemoryVkImageLayoutEndState"]
4056 [::core::mem::align_of::<WGPUSharedTextureMemoryVkImageLayoutEndState>() - 8usize];
4057 ["Offset of field: WGPUSharedTextureMemoryVkImageLayoutEndState::chain"]
4058 [::core::mem::offset_of!(WGPUSharedTextureMemoryVkImageLayoutEndState, chain) - 0usize];
4059 ["Offset of field: WGPUSharedTextureMemoryVkImageLayoutEndState::oldLayout"][::core::mem::offset_of!(
4060 WGPUSharedTextureMemoryVkImageLayoutEndState,
4061 oldLayout
4062 ) - 16usize];
4063 ["Offset of field: WGPUSharedTextureMemoryVkImageLayoutEndState::newLayout"][::core::mem::offset_of!(
4064 WGPUSharedTextureMemoryVkImageLayoutEndState,
4065 newLayout
4066 ) - 20usize];
4067};
4068#[repr(C)]
4069#[derive(Debug, Copy, Clone)]
4070pub struct WGPUSharedTextureMemoryZirconHandleDescriptor {
4071 pub chain: WGPUChainedStruct,
4072 pub memoryFD: u32,
4073 pub allocationSize: u64,
4074}
4075#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4076const _: () = {
4077 ["Size of WGPUSharedTextureMemoryZirconHandleDescriptor"]
4078 [::core::mem::size_of::<WGPUSharedTextureMemoryZirconHandleDescriptor>() - 32usize];
4079 ["Alignment of WGPUSharedTextureMemoryZirconHandleDescriptor"]
4080 [::core::mem::align_of::<WGPUSharedTextureMemoryZirconHandleDescriptor>() - 8usize];
4081 ["Offset of field: WGPUSharedTextureMemoryZirconHandleDescriptor::chain"]
4082 [::core::mem::offset_of!(WGPUSharedTextureMemoryZirconHandleDescriptor, chain) - 0usize];
4083 ["Offset of field: WGPUSharedTextureMemoryZirconHandleDescriptor::memoryFD"][::core::mem::offset_of!(
4084 WGPUSharedTextureMemoryZirconHandleDescriptor,
4085 memoryFD
4086 ) - 16usize];
4087 ["Offset of field: WGPUSharedTextureMemoryZirconHandleDescriptor::allocationSize"][::core::mem::offset_of!(
4088 WGPUSharedTextureMemoryZirconHandleDescriptor,
4089 allocationSize
4090 ) - 24usize];
4091};
4092#[repr(C)]
4093#[derive(Debug, Copy, Clone)]
4094pub struct WGPUStaticSamplerBindingLayout {
4095 pub chain: WGPUChainedStruct,
4096 pub sampler: WGPUSampler,
4097 pub sampledTextureBinding: u32,
4098}
4099#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4100const _: () = {
4101 ["Size of WGPUStaticSamplerBindingLayout"]
4102 [::core::mem::size_of::<WGPUStaticSamplerBindingLayout>() - 32usize];
4103 ["Alignment of WGPUStaticSamplerBindingLayout"]
4104 [::core::mem::align_of::<WGPUStaticSamplerBindingLayout>() - 8usize];
4105 ["Offset of field: WGPUStaticSamplerBindingLayout::chain"]
4106 [::core::mem::offset_of!(WGPUStaticSamplerBindingLayout, chain) - 0usize];
4107 ["Offset of field: WGPUStaticSamplerBindingLayout::sampler"]
4108 [::core::mem::offset_of!(WGPUStaticSamplerBindingLayout, sampler) - 16usize];
4109 ["Offset of field: WGPUStaticSamplerBindingLayout::sampledTextureBinding"]
4110 [::core::mem::offset_of!(WGPUStaticSamplerBindingLayout, sampledTextureBinding) - 24usize];
4111};
4112#[repr(C)]
4113#[derive(Debug, Copy, Clone)]
4114pub struct WGPUStencilFaceState {
4115 pub compare: WGPUCompareFunction,
4116 pub failOp: WGPUStencilOperation,
4117 pub depthFailOp: WGPUStencilOperation,
4118 pub passOp: WGPUStencilOperation,
4119}
4120#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4121const _: () = {
4122 ["Size of WGPUStencilFaceState"][::core::mem::size_of::<WGPUStencilFaceState>() - 16usize];
4123 ["Alignment of WGPUStencilFaceState"][::core::mem::align_of::<WGPUStencilFaceState>() - 4usize];
4124 ["Offset of field: WGPUStencilFaceState::compare"]
4125 [::core::mem::offset_of!(WGPUStencilFaceState, compare) - 0usize];
4126 ["Offset of field: WGPUStencilFaceState::failOp"]
4127 [::core::mem::offset_of!(WGPUStencilFaceState, failOp) - 4usize];
4128 ["Offset of field: WGPUStencilFaceState::depthFailOp"]
4129 [::core::mem::offset_of!(WGPUStencilFaceState, depthFailOp) - 8usize];
4130 ["Offset of field: WGPUStencilFaceState::passOp"]
4131 [::core::mem::offset_of!(WGPUStencilFaceState, passOp) - 12usize];
4132};
4133#[repr(C)]
4134#[derive(Debug, Copy, Clone)]
4135pub struct WGPUStorageTextureBindingLayout {
4136 pub nextInChain: *mut WGPUChainedStruct,
4137 pub access: WGPUStorageTextureAccess,
4138 pub format: WGPUTextureFormat,
4139 pub viewDimension: WGPUTextureViewDimension,
4140}
4141#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4142const _: () = {
4143 ["Size of WGPUStorageTextureBindingLayout"]
4144 [::core::mem::size_of::<WGPUStorageTextureBindingLayout>() - 24usize];
4145 ["Alignment of WGPUStorageTextureBindingLayout"]
4146 [::core::mem::align_of::<WGPUStorageTextureBindingLayout>() - 8usize];
4147 ["Offset of field: WGPUStorageTextureBindingLayout::nextInChain"]
4148 [::core::mem::offset_of!(WGPUStorageTextureBindingLayout, nextInChain) - 0usize];
4149 ["Offset of field: WGPUStorageTextureBindingLayout::access"]
4150 [::core::mem::offset_of!(WGPUStorageTextureBindingLayout, access) - 8usize];
4151 ["Offset of field: WGPUStorageTextureBindingLayout::format"]
4152 [::core::mem::offset_of!(WGPUStorageTextureBindingLayout, format) - 12usize];
4153 ["Offset of field: WGPUStorageTextureBindingLayout::viewDimension"]
4154 [::core::mem::offset_of!(WGPUStorageTextureBindingLayout, viewDimension) - 16usize];
4155};
4156#[repr(C)]
4157#[derive(Debug, Copy, Clone)]
4158pub struct WGPUSubgroupMatrixConfig {
4159 pub componentType: WGPUSubgroupMatrixComponentType,
4160 pub resultComponentType: WGPUSubgroupMatrixComponentType,
4161 pub M: u32,
4162 pub N: u32,
4163 pub K: u32,
4164}
4165#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4166const _: () = {
4167 ["Size of WGPUSubgroupMatrixConfig"]
4168 [::core::mem::size_of::<WGPUSubgroupMatrixConfig>() - 20usize];
4169 ["Alignment of WGPUSubgroupMatrixConfig"]
4170 [::core::mem::align_of::<WGPUSubgroupMatrixConfig>() - 4usize];
4171 ["Offset of field: WGPUSubgroupMatrixConfig::componentType"]
4172 [::core::mem::offset_of!(WGPUSubgroupMatrixConfig, componentType) - 0usize];
4173 ["Offset of field: WGPUSubgroupMatrixConfig::resultComponentType"]
4174 [::core::mem::offset_of!(WGPUSubgroupMatrixConfig, resultComponentType) - 4usize];
4175 ["Offset of field: WGPUSubgroupMatrixConfig::M"]
4176 [::core::mem::offset_of!(WGPUSubgroupMatrixConfig, M) - 8usize];
4177 ["Offset of field: WGPUSubgroupMatrixConfig::N"]
4178 [::core::mem::offset_of!(WGPUSubgroupMatrixConfig, N) - 12usize];
4179 ["Offset of field: WGPUSubgroupMatrixConfig::K"]
4180 [::core::mem::offset_of!(WGPUSubgroupMatrixConfig, K) - 16usize];
4181};
4182#[repr(C)]
4183#[derive(Debug, Copy, Clone)]
4184pub struct WGPUSupportedFeatures {
4185 pub featureCount: usize,
4186 pub features: *const WGPUFeatureName,
4187}
4188#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4189const _: () = {
4190 ["Size of WGPUSupportedFeatures"][::core::mem::size_of::<WGPUSupportedFeatures>() - 16usize];
4191 ["Alignment of WGPUSupportedFeatures"]
4192 [::core::mem::align_of::<WGPUSupportedFeatures>() - 8usize];
4193 ["Offset of field: WGPUSupportedFeatures::featureCount"]
4194 [::core::mem::offset_of!(WGPUSupportedFeatures, featureCount) - 0usize];
4195 ["Offset of field: WGPUSupportedFeatures::features"]
4196 [::core::mem::offset_of!(WGPUSupportedFeatures, features) - 8usize];
4197};
4198#[repr(C)]
4199#[derive(Debug, Copy, Clone)]
4200pub struct WGPUSupportedWGSLLanguageFeatures {
4201 pub featureCount: usize,
4202 pub features: *const WGPUWGSLLanguageFeatureName,
4203}
4204#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4205const _: () = {
4206 ["Size of WGPUSupportedWGSLLanguageFeatures"]
4207 [::core::mem::size_of::<WGPUSupportedWGSLLanguageFeatures>() - 16usize];
4208 ["Alignment of WGPUSupportedWGSLLanguageFeatures"]
4209 [::core::mem::align_of::<WGPUSupportedWGSLLanguageFeatures>() - 8usize];
4210 ["Offset of field: WGPUSupportedWGSLLanguageFeatures::featureCount"]
4211 [::core::mem::offset_of!(WGPUSupportedWGSLLanguageFeatures, featureCount) - 0usize];
4212 ["Offset of field: WGPUSupportedWGSLLanguageFeatures::features"]
4213 [::core::mem::offset_of!(WGPUSupportedWGSLLanguageFeatures, features) - 8usize];
4214};
4215#[repr(C)]
4216#[derive(Debug, Copy, Clone)]
4217pub struct WGPUSurfaceCapabilities {
4218 pub nextInChain: *mut WGPUChainedStruct,
4219 pub usages: WGPUTextureUsage,
4220 pub formatCount: usize,
4221 pub formats: *const WGPUTextureFormat,
4222 pub presentModeCount: usize,
4223 pub presentModes: *const WGPUPresentMode,
4224 pub alphaModeCount: usize,
4225 pub alphaModes: *const WGPUCompositeAlphaMode,
4226}
4227#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4228const _: () = {
4229 ["Size of WGPUSurfaceCapabilities"]
4230 [::core::mem::size_of::<WGPUSurfaceCapabilities>() - 64usize];
4231 ["Alignment of WGPUSurfaceCapabilities"]
4232 [::core::mem::align_of::<WGPUSurfaceCapabilities>() - 8usize];
4233 ["Offset of field: WGPUSurfaceCapabilities::nextInChain"]
4234 [::core::mem::offset_of!(WGPUSurfaceCapabilities, nextInChain) - 0usize];
4235 ["Offset of field: WGPUSurfaceCapabilities::usages"]
4236 [::core::mem::offset_of!(WGPUSurfaceCapabilities, usages) - 8usize];
4237 ["Offset of field: WGPUSurfaceCapabilities::formatCount"]
4238 [::core::mem::offset_of!(WGPUSurfaceCapabilities, formatCount) - 16usize];
4239 ["Offset of field: WGPUSurfaceCapabilities::formats"]
4240 [::core::mem::offset_of!(WGPUSurfaceCapabilities, formats) - 24usize];
4241 ["Offset of field: WGPUSurfaceCapabilities::presentModeCount"]
4242 [::core::mem::offset_of!(WGPUSurfaceCapabilities, presentModeCount) - 32usize];
4243 ["Offset of field: WGPUSurfaceCapabilities::presentModes"]
4244 [::core::mem::offset_of!(WGPUSurfaceCapabilities, presentModes) - 40usize];
4245 ["Offset of field: WGPUSurfaceCapabilities::alphaModeCount"]
4246 [::core::mem::offset_of!(WGPUSurfaceCapabilities, alphaModeCount) - 48usize];
4247 ["Offset of field: WGPUSurfaceCapabilities::alphaModes"]
4248 [::core::mem::offset_of!(WGPUSurfaceCapabilities, alphaModes) - 56usize];
4249};
4250#[repr(C)]
4251#[derive(Debug, Copy, Clone)]
4252pub struct WGPUSurfaceColorManagement {
4253 pub chain: WGPUChainedStruct,
4254 pub colorSpace: WGPUPredefinedColorSpace,
4255 pub toneMappingMode: WGPUToneMappingMode,
4256}
4257#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4258const _: () = {
4259 ["Size of WGPUSurfaceColorManagement"]
4260 [::core::mem::size_of::<WGPUSurfaceColorManagement>() - 24usize];
4261 ["Alignment of WGPUSurfaceColorManagement"]
4262 [::core::mem::align_of::<WGPUSurfaceColorManagement>() - 8usize];
4263 ["Offset of field: WGPUSurfaceColorManagement::chain"]
4264 [::core::mem::offset_of!(WGPUSurfaceColorManagement, chain) - 0usize];
4265 ["Offset of field: WGPUSurfaceColorManagement::colorSpace"]
4266 [::core::mem::offset_of!(WGPUSurfaceColorManagement, colorSpace) - 16usize];
4267 ["Offset of field: WGPUSurfaceColorManagement::toneMappingMode"]
4268 [::core::mem::offset_of!(WGPUSurfaceColorManagement, toneMappingMode) - 20usize];
4269};
4270#[repr(C)]
4271#[derive(Debug, Copy, Clone)]
4272pub struct WGPUSurfaceConfiguration {
4273 pub nextInChain: *mut WGPUChainedStruct,
4274 pub device: WGPUDevice,
4275 pub format: WGPUTextureFormat,
4276 pub usage: WGPUTextureUsage,
4277 pub width: u32,
4278 pub height: u32,
4279 pub viewFormatCount: usize,
4280 pub viewFormats: *const WGPUTextureFormat,
4281 pub alphaMode: WGPUCompositeAlphaMode,
4282 pub presentMode: WGPUPresentMode,
4283}
4284#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4285const _: () = {
4286 ["Size of WGPUSurfaceConfiguration"]
4287 [::core::mem::size_of::<WGPUSurfaceConfiguration>() - 64usize];
4288 ["Alignment of WGPUSurfaceConfiguration"]
4289 [::core::mem::align_of::<WGPUSurfaceConfiguration>() - 8usize];
4290 ["Offset of field: WGPUSurfaceConfiguration::nextInChain"]
4291 [::core::mem::offset_of!(WGPUSurfaceConfiguration, nextInChain) - 0usize];
4292 ["Offset of field: WGPUSurfaceConfiguration::device"]
4293 [::core::mem::offset_of!(WGPUSurfaceConfiguration, device) - 8usize];
4294 ["Offset of field: WGPUSurfaceConfiguration::format"]
4295 [::core::mem::offset_of!(WGPUSurfaceConfiguration, format) - 16usize];
4296 ["Offset of field: WGPUSurfaceConfiguration::usage"]
4297 [::core::mem::offset_of!(WGPUSurfaceConfiguration, usage) - 24usize];
4298 ["Offset of field: WGPUSurfaceConfiguration::width"]
4299 [::core::mem::offset_of!(WGPUSurfaceConfiguration, width) - 32usize];
4300 ["Offset of field: WGPUSurfaceConfiguration::height"]
4301 [::core::mem::offset_of!(WGPUSurfaceConfiguration, height) - 36usize];
4302 ["Offset of field: WGPUSurfaceConfiguration::viewFormatCount"]
4303 [::core::mem::offset_of!(WGPUSurfaceConfiguration, viewFormatCount) - 40usize];
4304 ["Offset of field: WGPUSurfaceConfiguration::viewFormats"]
4305 [::core::mem::offset_of!(WGPUSurfaceConfiguration, viewFormats) - 48usize];
4306 ["Offset of field: WGPUSurfaceConfiguration::alphaMode"]
4307 [::core::mem::offset_of!(WGPUSurfaceConfiguration, alphaMode) - 56usize];
4308 ["Offset of field: WGPUSurfaceConfiguration::presentMode"]
4309 [::core::mem::offset_of!(WGPUSurfaceConfiguration, presentMode) - 60usize];
4310};
4311#[repr(C)]
4312#[derive(Debug, Copy, Clone)]
4313pub struct WGPUSurfaceDescriptorFromWindowsCoreWindow {
4314 pub chain: WGPUChainedStruct,
4315 pub coreWindow: *mut ::core::ffi::c_void,
4316}
4317#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4318const _: () = {
4319 ["Size of WGPUSurfaceDescriptorFromWindowsCoreWindow"]
4320 [::core::mem::size_of::<WGPUSurfaceDescriptorFromWindowsCoreWindow>() - 24usize];
4321 ["Alignment of WGPUSurfaceDescriptorFromWindowsCoreWindow"]
4322 [::core::mem::align_of::<WGPUSurfaceDescriptorFromWindowsCoreWindow>() - 8usize];
4323 ["Offset of field: WGPUSurfaceDescriptorFromWindowsCoreWindow::chain"]
4324 [::core::mem::offset_of!(WGPUSurfaceDescriptorFromWindowsCoreWindow, chain) - 0usize];
4325 ["Offset of field: WGPUSurfaceDescriptorFromWindowsCoreWindow::coreWindow"]
4326 [::core::mem::offset_of!(WGPUSurfaceDescriptorFromWindowsCoreWindow, coreWindow) - 16usize];
4327};
4328#[repr(C)]
4329#[derive(Debug, Copy, Clone)]
4330pub struct WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel {
4331 pub chain: WGPUChainedStruct,
4332 pub swapChainPanel: *mut ::core::ffi::c_void,
4333}
4334#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4335const _: () = {
4336 ["Size of WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel"]
4337 [::core::mem::size_of::<WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel>() - 24usize];
4338 ["Alignment of WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel"]
4339 [::core::mem::align_of::<WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel>() - 8usize];
4340 ["Offset of field: WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel::chain"][::core::mem::offset_of!(
4341 WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel,
4342 chain
4343 ) - 0usize];
4344 ["Offset of field: WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel::swapChainPanel"][::core::mem::offset_of!(
4345 WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel,
4346 swapChainPanel
4347 )
4348 - 16usize];
4349};
4350#[repr(C)]
4351#[derive(Debug, Copy, Clone)]
4352pub struct WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel {
4353 pub chain: WGPUChainedStruct,
4354 pub swapChainPanel: *mut ::core::ffi::c_void,
4355}
4356#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4357const _: () = {
4358 ["Size of WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel"]
4359 [::core::mem::size_of::<WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel>() - 24usize];
4360 ["Alignment of WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel"]
4361 [::core::mem::align_of::<WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel>() - 8usize];
4362 ["Offset of field: WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel::chain"][::core::mem::offset_of!(
4363 WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel,
4364 chain
4365 ) - 0usize];
4366 ["Offset of field: WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel::swapChainPanel"][::core::mem::offset_of!(
4367 WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel,
4368 swapChainPanel
4369 )
4370 - 16usize];
4371};
4372#[repr(C)]
4373#[derive(Debug, Copy, Clone)]
4374pub struct WGPUSurfaceSourceAndroidNativeWindow {
4375 pub chain: WGPUChainedStruct,
4376 pub window: *mut ::core::ffi::c_void,
4377}
4378#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4379const _: () = {
4380 ["Size of WGPUSurfaceSourceAndroidNativeWindow"]
4381 [::core::mem::size_of::<WGPUSurfaceSourceAndroidNativeWindow>() - 24usize];
4382 ["Alignment of WGPUSurfaceSourceAndroidNativeWindow"]
4383 [::core::mem::align_of::<WGPUSurfaceSourceAndroidNativeWindow>() - 8usize];
4384 ["Offset of field: WGPUSurfaceSourceAndroidNativeWindow::chain"]
4385 [::core::mem::offset_of!(WGPUSurfaceSourceAndroidNativeWindow, chain) - 0usize];
4386 ["Offset of field: WGPUSurfaceSourceAndroidNativeWindow::window"]
4387 [::core::mem::offset_of!(WGPUSurfaceSourceAndroidNativeWindow, window) - 16usize];
4388};
4389#[repr(C)]
4390#[derive(Debug, Copy, Clone)]
4391pub struct WGPUSurfaceSourceMetalLayer {
4392 pub chain: WGPUChainedStruct,
4393 pub layer: *mut ::core::ffi::c_void,
4394}
4395#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4396const _: () = {
4397 ["Size of WGPUSurfaceSourceMetalLayer"]
4398 [::core::mem::size_of::<WGPUSurfaceSourceMetalLayer>() - 24usize];
4399 ["Alignment of WGPUSurfaceSourceMetalLayer"]
4400 [::core::mem::align_of::<WGPUSurfaceSourceMetalLayer>() - 8usize];
4401 ["Offset of field: WGPUSurfaceSourceMetalLayer::chain"]
4402 [::core::mem::offset_of!(WGPUSurfaceSourceMetalLayer, chain) - 0usize];
4403 ["Offset of field: WGPUSurfaceSourceMetalLayer::layer"]
4404 [::core::mem::offset_of!(WGPUSurfaceSourceMetalLayer, layer) - 16usize];
4405};
4406#[repr(C)]
4407#[derive(Debug, Copy, Clone)]
4408pub struct WGPUSurfaceSourceWaylandSurface {
4409 pub chain: WGPUChainedStruct,
4410 pub display: *mut ::core::ffi::c_void,
4411 pub surface: *mut ::core::ffi::c_void,
4412}
4413#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4414const _: () = {
4415 ["Size of WGPUSurfaceSourceWaylandSurface"]
4416 [::core::mem::size_of::<WGPUSurfaceSourceWaylandSurface>() - 32usize];
4417 ["Alignment of WGPUSurfaceSourceWaylandSurface"]
4418 [::core::mem::align_of::<WGPUSurfaceSourceWaylandSurface>() - 8usize];
4419 ["Offset of field: WGPUSurfaceSourceWaylandSurface::chain"]
4420 [::core::mem::offset_of!(WGPUSurfaceSourceWaylandSurface, chain) - 0usize];
4421 ["Offset of field: WGPUSurfaceSourceWaylandSurface::display"]
4422 [::core::mem::offset_of!(WGPUSurfaceSourceWaylandSurface, display) - 16usize];
4423 ["Offset of field: WGPUSurfaceSourceWaylandSurface::surface"]
4424 [::core::mem::offset_of!(WGPUSurfaceSourceWaylandSurface, surface) - 24usize];
4425};
4426#[repr(C)]
4427#[derive(Debug, Copy, Clone)]
4428pub struct WGPUSurfaceSourceWindowsHWND {
4429 pub chain: WGPUChainedStruct,
4430 pub hinstance: *mut ::core::ffi::c_void,
4431 pub hwnd: *mut ::core::ffi::c_void,
4432}
4433#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4434const _: () = {
4435 ["Size of WGPUSurfaceSourceWindowsHWND"]
4436 [::core::mem::size_of::<WGPUSurfaceSourceWindowsHWND>() - 32usize];
4437 ["Alignment of WGPUSurfaceSourceWindowsHWND"]
4438 [::core::mem::align_of::<WGPUSurfaceSourceWindowsHWND>() - 8usize];
4439 ["Offset of field: WGPUSurfaceSourceWindowsHWND::chain"]
4440 [::core::mem::offset_of!(WGPUSurfaceSourceWindowsHWND, chain) - 0usize];
4441 ["Offset of field: WGPUSurfaceSourceWindowsHWND::hinstance"]
4442 [::core::mem::offset_of!(WGPUSurfaceSourceWindowsHWND, hinstance) - 16usize];
4443 ["Offset of field: WGPUSurfaceSourceWindowsHWND::hwnd"]
4444 [::core::mem::offset_of!(WGPUSurfaceSourceWindowsHWND, hwnd) - 24usize];
4445};
4446#[repr(C)]
4447#[derive(Debug, Copy, Clone)]
4448pub struct WGPUSurfaceSourceXCBWindow {
4449 pub chain: WGPUChainedStruct,
4450 pub connection: *mut ::core::ffi::c_void,
4451 pub window: u32,
4452}
4453#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4454const _: () = {
4455 ["Size of WGPUSurfaceSourceXCBWindow"]
4456 [::core::mem::size_of::<WGPUSurfaceSourceXCBWindow>() - 32usize];
4457 ["Alignment of WGPUSurfaceSourceXCBWindow"]
4458 [::core::mem::align_of::<WGPUSurfaceSourceXCBWindow>() - 8usize];
4459 ["Offset of field: WGPUSurfaceSourceXCBWindow::chain"]
4460 [::core::mem::offset_of!(WGPUSurfaceSourceXCBWindow, chain) - 0usize];
4461 ["Offset of field: WGPUSurfaceSourceXCBWindow::connection"]
4462 [::core::mem::offset_of!(WGPUSurfaceSourceXCBWindow, connection) - 16usize];
4463 ["Offset of field: WGPUSurfaceSourceXCBWindow::window"]
4464 [::core::mem::offset_of!(WGPUSurfaceSourceXCBWindow, window) - 24usize];
4465};
4466#[repr(C)]
4467#[derive(Debug, Copy, Clone)]
4468pub struct WGPUSurfaceSourceXlibWindow {
4469 pub chain: WGPUChainedStruct,
4470 pub display: *mut ::core::ffi::c_void,
4471 pub window: u64,
4472}
4473#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4474const _: () = {
4475 ["Size of WGPUSurfaceSourceXlibWindow"]
4476 [::core::mem::size_of::<WGPUSurfaceSourceXlibWindow>() - 32usize];
4477 ["Alignment of WGPUSurfaceSourceXlibWindow"]
4478 [::core::mem::align_of::<WGPUSurfaceSourceXlibWindow>() - 8usize];
4479 ["Offset of field: WGPUSurfaceSourceXlibWindow::chain"]
4480 [::core::mem::offset_of!(WGPUSurfaceSourceXlibWindow, chain) - 0usize];
4481 ["Offset of field: WGPUSurfaceSourceXlibWindow::display"]
4482 [::core::mem::offset_of!(WGPUSurfaceSourceXlibWindow, display) - 16usize];
4483 ["Offset of field: WGPUSurfaceSourceXlibWindow::window"]
4484 [::core::mem::offset_of!(WGPUSurfaceSourceXlibWindow, window) - 24usize];
4485};
4486#[repr(C)]
4487#[derive(Debug, Copy, Clone)]
4488pub struct WGPUSurfaceTexture {
4489 pub nextInChain: *mut WGPUChainedStruct,
4490 pub texture: WGPUTexture,
4491 pub status: WGPUSurfaceGetCurrentTextureStatus,
4492}
4493#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4494const _: () = {
4495 ["Size of WGPUSurfaceTexture"][::core::mem::size_of::<WGPUSurfaceTexture>() - 24usize];
4496 ["Alignment of WGPUSurfaceTexture"][::core::mem::align_of::<WGPUSurfaceTexture>() - 8usize];
4497 ["Offset of field: WGPUSurfaceTexture::nextInChain"]
4498 [::core::mem::offset_of!(WGPUSurfaceTexture, nextInChain) - 0usize];
4499 ["Offset of field: WGPUSurfaceTexture::texture"]
4500 [::core::mem::offset_of!(WGPUSurfaceTexture, texture) - 8usize];
4501 ["Offset of field: WGPUSurfaceTexture::status"]
4502 [::core::mem::offset_of!(WGPUSurfaceTexture, status) - 16usize];
4503};
4504#[repr(C)]
4505#[derive(Debug, Copy, Clone)]
4506pub struct WGPUTexelCopyBufferLayout {
4507 pub offset: u64,
4508 pub bytesPerRow: u32,
4509 pub rowsPerImage: u32,
4510}
4511#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4512const _: () = {
4513 ["Size of WGPUTexelCopyBufferLayout"]
4514 [::core::mem::size_of::<WGPUTexelCopyBufferLayout>() - 16usize];
4515 ["Alignment of WGPUTexelCopyBufferLayout"]
4516 [::core::mem::align_of::<WGPUTexelCopyBufferLayout>() - 8usize];
4517 ["Offset of field: WGPUTexelCopyBufferLayout::offset"]
4518 [::core::mem::offset_of!(WGPUTexelCopyBufferLayout, offset) - 0usize];
4519 ["Offset of field: WGPUTexelCopyBufferLayout::bytesPerRow"]
4520 [::core::mem::offset_of!(WGPUTexelCopyBufferLayout, bytesPerRow) - 8usize];
4521 ["Offset of field: WGPUTexelCopyBufferLayout::rowsPerImage"]
4522 [::core::mem::offset_of!(WGPUTexelCopyBufferLayout, rowsPerImage) - 12usize];
4523};
4524#[repr(C)]
4525#[derive(Debug, Copy, Clone)]
4526pub struct WGPUTextureBindingLayout {
4527 pub nextInChain: *mut WGPUChainedStruct,
4528 pub sampleType: WGPUTextureSampleType,
4529 pub viewDimension: WGPUTextureViewDimension,
4530 pub multisampled: WGPUBool,
4531}
4532#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4533const _: () = {
4534 ["Size of WGPUTextureBindingLayout"]
4535 [::core::mem::size_of::<WGPUTextureBindingLayout>() - 24usize];
4536 ["Alignment of WGPUTextureBindingLayout"]
4537 [::core::mem::align_of::<WGPUTextureBindingLayout>() - 8usize];
4538 ["Offset of field: WGPUTextureBindingLayout::nextInChain"]
4539 [::core::mem::offset_of!(WGPUTextureBindingLayout, nextInChain) - 0usize];
4540 ["Offset of field: WGPUTextureBindingLayout::sampleType"]
4541 [::core::mem::offset_of!(WGPUTextureBindingLayout, sampleType) - 8usize];
4542 ["Offset of field: WGPUTextureBindingLayout::viewDimension"]
4543 [::core::mem::offset_of!(WGPUTextureBindingLayout, viewDimension) - 12usize];
4544 ["Offset of field: WGPUTextureBindingLayout::multisampled"]
4545 [::core::mem::offset_of!(WGPUTextureBindingLayout, multisampled) - 16usize];
4546};
4547#[repr(C)]
4548#[derive(Debug, Copy, Clone)]
4549pub struct WGPUTextureBindingViewDimensionDescriptor {
4550 pub chain: WGPUChainedStruct,
4551 pub textureBindingViewDimension: WGPUTextureViewDimension,
4552}
4553#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4554const _: () = {
4555 ["Size of WGPUTextureBindingViewDimensionDescriptor"]
4556 [::core::mem::size_of::<WGPUTextureBindingViewDimensionDescriptor>() - 24usize];
4557 ["Alignment of WGPUTextureBindingViewDimensionDescriptor"]
4558 [::core::mem::align_of::<WGPUTextureBindingViewDimensionDescriptor>() - 8usize];
4559 ["Offset of field: WGPUTextureBindingViewDimensionDescriptor::chain"]
4560 [::core::mem::offset_of!(WGPUTextureBindingViewDimensionDescriptor, chain) - 0usize];
4561 ["Offset of field: WGPUTextureBindingViewDimensionDescriptor::textureBindingViewDimension"][::core::mem::offset_of!(
4562 WGPUTextureBindingViewDimensionDescriptor,
4563 textureBindingViewDimension
4564 )
4565 - 16usize];
4566};
4567#[repr(C)]
4568#[derive(Debug, Copy, Clone)]
4569pub struct WGPUVertexAttribute {
4570 pub nextInChain: *mut WGPUChainedStruct,
4571 pub format: WGPUVertexFormat,
4572 pub offset: u64,
4573 pub shaderLocation: u32,
4574}
4575#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4576const _: () = {
4577 ["Size of WGPUVertexAttribute"][::core::mem::size_of::<WGPUVertexAttribute>() - 32usize];
4578 ["Alignment of WGPUVertexAttribute"][::core::mem::align_of::<WGPUVertexAttribute>() - 8usize];
4579 ["Offset of field: WGPUVertexAttribute::nextInChain"]
4580 [::core::mem::offset_of!(WGPUVertexAttribute, nextInChain) - 0usize];
4581 ["Offset of field: WGPUVertexAttribute::format"]
4582 [::core::mem::offset_of!(WGPUVertexAttribute, format) - 8usize];
4583 ["Offset of field: WGPUVertexAttribute::offset"]
4584 [::core::mem::offset_of!(WGPUVertexAttribute, offset) - 16usize];
4585 ["Offset of field: WGPUVertexAttribute::shaderLocation"]
4586 [::core::mem::offset_of!(WGPUVertexAttribute, shaderLocation) - 24usize];
4587};
4588#[repr(C)]
4589#[derive(Debug, Copy, Clone)]
4590pub struct WGPUYCbCrVkDescriptor {
4591 pub chain: WGPUChainedStruct,
4592 pub vkFormat: u32,
4593 pub vkYCbCrModel: u32,
4594 pub vkYCbCrRange: u32,
4595 pub vkComponentSwizzleRed: u32,
4596 pub vkComponentSwizzleGreen: u32,
4597 pub vkComponentSwizzleBlue: u32,
4598 pub vkComponentSwizzleAlpha: u32,
4599 pub vkXChromaOffset: u32,
4600 pub vkYChromaOffset: u32,
4601 pub vkChromaFilter: WGPUFilterMode,
4602 pub forceExplicitReconstruction: WGPUBool,
4603 pub externalFormat: u64,
4604}
4605#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4606const _: () = {
4607 ["Size of WGPUYCbCrVkDescriptor"][::core::mem::size_of::<WGPUYCbCrVkDescriptor>() - 72usize];
4608 ["Alignment of WGPUYCbCrVkDescriptor"]
4609 [::core::mem::align_of::<WGPUYCbCrVkDescriptor>() - 8usize];
4610 ["Offset of field: WGPUYCbCrVkDescriptor::chain"]
4611 [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, chain) - 0usize];
4612 ["Offset of field: WGPUYCbCrVkDescriptor::vkFormat"]
4613 [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkFormat) - 16usize];
4614 ["Offset of field: WGPUYCbCrVkDescriptor::vkYCbCrModel"]
4615 [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkYCbCrModel) - 20usize];
4616 ["Offset of field: WGPUYCbCrVkDescriptor::vkYCbCrRange"]
4617 [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkYCbCrRange) - 24usize];
4618 ["Offset of field: WGPUYCbCrVkDescriptor::vkComponentSwizzleRed"]
4619 [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkComponentSwizzleRed) - 28usize];
4620 ["Offset of field: WGPUYCbCrVkDescriptor::vkComponentSwizzleGreen"]
4621 [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkComponentSwizzleGreen) - 32usize];
4622 ["Offset of field: WGPUYCbCrVkDescriptor::vkComponentSwizzleBlue"]
4623 [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkComponentSwizzleBlue) - 36usize];
4624 ["Offset of field: WGPUYCbCrVkDescriptor::vkComponentSwizzleAlpha"]
4625 [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkComponentSwizzleAlpha) - 40usize];
4626 ["Offset of field: WGPUYCbCrVkDescriptor::vkXChromaOffset"]
4627 [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkXChromaOffset) - 44usize];
4628 ["Offset of field: WGPUYCbCrVkDescriptor::vkYChromaOffset"]
4629 [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkYChromaOffset) - 48usize];
4630 ["Offset of field: WGPUYCbCrVkDescriptor::vkChromaFilter"]
4631 [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, vkChromaFilter) - 52usize];
4632 ["Offset of field: WGPUYCbCrVkDescriptor::forceExplicitReconstruction"]
4633 [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, forceExplicitReconstruction) - 56usize];
4634 ["Offset of field: WGPUYCbCrVkDescriptor::externalFormat"]
4635 [::core::mem::offset_of!(WGPUYCbCrVkDescriptor, externalFormat) - 64usize];
4636};
4637#[repr(C)]
4638#[derive(Debug, Copy, Clone)]
4639pub struct WGPUAdapterPropertiesMemoryHeaps {
4640 pub chain: WGPUChainedStruct,
4641 pub heapCount: usize,
4642 pub heapInfo: *const WGPUMemoryHeapInfo,
4643}
4644#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4645const _: () = {
4646 ["Size of WGPUAdapterPropertiesMemoryHeaps"]
4647 [::core::mem::size_of::<WGPUAdapterPropertiesMemoryHeaps>() - 32usize];
4648 ["Alignment of WGPUAdapterPropertiesMemoryHeaps"]
4649 [::core::mem::align_of::<WGPUAdapterPropertiesMemoryHeaps>() - 8usize];
4650 ["Offset of field: WGPUAdapterPropertiesMemoryHeaps::chain"]
4651 [::core::mem::offset_of!(WGPUAdapterPropertiesMemoryHeaps, chain) - 0usize];
4652 ["Offset of field: WGPUAdapterPropertiesMemoryHeaps::heapCount"]
4653 [::core::mem::offset_of!(WGPUAdapterPropertiesMemoryHeaps, heapCount) - 16usize];
4654 ["Offset of field: WGPUAdapterPropertiesMemoryHeaps::heapInfo"]
4655 [::core::mem::offset_of!(WGPUAdapterPropertiesMemoryHeaps, heapInfo) - 24usize];
4656};
4657#[repr(C)]
4658#[derive(Debug, Copy, Clone)]
4659pub struct WGPUAdapterPropertiesSubgroupMatrixConfigs {
4660 pub chain: WGPUChainedStruct,
4661 pub configCount: usize,
4662 pub configs: *const WGPUSubgroupMatrixConfig,
4663}
4664#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4665const _: () = {
4666 ["Size of WGPUAdapterPropertiesSubgroupMatrixConfigs"]
4667 [::core::mem::size_of::<WGPUAdapterPropertiesSubgroupMatrixConfigs>() - 32usize];
4668 ["Alignment of WGPUAdapterPropertiesSubgroupMatrixConfigs"]
4669 [::core::mem::align_of::<WGPUAdapterPropertiesSubgroupMatrixConfigs>() - 8usize];
4670 ["Offset of field: WGPUAdapterPropertiesSubgroupMatrixConfigs::chain"]
4671 [::core::mem::offset_of!(WGPUAdapterPropertiesSubgroupMatrixConfigs, chain) - 0usize];
4672 ["Offset of field: WGPUAdapterPropertiesSubgroupMatrixConfigs::configCount"][::core::mem::offset_of!(
4673 WGPUAdapterPropertiesSubgroupMatrixConfigs,
4674 configCount
4675 ) - 16usize];
4676 ["Offset of field: WGPUAdapterPropertiesSubgroupMatrixConfigs::configs"]
4677 [::core::mem::offset_of!(WGPUAdapterPropertiesSubgroupMatrixConfigs, configs) - 24usize];
4678};
4679#[repr(C)]
4680#[derive(Debug, Copy, Clone)]
4681pub struct WGPUAHardwareBufferProperties {
4682 pub yCbCrInfo: WGPUYCbCrVkDescriptor,
4683}
4684#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4685const _: () = {
4686 ["Size of WGPUAHardwareBufferProperties"]
4687 [::core::mem::size_of::<WGPUAHardwareBufferProperties>() - 72usize];
4688 ["Alignment of WGPUAHardwareBufferProperties"]
4689 [::core::mem::align_of::<WGPUAHardwareBufferProperties>() - 8usize];
4690 ["Offset of field: WGPUAHardwareBufferProperties::yCbCrInfo"]
4691 [::core::mem::offset_of!(WGPUAHardwareBufferProperties, yCbCrInfo) - 0usize];
4692};
4693#[repr(C)]
4694#[derive(Debug, Copy, Clone)]
4695pub struct WGPUBindGroupEntry {
4696 pub nextInChain: *mut WGPUChainedStruct,
4697 pub binding: u32,
4698 pub buffer: WGPUBuffer,
4699 pub offset: u64,
4700 pub size: u64,
4701 pub sampler: WGPUSampler,
4702 pub textureView: WGPUTextureView,
4703}
4704#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4705const _: () = {
4706 ["Size of WGPUBindGroupEntry"][::core::mem::size_of::<WGPUBindGroupEntry>() - 56usize];
4707 ["Alignment of WGPUBindGroupEntry"][::core::mem::align_of::<WGPUBindGroupEntry>() - 8usize];
4708 ["Offset of field: WGPUBindGroupEntry::nextInChain"]
4709 [::core::mem::offset_of!(WGPUBindGroupEntry, nextInChain) - 0usize];
4710 ["Offset of field: WGPUBindGroupEntry::binding"]
4711 [::core::mem::offset_of!(WGPUBindGroupEntry, binding) - 8usize];
4712 ["Offset of field: WGPUBindGroupEntry::buffer"]
4713 [::core::mem::offset_of!(WGPUBindGroupEntry, buffer) - 16usize];
4714 ["Offset of field: WGPUBindGroupEntry::offset"]
4715 [::core::mem::offset_of!(WGPUBindGroupEntry, offset) - 24usize];
4716 ["Offset of field: WGPUBindGroupEntry::size"]
4717 [::core::mem::offset_of!(WGPUBindGroupEntry, size) - 32usize];
4718 ["Offset of field: WGPUBindGroupEntry::sampler"]
4719 [::core::mem::offset_of!(WGPUBindGroupEntry, sampler) - 40usize];
4720 ["Offset of field: WGPUBindGroupEntry::textureView"]
4721 [::core::mem::offset_of!(WGPUBindGroupEntry, textureView) - 48usize];
4722};
4723#[repr(C)]
4724#[derive(Debug, Copy, Clone)]
4725pub struct WGPUBindGroupLayoutEntry {
4726 pub nextInChain: *mut WGPUChainedStruct,
4727 pub binding: u32,
4728 pub visibility: WGPUShaderStage,
4729 pub buffer: WGPUBufferBindingLayout,
4730 pub sampler: WGPUSamplerBindingLayout,
4731 pub texture: WGPUTextureBindingLayout,
4732 pub storageTexture: WGPUStorageTextureBindingLayout,
4733}
4734#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4735const _: () = {
4736 ["Size of WGPUBindGroupLayoutEntry"]
4737 [::core::mem::size_of::<WGPUBindGroupLayoutEntry>() - 112usize];
4738 ["Alignment of WGPUBindGroupLayoutEntry"]
4739 [::core::mem::align_of::<WGPUBindGroupLayoutEntry>() - 8usize];
4740 ["Offset of field: WGPUBindGroupLayoutEntry::nextInChain"]
4741 [::core::mem::offset_of!(WGPUBindGroupLayoutEntry, nextInChain) - 0usize];
4742 ["Offset of field: WGPUBindGroupLayoutEntry::binding"]
4743 [::core::mem::offset_of!(WGPUBindGroupLayoutEntry, binding) - 8usize];
4744 ["Offset of field: WGPUBindGroupLayoutEntry::visibility"]
4745 [::core::mem::offset_of!(WGPUBindGroupLayoutEntry, visibility) - 16usize];
4746 ["Offset of field: WGPUBindGroupLayoutEntry::buffer"]
4747 [::core::mem::offset_of!(WGPUBindGroupLayoutEntry, buffer) - 24usize];
4748 ["Offset of field: WGPUBindGroupLayoutEntry::sampler"]
4749 [::core::mem::offset_of!(WGPUBindGroupLayoutEntry, sampler) - 48usize];
4750 ["Offset of field: WGPUBindGroupLayoutEntry::texture"]
4751 [::core::mem::offset_of!(WGPUBindGroupLayoutEntry, texture) - 64usize];
4752 ["Offset of field: WGPUBindGroupLayoutEntry::storageTexture"]
4753 [::core::mem::offset_of!(WGPUBindGroupLayoutEntry, storageTexture) - 88usize];
4754};
4755#[repr(C)]
4756#[derive(Debug, Copy, Clone)]
4757pub struct WGPUBlendState {
4758 pub color: WGPUBlendComponent,
4759 pub alpha: WGPUBlendComponent,
4760}
4761#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4762const _: () = {
4763 ["Size of WGPUBlendState"][::core::mem::size_of::<WGPUBlendState>() - 24usize];
4764 ["Alignment of WGPUBlendState"][::core::mem::align_of::<WGPUBlendState>() - 4usize];
4765 ["Offset of field: WGPUBlendState::color"]
4766 [::core::mem::offset_of!(WGPUBlendState, color) - 0usize];
4767 ["Offset of field: WGPUBlendState::alpha"]
4768 [::core::mem::offset_of!(WGPUBlendState, alpha) - 12usize];
4769};
4770#[repr(C)]
4771#[derive(Debug, Copy, Clone)]
4772pub struct WGPUBufferDescriptor {
4773 pub nextInChain: *mut WGPUChainedStruct,
4774 pub label: WGPUStringView,
4775 pub usage: WGPUBufferUsage,
4776 pub size: u64,
4777 pub mappedAtCreation: WGPUBool,
4778}
4779#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4780const _: () = {
4781 ["Size of WGPUBufferDescriptor"][::core::mem::size_of::<WGPUBufferDescriptor>() - 48usize];
4782 ["Alignment of WGPUBufferDescriptor"][::core::mem::align_of::<WGPUBufferDescriptor>() - 8usize];
4783 ["Offset of field: WGPUBufferDescriptor::nextInChain"]
4784 [::core::mem::offset_of!(WGPUBufferDescriptor, nextInChain) - 0usize];
4785 ["Offset of field: WGPUBufferDescriptor::label"]
4786 [::core::mem::offset_of!(WGPUBufferDescriptor, label) - 8usize];
4787 ["Offset of field: WGPUBufferDescriptor::usage"]
4788 [::core::mem::offset_of!(WGPUBufferDescriptor, usage) - 24usize];
4789 ["Offset of field: WGPUBufferDescriptor::size"]
4790 [::core::mem::offset_of!(WGPUBufferDescriptor, size) - 32usize];
4791 ["Offset of field: WGPUBufferDescriptor::mappedAtCreation"]
4792 [::core::mem::offset_of!(WGPUBufferDescriptor, mappedAtCreation) - 40usize];
4793};
4794#[repr(C)]
4795#[derive(Debug, Copy, Clone)]
4796pub struct WGPUCommandEncoderDescriptor {
4797 pub nextInChain: *mut WGPUChainedStruct,
4798 pub label: WGPUStringView,
4799}
4800#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4801const _: () = {
4802 ["Size of WGPUCommandEncoderDescriptor"]
4803 [::core::mem::size_of::<WGPUCommandEncoderDescriptor>() - 24usize];
4804 ["Alignment of WGPUCommandEncoderDescriptor"]
4805 [::core::mem::align_of::<WGPUCommandEncoderDescriptor>() - 8usize];
4806 ["Offset of field: WGPUCommandEncoderDescriptor::nextInChain"]
4807 [::core::mem::offset_of!(WGPUCommandEncoderDescriptor, nextInChain) - 0usize];
4808 ["Offset of field: WGPUCommandEncoderDescriptor::label"]
4809 [::core::mem::offset_of!(WGPUCommandEncoderDescriptor, label) - 8usize];
4810};
4811#[repr(C)]
4812#[derive(Debug, Copy, Clone)]
4813pub struct WGPUCompilationMessage {
4814 pub nextInChain: *mut WGPUChainedStruct,
4815 pub message: WGPUStringView,
4816 pub type_: WGPUCompilationMessageType,
4817 pub lineNum: u64,
4818 pub linePos: u64,
4819 pub offset: u64,
4820 pub length: u64,
4821}
4822#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4823const _: () = {
4824 ["Size of WGPUCompilationMessage"][::core::mem::size_of::<WGPUCompilationMessage>() - 64usize];
4825 ["Alignment of WGPUCompilationMessage"]
4826 [::core::mem::align_of::<WGPUCompilationMessage>() - 8usize];
4827 ["Offset of field: WGPUCompilationMessage::nextInChain"]
4828 [::core::mem::offset_of!(WGPUCompilationMessage, nextInChain) - 0usize];
4829 ["Offset of field: WGPUCompilationMessage::message"]
4830 [::core::mem::offset_of!(WGPUCompilationMessage, message) - 8usize];
4831 ["Offset of field: WGPUCompilationMessage::type_"]
4832 [::core::mem::offset_of!(WGPUCompilationMessage, type_) - 24usize];
4833 ["Offset of field: WGPUCompilationMessage::lineNum"]
4834 [::core::mem::offset_of!(WGPUCompilationMessage, lineNum) - 32usize];
4835 ["Offset of field: WGPUCompilationMessage::linePos"]
4836 [::core::mem::offset_of!(WGPUCompilationMessage, linePos) - 40usize];
4837 ["Offset of field: WGPUCompilationMessage::offset"]
4838 [::core::mem::offset_of!(WGPUCompilationMessage, offset) - 48usize];
4839 ["Offset of field: WGPUCompilationMessage::length"]
4840 [::core::mem::offset_of!(WGPUCompilationMessage, length) - 56usize];
4841};
4842#[repr(C)]
4843#[derive(Debug, Copy, Clone)]
4844pub struct WGPUComputePassDescriptor {
4845 pub nextInChain: *mut WGPUChainedStruct,
4846 pub label: WGPUStringView,
4847 pub timestampWrites: *const WGPUPassTimestampWrites,
4848}
4849#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4850const _: () = {
4851 ["Size of WGPUComputePassDescriptor"]
4852 [::core::mem::size_of::<WGPUComputePassDescriptor>() - 32usize];
4853 ["Alignment of WGPUComputePassDescriptor"]
4854 [::core::mem::align_of::<WGPUComputePassDescriptor>() - 8usize];
4855 ["Offset of field: WGPUComputePassDescriptor::nextInChain"]
4856 [::core::mem::offset_of!(WGPUComputePassDescriptor, nextInChain) - 0usize];
4857 ["Offset of field: WGPUComputePassDescriptor::label"]
4858 [::core::mem::offset_of!(WGPUComputePassDescriptor, label) - 8usize];
4859 ["Offset of field: WGPUComputePassDescriptor::timestampWrites"]
4860 [::core::mem::offset_of!(WGPUComputePassDescriptor, timestampWrites) - 24usize];
4861};
4862#[repr(C)]
4863#[derive(Debug, Copy, Clone)]
4864pub struct WGPUComputeState {
4865 pub nextInChain: *mut WGPUChainedStruct,
4866 pub module: WGPUShaderModule,
4867 pub entryPoint: WGPUStringView,
4868 pub constantCount: usize,
4869 pub constants: *const WGPUConstantEntry,
4870}
4871#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4872const _: () = {
4873 ["Size of WGPUComputeState"][::core::mem::size_of::<WGPUComputeState>() - 48usize];
4874 ["Alignment of WGPUComputeState"][::core::mem::align_of::<WGPUComputeState>() - 8usize];
4875 ["Offset of field: WGPUComputeState::nextInChain"]
4876 [::core::mem::offset_of!(WGPUComputeState, nextInChain) - 0usize];
4877 ["Offset of field: WGPUComputeState::module"]
4878 [::core::mem::offset_of!(WGPUComputeState, module) - 8usize];
4879 ["Offset of field: WGPUComputeState::entryPoint"]
4880 [::core::mem::offset_of!(WGPUComputeState, entryPoint) - 16usize];
4881 ["Offset of field: WGPUComputeState::constantCount"]
4882 [::core::mem::offset_of!(WGPUComputeState, constantCount) - 32usize];
4883 ["Offset of field: WGPUComputeState::constants"]
4884 [::core::mem::offset_of!(WGPUComputeState, constants) - 40usize];
4885};
4886#[repr(C)]
4887#[derive(Debug, Copy, Clone)]
4888pub struct WGPUDawnDrmFormatCapabilities {
4889 pub chain: WGPUChainedStruct,
4890 pub propertiesCount: usize,
4891 pub properties: *const WGPUDawnDrmFormatProperties,
4892}
4893#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4894const _: () = {
4895 ["Size of WGPUDawnDrmFormatCapabilities"]
4896 [::core::mem::size_of::<WGPUDawnDrmFormatCapabilities>() - 32usize];
4897 ["Alignment of WGPUDawnDrmFormatCapabilities"]
4898 [::core::mem::align_of::<WGPUDawnDrmFormatCapabilities>() - 8usize];
4899 ["Offset of field: WGPUDawnDrmFormatCapabilities::chain"]
4900 [::core::mem::offset_of!(WGPUDawnDrmFormatCapabilities, chain) - 0usize];
4901 ["Offset of field: WGPUDawnDrmFormatCapabilities::propertiesCount"]
4902 [::core::mem::offset_of!(WGPUDawnDrmFormatCapabilities, propertiesCount) - 16usize];
4903 ["Offset of field: WGPUDawnDrmFormatCapabilities::properties"]
4904 [::core::mem::offset_of!(WGPUDawnDrmFormatCapabilities, properties) - 24usize];
4905};
4906#[repr(C)]
4907#[derive(Debug, Copy, Clone)]
4908pub struct WGPUDepthStencilState {
4909 pub nextInChain: *mut WGPUChainedStruct,
4910 pub format: WGPUTextureFormat,
4911 pub depthWriteEnabled: WGPUOptionalBool,
4912 pub depthCompare: WGPUCompareFunction,
4913 pub stencilFront: WGPUStencilFaceState,
4914 pub stencilBack: WGPUStencilFaceState,
4915 pub stencilReadMask: u32,
4916 pub stencilWriteMask: u32,
4917 pub depthBias: i32,
4918 pub depthBiasSlopeScale: f32,
4919 pub depthBiasClamp: f32,
4920}
4921#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4922const _: () = {
4923 ["Size of WGPUDepthStencilState"][::core::mem::size_of::<WGPUDepthStencilState>() - 72usize];
4924 ["Alignment of WGPUDepthStencilState"]
4925 [::core::mem::align_of::<WGPUDepthStencilState>() - 8usize];
4926 ["Offset of field: WGPUDepthStencilState::nextInChain"]
4927 [::core::mem::offset_of!(WGPUDepthStencilState, nextInChain) - 0usize];
4928 ["Offset of field: WGPUDepthStencilState::format"]
4929 [::core::mem::offset_of!(WGPUDepthStencilState, format) - 8usize];
4930 ["Offset of field: WGPUDepthStencilState::depthWriteEnabled"]
4931 [::core::mem::offset_of!(WGPUDepthStencilState, depthWriteEnabled) - 12usize];
4932 ["Offset of field: WGPUDepthStencilState::depthCompare"]
4933 [::core::mem::offset_of!(WGPUDepthStencilState, depthCompare) - 16usize];
4934 ["Offset of field: WGPUDepthStencilState::stencilFront"]
4935 [::core::mem::offset_of!(WGPUDepthStencilState, stencilFront) - 20usize];
4936 ["Offset of field: WGPUDepthStencilState::stencilBack"]
4937 [::core::mem::offset_of!(WGPUDepthStencilState, stencilBack) - 36usize];
4938 ["Offset of field: WGPUDepthStencilState::stencilReadMask"]
4939 [::core::mem::offset_of!(WGPUDepthStencilState, stencilReadMask) - 52usize];
4940 ["Offset of field: WGPUDepthStencilState::stencilWriteMask"]
4941 [::core::mem::offset_of!(WGPUDepthStencilState, stencilWriteMask) - 56usize];
4942 ["Offset of field: WGPUDepthStencilState::depthBias"]
4943 [::core::mem::offset_of!(WGPUDepthStencilState, depthBias) - 60usize];
4944 ["Offset of field: WGPUDepthStencilState::depthBiasSlopeScale"]
4945 [::core::mem::offset_of!(WGPUDepthStencilState, depthBiasSlopeScale) - 64usize];
4946 ["Offset of field: WGPUDepthStencilState::depthBiasClamp"]
4947 [::core::mem::offset_of!(WGPUDepthStencilState, depthBiasClamp) - 68usize];
4948};
4949#[repr(C)]
4950#[derive(Debug, Copy, Clone)]
4951pub struct WGPUExternalTextureDescriptor {
4952 pub nextInChain: *mut WGPUChainedStruct,
4953 pub label: WGPUStringView,
4954 pub plane0: WGPUTextureView,
4955 pub plane1: WGPUTextureView,
4956 pub cropOrigin: WGPUOrigin2D,
4957 pub cropSize: WGPUExtent2D,
4958 pub apparentSize: WGPUExtent2D,
4959 pub doYuvToRgbConversionOnly: WGPUBool,
4960 pub yuvToRgbConversionMatrix: *const f32,
4961 pub srcTransferFunctionParameters: *const f32,
4962 pub dstTransferFunctionParameters: *const f32,
4963 pub gamutConversionMatrix: *const f32,
4964 pub mirrored: WGPUBool,
4965 pub rotation: WGPUExternalTextureRotation,
4966}
4967#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4968const _: () = {
4969 ["Size of WGPUExternalTextureDescriptor"]
4970 [::core::mem::size_of::<WGPUExternalTextureDescriptor>() - 112usize];
4971 ["Alignment of WGPUExternalTextureDescriptor"]
4972 [::core::mem::align_of::<WGPUExternalTextureDescriptor>() - 8usize];
4973 ["Offset of field: WGPUExternalTextureDescriptor::nextInChain"]
4974 [::core::mem::offset_of!(WGPUExternalTextureDescriptor, nextInChain) - 0usize];
4975 ["Offset of field: WGPUExternalTextureDescriptor::label"]
4976 [::core::mem::offset_of!(WGPUExternalTextureDescriptor, label) - 8usize];
4977 ["Offset of field: WGPUExternalTextureDescriptor::plane0"]
4978 [::core::mem::offset_of!(WGPUExternalTextureDescriptor, plane0) - 24usize];
4979 ["Offset of field: WGPUExternalTextureDescriptor::plane1"]
4980 [::core::mem::offset_of!(WGPUExternalTextureDescriptor, plane1) - 32usize];
4981 ["Offset of field: WGPUExternalTextureDescriptor::cropOrigin"]
4982 [::core::mem::offset_of!(WGPUExternalTextureDescriptor, cropOrigin) - 40usize];
4983 ["Offset of field: WGPUExternalTextureDescriptor::cropSize"]
4984 [::core::mem::offset_of!(WGPUExternalTextureDescriptor, cropSize) - 48usize];
4985 ["Offset of field: WGPUExternalTextureDescriptor::apparentSize"]
4986 [::core::mem::offset_of!(WGPUExternalTextureDescriptor, apparentSize) - 56usize];
4987 ["Offset of field: WGPUExternalTextureDescriptor::doYuvToRgbConversionOnly"][::core::mem::offset_of!(
4988 WGPUExternalTextureDescriptor,
4989 doYuvToRgbConversionOnly
4990 ) - 64usize];
4991 ["Offset of field: WGPUExternalTextureDescriptor::yuvToRgbConversionMatrix"][::core::mem::offset_of!(
4992 WGPUExternalTextureDescriptor,
4993 yuvToRgbConversionMatrix
4994 ) - 72usize];
4995 ["Offset of field: WGPUExternalTextureDescriptor::srcTransferFunctionParameters"][::core::mem::offset_of!(
4996 WGPUExternalTextureDescriptor,
4997 srcTransferFunctionParameters
4998 ) - 80usize];
4999 ["Offset of field: WGPUExternalTextureDescriptor::dstTransferFunctionParameters"][::core::mem::offset_of!(
5000 WGPUExternalTextureDescriptor,
5001 dstTransferFunctionParameters
5002 ) - 88usize];
5003 ["Offset of field: WGPUExternalTextureDescriptor::gamutConversionMatrix"]
5004 [::core::mem::offset_of!(WGPUExternalTextureDescriptor, gamutConversionMatrix) - 96usize];
5005 ["Offset of field: WGPUExternalTextureDescriptor::mirrored"]
5006 [::core::mem::offset_of!(WGPUExternalTextureDescriptor, mirrored) - 104usize];
5007 ["Offset of field: WGPUExternalTextureDescriptor::rotation"]
5008 [::core::mem::offset_of!(WGPUExternalTextureDescriptor, rotation) - 108usize];
5009};
5010#[repr(C)]
5011#[derive(Debug, Copy, Clone)]
5012pub struct WGPUFutureWaitInfo {
5013 pub future: WGPUFuture,
5014 pub completed: WGPUBool,
5015}
5016#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5017const _: () = {
5018 ["Size of WGPUFutureWaitInfo"][::core::mem::size_of::<WGPUFutureWaitInfo>() - 16usize];
5019 ["Alignment of WGPUFutureWaitInfo"][::core::mem::align_of::<WGPUFutureWaitInfo>() - 8usize];
5020 ["Offset of field: WGPUFutureWaitInfo::future"]
5021 [::core::mem::offset_of!(WGPUFutureWaitInfo, future) - 0usize];
5022 ["Offset of field: WGPUFutureWaitInfo::completed"]
5023 [::core::mem::offset_of!(WGPUFutureWaitInfo, completed) - 8usize];
5024};
5025#[repr(C)]
5026#[derive(Debug, Copy, Clone)]
5027pub struct WGPUImageCopyExternalTexture {
5028 pub nextInChain: *mut WGPUChainedStruct,
5029 pub externalTexture: WGPUExternalTexture,
5030 pub origin: WGPUOrigin3D,
5031 pub naturalSize: WGPUExtent2D,
5032}
5033#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5034const _: () = {
5035 ["Size of WGPUImageCopyExternalTexture"]
5036 [::core::mem::size_of::<WGPUImageCopyExternalTexture>() - 40usize];
5037 ["Alignment of WGPUImageCopyExternalTexture"]
5038 [::core::mem::align_of::<WGPUImageCopyExternalTexture>() - 8usize];
5039 ["Offset of field: WGPUImageCopyExternalTexture::nextInChain"]
5040 [::core::mem::offset_of!(WGPUImageCopyExternalTexture, nextInChain) - 0usize];
5041 ["Offset of field: WGPUImageCopyExternalTexture::externalTexture"]
5042 [::core::mem::offset_of!(WGPUImageCopyExternalTexture, externalTexture) - 8usize];
5043 ["Offset of field: WGPUImageCopyExternalTexture::origin"]
5044 [::core::mem::offset_of!(WGPUImageCopyExternalTexture, origin) - 16usize];
5045 ["Offset of field: WGPUImageCopyExternalTexture::naturalSize"]
5046 [::core::mem::offset_of!(WGPUImageCopyExternalTexture, naturalSize) - 28usize];
5047};
5048#[repr(C)]
5049#[derive(Debug, Copy, Clone)]
5050pub struct WGPUInstanceDescriptor {
5051 pub nextInChain: *mut WGPUChainedStruct,
5052 pub capabilities: WGPUInstanceCapabilities,
5053}
5054#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5055const _: () = {
5056 ["Size of WGPUInstanceDescriptor"][::core::mem::size_of::<WGPUInstanceDescriptor>() - 32usize];
5057 ["Alignment of WGPUInstanceDescriptor"]
5058 [::core::mem::align_of::<WGPUInstanceDescriptor>() - 8usize];
5059 ["Offset of field: WGPUInstanceDescriptor::nextInChain"]
5060 [::core::mem::offset_of!(WGPUInstanceDescriptor, nextInChain) - 0usize];
5061 ["Offset of field: WGPUInstanceDescriptor::capabilities"]
5062 [::core::mem::offset_of!(WGPUInstanceDescriptor, capabilities) - 8usize];
5063};
5064#[repr(C)]
5065#[derive(Debug, Copy, Clone)]
5066pub struct WGPULimits {
5067 pub nextInChain: *mut WGPUChainedStruct,
5068 pub maxTextureDimension1D: u32,
5069 pub maxTextureDimension2D: u32,
5070 pub maxTextureDimension3D: u32,
5071 pub maxTextureArrayLayers: u32,
5072 pub maxBindGroups: u32,
5073 pub maxBindGroupsPlusVertexBuffers: u32,
5074 pub maxBindingsPerBindGroup: u32,
5075 pub maxDynamicUniformBuffersPerPipelineLayout: u32,
5076 pub maxDynamicStorageBuffersPerPipelineLayout: u32,
5077 pub maxSampledTexturesPerShaderStage: u32,
5078 pub maxSamplersPerShaderStage: u32,
5079 pub maxStorageBuffersPerShaderStage: u32,
5080 pub maxStorageTexturesPerShaderStage: u32,
5081 pub maxUniformBuffersPerShaderStage: u32,
5082 pub maxUniformBufferBindingSize: u64,
5083 pub maxStorageBufferBindingSize: u64,
5084 pub minUniformBufferOffsetAlignment: u32,
5085 pub minStorageBufferOffsetAlignment: u32,
5086 pub maxVertexBuffers: u32,
5087 pub maxBufferSize: u64,
5088 pub maxVertexAttributes: u32,
5089 pub maxVertexBufferArrayStride: u32,
5090 pub maxInterStageShaderVariables: u32,
5091 pub maxColorAttachments: u32,
5092 pub maxColorAttachmentBytesPerSample: u32,
5093 pub maxComputeWorkgroupStorageSize: u32,
5094 pub maxComputeInvocationsPerWorkgroup: u32,
5095 pub maxComputeWorkgroupSizeX: u32,
5096 pub maxComputeWorkgroupSizeY: u32,
5097 pub maxComputeWorkgroupSizeZ: u32,
5098 pub maxComputeWorkgroupsPerDimension: u32,
5099 pub maxImmediateSize: u32,
5100 pub maxStorageBuffersInVertexStage: u32,
5101 pub maxStorageTexturesInVertexStage: u32,
5102 pub maxStorageBuffersInFragmentStage: u32,
5103 pub maxStorageTexturesInFragmentStage: u32,
5104}
5105#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5106const _: () = {
5107 ["Size of WGPULimits"][::core::mem::size_of::<WGPULimits>() - 168usize];
5108 ["Alignment of WGPULimits"][::core::mem::align_of::<WGPULimits>() - 8usize];
5109 ["Offset of field: WGPULimits::nextInChain"]
5110 [::core::mem::offset_of!(WGPULimits, nextInChain) - 0usize];
5111 ["Offset of field: WGPULimits::maxTextureDimension1D"]
5112 [::core::mem::offset_of!(WGPULimits, maxTextureDimension1D) - 8usize];
5113 ["Offset of field: WGPULimits::maxTextureDimension2D"]
5114 [::core::mem::offset_of!(WGPULimits, maxTextureDimension2D) - 12usize];
5115 ["Offset of field: WGPULimits::maxTextureDimension3D"]
5116 [::core::mem::offset_of!(WGPULimits, maxTextureDimension3D) - 16usize];
5117 ["Offset of field: WGPULimits::maxTextureArrayLayers"]
5118 [::core::mem::offset_of!(WGPULimits, maxTextureArrayLayers) - 20usize];
5119 ["Offset of field: WGPULimits::maxBindGroups"]
5120 [::core::mem::offset_of!(WGPULimits, maxBindGroups) - 24usize];
5121 ["Offset of field: WGPULimits::maxBindGroupsPlusVertexBuffers"]
5122 [::core::mem::offset_of!(WGPULimits, maxBindGroupsPlusVertexBuffers) - 28usize];
5123 ["Offset of field: WGPULimits::maxBindingsPerBindGroup"]
5124 [::core::mem::offset_of!(WGPULimits, maxBindingsPerBindGroup) - 32usize];
5125 ["Offset of field: WGPULimits::maxDynamicUniformBuffersPerPipelineLayout"]
5126 [::core::mem::offset_of!(WGPULimits, maxDynamicUniformBuffersPerPipelineLayout) - 36usize];
5127 ["Offset of field: WGPULimits::maxDynamicStorageBuffersPerPipelineLayout"]
5128 [::core::mem::offset_of!(WGPULimits, maxDynamicStorageBuffersPerPipelineLayout) - 40usize];
5129 ["Offset of field: WGPULimits::maxSampledTexturesPerShaderStage"]
5130 [::core::mem::offset_of!(WGPULimits, maxSampledTexturesPerShaderStage) - 44usize];
5131 ["Offset of field: WGPULimits::maxSamplersPerShaderStage"]
5132 [::core::mem::offset_of!(WGPULimits, maxSamplersPerShaderStage) - 48usize];
5133 ["Offset of field: WGPULimits::maxStorageBuffersPerShaderStage"]
5134 [::core::mem::offset_of!(WGPULimits, maxStorageBuffersPerShaderStage) - 52usize];
5135 ["Offset of field: WGPULimits::maxStorageTexturesPerShaderStage"]
5136 [::core::mem::offset_of!(WGPULimits, maxStorageTexturesPerShaderStage) - 56usize];
5137 ["Offset of field: WGPULimits::maxUniformBuffersPerShaderStage"]
5138 [::core::mem::offset_of!(WGPULimits, maxUniformBuffersPerShaderStage) - 60usize];
5139 ["Offset of field: WGPULimits::maxUniformBufferBindingSize"]
5140 [::core::mem::offset_of!(WGPULimits, maxUniformBufferBindingSize) - 64usize];
5141 ["Offset of field: WGPULimits::maxStorageBufferBindingSize"]
5142 [::core::mem::offset_of!(WGPULimits, maxStorageBufferBindingSize) - 72usize];
5143 ["Offset of field: WGPULimits::minUniformBufferOffsetAlignment"]
5144 [::core::mem::offset_of!(WGPULimits, minUniformBufferOffsetAlignment) - 80usize];
5145 ["Offset of field: WGPULimits::minStorageBufferOffsetAlignment"]
5146 [::core::mem::offset_of!(WGPULimits, minStorageBufferOffsetAlignment) - 84usize];
5147 ["Offset of field: WGPULimits::maxVertexBuffers"]
5148 [::core::mem::offset_of!(WGPULimits, maxVertexBuffers) - 88usize];
5149 ["Offset of field: WGPULimits::maxBufferSize"]
5150 [::core::mem::offset_of!(WGPULimits, maxBufferSize) - 96usize];
5151 ["Offset of field: WGPULimits::maxVertexAttributes"]
5152 [::core::mem::offset_of!(WGPULimits, maxVertexAttributes) - 104usize];
5153 ["Offset of field: WGPULimits::maxVertexBufferArrayStride"]
5154 [::core::mem::offset_of!(WGPULimits, maxVertexBufferArrayStride) - 108usize];
5155 ["Offset of field: WGPULimits::maxInterStageShaderVariables"]
5156 [::core::mem::offset_of!(WGPULimits, maxInterStageShaderVariables) - 112usize];
5157 ["Offset of field: WGPULimits::maxColorAttachments"]
5158 [::core::mem::offset_of!(WGPULimits, maxColorAttachments) - 116usize];
5159 ["Offset of field: WGPULimits::maxColorAttachmentBytesPerSample"]
5160 [::core::mem::offset_of!(WGPULimits, maxColorAttachmentBytesPerSample) - 120usize];
5161 ["Offset of field: WGPULimits::maxComputeWorkgroupStorageSize"]
5162 [::core::mem::offset_of!(WGPULimits, maxComputeWorkgroupStorageSize) - 124usize];
5163 ["Offset of field: WGPULimits::maxComputeInvocationsPerWorkgroup"]
5164 [::core::mem::offset_of!(WGPULimits, maxComputeInvocationsPerWorkgroup) - 128usize];
5165 ["Offset of field: WGPULimits::maxComputeWorkgroupSizeX"]
5166 [::core::mem::offset_of!(WGPULimits, maxComputeWorkgroupSizeX) - 132usize];
5167 ["Offset of field: WGPULimits::maxComputeWorkgroupSizeY"]
5168 [::core::mem::offset_of!(WGPULimits, maxComputeWorkgroupSizeY) - 136usize];
5169 ["Offset of field: WGPULimits::maxComputeWorkgroupSizeZ"]
5170 [::core::mem::offset_of!(WGPULimits, maxComputeWorkgroupSizeZ) - 140usize];
5171 ["Offset of field: WGPULimits::maxComputeWorkgroupsPerDimension"]
5172 [::core::mem::offset_of!(WGPULimits, maxComputeWorkgroupsPerDimension) - 144usize];
5173 ["Offset of field: WGPULimits::maxImmediateSize"]
5174 [::core::mem::offset_of!(WGPULimits, maxImmediateSize) - 148usize];
5175 ["Offset of field: WGPULimits::maxStorageBuffersInVertexStage"]
5176 [::core::mem::offset_of!(WGPULimits, maxStorageBuffersInVertexStage) - 152usize];
5177 ["Offset of field: WGPULimits::maxStorageTexturesInVertexStage"]
5178 [::core::mem::offset_of!(WGPULimits, maxStorageTexturesInVertexStage) - 156usize];
5179 ["Offset of field: WGPULimits::maxStorageBuffersInFragmentStage"]
5180 [::core::mem::offset_of!(WGPULimits, maxStorageBuffersInFragmentStage) - 160usize];
5181 ["Offset of field: WGPULimits::maxStorageTexturesInFragmentStage"]
5182 [::core::mem::offset_of!(WGPULimits, maxStorageTexturesInFragmentStage) - 164usize];
5183};
5184#[repr(C)]
5185#[derive(Debug, Copy, Clone)]
5186pub struct WGPUPipelineLayoutPixelLocalStorage {
5187 pub chain: WGPUChainedStruct,
5188 pub totalPixelLocalStorageSize: u64,
5189 pub storageAttachmentCount: usize,
5190 pub storageAttachments: *const WGPUPipelineLayoutStorageAttachment,
5191}
5192#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5193const _: () = {
5194 ["Size of WGPUPipelineLayoutPixelLocalStorage"]
5195 [::core::mem::size_of::<WGPUPipelineLayoutPixelLocalStorage>() - 40usize];
5196 ["Alignment of WGPUPipelineLayoutPixelLocalStorage"]
5197 [::core::mem::align_of::<WGPUPipelineLayoutPixelLocalStorage>() - 8usize];
5198 ["Offset of field: WGPUPipelineLayoutPixelLocalStorage::chain"]
5199 [::core::mem::offset_of!(WGPUPipelineLayoutPixelLocalStorage, chain) - 0usize];
5200 ["Offset of field: WGPUPipelineLayoutPixelLocalStorage::totalPixelLocalStorageSize"][::core::mem::offset_of!(
5201 WGPUPipelineLayoutPixelLocalStorage,
5202 totalPixelLocalStorageSize
5203 )
5204 - 16usize];
5205 ["Offset of field: WGPUPipelineLayoutPixelLocalStorage::storageAttachmentCount"][::core::mem::offset_of!(
5206 WGPUPipelineLayoutPixelLocalStorage,
5207 storageAttachmentCount
5208 ) - 24usize];
5209 ["Offset of field: WGPUPipelineLayoutPixelLocalStorage::storageAttachments"][::core::mem::offset_of!(
5210 WGPUPipelineLayoutPixelLocalStorage,
5211 storageAttachments
5212 ) - 32usize];
5213};
5214#[repr(C)]
5215#[derive(Debug, Copy, Clone)]
5216pub struct WGPURenderPassColorAttachment {
5217 pub nextInChain: *mut WGPUChainedStruct,
5218 pub view: WGPUTextureView,
5219 pub depthSlice: u32,
5220 pub resolveTarget: WGPUTextureView,
5221 pub loadOp: WGPULoadOp,
5222 pub storeOp: WGPUStoreOp,
5223 pub clearValue: WGPUColor,
5224}
5225#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5226const _: () = {
5227 ["Size of WGPURenderPassColorAttachment"]
5228 [::core::mem::size_of::<WGPURenderPassColorAttachment>() - 72usize];
5229 ["Alignment of WGPURenderPassColorAttachment"]
5230 [::core::mem::align_of::<WGPURenderPassColorAttachment>() - 8usize];
5231 ["Offset of field: WGPURenderPassColorAttachment::nextInChain"]
5232 [::core::mem::offset_of!(WGPURenderPassColorAttachment, nextInChain) - 0usize];
5233 ["Offset of field: WGPURenderPassColorAttachment::view"]
5234 [::core::mem::offset_of!(WGPURenderPassColorAttachment, view) - 8usize];
5235 ["Offset of field: WGPURenderPassColorAttachment::depthSlice"]
5236 [::core::mem::offset_of!(WGPURenderPassColorAttachment, depthSlice) - 16usize];
5237 ["Offset of field: WGPURenderPassColorAttachment::resolveTarget"]
5238 [::core::mem::offset_of!(WGPURenderPassColorAttachment, resolveTarget) - 24usize];
5239 ["Offset of field: WGPURenderPassColorAttachment::loadOp"]
5240 [::core::mem::offset_of!(WGPURenderPassColorAttachment, loadOp) - 32usize];
5241 ["Offset of field: WGPURenderPassColorAttachment::storeOp"]
5242 [::core::mem::offset_of!(WGPURenderPassColorAttachment, storeOp) - 36usize];
5243 ["Offset of field: WGPURenderPassColorAttachment::clearValue"]
5244 [::core::mem::offset_of!(WGPURenderPassColorAttachment, clearValue) - 40usize];
5245};
5246#[repr(C)]
5247#[derive(Debug, Copy, Clone)]
5248pub struct WGPURenderPassStorageAttachment {
5249 pub nextInChain: *mut WGPUChainedStruct,
5250 pub offset: u64,
5251 pub storage: WGPUTextureView,
5252 pub loadOp: WGPULoadOp,
5253 pub storeOp: WGPUStoreOp,
5254 pub clearValue: WGPUColor,
5255}
5256#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5257const _: () = {
5258 ["Size of WGPURenderPassStorageAttachment"]
5259 [::core::mem::size_of::<WGPURenderPassStorageAttachment>() - 64usize];
5260 ["Alignment of WGPURenderPassStorageAttachment"]
5261 [::core::mem::align_of::<WGPURenderPassStorageAttachment>() - 8usize];
5262 ["Offset of field: WGPURenderPassStorageAttachment::nextInChain"]
5263 [::core::mem::offset_of!(WGPURenderPassStorageAttachment, nextInChain) - 0usize];
5264 ["Offset of field: WGPURenderPassStorageAttachment::offset"]
5265 [::core::mem::offset_of!(WGPURenderPassStorageAttachment, offset) - 8usize];
5266 ["Offset of field: WGPURenderPassStorageAttachment::storage"]
5267 [::core::mem::offset_of!(WGPURenderPassStorageAttachment, storage) - 16usize];
5268 ["Offset of field: WGPURenderPassStorageAttachment::loadOp"]
5269 [::core::mem::offset_of!(WGPURenderPassStorageAttachment, loadOp) - 24usize];
5270 ["Offset of field: WGPURenderPassStorageAttachment::storeOp"]
5271 [::core::mem::offset_of!(WGPURenderPassStorageAttachment, storeOp) - 28usize];
5272 ["Offset of field: WGPURenderPassStorageAttachment::clearValue"]
5273 [::core::mem::offset_of!(WGPURenderPassStorageAttachment, clearValue) - 32usize];
5274};
5275#[repr(C)]
5276#[derive(Debug, Copy, Clone)]
5277pub struct WGPURequestAdapterOptions {
5278 pub nextInChain: *mut WGPUChainedStruct,
5279 pub featureLevel: WGPUFeatureLevel,
5280 pub powerPreference: WGPUPowerPreference,
5281 pub forceFallbackAdapter: WGPUBool,
5282 pub backendType: WGPUBackendType,
5283 pub compatibleSurface: WGPUSurface,
5284}
5285#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5286const _: () = {
5287 ["Size of WGPURequestAdapterOptions"]
5288 [::core::mem::size_of::<WGPURequestAdapterOptions>() - 32usize];
5289 ["Alignment of WGPURequestAdapterOptions"]
5290 [::core::mem::align_of::<WGPURequestAdapterOptions>() - 8usize];
5291 ["Offset of field: WGPURequestAdapterOptions::nextInChain"]
5292 [::core::mem::offset_of!(WGPURequestAdapterOptions, nextInChain) - 0usize];
5293 ["Offset of field: WGPURequestAdapterOptions::featureLevel"]
5294 [::core::mem::offset_of!(WGPURequestAdapterOptions, featureLevel) - 8usize];
5295 ["Offset of field: WGPURequestAdapterOptions::powerPreference"]
5296 [::core::mem::offset_of!(WGPURequestAdapterOptions, powerPreference) - 12usize];
5297 ["Offset of field: WGPURequestAdapterOptions::forceFallbackAdapter"]
5298 [::core::mem::offset_of!(WGPURequestAdapterOptions, forceFallbackAdapter) - 16usize];
5299 ["Offset of field: WGPURequestAdapterOptions::backendType"]
5300 [::core::mem::offset_of!(WGPURequestAdapterOptions, backendType) - 20usize];
5301 ["Offset of field: WGPURequestAdapterOptions::compatibleSurface"]
5302 [::core::mem::offset_of!(WGPURequestAdapterOptions, compatibleSurface) - 24usize];
5303};
5304#[repr(C)]
5305#[derive(Debug, Copy, Clone)]
5306pub struct WGPUSamplerDescriptor {
5307 pub nextInChain: *mut WGPUChainedStruct,
5308 pub label: WGPUStringView,
5309 pub addressModeU: WGPUAddressMode,
5310 pub addressModeV: WGPUAddressMode,
5311 pub addressModeW: WGPUAddressMode,
5312 pub magFilter: WGPUFilterMode,
5313 pub minFilter: WGPUFilterMode,
5314 pub mipmapFilter: WGPUMipmapFilterMode,
5315 pub lodMinClamp: f32,
5316 pub lodMaxClamp: f32,
5317 pub compare: WGPUCompareFunction,
5318 pub maxAnisotropy: u16,
5319}
5320#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5321const _: () = {
5322 ["Size of WGPUSamplerDescriptor"][::core::mem::size_of::<WGPUSamplerDescriptor>() - 64usize];
5323 ["Alignment of WGPUSamplerDescriptor"]
5324 [::core::mem::align_of::<WGPUSamplerDescriptor>() - 8usize];
5325 ["Offset of field: WGPUSamplerDescriptor::nextInChain"]
5326 [::core::mem::offset_of!(WGPUSamplerDescriptor, nextInChain) - 0usize];
5327 ["Offset of field: WGPUSamplerDescriptor::label"]
5328 [::core::mem::offset_of!(WGPUSamplerDescriptor, label) - 8usize];
5329 ["Offset of field: WGPUSamplerDescriptor::addressModeU"]
5330 [::core::mem::offset_of!(WGPUSamplerDescriptor, addressModeU) - 24usize];
5331 ["Offset of field: WGPUSamplerDescriptor::addressModeV"]
5332 [::core::mem::offset_of!(WGPUSamplerDescriptor, addressModeV) - 28usize];
5333 ["Offset of field: WGPUSamplerDescriptor::addressModeW"]
5334 [::core::mem::offset_of!(WGPUSamplerDescriptor, addressModeW) - 32usize];
5335 ["Offset of field: WGPUSamplerDescriptor::magFilter"]
5336 [::core::mem::offset_of!(WGPUSamplerDescriptor, magFilter) - 36usize];
5337 ["Offset of field: WGPUSamplerDescriptor::minFilter"]
5338 [::core::mem::offset_of!(WGPUSamplerDescriptor, minFilter) - 40usize];
5339 ["Offset of field: WGPUSamplerDescriptor::mipmapFilter"]
5340 [::core::mem::offset_of!(WGPUSamplerDescriptor, mipmapFilter) - 44usize];
5341 ["Offset of field: WGPUSamplerDescriptor::lodMinClamp"]
5342 [::core::mem::offset_of!(WGPUSamplerDescriptor, lodMinClamp) - 48usize];
5343 ["Offset of field: WGPUSamplerDescriptor::lodMaxClamp"]
5344 [::core::mem::offset_of!(WGPUSamplerDescriptor, lodMaxClamp) - 52usize];
5345 ["Offset of field: WGPUSamplerDescriptor::compare"]
5346 [::core::mem::offset_of!(WGPUSamplerDescriptor, compare) - 56usize];
5347 ["Offset of field: WGPUSamplerDescriptor::maxAnisotropy"]
5348 [::core::mem::offset_of!(WGPUSamplerDescriptor, maxAnisotropy) - 60usize];
5349};
5350#[repr(C)]
5351#[derive(Debug, Copy, Clone)]
5352pub struct WGPUShaderModuleDescriptor {
5353 pub nextInChain: *mut WGPUChainedStruct,
5354 pub label: WGPUStringView,
5355}
5356#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5357const _: () = {
5358 ["Size of WGPUShaderModuleDescriptor"]
5359 [::core::mem::size_of::<WGPUShaderModuleDescriptor>() - 24usize];
5360 ["Alignment of WGPUShaderModuleDescriptor"]
5361 [::core::mem::align_of::<WGPUShaderModuleDescriptor>() - 8usize];
5362 ["Offset of field: WGPUShaderModuleDescriptor::nextInChain"]
5363 [::core::mem::offset_of!(WGPUShaderModuleDescriptor, nextInChain) - 0usize];
5364 ["Offset of field: WGPUShaderModuleDescriptor::label"]
5365 [::core::mem::offset_of!(WGPUShaderModuleDescriptor, label) - 8usize];
5366};
5367#[repr(C)]
5368#[derive(Debug, Copy, Clone)]
5369pub struct WGPUSharedFenceDescriptor {
5370 pub nextInChain: *mut WGPUChainedStruct,
5371 pub label: WGPUStringView,
5372}
5373#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5374const _: () = {
5375 ["Size of WGPUSharedFenceDescriptor"]
5376 [::core::mem::size_of::<WGPUSharedFenceDescriptor>() - 24usize];
5377 ["Alignment of WGPUSharedFenceDescriptor"]
5378 [::core::mem::align_of::<WGPUSharedFenceDescriptor>() - 8usize];
5379 ["Offset of field: WGPUSharedFenceDescriptor::nextInChain"]
5380 [::core::mem::offset_of!(WGPUSharedFenceDescriptor, nextInChain) - 0usize];
5381 ["Offset of field: WGPUSharedFenceDescriptor::label"]
5382 [::core::mem::offset_of!(WGPUSharedFenceDescriptor, label) - 8usize];
5383};
5384#[repr(C)]
5385#[derive(Debug, Copy, Clone)]
5386pub struct WGPUSharedFenceExportInfo {
5387 pub nextInChain: *mut WGPUChainedStruct,
5388 pub type_: WGPUSharedFenceType,
5389}
5390#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5391const _: () = {
5392 ["Size of WGPUSharedFenceExportInfo"]
5393 [::core::mem::size_of::<WGPUSharedFenceExportInfo>() - 16usize];
5394 ["Alignment of WGPUSharedFenceExportInfo"]
5395 [::core::mem::align_of::<WGPUSharedFenceExportInfo>() - 8usize];
5396 ["Offset of field: WGPUSharedFenceExportInfo::nextInChain"]
5397 [::core::mem::offset_of!(WGPUSharedFenceExportInfo, nextInChain) - 0usize];
5398 ["Offset of field: WGPUSharedFenceExportInfo::type_"]
5399 [::core::mem::offset_of!(WGPUSharedFenceExportInfo, type_) - 8usize];
5400};
5401#[repr(C)]
5402#[derive(Debug, Copy, Clone)]
5403pub struct WGPUSharedTextureMemoryAHardwareBufferProperties {
5404 pub chain: WGPUChainedStruct,
5405 pub yCbCrInfo: WGPUYCbCrVkDescriptor,
5406}
5407#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5408const _: () = {
5409 ["Size of WGPUSharedTextureMemoryAHardwareBufferProperties"]
5410 [::core::mem::size_of::<WGPUSharedTextureMemoryAHardwareBufferProperties>() - 88usize];
5411 ["Alignment of WGPUSharedTextureMemoryAHardwareBufferProperties"]
5412 [::core::mem::align_of::<WGPUSharedTextureMemoryAHardwareBufferProperties>() - 8usize];
5413 ["Offset of field: WGPUSharedTextureMemoryAHardwareBufferProperties::chain"]
5414 [::core::mem::offset_of!(WGPUSharedTextureMemoryAHardwareBufferProperties, chain) - 0usize];
5415 ["Offset of field: WGPUSharedTextureMemoryAHardwareBufferProperties::yCbCrInfo"][::core::mem::offset_of!(
5416 WGPUSharedTextureMemoryAHardwareBufferProperties,
5417 yCbCrInfo
5418 ) - 16usize];
5419};
5420#[repr(C)]
5421#[derive(Debug, Copy, Clone)]
5422pub struct WGPUSharedTextureMemoryBeginAccessDescriptor {
5423 pub nextInChain: *mut WGPUChainedStruct,
5424 pub concurrentRead: WGPUBool,
5425 pub initialized: WGPUBool,
5426 pub fenceCount: usize,
5427 pub fences: *const WGPUSharedFence,
5428 pub signaledValues: *const u64,
5429}
5430#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5431const _: () = {
5432 ["Size of WGPUSharedTextureMemoryBeginAccessDescriptor"]
5433 [::core::mem::size_of::<WGPUSharedTextureMemoryBeginAccessDescriptor>() - 40usize];
5434 ["Alignment of WGPUSharedTextureMemoryBeginAccessDescriptor"]
5435 [::core::mem::align_of::<WGPUSharedTextureMemoryBeginAccessDescriptor>() - 8usize];
5436 ["Offset of field: WGPUSharedTextureMemoryBeginAccessDescriptor::nextInChain"][::core::mem::offset_of!(
5437 WGPUSharedTextureMemoryBeginAccessDescriptor,
5438 nextInChain
5439 ) - 0usize];
5440 ["Offset of field: WGPUSharedTextureMemoryBeginAccessDescriptor::concurrentRead"][::core::mem::offset_of!(
5441 WGPUSharedTextureMemoryBeginAccessDescriptor,
5442 concurrentRead
5443 ) - 8usize];
5444 ["Offset of field: WGPUSharedTextureMemoryBeginAccessDescriptor::initialized"][::core::mem::offset_of!(
5445 WGPUSharedTextureMemoryBeginAccessDescriptor,
5446 initialized
5447 ) - 12usize];
5448 ["Offset of field: WGPUSharedTextureMemoryBeginAccessDescriptor::fenceCount"][::core::mem::offset_of!(
5449 WGPUSharedTextureMemoryBeginAccessDescriptor,
5450 fenceCount
5451 ) - 16usize];
5452 ["Offset of field: WGPUSharedTextureMemoryBeginAccessDescriptor::fences"]
5453 [::core::mem::offset_of!(WGPUSharedTextureMemoryBeginAccessDescriptor, fences) - 24usize];
5454 ["Offset of field: WGPUSharedTextureMemoryBeginAccessDescriptor::signaledValues"][::core::mem::offset_of!(
5455 WGPUSharedTextureMemoryBeginAccessDescriptor,
5456 signaledValues
5457 ) - 32usize];
5458};
5459#[repr(C)]
5460#[derive(Debug, Copy, Clone)]
5461pub struct WGPUSharedTextureMemoryDmaBufDescriptor {
5462 pub chain: WGPUChainedStruct,
5463 pub size: WGPUExtent3D,
5464 pub drmFormat: u32,
5465 pub drmModifier: u64,
5466 pub planeCount: usize,
5467 pub planes: *const WGPUSharedTextureMemoryDmaBufPlane,
5468}
5469#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5470const _: () = {
5471 ["Size of WGPUSharedTextureMemoryDmaBufDescriptor"]
5472 [::core::mem::size_of::<WGPUSharedTextureMemoryDmaBufDescriptor>() - 56usize];
5473 ["Alignment of WGPUSharedTextureMemoryDmaBufDescriptor"]
5474 [::core::mem::align_of::<WGPUSharedTextureMemoryDmaBufDescriptor>() - 8usize];
5475 ["Offset of field: WGPUSharedTextureMemoryDmaBufDescriptor::chain"]
5476 [::core::mem::offset_of!(WGPUSharedTextureMemoryDmaBufDescriptor, chain) - 0usize];
5477 ["Offset of field: WGPUSharedTextureMemoryDmaBufDescriptor::size"]
5478 [::core::mem::offset_of!(WGPUSharedTextureMemoryDmaBufDescriptor, size) - 16usize];
5479 ["Offset of field: WGPUSharedTextureMemoryDmaBufDescriptor::drmFormat"]
5480 [::core::mem::offset_of!(WGPUSharedTextureMemoryDmaBufDescriptor, drmFormat) - 28usize];
5481 ["Offset of field: WGPUSharedTextureMemoryDmaBufDescriptor::drmModifier"]
5482 [::core::mem::offset_of!(WGPUSharedTextureMemoryDmaBufDescriptor, drmModifier) - 32usize];
5483 ["Offset of field: WGPUSharedTextureMemoryDmaBufDescriptor::planeCount"]
5484 [::core::mem::offset_of!(WGPUSharedTextureMemoryDmaBufDescriptor, planeCount) - 40usize];
5485 ["Offset of field: WGPUSharedTextureMemoryDmaBufDescriptor::planes"]
5486 [::core::mem::offset_of!(WGPUSharedTextureMemoryDmaBufDescriptor, planes) - 48usize];
5487};
5488#[repr(C)]
5489#[derive(Debug, Copy, Clone)]
5490pub struct WGPUSharedTextureMemoryEndAccessState {
5491 pub nextInChain: *mut WGPUChainedStruct,
5492 pub initialized: WGPUBool,
5493 pub fenceCount: usize,
5494 pub fences: *const WGPUSharedFence,
5495 pub signaledValues: *const u64,
5496}
5497#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5498const _: () = {
5499 ["Size of WGPUSharedTextureMemoryEndAccessState"]
5500 [::core::mem::size_of::<WGPUSharedTextureMemoryEndAccessState>() - 40usize];
5501 ["Alignment of WGPUSharedTextureMemoryEndAccessState"]
5502 [::core::mem::align_of::<WGPUSharedTextureMemoryEndAccessState>() - 8usize];
5503 ["Offset of field: WGPUSharedTextureMemoryEndAccessState::nextInChain"]
5504 [::core::mem::offset_of!(WGPUSharedTextureMemoryEndAccessState, nextInChain) - 0usize];
5505 ["Offset of field: WGPUSharedTextureMemoryEndAccessState::initialized"]
5506 [::core::mem::offset_of!(WGPUSharedTextureMemoryEndAccessState, initialized) - 8usize];
5507 ["Offset of field: WGPUSharedTextureMemoryEndAccessState::fenceCount"]
5508 [::core::mem::offset_of!(WGPUSharedTextureMemoryEndAccessState, fenceCount) - 16usize];
5509 ["Offset of field: WGPUSharedTextureMemoryEndAccessState::fences"]
5510 [::core::mem::offset_of!(WGPUSharedTextureMemoryEndAccessState, fences) - 24usize];
5511 ["Offset of field: WGPUSharedTextureMemoryEndAccessState::signaledValues"]
5512 [::core::mem::offset_of!(WGPUSharedTextureMemoryEndAccessState, signaledValues) - 32usize];
5513};
5514#[repr(C)]
5515#[derive(Debug, Copy, Clone)]
5516pub struct WGPUSurfaceDescriptor {
5517 pub nextInChain: *mut WGPUChainedStruct,
5518 pub label: WGPUStringView,
5519}
5520#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5521const _: () = {
5522 ["Size of WGPUSurfaceDescriptor"][::core::mem::size_of::<WGPUSurfaceDescriptor>() - 24usize];
5523 ["Alignment of WGPUSurfaceDescriptor"]
5524 [::core::mem::align_of::<WGPUSurfaceDescriptor>() - 8usize];
5525 ["Offset of field: WGPUSurfaceDescriptor::nextInChain"]
5526 [::core::mem::offset_of!(WGPUSurfaceDescriptor, nextInChain) - 0usize];
5527 ["Offset of field: WGPUSurfaceDescriptor::label"]
5528 [::core::mem::offset_of!(WGPUSurfaceDescriptor, label) - 8usize];
5529};
5530#[repr(C)]
5531#[derive(Debug, Copy, Clone)]
5532pub struct WGPUTexelCopyBufferInfo {
5533 pub layout: WGPUTexelCopyBufferLayout,
5534 pub buffer: WGPUBuffer,
5535}
5536#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5537const _: () = {
5538 ["Size of WGPUTexelCopyBufferInfo"]
5539 [::core::mem::size_of::<WGPUTexelCopyBufferInfo>() - 24usize];
5540 ["Alignment of WGPUTexelCopyBufferInfo"]
5541 [::core::mem::align_of::<WGPUTexelCopyBufferInfo>() - 8usize];
5542 ["Offset of field: WGPUTexelCopyBufferInfo::layout"]
5543 [::core::mem::offset_of!(WGPUTexelCopyBufferInfo, layout) - 0usize];
5544 ["Offset of field: WGPUTexelCopyBufferInfo::buffer"]
5545 [::core::mem::offset_of!(WGPUTexelCopyBufferInfo, buffer) - 16usize];
5546};
5547#[repr(C)]
5548#[derive(Debug, Copy, Clone)]
5549pub struct WGPUTexelCopyTextureInfo {
5550 pub texture: WGPUTexture,
5551 pub mipLevel: u32,
5552 pub origin: WGPUOrigin3D,
5553 pub aspect: WGPUTextureAspect,
5554}
5555#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5556const _: () = {
5557 ["Size of WGPUTexelCopyTextureInfo"]
5558 [::core::mem::size_of::<WGPUTexelCopyTextureInfo>() - 32usize];
5559 ["Alignment of WGPUTexelCopyTextureInfo"]
5560 [::core::mem::align_of::<WGPUTexelCopyTextureInfo>() - 8usize];
5561 ["Offset of field: WGPUTexelCopyTextureInfo::texture"]
5562 [::core::mem::offset_of!(WGPUTexelCopyTextureInfo, texture) - 0usize];
5563 ["Offset of field: WGPUTexelCopyTextureInfo::mipLevel"]
5564 [::core::mem::offset_of!(WGPUTexelCopyTextureInfo, mipLevel) - 8usize];
5565 ["Offset of field: WGPUTexelCopyTextureInfo::origin"]
5566 [::core::mem::offset_of!(WGPUTexelCopyTextureInfo, origin) - 12usize];
5567 ["Offset of field: WGPUTexelCopyTextureInfo::aspect"]
5568 [::core::mem::offset_of!(WGPUTexelCopyTextureInfo, aspect) - 24usize];
5569};
5570#[repr(C)]
5571#[derive(Debug, Copy, Clone)]
5572pub struct WGPUTextureDescriptor {
5573 pub nextInChain: *mut WGPUChainedStruct,
5574 pub label: WGPUStringView,
5575 pub usage: WGPUTextureUsage,
5576 pub dimension: WGPUTextureDimension,
5577 pub size: WGPUExtent3D,
5578 pub format: WGPUTextureFormat,
5579 pub mipLevelCount: u32,
5580 pub sampleCount: u32,
5581 pub viewFormatCount: usize,
5582 pub viewFormats: *const WGPUTextureFormat,
5583}
5584#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5585const _: () = {
5586 ["Size of WGPUTextureDescriptor"][::core::mem::size_of::<WGPUTextureDescriptor>() - 80usize];
5587 ["Alignment of WGPUTextureDescriptor"]
5588 [::core::mem::align_of::<WGPUTextureDescriptor>() - 8usize];
5589 ["Offset of field: WGPUTextureDescriptor::nextInChain"]
5590 [::core::mem::offset_of!(WGPUTextureDescriptor, nextInChain) - 0usize];
5591 ["Offset of field: WGPUTextureDescriptor::label"]
5592 [::core::mem::offset_of!(WGPUTextureDescriptor, label) - 8usize];
5593 ["Offset of field: WGPUTextureDescriptor::usage"]
5594 [::core::mem::offset_of!(WGPUTextureDescriptor, usage) - 24usize];
5595 ["Offset of field: WGPUTextureDescriptor::dimension"]
5596 [::core::mem::offset_of!(WGPUTextureDescriptor, dimension) - 32usize];
5597 ["Offset of field: WGPUTextureDescriptor::size"]
5598 [::core::mem::offset_of!(WGPUTextureDescriptor, size) - 36usize];
5599 ["Offset of field: WGPUTextureDescriptor::format"]
5600 [::core::mem::offset_of!(WGPUTextureDescriptor, format) - 48usize];
5601 ["Offset of field: WGPUTextureDescriptor::mipLevelCount"]
5602 [::core::mem::offset_of!(WGPUTextureDescriptor, mipLevelCount) - 52usize];
5603 ["Offset of field: WGPUTextureDescriptor::sampleCount"]
5604 [::core::mem::offset_of!(WGPUTextureDescriptor, sampleCount) - 56usize];
5605 ["Offset of field: WGPUTextureDescriptor::viewFormatCount"]
5606 [::core::mem::offset_of!(WGPUTextureDescriptor, viewFormatCount) - 64usize];
5607 ["Offset of field: WGPUTextureDescriptor::viewFormats"]
5608 [::core::mem::offset_of!(WGPUTextureDescriptor, viewFormats) - 72usize];
5609};
5610#[repr(C)]
5611#[derive(Debug, Copy, Clone)]
5612pub struct WGPUTextureViewDescriptor {
5613 pub nextInChain: *mut WGPUChainedStruct,
5614 pub label: WGPUStringView,
5615 pub format: WGPUTextureFormat,
5616 pub dimension: WGPUTextureViewDimension,
5617 pub baseMipLevel: u32,
5618 pub mipLevelCount: u32,
5619 pub baseArrayLayer: u32,
5620 pub arrayLayerCount: u32,
5621 pub aspect: WGPUTextureAspect,
5622 pub usage: WGPUTextureUsage,
5623}
5624#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5625const _: () = {
5626 ["Size of WGPUTextureViewDescriptor"]
5627 [::core::mem::size_of::<WGPUTextureViewDescriptor>() - 64usize];
5628 ["Alignment of WGPUTextureViewDescriptor"]
5629 [::core::mem::align_of::<WGPUTextureViewDescriptor>() - 8usize];
5630 ["Offset of field: WGPUTextureViewDescriptor::nextInChain"]
5631 [::core::mem::offset_of!(WGPUTextureViewDescriptor, nextInChain) - 0usize];
5632 ["Offset of field: WGPUTextureViewDescriptor::label"]
5633 [::core::mem::offset_of!(WGPUTextureViewDescriptor, label) - 8usize];
5634 ["Offset of field: WGPUTextureViewDescriptor::format"]
5635 [::core::mem::offset_of!(WGPUTextureViewDescriptor, format) - 24usize];
5636 ["Offset of field: WGPUTextureViewDescriptor::dimension"]
5637 [::core::mem::offset_of!(WGPUTextureViewDescriptor, dimension) - 28usize];
5638 ["Offset of field: WGPUTextureViewDescriptor::baseMipLevel"]
5639 [::core::mem::offset_of!(WGPUTextureViewDescriptor, baseMipLevel) - 32usize];
5640 ["Offset of field: WGPUTextureViewDescriptor::mipLevelCount"]
5641 [::core::mem::offset_of!(WGPUTextureViewDescriptor, mipLevelCount) - 36usize];
5642 ["Offset of field: WGPUTextureViewDescriptor::baseArrayLayer"]
5643 [::core::mem::offset_of!(WGPUTextureViewDescriptor, baseArrayLayer) - 40usize];
5644 ["Offset of field: WGPUTextureViewDescriptor::arrayLayerCount"]
5645 [::core::mem::offset_of!(WGPUTextureViewDescriptor, arrayLayerCount) - 44usize];
5646 ["Offset of field: WGPUTextureViewDescriptor::aspect"]
5647 [::core::mem::offset_of!(WGPUTextureViewDescriptor, aspect) - 48usize];
5648 ["Offset of field: WGPUTextureViewDescriptor::usage"]
5649 [::core::mem::offset_of!(WGPUTextureViewDescriptor, usage) - 56usize];
5650};
5651#[repr(C)]
5652#[derive(Debug, Copy, Clone)]
5653pub struct WGPUVertexBufferLayout {
5654 pub nextInChain: *mut WGPUChainedStruct,
5655 pub stepMode: WGPUVertexStepMode,
5656 pub arrayStride: u64,
5657 pub attributeCount: usize,
5658 pub attributes: *const WGPUVertexAttribute,
5659}
5660#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5661const _: () = {
5662 ["Size of WGPUVertexBufferLayout"][::core::mem::size_of::<WGPUVertexBufferLayout>() - 40usize];
5663 ["Alignment of WGPUVertexBufferLayout"]
5664 [::core::mem::align_of::<WGPUVertexBufferLayout>() - 8usize];
5665 ["Offset of field: WGPUVertexBufferLayout::nextInChain"]
5666 [::core::mem::offset_of!(WGPUVertexBufferLayout, nextInChain) - 0usize];
5667 ["Offset of field: WGPUVertexBufferLayout::stepMode"]
5668 [::core::mem::offset_of!(WGPUVertexBufferLayout, stepMode) - 8usize];
5669 ["Offset of field: WGPUVertexBufferLayout::arrayStride"]
5670 [::core::mem::offset_of!(WGPUVertexBufferLayout, arrayStride) - 16usize];
5671 ["Offset of field: WGPUVertexBufferLayout::attributeCount"]
5672 [::core::mem::offset_of!(WGPUVertexBufferLayout, attributeCount) - 24usize];
5673 ["Offset of field: WGPUVertexBufferLayout::attributes"]
5674 [::core::mem::offset_of!(WGPUVertexBufferLayout, attributes) - 32usize];
5675};
5676#[repr(C)]
5677#[derive(Debug, Copy, Clone)]
5678pub struct WGPUAdapterInfo {
5679 pub nextInChain: *mut WGPUChainedStruct,
5680 pub vendor: WGPUStringView,
5681 pub architecture: WGPUStringView,
5682 pub device: WGPUStringView,
5683 pub description: WGPUStringView,
5684 pub backendType: WGPUBackendType,
5685 pub adapterType: WGPUAdapterType,
5686 pub vendorID: u32,
5687 pub deviceID: u32,
5688 pub subgroupMinSize: u32,
5689 pub subgroupMaxSize: u32,
5690}
5691#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5692const _: () = {
5693 ["Size of WGPUAdapterInfo"][::core::mem::size_of::<WGPUAdapterInfo>() - 96usize];
5694 ["Alignment of WGPUAdapterInfo"][::core::mem::align_of::<WGPUAdapterInfo>() - 8usize];
5695 ["Offset of field: WGPUAdapterInfo::nextInChain"]
5696 [::core::mem::offset_of!(WGPUAdapterInfo, nextInChain) - 0usize];
5697 ["Offset of field: WGPUAdapterInfo::vendor"]
5698 [::core::mem::offset_of!(WGPUAdapterInfo, vendor) - 8usize];
5699 ["Offset of field: WGPUAdapterInfo::architecture"]
5700 [::core::mem::offset_of!(WGPUAdapterInfo, architecture) - 24usize];
5701 ["Offset of field: WGPUAdapterInfo::device"]
5702 [::core::mem::offset_of!(WGPUAdapterInfo, device) - 40usize];
5703 ["Offset of field: WGPUAdapterInfo::description"]
5704 [::core::mem::offset_of!(WGPUAdapterInfo, description) - 56usize];
5705 ["Offset of field: WGPUAdapterInfo::backendType"]
5706 [::core::mem::offset_of!(WGPUAdapterInfo, backendType) - 72usize];
5707 ["Offset of field: WGPUAdapterInfo::adapterType"]
5708 [::core::mem::offset_of!(WGPUAdapterInfo, adapterType) - 76usize];
5709 ["Offset of field: WGPUAdapterInfo::vendorID"]
5710 [::core::mem::offset_of!(WGPUAdapterInfo, vendorID) - 80usize];
5711 ["Offset of field: WGPUAdapterInfo::deviceID"]
5712 [::core::mem::offset_of!(WGPUAdapterInfo, deviceID) - 84usize];
5713 ["Offset of field: WGPUAdapterInfo::subgroupMinSize"]
5714 [::core::mem::offset_of!(WGPUAdapterInfo, subgroupMinSize) - 88usize];
5715 ["Offset of field: WGPUAdapterInfo::subgroupMaxSize"]
5716 [::core::mem::offset_of!(WGPUAdapterInfo, subgroupMaxSize) - 92usize];
5717};
5718#[repr(C)]
5719#[derive(Debug, Copy, Clone)]
5720pub struct WGPUBindGroupDescriptor {
5721 pub nextInChain: *mut WGPUChainedStruct,
5722 pub label: WGPUStringView,
5723 pub layout: WGPUBindGroupLayout,
5724 pub entryCount: usize,
5725 pub entries: *const WGPUBindGroupEntry,
5726}
5727#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5728const _: () = {
5729 ["Size of WGPUBindGroupDescriptor"]
5730 [::core::mem::size_of::<WGPUBindGroupDescriptor>() - 48usize];
5731 ["Alignment of WGPUBindGroupDescriptor"]
5732 [::core::mem::align_of::<WGPUBindGroupDescriptor>() - 8usize];
5733 ["Offset of field: WGPUBindGroupDescriptor::nextInChain"]
5734 [::core::mem::offset_of!(WGPUBindGroupDescriptor, nextInChain) - 0usize];
5735 ["Offset of field: WGPUBindGroupDescriptor::label"]
5736 [::core::mem::offset_of!(WGPUBindGroupDescriptor, label) - 8usize];
5737 ["Offset of field: WGPUBindGroupDescriptor::layout"]
5738 [::core::mem::offset_of!(WGPUBindGroupDescriptor, layout) - 24usize];
5739 ["Offset of field: WGPUBindGroupDescriptor::entryCount"]
5740 [::core::mem::offset_of!(WGPUBindGroupDescriptor, entryCount) - 32usize];
5741 ["Offset of field: WGPUBindGroupDescriptor::entries"]
5742 [::core::mem::offset_of!(WGPUBindGroupDescriptor, entries) - 40usize];
5743};
5744#[repr(C)]
5745#[derive(Debug, Copy, Clone)]
5746pub struct WGPUBindGroupLayoutDescriptor {
5747 pub nextInChain: *mut WGPUChainedStruct,
5748 pub label: WGPUStringView,
5749 pub entryCount: usize,
5750 pub entries: *const WGPUBindGroupLayoutEntry,
5751}
5752#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5753const _: () = {
5754 ["Size of WGPUBindGroupLayoutDescriptor"]
5755 [::core::mem::size_of::<WGPUBindGroupLayoutDescriptor>() - 40usize];
5756 ["Alignment of WGPUBindGroupLayoutDescriptor"]
5757 [::core::mem::align_of::<WGPUBindGroupLayoutDescriptor>() - 8usize];
5758 ["Offset of field: WGPUBindGroupLayoutDescriptor::nextInChain"]
5759 [::core::mem::offset_of!(WGPUBindGroupLayoutDescriptor, nextInChain) - 0usize];
5760 ["Offset of field: WGPUBindGroupLayoutDescriptor::label"]
5761 [::core::mem::offset_of!(WGPUBindGroupLayoutDescriptor, label) - 8usize];
5762 ["Offset of field: WGPUBindGroupLayoutDescriptor::entryCount"]
5763 [::core::mem::offset_of!(WGPUBindGroupLayoutDescriptor, entryCount) - 24usize];
5764 ["Offset of field: WGPUBindGroupLayoutDescriptor::entries"]
5765 [::core::mem::offset_of!(WGPUBindGroupLayoutDescriptor, entries) - 32usize];
5766};
5767#[repr(C)]
5768#[derive(Debug, Copy, Clone)]
5769pub struct WGPUColorTargetState {
5770 pub nextInChain: *mut WGPUChainedStruct,
5771 pub format: WGPUTextureFormat,
5772 pub blend: *const WGPUBlendState,
5773 pub writeMask: WGPUColorWriteMask,
5774}
5775#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5776const _: () = {
5777 ["Size of WGPUColorTargetState"][::core::mem::size_of::<WGPUColorTargetState>() - 32usize];
5778 ["Alignment of WGPUColorTargetState"][::core::mem::align_of::<WGPUColorTargetState>() - 8usize];
5779 ["Offset of field: WGPUColorTargetState::nextInChain"]
5780 [::core::mem::offset_of!(WGPUColorTargetState, nextInChain) - 0usize];
5781 ["Offset of field: WGPUColorTargetState::format"]
5782 [::core::mem::offset_of!(WGPUColorTargetState, format) - 8usize];
5783 ["Offset of field: WGPUColorTargetState::blend"]
5784 [::core::mem::offset_of!(WGPUColorTargetState, blend) - 16usize];
5785 ["Offset of field: WGPUColorTargetState::writeMask"]
5786 [::core::mem::offset_of!(WGPUColorTargetState, writeMask) - 24usize];
5787};
5788#[repr(C)]
5789#[derive(Debug, Copy, Clone)]
5790pub struct WGPUCompilationInfo {
5791 pub nextInChain: *mut WGPUChainedStruct,
5792 pub messageCount: usize,
5793 pub messages: *const WGPUCompilationMessage,
5794}
5795#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5796const _: () = {
5797 ["Size of WGPUCompilationInfo"][::core::mem::size_of::<WGPUCompilationInfo>() - 24usize];
5798 ["Alignment of WGPUCompilationInfo"][::core::mem::align_of::<WGPUCompilationInfo>() - 8usize];
5799 ["Offset of field: WGPUCompilationInfo::nextInChain"]
5800 [::core::mem::offset_of!(WGPUCompilationInfo, nextInChain) - 0usize];
5801 ["Offset of field: WGPUCompilationInfo::messageCount"]
5802 [::core::mem::offset_of!(WGPUCompilationInfo, messageCount) - 8usize];
5803 ["Offset of field: WGPUCompilationInfo::messages"]
5804 [::core::mem::offset_of!(WGPUCompilationInfo, messages) - 16usize];
5805};
5806#[repr(C)]
5807#[derive(Debug, Copy, Clone)]
5808pub struct WGPUComputePipelineDescriptor {
5809 pub nextInChain: *mut WGPUChainedStruct,
5810 pub label: WGPUStringView,
5811 pub layout: WGPUPipelineLayout,
5812 pub compute: WGPUComputeState,
5813}
5814#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5815const _: () = {
5816 ["Size of WGPUComputePipelineDescriptor"]
5817 [::core::mem::size_of::<WGPUComputePipelineDescriptor>() - 80usize];
5818 ["Alignment of WGPUComputePipelineDescriptor"]
5819 [::core::mem::align_of::<WGPUComputePipelineDescriptor>() - 8usize];
5820 ["Offset of field: WGPUComputePipelineDescriptor::nextInChain"]
5821 [::core::mem::offset_of!(WGPUComputePipelineDescriptor, nextInChain) - 0usize];
5822 ["Offset of field: WGPUComputePipelineDescriptor::label"]
5823 [::core::mem::offset_of!(WGPUComputePipelineDescriptor, label) - 8usize];
5824 ["Offset of field: WGPUComputePipelineDescriptor::layout"]
5825 [::core::mem::offset_of!(WGPUComputePipelineDescriptor, layout) - 24usize];
5826 ["Offset of field: WGPUComputePipelineDescriptor::compute"]
5827 [::core::mem::offset_of!(WGPUComputePipelineDescriptor, compute) - 32usize];
5828};
5829#[repr(C)]
5830#[derive(Debug, Copy, Clone)]
5831pub struct WGPUDawnFormatCapabilities {
5832 pub nextInChain: *mut WGPUChainedStruct,
5833}
5834#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5835const _: () = {
5836 ["Size of WGPUDawnFormatCapabilities"]
5837 [::core::mem::size_of::<WGPUDawnFormatCapabilities>() - 8usize];
5838 ["Alignment of WGPUDawnFormatCapabilities"]
5839 [::core::mem::align_of::<WGPUDawnFormatCapabilities>() - 8usize];
5840 ["Offset of field: WGPUDawnFormatCapabilities::nextInChain"]
5841 [::core::mem::offset_of!(WGPUDawnFormatCapabilities, nextInChain) - 0usize];
5842};
5843#[repr(C)]
5844#[derive(Debug, Copy, Clone)]
5845pub struct WGPUDeviceDescriptor {
5846 pub nextInChain: *mut WGPUChainedStruct,
5847 pub label: WGPUStringView,
5848 pub requiredFeatureCount: usize,
5849 pub requiredFeatures: *const WGPUFeatureName,
5850 pub requiredLimits: *const WGPULimits,
5851 pub defaultQueue: WGPUQueueDescriptor,
5852 pub deviceLostCallbackInfo: WGPUDeviceLostCallbackInfo,
5853 pub uncapturedErrorCallbackInfo: WGPUUncapturedErrorCallbackInfo,
5854}
5855#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5856const _: () = {
5857 ["Size of WGPUDeviceDescriptor"][::core::mem::size_of::<WGPUDeviceDescriptor>() - 144usize];
5858 ["Alignment of WGPUDeviceDescriptor"][::core::mem::align_of::<WGPUDeviceDescriptor>() - 8usize];
5859 ["Offset of field: WGPUDeviceDescriptor::nextInChain"]
5860 [::core::mem::offset_of!(WGPUDeviceDescriptor, nextInChain) - 0usize];
5861 ["Offset of field: WGPUDeviceDescriptor::label"]
5862 [::core::mem::offset_of!(WGPUDeviceDescriptor, label) - 8usize];
5863 ["Offset of field: WGPUDeviceDescriptor::requiredFeatureCount"]
5864 [::core::mem::offset_of!(WGPUDeviceDescriptor, requiredFeatureCount) - 24usize];
5865 ["Offset of field: WGPUDeviceDescriptor::requiredFeatures"]
5866 [::core::mem::offset_of!(WGPUDeviceDescriptor, requiredFeatures) - 32usize];
5867 ["Offset of field: WGPUDeviceDescriptor::requiredLimits"]
5868 [::core::mem::offset_of!(WGPUDeviceDescriptor, requiredLimits) - 40usize];
5869 ["Offset of field: WGPUDeviceDescriptor::defaultQueue"]
5870 [::core::mem::offset_of!(WGPUDeviceDescriptor, defaultQueue) - 48usize];
5871 ["Offset of field: WGPUDeviceDescriptor::deviceLostCallbackInfo"]
5872 [::core::mem::offset_of!(WGPUDeviceDescriptor, deviceLostCallbackInfo) - 72usize];
5873 ["Offset of field: WGPUDeviceDescriptor::uncapturedErrorCallbackInfo"]
5874 [::core::mem::offset_of!(WGPUDeviceDescriptor, uncapturedErrorCallbackInfo) - 112usize];
5875};
5876#[repr(C)]
5877#[derive(Debug, Copy, Clone)]
5878pub struct WGPUPipelineLayoutDescriptor {
5879 pub nextInChain: *mut WGPUChainedStruct,
5880 pub label: WGPUStringView,
5881 pub bindGroupLayoutCount: usize,
5882 pub bindGroupLayouts: *const WGPUBindGroupLayout,
5883 pub immediateSize: u32,
5884}
5885#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5886const _: () = {
5887 ["Size of WGPUPipelineLayoutDescriptor"]
5888 [::core::mem::size_of::<WGPUPipelineLayoutDescriptor>() - 48usize];
5889 ["Alignment of WGPUPipelineLayoutDescriptor"]
5890 [::core::mem::align_of::<WGPUPipelineLayoutDescriptor>() - 8usize];
5891 ["Offset of field: WGPUPipelineLayoutDescriptor::nextInChain"]
5892 [::core::mem::offset_of!(WGPUPipelineLayoutDescriptor, nextInChain) - 0usize];
5893 ["Offset of field: WGPUPipelineLayoutDescriptor::label"]
5894 [::core::mem::offset_of!(WGPUPipelineLayoutDescriptor, label) - 8usize];
5895 ["Offset of field: WGPUPipelineLayoutDescriptor::bindGroupLayoutCount"]
5896 [::core::mem::offset_of!(WGPUPipelineLayoutDescriptor, bindGroupLayoutCount) - 24usize];
5897 ["Offset of field: WGPUPipelineLayoutDescriptor::bindGroupLayouts"]
5898 [::core::mem::offset_of!(WGPUPipelineLayoutDescriptor, bindGroupLayouts) - 32usize];
5899 ["Offset of field: WGPUPipelineLayoutDescriptor::immediateSize"]
5900 [::core::mem::offset_of!(WGPUPipelineLayoutDescriptor, immediateSize) - 40usize];
5901};
5902#[repr(C)]
5903#[derive(Debug, Copy, Clone)]
5904pub struct WGPURenderPassPixelLocalStorage {
5905 pub chain: WGPUChainedStruct,
5906 pub totalPixelLocalStorageSize: u64,
5907 pub storageAttachmentCount: usize,
5908 pub storageAttachments: *const WGPURenderPassStorageAttachment,
5909}
5910#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5911const _: () = {
5912 ["Size of WGPURenderPassPixelLocalStorage"]
5913 [::core::mem::size_of::<WGPURenderPassPixelLocalStorage>() - 40usize];
5914 ["Alignment of WGPURenderPassPixelLocalStorage"]
5915 [::core::mem::align_of::<WGPURenderPassPixelLocalStorage>() - 8usize];
5916 ["Offset of field: WGPURenderPassPixelLocalStorage::chain"]
5917 [::core::mem::offset_of!(WGPURenderPassPixelLocalStorage, chain) - 0usize];
5918 ["Offset of field: WGPURenderPassPixelLocalStorage::totalPixelLocalStorageSize"][::core::mem::offset_of!(
5919 WGPURenderPassPixelLocalStorage,
5920 totalPixelLocalStorageSize
5921 ) - 16usize];
5922 ["Offset of field: WGPURenderPassPixelLocalStorage::storageAttachmentCount"][::core::mem::offset_of!(
5923 WGPURenderPassPixelLocalStorage,
5924 storageAttachmentCount
5925 ) - 24usize];
5926 ["Offset of field: WGPURenderPassPixelLocalStorage::storageAttachments"]
5927 [::core::mem::offset_of!(WGPURenderPassPixelLocalStorage, storageAttachments) - 32usize];
5928};
5929#[repr(C)]
5930#[derive(Debug, Copy, Clone)]
5931pub struct WGPUSharedTextureMemoryDescriptor {
5932 pub nextInChain: *mut WGPUChainedStruct,
5933 pub label: WGPUStringView,
5934}
5935#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5936const _: () = {
5937 ["Size of WGPUSharedTextureMemoryDescriptor"]
5938 [::core::mem::size_of::<WGPUSharedTextureMemoryDescriptor>() - 24usize];
5939 ["Alignment of WGPUSharedTextureMemoryDescriptor"]
5940 [::core::mem::align_of::<WGPUSharedTextureMemoryDescriptor>() - 8usize];
5941 ["Offset of field: WGPUSharedTextureMemoryDescriptor::nextInChain"]
5942 [::core::mem::offset_of!(WGPUSharedTextureMemoryDescriptor, nextInChain) - 0usize];
5943 ["Offset of field: WGPUSharedTextureMemoryDescriptor::label"]
5944 [::core::mem::offset_of!(WGPUSharedTextureMemoryDescriptor, label) - 8usize];
5945};
5946#[repr(C)]
5947#[derive(Debug, Copy, Clone)]
5948pub struct WGPUSharedTextureMemoryProperties {
5949 pub nextInChain: *mut WGPUChainedStruct,
5950 pub usage: WGPUTextureUsage,
5951 pub size: WGPUExtent3D,
5952 pub format: WGPUTextureFormat,
5953}
5954#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5955const _: () = {
5956 ["Size of WGPUSharedTextureMemoryProperties"]
5957 [::core::mem::size_of::<WGPUSharedTextureMemoryProperties>() - 32usize];
5958 ["Alignment of WGPUSharedTextureMemoryProperties"]
5959 [::core::mem::align_of::<WGPUSharedTextureMemoryProperties>() - 8usize];
5960 ["Offset of field: WGPUSharedTextureMemoryProperties::nextInChain"]
5961 [::core::mem::offset_of!(WGPUSharedTextureMemoryProperties, nextInChain) - 0usize];
5962 ["Offset of field: WGPUSharedTextureMemoryProperties::usage"]
5963 [::core::mem::offset_of!(WGPUSharedTextureMemoryProperties, usage) - 8usize];
5964 ["Offset of field: WGPUSharedTextureMemoryProperties::size"]
5965 [::core::mem::offset_of!(WGPUSharedTextureMemoryProperties, size) - 16usize];
5966 ["Offset of field: WGPUSharedTextureMemoryProperties::format"]
5967 [::core::mem::offset_of!(WGPUSharedTextureMemoryProperties, format) - 28usize];
5968};
5969#[repr(C)]
5970#[derive(Debug, Copy, Clone)]
5971pub struct WGPUVertexState {
5972 pub nextInChain: *mut WGPUChainedStruct,
5973 pub module: WGPUShaderModule,
5974 pub entryPoint: WGPUStringView,
5975 pub constantCount: usize,
5976 pub constants: *const WGPUConstantEntry,
5977 pub bufferCount: usize,
5978 pub buffers: *const WGPUVertexBufferLayout,
5979}
5980#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5981const _: () = {
5982 ["Size of WGPUVertexState"][::core::mem::size_of::<WGPUVertexState>() - 64usize];
5983 ["Alignment of WGPUVertexState"][::core::mem::align_of::<WGPUVertexState>() - 8usize];
5984 ["Offset of field: WGPUVertexState::nextInChain"]
5985 [::core::mem::offset_of!(WGPUVertexState, nextInChain) - 0usize];
5986 ["Offset of field: WGPUVertexState::module"]
5987 [::core::mem::offset_of!(WGPUVertexState, module) - 8usize];
5988 ["Offset of field: WGPUVertexState::entryPoint"]
5989 [::core::mem::offset_of!(WGPUVertexState, entryPoint) - 16usize];
5990 ["Offset of field: WGPUVertexState::constantCount"]
5991 [::core::mem::offset_of!(WGPUVertexState, constantCount) - 32usize];
5992 ["Offset of field: WGPUVertexState::constants"]
5993 [::core::mem::offset_of!(WGPUVertexState, constants) - 40usize];
5994 ["Offset of field: WGPUVertexState::bufferCount"]
5995 [::core::mem::offset_of!(WGPUVertexState, bufferCount) - 48usize];
5996 ["Offset of field: WGPUVertexState::buffers"]
5997 [::core::mem::offset_of!(WGPUVertexState, buffers) - 56usize];
5998};
5999#[repr(C)]
6000#[derive(Debug, Copy, Clone)]
6001pub struct WGPUFragmentState {
6002 pub nextInChain: *mut WGPUChainedStruct,
6003 pub module: WGPUShaderModule,
6004 pub entryPoint: WGPUStringView,
6005 pub constantCount: usize,
6006 pub constants: *const WGPUConstantEntry,
6007 pub targetCount: usize,
6008 pub targets: *const WGPUColorTargetState,
6009}
6010#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6011const _: () = {
6012 ["Size of WGPUFragmentState"][::core::mem::size_of::<WGPUFragmentState>() - 64usize];
6013 ["Alignment of WGPUFragmentState"][::core::mem::align_of::<WGPUFragmentState>() - 8usize];
6014 ["Offset of field: WGPUFragmentState::nextInChain"]
6015 [::core::mem::offset_of!(WGPUFragmentState, nextInChain) - 0usize];
6016 ["Offset of field: WGPUFragmentState::module"]
6017 [::core::mem::offset_of!(WGPUFragmentState, module) - 8usize];
6018 ["Offset of field: WGPUFragmentState::entryPoint"]
6019 [::core::mem::offset_of!(WGPUFragmentState, entryPoint) - 16usize];
6020 ["Offset of field: WGPUFragmentState::constantCount"]
6021 [::core::mem::offset_of!(WGPUFragmentState, constantCount) - 32usize];
6022 ["Offset of field: WGPUFragmentState::constants"]
6023 [::core::mem::offset_of!(WGPUFragmentState, constants) - 40usize];
6024 ["Offset of field: WGPUFragmentState::targetCount"]
6025 [::core::mem::offset_of!(WGPUFragmentState, targetCount) - 48usize];
6026 ["Offset of field: WGPUFragmentState::targets"]
6027 [::core::mem::offset_of!(WGPUFragmentState, targets) - 56usize];
6028};
6029#[repr(C)]
6030#[derive(Debug, Copy, Clone)]
6031pub struct WGPURenderPassDescriptor {
6032 pub nextInChain: *mut WGPUChainedStruct,
6033 pub label: WGPUStringView,
6034 pub colorAttachmentCount: usize,
6035 pub colorAttachments: *const WGPURenderPassColorAttachment,
6036 pub depthStencilAttachment: *const WGPURenderPassDepthStencilAttachment,
6037 pub occlusionQuerySet: WGPUQuerySet,
6038 pub timestampWrites: *const WGPUPassTimestampWrites,
6039}
6040#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6041const _: () = {
6042 ["Size of WGPURenderPassDescriptor"]
6043 [::core::mem::size_of::<WGPURenderPassDescriptor>() - 64usize];
6044 ["Alignment of WGPURenderPassDescriptor"]
6045 [::core::mem::align_of::<WGPURenderPassDescriptor>() - 8usize];
6046 ["Offset of field: WGPURenderPassDescriptor::nextInChain"]
6047 [::core::mem::offset_of!(WGPURenderPassDescriptor, nextInChain) - 0usize];
6048 ["Offset of field: WGPURenderPassDescriptor::label"]
6049 [::core::mem::offset_of!(WGPURenderPassDescriptor, label) - 8usize];
6050 ["Offset of field: WGPURenderPassDescriptor::colorAttachmentCount"]
6051 [::core::mem::offset_of!(WGPURenderPassDescriptor, colorAttachmentCount) - 24usize];
6052 ["Offset of field: WGPURenderPassDescriptor::colorAttachments"]
6053 [::core::mem::offset_of!(WGPURenderPassDescriptor, colorAttachments) - 32usize];
6054 ["Offset of field: WGPURenderPassDescriptor::depthStencilAttachment"]
6055 [::core::mem::offset_of!(WGPURenderPassDescriptor, depthStencilAttachment) - 40usize];
6056 ["Offset of field: WGPURenderPassDescriptor::occlusionQuerySet"]
6057 [::core::mem::offset_of!(WGPURenderPassDescriptor, occlusionQuerySet) - 48usize];
6058 ["Offset of field: WGPURenderPassDescriptor::timestampWrites"]
6059 [::core::mem::offset_of!(WGPURenderPassDescriptor, timestampWrites) - 56usize];
6060};
6061#[repr(C)]
6062#[derive(Debug, Copy, Clone)]
6063pub struct WGPURenderPipelineDescriptor {
6064 pub nextInChain: *mut WGPUChainedStruct,
6065 pub label: WGPUStringView,
6066 pub layout: WGPUPipelineLayout,
6067 pub vertex: WGPUVertexState,
6068 pub primitive: WGPUPrimitiveState,
6069 pub depthStencil: *const WGPUDepthStencilState,
6070 pub multisample: WGPUMultisampleState,
6071 pub fragment: *const WGPUFragmentState,
6072}
6073#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6074const _: () = {
6075 ["Size of WGPURenderPipelineDescriptor"]
6076 [::core::mem::size_of::<WGPURenderPipelineDescriptor>() - 168usize];
6077 ["Alignment of WGPURenderPipelineDescriptor"]
6078 [::core::mem::align_of::<WGPURenderPipelineDescriptor>() - 8usize];
6079 ["Offset of field: WGPURenderPipelineDescriptor::nextInChain"]
6080 [::core::mem::offset_of!(WGPURenderPipelineDescriptor, nextInChain) - 0usize];
6081 ["Offset of field: WGPURenderPipelineDescriptor::label"]
6082 [::core::mem::offset_of!(WGPURenderPipelineDescriptor, label) - 8usize];
6083 ["Offset of field: WGPURenderPipelineDescriptor::layout"]
6084 [::core::mem::offset_of!(WGPURenderPipelineDescriptor, layout) - 24usize];
6085 ["Offset of field: WGPURenderPipelineDescriptor::vertex"]
6086 [::core::mem::offset_of!(WGPURenderPipelineDescriptor, vertex) - 32usize];
6087 ["Offset of field: WGPURenderPipelineDescriptor::primitive"]
6088 [::core::mem::offset_of!(WGPURenderPipelineDescriptor, primitive) - 96usize];
6089 ["Offset of field: WGPURenderPipelineDescriptor::depthStencil"]
6090 [::core::mem::offset_of!(WGPURenderPipelineDescriptor, depthStencil) - 128usize];
6091 ["Offset of field: WGPURenderPipelineDescriptor::multisample"]
6092 [::core::mem::offset_of!(WGPURenderPipelineDescriptor, multisample) - 136usize];
6093 ["Offset of field: WGPURenderPipelineDescriptor::fragment"]
6094 [::core::mem::offset_of!(WGPURenderPipelineDescriptor, fragment) - 160usize];
6095};
6096pub type WGPURenderPassDescriptorMaxDrawCount = WGPURenderPassMaxDrawCount;
6097pub type WGPUShaderModuleSPIRVDescriptor = WGPUShaderSourceSPIRV;
6098pub type WGPUShaderModuleWGSLDescriptor = WGPUShaderSourceWGSL;
6099pub type WGPUSurfaceDescriptorFromAndroidNativeWindow = WGPUSurfaceSourceAndroidNativeWindow;
6100pub type WGPUSurfaceDescriptorFromMetalLayer = WGPUSurfaceSourceMetalLayer;
6101pub type WGPUSurfaceDescriptorFromWaylandSurface = WGPUSurfaceSourceWaylandSurface;
6102pub type WGPUSurfaceDescriptorFromWindowsHWND = WGPUSurfaceSourceWindowsHWND;
6103pub type WGPUSurfaceDescriptorFromXcbWindow = WGPUSurfaceSourceXCBWindow;
6104pub type WGPUSurfaceDescriptorFromXlibWindow = WGPUSurfaceSourceXlibWindow;
6105pub type WGPUProcAdapterInfoFreeMembers =
6106 ::core::option::Option<unsafe extern "C" fn(value: WGPUAdapterInfo)>;
6107pub type WGPUProcAdapterPropertiesMemoryHeapsFreeMembers =
6108 ::core::option::Option<unsafe extern "C" fn(value: WGPUAdapterPropertiesMemoryHeaps)>;
6109pub type WGPUProcAdapterPropertiesSubgroupMatrixConfigsFreeMembers =
6110 ::core::option::Option<unsafe extern "C" fn(value: WGPUAdapterPropertiesSubgroupMatrixConfigs)>;
6111pub type WGPUProcCreateInstance = ::core::option::Option<
6112 unsafe extern "C" fn(descriptor: *const WGPUInstanceDescriptor) -> WGPUInstance,
6113>;
6114pub type WGPUProcDawnDrmFormatCapabilitiesFreeMembers =
6115 ::core::option::Option<unsafe extern "C" fn(value: WGPUDawnDrmFormatCapabilities)>;
6116pub type WGPUProcGetInstanceCapabilities = ::core::option::Option<
6117 unsafe extern "C" fn(capabilities: *mut WGPUInstanceCapabilities) -> WGPUStatus,
6118>;
6119pub type WGPUProcGetProcAddress =
6120 ::core::option::Option<unsafe extern "C" fn(procName: WGPUStringView) -> WGPUProc>;
6121pub type WGPUProcSharedBufferMemoryEndAccessStateFreeMembers =
6122 ::core::option::Option<unsafe extern "C" fn(value: WGPUSharedBufferMemoryEndAccessState)>;
6123pub type WGPUProcSharedTextureMemoryEndAccessStateFreeMembers =
6124 ::core::option::Option<unsafe extern "C" fn(value: WGPUSharedTextureMemoryEndAccessState)>;
6125pub type WGPUProcSupportedFeaturesFreeMembers =
6126 ::core::option::Option<unsafe extern "C" fn(value: WGPUSupportedFeatures)>;
6127pub type WGPUProcSupportedWGSLLanguageFeaturesFreeMembers =
6128 ::core::option::Option<unsafe extern "C" fn(value: WGPUSupportedWGSLLanguageFeatures)>;
6129pub type WGPUProcSurfaceCapabilitiesFreeMembers =
6130 ::core::option::Option<unsafe extern "C" fn(value: WGPUSurfaceCapabilities)>;
6131pub type WGPUProcAdapterCreateDevice = ::core::option::Option<
6132 unsafe extern "C" fn(
6133 adapter: WGPUAdapter,
6134 descriptor: *const WGPUDeviceDescriptor,
6135 ) -> WGPUDevice,
6136>;
6137pub type WGPUProcAdapterGetFeatures = ::core::option::Option<
6138 unsafe extern "C" fn(adapter: WGPUAdapter, features: *mut WGPUSupportedFeatures),
6139>;
6140pub type WGPUProcAdapterGetFormatCapabilities = ::core::option::Option<
6141 unsafe extern "C" fn(
6142 adapter: WGPUAdapter,
6143 format: WGPUTextureFormat,
6144 capabilities: *mut WGPUDawnFormatCapabilities,
6145 ) -> WGPUStatus,
6146>;
6147pub type WGPUProcAdapterGetInfo = ::core::option::Option<
6148 unsafe extern "C" fn(adapter: WGPUAdapter, info: *mut WGPUAdapterInfo) -> WGPUStatus,
6149>;
6150pub type WGPUProcAdapterGetInstance =
6151 ::core::option::Option<unsafe extern "C" fn(adapter: WGPUAdapter) -> WGPUInstance>;
6152pub type WGPUProcAdapterGetLimits = ::core::option::Option<
6153 unsafe extern "C" fn(adapter: WGPUAdapter, limits: *mut WGPULimits) -> WGPUStatus,
6154>;
6155pub type WGPUProcAdapterHasFeature = ::core::option::Option<
6156 unsafe extern "C" fn(adapter: WGPUAdapter, feature: WGPUFeatureName) -> WGPUBool,
6157>;
6158pub type WGPUProcAdapterRequestDevice = ::core::option::Option<
6159 unsafe extern "C" fn(
6160 adapter: WGPUAdapter,
6161 options: *const WGPUDeviceDescriptor,
6162 callbackInfo: WGPURequestDeviceCallbackInfo,
6163 ) -> WGPUFuture,
6164>;
6165pub type WGPUProcAdapterAddRef = ::core::option::Option<unsafe extern "C" fn(adapter: WGPUAdapter)>;
6166pub type WGPUProcAdapterRelease =
6167 ::core::option::Option<unsafe extern "C" fn(adapter: WGPUAdapter)>;
6168pub type WGPUProcBindGroupSetLabel =
6169 ::core::option::Option<unsafe extern "C" fn(bindGroup: WGPUBindGroup, label: WGPUStringView)>;
6170pub type WGPUProcBindGroupAddRef =
6171 ::core::option::Option<unsafe extern "C" fn(bindGroup: WGPUBindGroup)>;
6172pub type WGPUProcBindGroupRelease =
6173 ::core::option::Option<unsafe extern "C" fn(bindGroup: WGPUBindGroup)>;
6174pub type WGPUProcBindGroupLayoutSetLabel = ::core::option::Option<
6175 unsafe extern "C" fn(bindGroupLayout: WGPUBindGroupLayout, label: WGPUStringView),
6176>;
6177pub type WGPUProcBindGroupLayoutAddRef =
6178 ::core::option::Option<unsafe extern "C" fn(bindGroupLayout: WGPUBindGroupLayout)>;
6179pub type WGPUProcBindGroupLayoutRelease =
6180 ::core::option::Option<unsafe extern "C" fn(bindGroupLayout: WGPUBindGroupLayout)>;
6181pub type WGPUProcBufferDestroy = ::core::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer)>;
6182pub type WGPUProcBufferGetConstMappedRange = ::core::option::Option<
6183 unsafe extern "C" fn(
6184 buffer: WGPUBuffer,
6185 offset: usize,
6186 size: usize,
6187 ) -> *const ::core::ffi::c_void,
6188>;
6189pub type WGPUProcBufferGetMappedRange = ::core::option::Option<
6190 unsafe extern "C" fn(
6191 buffer: WGPUBuffer,
6192 offset: usize,
6193 size: usize,
6194 ) -> *mut ::core::ffi::c_void,
6195>;
6196pub type WGPUProcBufferGetMapState =
6197 ::core::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer) -> WGPUBufferMapState>;
6198pub type WGPUProcBufferGetSize =
6199 ::core::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer) -> u64>;
6200pub type WGPUProcBufferGetUsage =
6201 ::core::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer) -> WGPUBufferUsage>;
6202pub type WGPUProcBufferMapAsync = ::core::option::Option<
6203 unsafe extern "C" fn(
6204 buffer: WGPUBuffer,
6205 mode: WGPUMapMode,
6206 offset: usize,
6207 size: usize,
6208 callbackInfo: WGPUBufferMapCallbackInfo,
6209 ) -> WGPUFuture,
6210>;
6211pub type WGPUProcBufferReadMappedRange = ::core::option::Option<
6212 unsafe extern "C" fn(
6213 buffer: WGPUBuffer,
6214 offset: usize,
6215 data: *mut ::core::ffi::c_void,
6216 size: usize,
6217 ) -> WGPUStatus,
6218>;
6219pub type WGPUProcBufferSetLabel =
6220 ::core::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer, label: WGPUStringView)>;
6221pub type WGPUProcBufferUnmap = ::core::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer)>;
6222pub type WGPUProcBufferWriteMappedRange = ::core::option::Option<
6223 unsafe extern "C" fn(
6224 buffer: WGPUBuffer,
6225 offset: usize,
6226 data: *const ::core::ffi::c_void,
6227 size: usize,
6228 ) -> WGPUStatus,
6229>;
6230pub type WGPUProcBufferAddRef = ::core::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer)>;
6231pub type WGPUProcBufferRelease = ::core::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer)>;
6232pub type WGPUProcCommandBufferSetLabel = ::core::option::Option<
6233 unsafe extern "C" fn(commandBuffer: WGPUCommandBuffer, label: WGPUStringView),
6234>;
6235pub type WGPUProcCommandBufferAddRef =
6236 ::core::option::Option<unsafe extern "C" fn(commandBuffer: WGPUCommandBuffer)>;
6237pub type WGPUProcCommandBufferRelease =
6238 ::core::option::Option<unsafe extern "C" fn(commandBuffer: WGPUCommandBuffer)>;
6239pub type WGPUProcCommandEncoderBeginComputePass = ::core::option::Option<
6240 unsafe extern "C" fn(
6241 commandEncoder: WGPUCommandEncoder,
6242 descriptor: *const WGPUComputePassDescriptor,
6243 ) -> WGPUComputePassEncoder,
6244>;
6245pub type WGPUProcCommandEncoderBeginRenderPass = ::core::option::Option<
6246 unsafe extern "C" fn(
6247 commandEncoder: WGPUCommandEncoder,
6248 descriptor: *const WGPURenderPassDescriptor,
6249 ) -> WGPURenderPassEncoder,
6250>;
6251pub type WGPUProcCommandEncoderClearBuffer = ::core::option::Option<
6252 unsafe extern "C" fn(
6253 commandEncoder: WGPUCommandEncoder,
6254 buffer: WGPUBuffer,
6255 offset: u64,
6256 size: u64,
6257 ),
6258>;
6259pub type WGPUProcCommandEncoderCopyBufferToBuffer = ::core::option::Option<
6260 unsafe extern "C" fn(
6261 commandEncoder: WGPUCommandEncoder,
6262 source: WGPUBuffer,
6263 sourceOffset: u64,
6264 destination: WGPUBuffer,
6265 destinationOffset: u64,
6266 size: u64,
6267 ),
6268>;
6269pub type WGPUProcCommandEncoderCopyBufferToTexture = ::core::option::Option<
6270 unsafe extern "C" fn(
6271 commandEncoder: WGPUCommandEncoder,
6272 source: *const WGPUTexelCopyBufferInfo,
6273 destination: *const WGPUTexelCopyTextureInfo,
6274 copySize: *const WGPUExtent3D,
6275 ),
6276>;
6277pub type WGPUProcCommandEncoderCopyTextureToBuffer = ::core::option::Option<
6278 unsafe extern "C" fn(
6279 commandEncoder: WGPUCommandEncoder,
6280 source: *const WGPUTexelCopyTextureInfo,
6281 destination: *const WGPUTexelCopyBufferInfo,
6282 copySize: *const WGPUExtent3D,
6283 ),
6284>;
6285pub type WGPUProcCommandEncoderCopyTextureToTexture = ::core::option::Option<
6286 unsafe extern "C" fn(
6287 commandEncoder: WGPUCommandEncoder,
6288 source: *const WGPUTexelCopyTextureInfo,
6289 destination: *const WGPUTexelCopyTextureInfo,
6290 copySize: *const WGPUExtent3D,
6291 ),
6292>;
6293pub type WGPUProcCommandEncoderFinish = ::core::option::Option<
6294 unsafe extern "C" fn(
6295 commandEncoder: WGPUCommandEncoder,
6296 descriptor: *const WGPUCommandBufferDescriptor,
6297 ) -> WGPUCommandBuffer,
6298>;
6299pub type WGPUProcCommandEncoderInjectValidationError = ::core::option::Option<
6300 unsafe extern "C" fn(commandEncoder: WGPUCommandEncoder, message: WGPUStringView),
6301>;
6302pub type WGPUProcCommandEncoderInsertDebugMarker = ::core::option::Option<
6303 unsafe extern "C" fn(commandEncoder: WGPUCommandEncoder, markerLabel: WGPUStringView),
6304>;
6305pub type WGPUProcCommandEncoderPopDebugGroup =
6306 ::core::option::Option<unsafe extern "C" fn(commandEncoder: WGPUCommandEncoder)>;
6307pub type WGPUProcCommandEncoderPushDebugGroup = ::core::option::Option<
6308 unsafe extern "C" fn(commandEncoder: WGPUCommandEncoder, groupLabel: WGPUStringView),
6309>;
6310pub type WGPUProcCommandEncoderResolveQuerySet = ::core::option::Option<
6311 unsafe extern "C" fn(
6312 commandEncoder: WGPUCommandEncoder,
6313 querySet: WGPUQuerySet,
6314 firstQuery: u32,
6315 queryCount: u32,
6316 destination: WGPUBuffer,
6317 destinationOffset: u64,
6318 ),
6319>;
6320pub type WGPUProcCommandEncoderSetLabel = ::core::option::Option<
6321 unsafe extern "C" fn(commandEncoder: WGPUCommandEncoder, label: WGPUStringView),
6322>;
6323pub type WGPUProcCommandEncoderWriteBuffer = ::core::option::Option<
6324 unsafe extern "C" fn(
6325 commandEncoder: WGPUCommandEncoder,
6326 buffer: WGPUBuffer,
6327 bufferOffset: u64,
6328 data: *const u8,
6329 size: u64,
6330 ),
6331>;
6332pub type WGPUProcCommandEncoderWriteTimestamp = ::core::option::Option<
6333 unsafe extern "C" fn(
6334 commandEncoder: WGPUCommandEncoder,
6335 querySet: WGPUQuerySet,
6336 queryIndex: u32,
6337 ),
6338>;
6339pub type WGPUProcCommandEncoderAddRef =
6340 ::core::option::Option<unsafe extern "C" fn(commandEncoder: WGPUCommandEncoder)>;
6341pub type WGPUProcCommandEncoderRelease =
6342 ::core::option::Option<unsafe extern "C" fn(commandEncoder: WGPUCommandEncoder)>;
6343pub type WGPUProcComputePassEncoderDispatchWorkgroups = ::core::option::Option<
6344 unsafe extern "C" fn(
6345 computePassEncoder: WGPUComputePassEncoder,
6346 workgroupCountX: u32,
6347 workgroupCountY: u32,
6348 workgroupCountZ: u32,
6349 ),
6350>;
6351pub type WGPUProcComputePassEncoderDispatchWorkgroupsIndirect = ::core::option::Option<
6352 unsafe extern "C" fn(
6353 computePassEncoder: WGPUComputePassEncoder,
6354 indirectBuffer: WGPUBuffer,
6355 indirectOffset: u64,
6356 ),
6357>;
6358pub type WGPUProcComputePassEncoderEnd =
6359 ::core::option::Option<unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder)>;
6360pub type WGPUProcComputePassEncoderInsertDebugMarker = ::core::option::Option<
6361 unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder, markerLabel: WGPUStringView),
6362>;
6363pub type WGPUProcComputePassEncoderPopDebugGroup =
6364 ::core::option::Option<unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder)>;
6365pub type WGPUProcComputePassEncoderPushDebugGroup = ::core::option::Option<
6366 unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder, groupLabel: WGPUStringView),
6367>;
6368pub type WGPUProcComputePassEncoderSetBindGroup = ::core::option::Option<
6369 unsafe extern "C" fn(
6370 computePassEncoder: WGPUComputePassEncoder,
6371 groupIndex: u32,
6372 group: WGPUBindGroup,
6373 dynamicOffsetCount: usize,
6374 dynamicOffsets: *const u32,
6375 ),
6376>;
6377pub type WGPUProcComputePassEncoderSetImmediateData = ::core::option::Option<
6378 unsafe extern "C" fn(
6379 computePassEncoder: WGPUComputePassEncoder,
6380 offset: u32,
6381 data: *const ::core::ffi::c_void,
6382 size: usize,
6383 ),
6384>;
6385pub type WGPUProcComputePassEncoderSetLabel = ::core::option::Option<
6386 unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder, label: WGPUStringView),
6387>;
6388pub type WGPUProcComputePassEncoderSetPipeline = ::core::option::Option<
6389 unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder, pipeline: WGPUComputePipeline),
6390>;
6391pub type WGPUProcComputePassEncoderWriteTimestamp = ::core::option::Option<
6392 unsafe extern "C" fn(
6393 computePassEncoder: WGPUComputePassEncoder,
6394 querySet: WGPUQuerySet,
6395 queryIndex: u32,
6396 ),
6397>;
6398pub type WGPUProcComputePassEncoderAddRef =
6399 ::core::option::Option<unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder)>;
6400pub type WGPUProcComputePassEncoderRelease =
6401 ::core::option::Option<unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder)>;
6402pub type WGPUProcComputePipelineGetBindGroupLayout = ::core::option::Option<
6403 unsafe extern "C" fn(
6404 computePipeline: WGPUComputePipeline,
6405 groupIndex: u32,
6406 ) -> WGPUBindGroupLayout,
6407>;
6408pub type WGPUProcComputePipelineSetLabel = ::core::option::Option<
6409 unsafe extern "C" fn(computePipeline: WGPUComputePipeline, label: WGPUStringView),
6410>;
6411pub type WGPUProcComputePipelineAddRef =
6412 ::core::option::Option<unsafe extern "C" fn(computePipeline: WGPUComputePipeline)>;
6413pub type WGPUProcComputePipelineRelease =
6414 ::core::option::Option<unsafe extern "C" fn(computePipeline: WGPUComputePipeline)>;
6415pub type WGPUProcDeviceCreateBindGroup = ::core::option::Option<
6416 unsafe extern "C" fn(
6417 device: WGPUDevice,
6418 descriptor: *const WGPUBindGroupDescriptor,
6419 ) -> WGPUBindGroup,
6420>;
6421pub type WGPUProcDeviceCreateBindGroupLayout = ::core::option::Option<
6422 unsafe extern "C" fn(
6423 device: WGPUDevice,
6424 descriptor: *const WGPUBindGroupLayoutDescriptor,
6425 ) -> WGPUBindGroupLayout,
6426>;
6427pub type WGPUProcDeviceCreateBuffer = ::core::option::Option<
6428 unsafe extern "C" fn(device: WGPUDevice, descriptor: *const WGPUBufferDescriptor) -> WGPUBuffer,
6429>;
6430pub type WGPUProcDeviceCreateCommandEncoder = ::core::option::Option<
6431 unsafe extern "C" fn(
6432 device: WGPUDevice,
6433 descriptor: *const WGPUCommandEncoderDescriptor,
6434 ) -> WGPUCommandEncoder,
6435>;
6436pub type WGPUProcDeviceCreateComputePipeline = ::core::option::Option<
6437 unsafe extern "C" fn(
6438 device: WGPUDevice,
6439 descriptor: *const WGPUComputePipelineDescriptor,
6440 ) -> WGPUComputePipeline,
6441>;
6442pub type WGPUProcDeviceCreateComputePipelineAsync = ::core::option::Option<
6443 unsafe extern "C" fn(
6444 device: WGPUDevice,
6445 descriptor: *const WGPUComputePipelineDescriptor,
6446 callbackInfo: WGPUCreateComputePipelineAsyncCallbackInfo,
6447 ) -> WGPUFuture,
6448>;
6449pub type WGPUProcDeviceCreateErrorBuffer = ::core::option::Option<
6450 unsafe extern "C" fn(device: WGPUDevice, descriptor: *const WGPUBufferDescriptor) -> WGPUBuffer,
6451>;
6452pub type WGPUProcDeviceCreateErrorExternalTexture =
6453 ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice) -> WGPUExternalTexture>;
6454pub type WGPUProcDeviceCreateErrorShaderModule = ::core::option::Option<
6455 unsafe extern "C" fn(
6456 device: WGPUDevice,
6457 descriptor: *const WGPUShaderModuleDescriptor,
6458 errorMessage: WGPUStringView,
6459 ) -> WGPUShaderModule,
6460>;
6461pub type WGPUProcDeviceCreateErrorTexture = ::core::option::Option<
6462 unsafe extern "C" fn(
6463 device: WGPUDevice,
6464 descriptor: *const WGPUTextureDescriptor,
6465 ) -> WGPUTexture,
6466>;
6467pub type WGPUProcDeviceCreateExternalTexture = ::core::option::Option<
6468 unsafe extern "C" fn(
6469 device: WGPUDevice,
6470 externalTextureDescriptor: *const WGPUExternalTextureDescriptor,
6471 ) -> WGPUExternalTexture,
6472>;
6473pub type WGPUProcDeviceCreatePipelineLayout = ::core::option::Option<
6474 unsafe extern "C" fn(
6475 device: WGPUDevice,
6476 descriptor: *const WGPUPipelineLayoutDescriptor,
6477 ) -> WGPUPipelineLayout,
6478>;
6479pub type WGPUProcDeviceCreateQuerySet = ::core::option::Option<
6480 unsafe extern "C" fn(
6481 device: WGPUDevice,
6482 descriptor: *const WGPUQuerySetDescriptor,
6483 ) -> WGPUQuerySet,
6484>;
6485pub type WGPUProcDeviceCreateRenderBundleEncoder = ::core::option::Option<
6486 unsafe extern "C" fn(
6487 device: WGPUDevice,
6488 descriptor: *const WGPURenderBundleEncoderDescriptor,
6489 ) -> WGPURenderBundleEncoder,
6490>;
6491pub type WGPUProcDeviceCreateRenderPipeline = ::core::option::Option<
6492 unsafe extern "C" fn(
6493 device: WGPUDevice,
6494 descriptor: *const WGPURenderPipelineDescriptor,
6495 ) -> WGPURenderPipeline,
6496>;
6497pub type WGPUProcDeviceCreateRenderPipelineAsync = ::core::option::Option<
6498 unsafe extern "C" fn(
6499 device: WGPUDevice,
6500 descriptor: *const WGPURenderPipelineDescriptor,
6501 callbackInfo: WGPUCreateRenderPipelineAsyncCallbackInfo,
6502 ) -> WGPUFuture,
6503>;
6504pub type WGPUProcDeviceCreateSampler = ::core::option::Option<
6505 unsafe extern "C" fn(
6506 device: WGPUDevice,
6507 descriptor: *const WGPUSamplerDescriptor,
6508 ) -> WGPUSampler,
6509>;
6510pub type WGPUProcDeviceCreateShaderModule = ::core::option::Option<
6511 unsafe extern "C" fn(
6512 device: WGPUDevice,
6513 descriptor: *const WGPUShaderModuleDescriptor,
6514 ) -> WGPUShaderModule,
6515>;
6516pub type WGPUProcDeviceCreateTexture = ::core::option::Option<
6517 unsafe extern "C" fn(
6518 device: WGPUDevice,
6519 descriptor: *const WGPUTextureDescriptor,
6520 ) -> WGPUTexture,
6521>;
6522pub type WGPUProcDeviceDestroy = ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice)>;
6523pub type WGPUProcDeviceForceLoss = ::core::option::Option<
6524 unsafe extern "C" fn(device: WGPUDevice, type_: WGPUDeviceLostReason, message: WGPUStringView),
6525>;
6526pub type WGPUProcDeviceGetAdapter =
6527 ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice) -> WGPUAdapter>;
6528pub type WGPUProcDeviceGetAdapterInfo = ::core::option::Option<
6529 unsafe extern "C" fn(device: WGPUDevice, adapterInfo: *mut WGPUAdapterInfo) -> WGPUStatus,
6530>;
6531pub type WGPUProcDeviceGetAHardwareBufferProperties = ::core::option::Option<
6532 unsafe extern "C" fn(
6533 device: WGPUDevice,
6534 handle: *mut ::core::ffi::c_void,
6535 properties: *mut WGPUAHardwareBufferProperties,
6536 ) -> WGPUStatus,
6537>;
6538pub type WGPUProcDeviceGetFeatures = ::core::option::Option<
6539 unsafe extern "C" fn(device: WGPUDevice, features: *mut WGPUSupportedFeatures),
6540>;
6541pub type WGPUProcDeviceGetLimits = ::core::option::Option<
6542 unsafe extern "C" fn(device: WGPUDevice, limits: *mut WGPULimits) -> WGPUStatus,
6543>;
6544pub type WGPUProcDeviceGetLostFuture =
6545 ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice) -> WGPUFuture>;
6546pub type WGPUProcDeviceGetQueue =
6547 ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice) -> WGPUQueue>;
6548pub type WGPUProcDeviceHasFeature = ::core::option::Option<
6549 unsafe extern "C" fn(device: WGPUDevice, feature: WGPUFeatureName) -> WGPUBool,
6550>;
6551pub type WGPUProcDeviceImportSharedBufferMemory = ::core::option::Option<
6552 unsafe extern "C" fn(
6553 device: WGPUDevice,
6554 descriptor: *const WGPUSharedBufferMemoryDescriptor,
6555 ) -> WGPUSharedBufferMemory,
6556>;
6557pub type WGPUProcDeviceImportSharedFence = ::core::option::Option<
6558 unsafe extern "C" fn(
6559 device: WGPUDevice,
6560 descriptor: *const WGPUSharedFenceDescriptor,
6561 ) -> WGPUSharedFence,
6562>;
6563pub type WGPUProcDeviceImportSharedTextureMemory = ::core::option::Option<
6564 unsafe extern "C" fn(
6565 device: WGPUDevice,
6566 descriptor: *const WGPUSharedTextureMemoryDescriptor,
6567 ) -> WGPUSharedTextureMemory,
6568>;
6569pub type WGPUProcDeviceInjectError = ::core::option::Option<
6570 unsafe extern "C" fn(device: WGPUDevice, type_: WGPUErrorType, message: WGPUStringView),
6571>;
6572pub type WGPUProcDevicePopErrorScope = ::core::option::Option<
6573 unsafe extern "C" fn(
6574 device: WGPUDevice,
6575 callbackInfo: WGPUPopErrorScopeCallbackInfo,
6576 ) -> WGPUFuture,
6577>;
6578pub type WGPUProcDevicePushErrorScope =
6579 ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice, filter: WGPUErrorFilter)>;
6580pub type WGPUProcDeviceSetLabel =
6581 ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice, label: WGPUStringView)>;
6582pub type WGPUProcDeviceSetLoggingCallback = ::core::option::Option<
6583 unsafe extern "C" fn(device: WGPUDevice, callbackInfo: WGPULoggingCallbackInfo),
6584>;
6585pub type WGPUProcDeviceTick = ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice)>;
6586pub type WGPUProcDeviceValidateTextureDescriptor = ::core::option::Option<
6587 unsafe extern "C" fn(device: WGPUDevice, descriptor: *const WGPUTextureDescriptor),
6588>;
6589pub type WGPUProcDeviceAddRef = ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice)>;
6590pub type WGPUProcDeviceRelease = ::core::option::Option<unsafe extern "C" fn(device: WGPUDevice)>;
6591pub type WGPUProcExternalTextureDestroy =
6592 ::core::option::Option<unsafe extern "C" fn(externalTexture: WGPUExternalTexture)>;
6593pub type WGPUProcExternalTextureExpire =
6594 ::core::option::Option<unsafe extern "C" fn(externalTexture: WGPUExternalTexture)>;
6595pub type WGPUProcExternalTextureRefresh =
6596 ::core::option::Option<unsafe extern "C" fn(externalTexture: WGPUExternalTexture)>;
6597pub type WGPUProcExternalTextureSetLabel = ::core::option::Option<
6598 unsafe extern "C" fn(externalTexture: WGPUExternalTexture, label: WGPUStringView),
6599>;
6600pub type WGPUProcExternalTextureAddRef =
6601 ::core::option::Option<unsafe extern "C" fn(externalTexture: WGPUExternalTexture)>;
6602pub type WGPUProcExternalTextureRelease =
6603 ::core::option::Option<unsafe extern "C" fn(externalTexture: WGPUExternalTexture)>;
6604pub type WGPUProcInstanceCreateSurface = ::core::option::Option<
6605 unsafe extern "C" fn(
6606 instance: WGPUInstance,
6607 descriptor: *const WGPUSurfaceDescriptor,
6608 ) -> WGPUSurface,
6609>;
6610pub type WGPUProcInstanceGetWGSLLanguageFeatures = ::core::option::Option<
6611 unsafe extern "C" fn(
6612 instance: WGPUInstance,
6613 features: *mut WGPUSupportedWGSLLanguageFeatures,
6614 ) -> WGPUStatus,
6615>;
6616pub type WGPUProcInstanceHasWGSLLanguageFeature = ::core::option::Option<
6617 unsafe extern "C" fn(instance: WGPUInstance, feature: WGPUWGSLLanguageFeatureName) -> WGPUBool,
6618>;
6619pub type WGPUProcInstanceProcessEvents =
6620 ::core::option::Option<unsafe extern "C" fn(instance: WGPUInstance)>;
6621pub type WGPUProcInstanceRequestAdapter = ::core::option::Option<
6622 unsafe extern "C" fn(
6623 instance: WGPUInstance,
6624 options: *const WGPURequestAdapterOptions,
6625 callbackInfo: WGPURequestAdapterCallbackInfo,
6626 ) -> WGPUFuture,
6627>;
6628pub type WGPUProcInstanceWaitAny = ::core::option::Option<
6629 unsafe extern "C" fn(
6630 instance: WGPUInstance,
6631 futureCount: usize,
6632 futures: *mut WGPUFutureWaitInfo,
6633 timeoutNS: u64,
6634 ) -> WGPUWaitStatus,
6635>;
6636pub type WGPUProcInstanceAddRef =
6637 ::core::option::Option<unsafe extern "C" fn(instance: WGPUInstance)>;
6638pub type WGPUProcInstanceRelease =
6639 ::core::option::Option<unsafe extern "C" fn(instance: WGPUInstance)>;
6640pub type WGPUProcPipelineLayoutSetLabel = ::core::option::Option<
6641 unsafe extern "C" fn(pipelineLayout: WGPUPipelineLayout, label: WGPUStringView),
6642>;
6643pub type WGPUProcPipelineLayoutAddRef =
6644 ::core::option::Option<unsafe extern "C" fn(pipelineLayout: WGPUPipelineLayout)>;
6645pub type WGPUProcPipelineLayoutRelease =
6646 ::core::option::Option<unsafe extern "C" fn(pipelineLayout: WGPUPipelineLayout)>;
6647pub type WGPUProcQuerySetDestroy =
6648 ::core::option::Option<unsafe extern "C" fn(querySet: WGPUQuerySet)>;
6649pub type WGPUProcQuerySetGetCount =
6650 ::core::option::Option<unsafe extern "C" fn(querySet: WGPUQuerySet) -> u32>;
6651pub type WGPUProcQuerySetGetType =
6652 ::core::option::Option<unsafe extern "C" fn(querySet: WGPUQuerySet) -> WGPUQueryType>;
6653pub type WGPUProcQuerySetSetLabel =
6654 ::core::option::Option<unsafe extern "C" fn(querySet: WGPUQuerySet, label: WGPUStringView)>;
6655pub type WGPUProcQuerySetAddRef =
6656 ::core::option::Option<unsafe extern "C" fn(querySet: WGPUQuerySet)>;
6657pub type WGPUProcQuerySetRelease =
6658 ::core::option::Option<unsafe extern "C" fn(querySet: WGPUQuerySet)>;
6659pub type WGPUProcQueueCopyExternalTextureForBrowser = ::core::option::Option<
6660 unsafe extern "C" fn(
6661 queue: WGPUQueue,
6662 source: *const WGPUImageCopyExternalTexture,
6663 destination: *const WGPUTexelCopyTextureInfo,
6664 copySize: *const WGPUExtent3D,
6665 options: *const WGPUCopyTextureForBrowserOptions,
6666 ),
6667>;
6668pub type WGPUProcQueueCopyTextureForBrowser = ::core::option::Option<
6669 unsafe extern "C" fn(
6670 queue: WGPUQueue,
6671 source: *const WGPUTexelCopyTextureInfo,
6672 destination: *const WGPUTexelCopyTextureInfo,
6673 copySize: *const WGPUExtent3D,
6674 options: *const WGPUCopyTextureForBrowserOptions,
6675 ),
6676>;
6677pub type WGPUProcQueueOnSubmittedWorkDone = ::core::option::Option<
6678 unsafe extern "C" fn(
6679 queue: WGPUQueue,
6680 callbackInfo: WGPUQueueWorkDoneCallbackInfo,
6681 ) -> WGPUFuture,
6682>;
6683pub type WGPUProcQueueSetLabel =
6684 ::core::option::Option<unsafe extern "C" fn(queue: WGPUQueue, label: WGPUStringView)>;
6685pub type WGPUProcQueueSubmit = ::core::option::Option<
6686 unsafe extern "C" fn(queue: WGPUQueue, commandCount: usize, commands: *const WGPUCommandBuffer),
6687>;
6688pub type WGPUProcQueueWriteBuffer = ::core::option::Option<
6689 unsafe extern "C" fn(
6690 queue: WGPUQueue,
6691 buffer: WGPUBuffer,
6692 bufferOffset: u64,
6693 data: *const ::core::ffi::c_void,
6694 size: usize,
6695 ),
6696>;
6697pub type WGPUProcQueueWriteTexture = ::core::option::Option<
6698 unsafe extern "C" fn(
6699 queue: WGPUQueue,
6700 destination: *const WGPUTexelCopyTextureInfo,
6701 data: *const ::core::ffi::c_void,
6702 dataSize: usize,
6703 dataLayout: *const WGPUTexelCopyBufferLayout,
6704 writeSize: *const WGPUExtent3D,
6705 ),
6706>;
6707pub type WGPUProcQueueAddRef = ::core::option::Option<unsafe extern "C" fn(queue: WGPUQueue)>;
6708pub type WGPUProcQueueRelease = ::core::option::Option<unsafe extern "C" fn(queue: WGPUQueue)>;
6709pub type WGPUProcRenderBundleSetLabel = ::core::option::Option<
6710 unsafe extern "C" fn(renderBundle: WGPURenderBundle, label: WGPUStringView),
6711>;
6712pub type WGPUProcRenderBundleAddRef =
6713 ::core::option::Option<unsafe extern "C" fn(renderBundle: WGPURenderBundle)>;
6714pub type WGPUProcRenderBundleRelease =
6715 ::core::option::Option<unsafe extern "C" fn(renderBundle: WGPURenderBundle)>;
6716pub type WGPUProcRenderBundleEncoderDraw = ::core::option::Option<
6717 unsafe extern "C" fn(
6718 renderBundleEncoder: WGPURenderBundleEncoder,
6719 vertexCount: u32,
6720 instanceCount: u32,
6721 firstVertex: u32,
6722 firstInstance: u32,
6723 ),
6724>;
6725pub type WGPUProcRenderBundleEncoderDrawIndexed = ::core::option::Option<
6726 unsafe extern "C" fn(
6727 renderBundleEncoder: WGPURenderBundleEncoder,
6728 indexCount: u32,
6729 instanceCount: u32,
6730 firstIndex: u32,
6731 baseVertex: i32,
6732 firstInstance: u32,
6733 ),
6734>;
6735pub type WGPUProcRenderBundleEncoderDrawIndexedIndirect = ::core::option::Option<
6736 unsafe extern "C" fn(
6737 renderBundleEncoder: WGPURenderBundleEncoder,
6738 indirectBuffer: WGPUBuffer,
6739 indirectOffset: u64,
6740 ),
6741>;
6742pub type WGPUProcRenderBundleEncoderDrawIndirect = ::core::option::Option<
6743 unsafe extern "C" fn(
6744 renderBundleEncoder: WGPURenderBundleEncoder,
6745 indirectBuffer: WGPUBuffer,
6746 indirectOffset: u64,
6747 ),
6748>;
6749pub type WGPUProcRenderBundleEncoderFinish = ::core::option::Option<
6750 unsafe extern "C" fn(
6751 renderBundleEncoder: WGPURenderBundleEncoder,
6752 descriptor: *const WGPURenderBundleDescriptor,
6753 ) -> WGPURenderBundle,
6754>;
6755pub type WGPUProcRenderBundleEncoderInsertDebugMarker = ::core::option::Option<
6756 unsafe extern "C" fn(renderBundleEncoder: WGPURenderBundleEncoder, markerLabel: WGPUStringView),
6757>;
6758pub type WGPUProcRenderBundleEncoderPopDebugGroup =
6759 ::core::option::Option<unsafe extern "C" fn(renderBundleEncoder: WGPURenderBundleEncoder)>;
6760pub type WGPUProcRenderBundleEncoderPushDebugGroup = ::core::option::Option<
6761 unsafe extern "C" fn(renderBundleEncoder: WGPURenderBundleEncoder, groupLabel: WGPUStringView),
6762>;
6763pub type WGPUProcRenderBundleEncoderSetBindGroup = ::core::option::Option<
6764 unsafe extern "C" fn(
6765 renderBundleEncoder: WGPURenderBundleEncoder,
6766 groupIndex: u32,
6767 group: WGPUBindGroup,
6768 dynamicOffsetCount: usize,
6769 dynamicOffsets: *const u32,
6770 ),
6771>;
6772pub type WGPUProcRenderBundleEncoderSetImmediateData = ::core::option::Option<
6773 unsafe extern "C" fn(
6774 renderBundleEncoder: WGPURenderBundleEncoder,
6775 offset: u32,
6776 data: *const ::core::ffi::c_void,
6777 size: usize,
6778 ),
6779>;
6780pub type WGPUProcRenderBundleEncoderSetIndexBuffer = ::core::option::Option<
6781 unsafe extern "C" fn(
6782 renderBundleEncoder: WGPURenderBundleEncoder,
6783 buffer: WGPUBuffer,
6784 format: WGPUIndexFormat,
6785 offset: u64,
6786 size: u64,
6787 ),
6788>;
6789pub type WGPUProcRenderBundleEncoderSetLabel = ::core::option::Option<
6790 unsafe extern "C" fn(renderBundleEncoder: WGPURenderBundleEncoder, label: WGPUStringView),
6791>;
6792pub type WGPUProcRenderBundleEncoderSetPipeline = ::core::option::Option<
6793 unsafe extern "C" fn(
6794 renderBundleEncoder: WGPURenderBundleEncoder,
6795 pipeline: WGPURenderPipeline,
6796 ),
6797>;
6798pub type WGPUProcRenderBundleEncoderSetVertexBuffer = ::core::option::Option<
6799 unsafe extern "C" fn(
6800 renderBundleEncoder: WGPURenderBundleEncoder,
6801 slot: u32,
6802 buffer: WGPUBuffer,
6803 offset: u64,
6804 size: u64,
6805 ),
6806>;
6807pub type WGPUProcRenderBundleEncoderAddRef =
6808 ::core::option::Option<unsafe extern "C" fn(renderBundleEncoder: WGPURenderBundleEncoder)>;
6809pub type WGPUProcRenderBundleEncoderRelease =
6810 ::core::option::Option<unsafe extern "C" fn(renderBundleEncoder: WGPURenderBundleEncoder)>;
6811pub type WGPUProcRenderPassEncoderBeginOcclusionQuery = ::core::option::Option<
6812 unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder, queryIndex: u32),
6813>;
6814pub type WGPUProcRenderPassEncoderDraw = ::core::option::Option<
6815 unsafe extern "C" fn(
6816 renderPassEncoder: WGPURenderPassEncoder,
6817 vertexCount: u32,
6818 instanceCount: u32,
6819 firstVertex: u32,
6820 firstInstance: u32,
6821 ),
6822>;
6823pub type WGPUProcRenderPassEncoderDrawIndexed = ::core::option::Option<
6824 unsafe extern "C" fn(
6825 renderPassEncoder: WGPURenderPassEncoder,
6826 indexCount: u32,
6827 instanceCount: u32,
6828 firstIndex: u32,
6829 baseVertex: i32,
6830 firstInstance: u32,
6831 ),
6832>;
6833pub type WGPUProcRenderPassEncoderDrawIndexedIndirect = ::core::option::Option<
6834 unsafe extern "C" fn(
6835 renderPassEncoder: WGPURenderPassEncoder,
6836 indirectBuffer: WGPUBuffer,
6837 indirectOffset: u64,
6838 ),
6839>;
6840pub type WGPUProcRenderPassEncoderDrawIndirect = ::core::option::Option<
6841 unsafe extern "C" fn(
6842 renderPassEncoder: WGPURenderPassEncoder,
6843 indirectBuffer: WGPUBuffer,
6844 indirectOffset: u64,
6845 ),
6846>;
6847pub type WGPUProcRenderPassEncoderEnd =
6848 ::core::option::Option<unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder)>;
6849pub type WGPUProcRenderPassEncoderEndOcclusionQuery =
6850 ::core::option::Option<unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder)>;
6851pub type WGPUProcRenderPassEncoderExecuteBundles = ::core::option::Option<
6852 unsafe extern "C" fn(
6853 renderPassEncoder: WGPURenderPassEncoder,
6854 bundleCount: usize,
6855 bundles: *const WGPURenderBundle,
6856 ),
6857>;
6858pub type WGPUProcRenderPassEncoderInsertDebugMarker = ::core::option::Option<
6859 unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder, markerLabel: WGPUStringView),
6860>;
6861pub type WGPUProcRenderPassEncoderMultiDrawIndexedIndirect = ::core::option::Option<
6862 unsafe extern "C" fn(
6863 renderPassEncoder: WGPURenderPassEncoder,
6864 indirectBuffer: WGPUBuffer,
6865 indirectOffset: u64,
6866 maxDrawCount: u32,
6867 drawCountBuffer: WGPUBuffer,
6868 drawCountBufferOffset: u64,
6869 ),
6870>;
6871pub type WGPUProcRenderPassEncoderMultiDrawIndirect = ::core::option::Option<
6872 unsafe extern "C" fn(
6873 renderPassEncoder: WGPURenderPassEncoder,
6874 indirectBuffer: WGPUBuffer,
6875 indirectOffset: u64,
6876 maxDrawCount: u32,
6877 drawCountBuffer: WGPUBuffer,
6878 drawCountBufferOffset: u64,
6879 ),
6880>;
6881pub type WGPUProcRenderPassEncoderPixelLocalStorageBarrier =
6882 ::core::option::Option<unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder)>;
6883pub type WGPUProcRenderPassEncoderPopDebugGroup =
6884 ::core::option::Option<unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder)>;
6885pub type WGPUProcRenderPassEncoderPushDebugGroup = ::core::option::Option<
6886 unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder, groupLabel: WGPUStringView),
6887>;
6888pub type WGPUProcRenderPassEncoderSetBindGroup = ::core::option::Option<
6889 unsafe extern "C" fn(
6890 renderPassEncoder: WGPURenderPassEncoder,
6891 groupIndex: u32,
6892 group: WGPUBindGroup,
6893 dynamicOffsetCount: usize,
6894 dynamicOffsets: *const u32,
6895 ),
6896>;
6897pub type WGPUProcRenderPassEncoderSetBlendConstant = ::core::option::Option<
6898 unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder, color: *const WGPUColor),
6899>;
6900pub type WGPUProcRenderPassEncoderSetImmediateData = ::core::option::Option<
6901 unsafe extern "C" fn(
6902 renderPassEncoder: WGPURenderPassEncoder,
6903 offset: u32,
6904 data: *const ::core::ffi::c_void,
6905 size: usize,
6906 ),
6907>;
6908pub type WGPUProcRenderPassEncoderSetIndexBuffer = ::core::option::Option<
6909 unsafe extern "C" fn(
6910 renderPassEncoder: WGPURenderPassEncoder,
6911 buffer: WGPUBuffer,
6912 format: WGPUIndexFormat,
6913 offset: u64,
6914 size: u64,
6915 ),
6916>;
6917pub type WGPUProcRenderPassEncoderSetLabel = ::core::option::Option<
6918 unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder, label: WGPUStringView),
6919>;
6920pub type WGPUProcRenderPassEncoderSetPipeline = ::core::option::Option<
6921 unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder, pipeline: WGPURenderPipeline),
6922>;
6923pub type WGPUProcRenderPassEncoderSetScissorRect = ::core::option::Option<
6924 unsafe extern "C" fn(
6925 renderPassEncoder: WGPURenderPassEncoder,
6926 x: u32,
6927 y: u32,
6928 width: u32,
6929 height: u32,
6930 ),
6931>;
6932pub type WGPUProcRenderPassEncoderSetStencilReference = ::core::option::Option<
6933 unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder, reference: u32),
6934>;
6935pub type WGPUProcRenderPassEncoderSetVertexBuffer = ::core::option::Option<
6936 unsafe extern "C" fn(
6937 renderPassEncoder: WGPURenderPassEncoder,
6938 slot: u32,
6939 buffer: WGPUBuffer,
6940 offset: u64,
6941 size: u64,
6942 ),
6943>;
6944pub type WGPUProcRenderPassEncoderSetViewport = ::core::option::Option<
6945 unsafe extern "C" fn(
6946 renderPassEncoder: WGPURenderPassEncoder,
6947 x: f32,
6948 y: f32,
6949 width: f32,
6950 height: f32,
6951 minDepth: f32,
6952 maxDepth: f32,
6953 ),
6954>;
6955pub type WGPUProcRenderPassEncoderWriteTimestamp = ::core::option::Option<
6956 unsafe extern "C" fn(
6957 renderPassEncoder: WGPURenderPassEncoder,
6958 querySet: WGPUQuerySet,
6959 queryIndex: u32,
6960 ),
6961>;
6962pub type WGPUProcRenderPassEncoderAddRef =
6963 ::core::option::Option<unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder)>;
6964pub type WGPUProcRenderPassEncoderRelease =
6965 ::core::option::Option<unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder)>;
6966pub type WGPUProcRenderPipelineGetBindGroupLayout = ::core::option::Option<
6967 unsafe extern "C" fn(
6968 renderPipeline: WGPURenderPipeline,
6969 groupIndex: u32,
6970 ) -> WGPUBindGroupLayout,
6971>;
6972pub type WGPUProcRenderPipelineSetLabel = ::core::option::Option<
6973 unsafe extern "C" fn(renderPipeline: WGPURenderPipeline, label: WGPUStringView),
6974>;
6975pub type WGPUProcRenderPipelineAddRef =
6976 ::core::option::Option<unsafe extern "C" fn(renderPipeline: WGPURenderPipeline)>;
6977pub type WGPUProcRenderPipelineRelease =
6978 ::core::option::Option<unsafe extern "C" fn(renderPipeline: WGPURenderPipeline)>;
6979pub type WGPUProcSamplerSetLabel =
6980 ::core::option::Option<unsafe extern "C" fn(sampler: WGPUSampler, label: WGPUStringView)>;
6981pub type WGPUProcSamplerAddRef = ::core::option::Option<unsafe extern "C" fn(sampler: WGPUSampler)>;
6982pub type WGPUProcSamplerRelease =
6983 ::core::option::Option<unsafe extern "C" fn(sampler: WGPUSampler)>;
6984pub type WGPUProcShaderModuleGetCompilationInfo = ::core::option::Option<
6985 unsafe extern "C" fn(
6986 shaderModule: WGPUShaderModule,
6987 callbackInfo: WGPUCompilationInfoCallbackInfo,
6988 ) -> WGPUFuture,
6989>;
6990pub type WGPUProcShaderModuleSetLabel = ::core::option::Option<
6991 unsafe extern "C" fn(shaderModule: WGPUShaderModule, label: WGPUStringView),
6992>;
6993pub type WGPUProcShaderModuleAddRef =
6994 ::core::option::Option<unsafe extern "C" fn(shaderModule: WGPUShaderModule)>;
6995pub type WGPUProcShaderModuleRelease =
6996 ::core::option::Option<unsafe extern "C" fn(shaderModule: WGPUShaderModule)>;
6997pub type WGPUProcSharedBufferMemoryBeginAccess = ::core::option::Option<
6998 unsafe extern "C" fn(
6999 sharedBufferMemory: WGPUSharedBufferMemory,
7000 buffer: WGPUBuffer,
7001 descriptor: *const WGPUSharedBufferMemoryBeginAccessDescriptor,
7002 ) -> WGPUStatus,
7003>;
7004pub type WGPUProcSharedBufferMemoryCreateBuffer = ::core::option::Option<
7005 unsafe extern "C" fn(
7006 sharedBufferMemory: WGPUSharedBufferMemory,
7007 descriptor: *const WGPUBufferDescriptor,
7008 ) -> WGPUBuffer,
7009>;
7010pub type WGPUProcSharedBufferMemoryEndAccess = ::core::option::Option<
7011 unsafe extern "C" fn(
7012 sharedBufferMemory: WGPUSharedBufferMemory,
7013 buffer: WGPUBuffer,
7014 descriptor: *mut WGPUSharedBufferMemoryEndAccessState,
7015 ) -> WGPUStatus,
7016>;
7017pub type WGPUProcSharedBufferMemoryGetProperties = ::core::option::Option<
7018 unsafe extern "C" fn(
7019 sharedBufferMemory: WGPUSharedBufferMemory,
7020 properties: *mut WGPUSharedBufferMemoryProperties,
7021 ) -> WGPUStatus,
7022>;
7023pub type WGPUProcSharedBufferMemoryIsDeviceLost = ::core::option::Option<
7024 unsafe extern "C" fn(sharedBufferMemory: WGPUSharedBufferMemory) -> WGPUBool,
7025>;
7026pub type WGPUProcSharedBufferMemorySetLabel = ::core::option::Option<
7027 unsafe extern "C" fn(sharedBufferMemory: WGPUSharedBufferMemory, label: WGPUStringView),
7028>;
7029pub type WGPUProcSharedBufferMemoryAddRef =
7030 ::core::option::Option<unsafe extern "C" fn(sharedBufferMemory: WGPUSharedBufferMemory)>;
7031pub type WGPUProcSharedBufferMemoryRelease =
7032 ::core::option::Option<unsafe extern "C" fn(sharedBufferMemory: WGPUSharedBufferMemory)>;
7033pub type WGPUProcSharedFenceExportInfo = ::core::option::Option<
7034 unsafe extern "C" fn(sharedFence: WGPUSharedFence, info: *mut WGPUSharedFenceExportInfo),
7035>;
7036pub type WGPUProcSharedFenceAddRef =
7037 ::core::option::Option<unsafe extern "C" fn(sharedFence: WGPUSharedFence)>;
7038pub type WGPUProcSharedFenceRelease =
7039 ::core::option::Option<unsafe extern "C" fn(sharedFence: WGPUSharedFence)>;
7040pub type WGPUProcSharedTextureMemoryBeginAccess = ::core::option::Option<
7041 unsafe extern "C" fn(
7042 sharedTextureMemory: WGPUSharedTextureMemory,
7043 texture: WGPUTexture,
7044 descriptor: *const WGPUSharedTextureMemoryBeginAccessDescriptor,
7045 ) -> WGPUStatus,
7046>;
7047pub type WGPUProcSharedTextureMemoryCreateTexture = ::core::option::Option<
7048 unsafe extern "C" fn(
7049 sharedTextureMemory: WGPUSharedTextureMemory,
7050 descriptor: *const WGPUTextureDescriptor,
7051 ) -> WGPUTexture,
7052>;
7053pub type WGPUProcSharedTextureMemoryEndAccess = ::core::option::Option<
7054 unsafe extern "C" fn(
7055 sharedTextureMemory: WGPUSharedTextureMemory,
7056 texture: WGPUTexture,
7057 descriptor: *mut WGPUSharedTextureMemoryEndAccessState,
7058 ) -> WGPUStatus,
7059>;
7060pub type WGPUProcSharedTextureMemoryGetProperties = ::core::option::Option<
7061 unsafe extern "C" fn(
7062 sharedTextureMemory: WGPUSharedTextureMemory,
7063 properties: *mut WGPUSharedTextureMemoryProperties,
7064 ) -> WGPUStatus,
7065>;
7066pub type WGPUProcSharedTextureMemoryIsDeviceLost = ::core::option::Option<
7067 unsafe extern "C" fn(sharedTextureMemory: WGPUSharedTextureMemory) -> WGPUBool,
7068>;
7069pub type WGPUProcSharedTextureMemorySetLabel = ::core::option::Option<
7070 unsafe extern "C" fn(sharedTextureMemory: WGPUSharedTextureMemory, label: WGPUStringView),
7071>;
7072pub type WGPUProcSharedTextureMemoryAddRef =
7073 ::core::option::Option<unsafe extern "C" fn(sharedTextureMemory: WGPUSharedTextureMemory)>;
7074pub type WGPUProcSharedTextureMemoryRelease =
7075 ::core::option::Option<unsafe extern "C" fn(sharedTextureMemory: WGPUSharedTextureMemory)>;
7076pub type WGPUProcSurfaceConfigure = ::core::option::Option<
7077 unsafe extern "C" fn(surface: WGPUSurface, config: *const WGPUSurfaceConfiguration),
7078>;
7079pub type WGPUProcSurfaceGetCapabilities = ::core::option::Option<
7080 unsafe extern "C" fn(
7081 surface: WGPUSurface,
7082 adapter: WGPUAdapter,
7083 capabilities: *mut WGPUSurfaceCapabilities,
7084 ) -> WGPUStatus,
7085>;
7086pub type WGPUProcSurfaceGetCurrentTexture = ::core::option::Option<
7087 unsafe extern "C" fn(surface: WGPUSurface, surfaceTexture: *mut WGPUSurfaceTexture),
7088>;
7089pub type WGPUProcSurfacePresent =
7090 ::core::option::Option<unsafe extern "C" fn(surface: WGPUSurface)>;
7091pub type WGPUProcSurfaceSetLabel =
7092 ::core::option::Option<unsafe extern "C" fn(surface: WGPUSurface, label: WGPUStringView)>;
7093pub type WGPUProcSurfaceUnconfigure =
7094 ::core::option::Option<unsafe extern "C" fn(surface: WGPUSurface)>;
7095pub type WGPUProcSurfaceAddRef = ::core::option::Option<unsafe extern "C" fn(surface: WGPUSurface)>;
7096pub type WGPUProcSurfaceRelease =
7097 ::core::option::Option<unsafe extern "C" fn(surface: WGPUSurface)>;
7098pub type WGPUProcTextureCreateErrorView = ::core::option::Option<
7099 unsafe extern "C" fn(
7100 texture: WGPUTexture,
7101 descriptor: *const WGPUTextureViewDescriptor,
7102 ) -> WGPUTextureView,
7103>;
7104pub type WGPUProcTextureCreateView = ::core::option::Option<
7105 unsafe extern "C" fn(
7106 texture: WGPUTexture,
7107 descriptor: *const WGPUTextureViewDescriptor,
7108 ) -> WGPUTextureView,
7109>;
7110pub type WGPUProcTextureDestroy =
7111 ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture)>;
7112pub type WGPUProcTextureGetDepthOrArrayLayers =
7113 ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> u32>;
7114pub type WGPUProcTextureGetDimension =
7115 ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> WGPUTextureDimension>;
7116pub type WGPUProcTextureGetFormat =
7117 ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> WGPUTextureFormat>;
7118pub type WGPUProcTextureGetHeight =
7119 ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> u32>;
7120pub type WGPUProcTextureGetMipLevelCount =
7121 ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> u32>;
7122pub type WGPUProcTextureGetSampleCount =
7123 ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> u32>;
7124pub type WGPUProcTextureGetUsage =
7125 ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> WGPUTextureUsage>;
7126pub type WGPUProcTextureGetWidth =
7127 ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> u32>;
7128pub type WGPUProcTextureSetLabel =
7129 ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture, label: WGPUStringView)>;
7130pub type WGPUProcTextureAddRef = ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture)>;
7131pub type WGPUProcTextureRelease =
7132 ::core::option::Option<unsafe extern "C" fn(texture: WGPUTexture)>;
7133pub type WGPUProcTextureViewSetLabel = ::core::option::Option<
7134 unsafe extern "C" fn(textureView: WGPUTextureView, label: WGPUStringView),
7135>;
7136pub type WGPUProcTextureViewAddRef =
7137 ::core::option::Option<unsafe extern "C" fn(textureView: WGPUTextureView)>;
7138pub type WGPUProcTextureViewRelease =
7139 ::core::option::Option<unsafe extern "C" fn(textureView: WGPUTextureView)>;
7140unsafe extern "C" {
7141 pub fn wgpuAdapterInfoFreeMembers(value: WGPUAdapterInfo);
7142}
7143unsafe extern "C" {
7144 pub fn wgpuAdapterPropertiesMemoryHeapsFreeMembers(value: WGPUAdapterPropertiesMemoryHeaps);
7145}
7146unsafe extern "C" {
7147 pub fn wgpuAdapterPropertiesSubgroupMatrixConfigsFreeMembers(
7148 value: WGPUAdapterPropertiesSubgroupMatrixConfigs,
7149 );
7150}
7151unsafe extern "C" {
7152 pub fn wgpuCreateInstance(descriptor: *const WGPUInstanceDescriptor) -> WGPUInstance;
7153}
7154unsafe extern "C" {
7155 pub fn wgpuDawnDrmFormatCapabilitiesFreeMembers(value: WGPUDawnDrmFormatCapabilities);
7156}
7157unsafe extern "C" {
7158 pub fn wgpuGetInstanceCapabilities(capabilities: *mut WGPUInstanceCapabilities) -> WGPUStatus;
7159}
7160unsafe extern "C" {
7161 pub fn wgpuGetProcAddress(procName: WGPUStringView) -> WGPUProc;
7162}
7163unsafe extern "C" {
7164 pub fn wgpuSharedBufferMemoryEndAccessStateFreeMembers(
7165 value: WGPUSharedBufferMemoryEndAccessState,
7166 );
7167}
7168unsafe extern "C" {
7169 pub fn wgpuSharedTextureMemoryEndAccessStateFreeMembers(
7170 value: WGPUSharedTextureMemoryEndAccessState,
7171 );
7172}
7173unsafe extern "C" {
7174 pub fn wgpuSupportedFeaturesFreeMembers(value: WGPUSupportedFeatures);
7175}
7176unsafe extern "C" {
7177 pub fn wgpuSupportedWGSLLanguageFeaturesFreeMembers(value: WGPUSupportedWGSLLanguageFeatures);
7178}
7179unsafe extern "C" {
7180 pub fn wgpuSurfaceCapabilitiesFreeMembers(value: WGPUSurfaceCapabilities);
7181}
7182unsafe extern "C" {
7183 pub fn wgpuAdapterCreateDevice(
7184 adapter: WGPUAdapter,
7185 descriptor: *const WGPUDeviceDescriptor,
7186 ) -> WGPUDevice;
7187}
7188unsafe extern "C" {
7189 pub fn wgpuAdapterGetFeatures(adapter: WGPUAdapter, features: *mut WGPUSupportedFeatures);
7190}
7191unsafe extern "C" {
7192 pub fn wgpuAdapterGetFormatCapabilities(
7193 adapter: WGPUAdapter,
7194 format: WGPUTextureFormat,
7195 capabilities: *mut WGPUDawnFormatCapabilities,
7196 ) -> WGPUStatus;
7197}
7198unsafe extern "C" {
7199 pub fn wgpuAdapterGetInfo(adapter: WGPUAdapter, info: *mut WGPUAdapterInfo) -> WGPUStatus;
7200}
7201unsafe extern "C" {
7202 pub fn wgpuAdapterGetInstance(adapter: WGPUAdapter) -> WGPUInstance;
7203}
7204unsafe extern "C" {
7205 pub fn wgpuAdapterGetLimits(adapter: WGPUAdapter, limits: *mut WGPULimits) -> WGPUStatus;
7206}
7207unsafe extern "C" {
7208 pub fn wgpuAdapterHasFeature(adapter: WGPUAdapter, feature: WGPUFeatureName) -> WGPUBool;
7209}
7210unsafe extern "C" {
7211 pub fn wgpuAdapterRequestDevice(
7212 adapter: WGPUAdapter,
7213 options: *const WGPUDeviceDescriptor,
7214 callbackInfo: WGPURequestDeviceCallbackInfo,
7215 ) -> WGPUFuture;
7216}
7217unsafe extern "C" {
7218 pub fn wgpuAdapterAddRef(adapter: WGPUAdapter);
7219}
7220unsafe extern "C" {
7221 pub fn wgpuAdapterRelease(adapter: WGPUAdapter);
7222}
7223unsafe extern "C" {
7224 pub fn wgpuBindGroupSetLabel(bindGroup: WGPUBindGroup, label: WGPUStringView);
7225}
7226unsafe extern "C" {
7227 pub fn wgpuBindGroupAddRef(bindGroup: WGPUBindGroup);
7228}
7229unsafe extern "C" {
7230 pub fn wgpuBindGroupRelease(bindGroup: WGPUBindGroup);
7231}
7232unsafe extern "C" {
7233 pub fn wgpuBindGroupLayoutSetLabel(bindGroupLayout: WGPUBindGroupLayout, label: WGPUStringView);
7234}
7235unsafe extern "C" {
7236 pub fn wgpuBindGroupLayoutAddRef(bindGroupLayout: WGPUBindGroupLayout);
7237}
7238unsafe extern "C" {
7239 pub fn wgpuBindGroupLayoutRelease(bindGroupLayout: WGPUBindGroupLayout);
7240}
7241unsafe extern "C" {
7242 pub fn wgpuBufferDestroy(buffer: WGPUBuffer);
7243}
7244unsafe extern "C" {
7245 pub fn wgpuBufferGetConstMappedRange(
7246 buffer: WGPUBuffer,
7247 offset: usize,
7248 size: usize,
7249 ) -> *const ::core::ffi::c_void;
7250}
7251unsafe extern "C" {
7252 pub fn wgpuBufferGetMappedRange(
7253 buffer: WGPUBuffer,
7254 offset: usize,
7255 size: usize,
7256 ) -> *mut ::core::ffi::c_void;
7257}
7258unsafe extern "C" {
7259 pub fn wgpuBufferGetMapState(buffer: WGPUBuffer) -> WGPUBufferMapState;
7260}
7261unsafe extern "C" {
7262 pub fn wgpuBufferGetSize(buffer: WGPUBuffer) -> u64;
7263}
7264unsafe extern "C" {
7265 pub fn wgpuBufferGetUsage(buffer: WGPUBuffer) -> WGPUBufferUsage;
7266}
7267unsafe extern "C" {
7268 pub fn wgpuBufferMapAsync(
7269 buffer: WGPUBuffer,
7270 mode: WGPUMapMode,
7271 offset: usize,
7272 size: usize,
7273 callbackInfo: WGPUBufferMapCallbackInfo,
7274 ) -> WGPUFuture;
7275}
7276unsafe extern "C" {
7277 pub fn wgpuBufferReadMappedRange(
7278 buffer: WGPUBuffer,
7279 offset: usize,
7280 data: *mut ::core::ffi::c_void,
7281 size: usize,
7282 ) -> WGPUStatus;
7283}
7284unsafe extern "C" {
7285 pub fn wgpuBufferSetLabel(buffer: WGPUBuffer, label: WGPUStringView);
7286}
7287unsafe extern "C" {
7288 pub fn wgpuBufferUnmap(buffer: WGPUBuffer);
7289}
7290unsafe extern "C" {
7291 pub fn wgpuBufferWriteMappedRange(
7292 buffer: WGPUBuffer,
7293 offset: usize,
7294 data: *const ::core::ffi::c_void,
7295 size: usize,
7296 ) -> WGPUStatus;
7297}
7298unsafe extern "C" {
7299 pub fn wgpuBufferAddRef(buffer: WGPUBuffer);
7300}
7301unsafe extern "C" {
7302 pub fn wgpuBufferRelease(buffer: WGPUBuffer);
7303}
7304unsafe extern "C" {
7305 pub fn wgpuCommandBufferSetLabel(commandBuffer: WGPUCommandBuffer, label: WGPUStringView);
7306}
7307unsafe extern "C" {
7308 pub fn wgpuCommandBufferAddRef(commandBuffer: WGPUCommandBuffer);
7309}
7310unsafe extern "C" {
7311 pub fn wgpuCommandBufferRelease(commandBuffer: WGPUCommandBuffer);
7312}
7313unsafe extern "C" {
7314 pub fn wgpuCommandEncoderBeginComputePass(
7315 commandEncoder: WGPUCommandEncoder,
7316 descriptor: *const WGPUComputePassDescriptor,
7317 ) -> WGPUComputePassEncoder;
7318}
7319unsafe extern "C" {
7320 pub fn wgpuCommandEncoderBeginRenderPass(
7321 commandEncoder: WGPUCommandEncoder,
7322 descriptor: *const WGPURenderPassDescriptor,
7323 ) -> WGPURenderPassEncoder;
7324}
7325unsafe extern "C" {
7326 pub fn wgpuCommandEncoderClearBuffer(
7327 commandEncoder: WGPUCommandEncoder,
7328 buffer: WGPUBuffer,
7329 offset: u64,
7330 size: u64,
7331 );
7332}
7333unsafe extern "C" {
7334 pub fn wgpuCommandEncoderCopyBufferToBuffer(
7335 commandEncoder: WGPUCommandEncoder,
7336 source: WGPUBuffer,
7337 sourceOffset: u64,
7338 destination: WGPUBuffer,
7339 destinationOffset: u64,
7340 size: u64,
7341 );
7342}
7343unsafe extern "C" {
7344 pub fn wgpuCommandEncoderCopyBufferToTexture(
7345 commandEncoder: WGPUCommandEncoder,
7346 source: *const WGPUTexelCopyBufferInfo,
7347 destination: *const WGPUTexelCopyTextureInfo,
7348 copySize: *const WGPUExtent3D,
7349 );
7350}
7351unsafe extern "C" {
7352 pub fn wgpuCommandEncoderCopyTextureToBuffer(
7353 commandEncoder: WGPUCommandEncoder,
7354 source: *const WGPUTexelCopyTextureInfo,
7355 destination: *const WGPUTexelCopyBufferInfo,
7356 copySize: *const WGPUExtent3D,
7357 );
7358}
7359unsafe extern "C" {
7360 pub fn wgpuCommandEncoderCopyTextureToTexture(
7361 commandEncoder: WGPUCommandEncoder,
7362 source: *const WGPUTexelCopyTextureInfo,
7363 destination: *const WGPUTexelCopyTextureInfo,
7364 copySize: *const WGPUExtent3D,
7365 );
7366}
7367unsafe extern "C" {
7368 pub fn wgpuCommandEncoderFinish(
7369 commandEncoder: WGPUCommandEncoder,
7370 descriptor: *const WGPUCommandBufferDescriptor,
7371 ) -> WGPUCommandBuffer;
7372}
7373unsafe extern "C" {
7374 pub fn wgpuCommandEncoderInjectValidationError(
7375 commandEncoder: WGPUCommandEncoder,
7376 message: WGPUStringView,
7377 );
7378}
7379unsafe extern "C" {
7380 pub fn wgpuCommandEncoderInsertDebugMarker(
7381 commandEncoder: WGPUCommandEncoder,
7382 markerLabel: WGPUStringView,
7383 );
7384}
7385unsafe extern "C" {
7386 pub fn wgpuCommandEncoderPopDebugGroup(commandEncoder: WGPUCommandEncoder);
7387}
7388unsafe extern "C" {
7389 pub fn wgpuCommandEncoderPushDebugGroup(
7390 commandEncoder: WGPUCommandEncoder,
7391 groupLabel: WGPUStringView,
7392 );
7393}
7394unsafe extern "C" {
7395 pub fn wgpuCommandEncoderResolveQuerySet(
7396 commandEncoder: WGPUCommandEncoder,
7397 querySet: WGPUQuerySet,
7398 firstQuery: u32,
7399 queryCount: u32,
7400 destination: WGPUBuffer,
7401 destinationOffset: u64,
7402 );
7403}
7404unsafe extern "C" {
7405 pub fn wgpuCommandEncoderSetLabel(commandEncoder: WGPUCommandEncoder, label: WGPUStringView);
7406}
7407unsafe extern "C" {
7408 pub fn wgpuCommandEncoderWriteBuffer(
7409 commandEncoder: WGPUCommandEncoder,
7410 buffer: WGPUBuffer,
7411 bufferOffset: u64,
7412 data: *const u8,
7413 size: u64,
7414 );
7415}
7416unsafe extern "C" {
7417 pub fn wgpuCommandEncoderWriteTimestamp(
7418 commandEncoder: WGPUCommandEncoder,
7419 querySet: WGPUQuerySet,
7420 queryIndex: u32,
7421 );
7422}
7423unsafe extern "C" {
7424 pub fn wgpuCommandEncoderAddRef(commandEncoder: WGPUCommandEncoder);
7425}
7426unsafe extern "C" {
7427 pub fn wgpuCommandEncoderRelease(commandEncoder: WGPUCommandEncoder);
7428}
7429unsafe extern "C" {
7430 pub fn wgpuComputePassEncoderDispatchWorkgroups(
7431 computePassEncoder: WGPUComputePassEncoder,
7432 workgroupCountX: u32,
7433 workgroupCountY: u32,
7434 workgroupCountZ: u32,
7435 );
7436}
7437unsafe extern "C" {
7438 pub fn wgpuComputePassEncoderDispatchWorkgroupsIndirect(
7439 computePassEncoder: WGPUComputePassEncoder,
7440 indirectBuffer: WGPUBuffer,
7441 indirectOffset: u64,
7442 );
7443}
7444unsafe extern "C" {
7445 pub fn wgpuComputePassEncoderEnd(computePassEncoder: WGPUComputePassEncoder);
7446}
7447unsafe extern "C" {
7448 pub fn wgpuComputePassEncoderInsertDebugMarker(
7449 computePassEncoder: WGPUComputePassEncoder,
7450 markerLabel: WGPUStringView,
7451 );
7452}
7453unsafe extern "C" {
7454 pub fn wgpuComputePassEncoderPopDebugGroup(computePassEncoder: WGPUComputePassEncoder);
7455}
7456unsafe extern "C" {
7457 pub fn wgpuComputePassEncoderPushDebugGroup(
7458 computePassEncoder: WGPUComputePassEncoder,
7459 groupLabel: WGPUStringView,
7460 );
7461}
7462unsafe extern "C" {
7463 pub fn wgpuComputePassEncoderSetBindGroup(
7464 computePassEncoder: WGPUComputePassEncoder,
7465 groupIndex: u32,
7466 group: WGPUBindGroup,
7467 dynamicOffsetCount: usize,
7468 dynamicOffsets: *const u32,
7469 );
7470}
7471unsafe extern "C" {
7472 pub fn wgpuComputePassEncoderSetImmediateData(
7473 computePassEncoder: WGPUComputePassEncoder,
7474 offset: u32,
7475 data: *const ::core::ffi::c_void,
7476 size: usize,
7477 );
7478}
7479unsafe extern "C" {
7480 pub fn wgpuComputePassEncoderSetLabel(
7481 computePassEncoder: WGPUComputePassEncoder,
7482 label: WGPUStringView,
7483 );
7484}
7485unsafe extern "C" {
7486 pub fn wgpuComputePassEncoderSetPipeline(
7487 computePassEncoder: WGPUComputePassEncoder,
7488 pipeline: WGPUComputePipeline,
7489 );
7490}
7491unsafe extern "C" {
7492 pub fn wgpuComputePassEncoderWriteTimestamp(
7493 computePassEncoder: WGPUComputePassEncoder,
7494 querySet: WGPUQuerySet,
7495 queryIndex: u32,
7496 );
7497}
7498unsafe extern "C" {
7499 pub fn wgpuComputePassEncoderAddRef(computePassEncoder: WGPUComputePassEncoder);
7500}
7501unsafe extern "C" {
7502 pub fn wgpuComputePassEncoderRelease(computePassEncoder: WGPUComputePassEncoder);
7503}
7504unsafe extern "C" {
7505 pub fn wgpuComputePipelineGetBindGroupLayout(
7506 computePipeline: WGPUComputePipeline,
7507 groupIndex: u32,
7508 ) -> WGPUBindGroupLayout;
7509}
7510unsafe extern "C" {
7511 pub fn wgpuComputePipelineSetLabel(computePipeline: WGPUComputePipeline, label: WGPUStringView);
7512}
7513unsafe extern "C" {
7514 pub fn wgpuComputePipelineAddRef(computePipeline: WGPUComputePipeline);
7515}
7516unsafe extern "C" {
7517 pub fn wgpuComputePipelineRelease(computePipeline: WGPUComputePipeline);
7518}
7519unsafe extern "C" {
7520 pub fn wgpuDeviceCreateBindGroup(
7521 device: WGPUDevice,
7522 descriptor: *const WGPUBindGroupDescriptor,
7523 ) -> WGPUBindGroup;
7524}
7525unsafe extern "C" {
7526 pub fn wgpuDeviceCreateBindGroupLayout(
7527 device: WGPUDevice,
7528 descriptor: *const WGPUBindGroupLayoutDescriptor,
7529 ) -> WGPUBindGroupLayout;
7530}
7531unsafe extern "C" {
7532 pub fn wgpuDeviceCreateBuffer(
7533 device: WGPUDevice,
7534 descriptor: *const WGPUBufferDescriptor,
7535 ) -> WGPUBuffer;
7536}
7537unsafe extern "C" {
7538 pub fn wgpuDeviceCreateCommandEncoder(
7539 device: WGPUDevice,
7540 descriptor: *const WGPUCommandEncoderDescriptor,
7541 ) -> WGPUCommandEncoder;
7542}
7543unsafe extern "C" {
7544 pub fn wgpuDeviceCreateComputePipeline(
7545 device: WGPUDevice,
7546 descriptor: *const WGPUComputePipelineDescriptor,
7547 ) -> WGPUComputePipeline;
7548}
7549unsafe extern "C" {
7550 pub fn wgpuDeviceCreateComputePipelineAsync(
7551 device: WGPUDevice,
7552 descriptor: *const WGPUComputePipelineDescriptor,
7553 callbackInfo: WGPUCreateComputePipelineAsyncCallbackInfo,
7554 ) -> WGPUFuture;
7555}
7556unsafe extern "C" {
7557 pub fn wgpuDeviceCreateErrorBuffer(
7558 device: WGPUDevice,
7559 descriptor: *const WGPUBufferDescriptor,
7560 ) -> WGPUBuffer;
7561}
7562unsafe extern "C" {
7563 pub fn wgpuDeviceCreateErrorExternalTexture(device: WGPUDevice) -> WGPUExternalTexture;
7564}
7565unsafe extern "C" {
7566 pub fn wgpuDeviceCreateErrorShaderModule(
7567 device: WGPUDevice,
7568 descriptor: *const WGPUShaderModuleDescriptor,
7569 errorMessage: WGPUStringView,
7570 ) -> WGPUShaderModule;
7571}
7572unsafe extern "C" {
7573 pub fn wgpuDeviceCreateErrorTexture(
7574 device: WGPUDevice,
7575 descriptor: *const WGPUTextureDescriptor,
7576 ) -> WGPUTexture;
7577}
7578unsafe extern "C" {
7579 pub fn wgpuDeviceCreateExternalTexture(
7580 device: WGPUDevice,
7581 externalTextureDescriptor: *const WGPUExternalTextureDescriptor,
7582 ) -> WGPUExternalTexture;
7583}
7584unsafe extern "C" {
7585 pub fn wgpuDeviceCreatePipelineLayout(
7586 device: WGPUDevice,
7587 descriptor: *const WGPUPipelineLayoutDescriptor,
7588 ) -> WGPUPipelineLayout;
7589}
7590unsafe extern "C" {
7591 pub fn wgpuDeviceCreateQuerySet(
7592 device: WGPUDevice,
7593 descriptor: *const WGPUQuerySetDescriptor,
7594 ) -> WGPUQuerySet;
7595}
7596unsafe extern "C" {
7597 pub fn wgpuDeviceCreateRenderBundleEncoder(
7598 device: WGPUDevice,
7599 descriptor: *const WGPURenderBundleEncoderDescriptor,
7600 ) -> WGPURenderBundleEncoder;
7601}
7602unsafe extern "C" {
7603 pub fn wgpuDeviceCreateRenderPipeline(
7604 device: WGPUDevice,
7605 descriptor: *const WGPURenderPipelineDescriptor,
7606 ) -> WGPURenderPipeline;
7607}
7608unsafe extern "C" {
7609 pub fn wgpuDeviceCreateRenderPipelineAsync(
7610 device: WGPUDevice,
7611 descriptor: *const WGPURenderPipelineDescriptor,
7612 callbackInfo: WGPUCreateRenderPipelineAsyncCallbackInfo,
7613 ) -> WGPUFuture;
7614}
7615unsafe extern "C" {
7616 pub fn wgpuDeviceCreateSampler(
7617 device: WGPUDevice,
7618 descriptor: *const WGPUSamplerDescriptor,
7619 ) -> WGPUSampler;
7620}
7621unsafe extern "C" {
7622 pub fn wgpuDeviceCreateShaderModule(
7623 device: WGPUDevice,
7624 descriptor: *const WGPUShaderModuleDescriptor,
7625 ) -> WGPUShaderModule;
7626}
7627unsafe extern "C" {
7628 pub fn wgpuDeviceCreateTexture(
7629 device: WGPUDevice,
7630 descriptor: *const WGPUTextureDescriptor,
7631 ) -> WGPUTexture;
7632}
7633unsafe extern "C" {
7634 pub fn wgpuDeviceDestroy(device: WGPUDevice);
7635}
7636unsafe extern "C" {
7637 pub fn wgpuDeviceForceLoss(
7638 device: WGPUDevice,
7639 type_: WGPUDeviceLostReason,
7640 message: WGPUStringView,
7641 );
7642}
7643unsafe extern "C" {
7644 pub fn wgpuDeviceGetAdapter(device: WGPUDevice) -> WGPUAdapter;
7645}
7646unsafe extern "C" {
7647 pub fn wgpuDeviceGetAdapterInfo(
7648 device: WGPUDevice,
7649 adapterInfo: *mut WGPUAdapterInfo,
7650 ) -> WGPUStatus;
7651}
7652unsafe extern "C" {
7653 pub fn wgpuDeviceGetAHardwareBufferProperties(
7654 device: WGPUDevice,
7655 handle: *mut ::core::ffi::c_void,
7656 properties: *mut WGPUAHardwareBufferProperties,
7657 ) -> WGPUStatus;
7658}
7659unsafe extern "C" {
7660 pub fn wgpuDeviceGetFeatures(device: WGPUDevice, features: *mut WGPUSupportedFeatures);
7661}
7662unsafe extern "C" {
7663 pub fn wgpuDeviceGetLimits(device: WGPUDevice, limits: *mut WGPULimits) -> WGPUStatus;
7664}
7665unsafe extern "C" {
7666 pub fn wgpuDeviceGetLostFuture(device: WGPUDevice) -> WGPUFuture;
7667}
7668unsafe extern "C" {
7669 pub fn wgpuDeviceGetQueue(device: WGPUDevice) -> WGPUQueue;
7670}
7671unsafe extern "C" {
7672 pub fn wgpuDeviceHasFeature(device: WGPUDevice, feature: WGPUFeatureName) -> WGPUBool;
7673}
7674unsafe extern "C" {
7675 pub fn wgpuDeviceImportSharedBufferMemory(
7676 device: WGPUDevice,
7677 descriptor: *const WGPUSharedBufferMemoryDescriptor,
7678 ) -> WGPUSharedBufferMemory;
7679}
7680unsafe extern "C" {
7681 pub fn wgpuDeviceImportSharedFence(
7682 device: WGPUDevice,
7683 descriptor: *const WGPUSharedFenceDescriptor,
7684 ) -> WGPUSharedFence;
7685}
7686unsafe extern "C" {
7687 pub fn wgpuDeviceImportSharedTextureMemory(
7688 device: WGPUDevice,
7689 descriptor: *const WGPUSharedTextureMemoryDescriptor,
7690 ) -> WGPUSharedTextureMemory;
7691}
7692unsafe extern "C" {
7693 pub fn wgpuDeviceInjectError(device: WGPUDevice, type_: WGPUErrorType, message: WGPUStringView);
7694}
7695unsafe extern "C" {
7696 pub fn wgpuDevicePopErrorScope(
7697 device: WGPUDevice,
7698 callbackInfo: WGPUPopErrorScopeCallbackInfo,
7699 ) -> WGPUFuture;
7700}
7701unsafe extern "C" {
7702 pub fn wgpuDevicePushErrorScope(device: WGPUDevice, filter: WGPUErrorFilter);
7703}
7704unsafe extern "C" {
7705 pub fn wgpuDeviceSetLabel(device: WGPUDevice, label: WGPUStringView);
7706}
7707unsafe extern "C" {
7708 pub fn wgpuDeviceSetLoggingCallback(device: WGPUDevice, callbackInfo: WGPULoggingCallbackInfo);
7709}
7710unsafe extern "C" {
7711 pub fn wgpuDeviceTick(device: WGPUDevice);
7712}
7713unsafe extern "C" {
7714 pub fn wgpuDeviceValidateTextureDescriptor(
7715 device: WGPUDevice,
7716 descriptor: *const WGPUTextureDescriptor,
7717 );
7718}
7719unsafe extern "C" {
7720 pub fn wgpuDeviceAddRef(device: WGPUDevice);
7721}
7722unsafe extern "C" {
7723 pub fn wgpuDeviceRelease(device: WGPUDevice);
7724}
7725unsafe extern "C" {
7726 pub fn wgpuExternalTextureDestroy(externalTexture: WGPUExternalTexture);
7727}
7728unsafe extern "C" {
7729 pub fn wgpuExternalTextureExpire(externalTexture: WGPUExternalTexture);
7730}
7731unsafe extern "C" {
7732 pub fn wgpuExternalTextureRefresh(externalTexture: WGPUExternalTexture);
7733}
7734unsafe extern "C" {
7735 pub fn wgpuExternalTextureSetLabel(externalTexture: WGPUExternalTexture, label: WGPUStringView);
7736}
7737unsafe extern "C" {
7738 pub fn wgpuExternalTextureAddRef(externalTexture: WGPUExternalTexture);
7739}
7740unsafe extern "C" {
7741 pub fn wgpuExternalTextureRelease(externalTexture: WGPUExternalTexture);
7742}
7743unsafe extern "C" {
7744 pub fn wgpuInstanceCreateSurface(
7745 instance: WGPUInstance,
7746 descriptor: *const WGPUSurfaceDescriptor,
7747 ) -> WGPUSurface;
7748}
7749unsafe extern "C" {
7750 pub fn wgpuInstanceGetWGSLLanguageFeatures(
7751 instance: WGPUInstance,
7752 features: *mut WGPUSupportedWGSLLanguageFeatures,
7753 ) -> WGPUStatus;
7754}
7755unsafe extern "C" {
7756 pub fn wgpuInstanceHasWGSLLanguageFeature(
7757 instance: WGPUInstance,
7758 feature: WGPUWGSLLanguageFeatureName,
7759 ) -> WGPUBool;
7760}
7761unsafe extern "C" {
7762 pub fn wgpuInstanceProcessEvents(instance: WGPUInstance);
7763}
7764unsafe extern "C" {
7765 pub fn wgpuInstanceRequestAdapter(
7766 instance: WGPUInstance,
7767 options: *const WGPURequestAdapterOptions,
7768 callbackInfo: WGPURequestAdapterCallbackInfo,
7769 ) -> WGPUFuture;
7770}
7771unsafe extern "C" {
7772 pub fn wgpuInstanceWaitAny(
7773 instance: WGPUInstance,
7774 futureCount: usize,
7775 futures: *mut WGPUFutureWaitInfo,
7776 timeoutNS: u64,
7777 ) -> WGPUWaitStatus;
7778}
7779unsafe extern "C" {
7780 pub fn wgpuInstanceAddRef(instance: WGPUInstance);
7781}
7782unsafe extern "C" {
7783 pub fn wgpuInstanceRelease(instance: WGPUInstance);
7784}
7785unsafe extern "C" {
7786 pub fn wgpuPipelineLayoutSetLabel(pipelineLayout: WGPUPipelineLayout, label: WGPUStringView);
7787}
7788unsafe extern "C" {
7789 pub fn wgpuPipelineLayoutAddRef(pipelineLayout: WGPUPipelineLayout);
7790}
7791unsafe extern "C" {
7792 pub fn wgpuPipelineLayoutRelease(pipelineLayout: WGPUPipelineLayout);
7793}
7794unsafe extern "C" {
7795 pub fn wgpuQuerySetDestroy(querySet: WGPUQuerySet);
7796}
7797unsafe extern "C" {
7798 pub fn wgpuQuerySetGetCount(querySet: WGPUQuerySet) -> u32;
7799}
7800unsafe extern "C" {
7801 pub fn wgpuQuerySetGetType(querySet: WGPUQuerySet) -> WGPUQueryType;
7802}
7803unsafe extern "C" {
7804 pub fn wgpuQuerySetSetLabel(querySet: WGPUQuerySet, label: WGPUStringView);
7805}
7806unsafe extern "C" {
7807 pub fn wgpuQuerySetAddRef(querySet: WGPUQuerySet);
7808}
7809unsafe extern "C" {
7810 pub fn wgpuQuerySetRelease(querySet: WGPUQuerySet);
7811}
7812unsafe extern "C" {
7813 pub fn wgpuQueueCopyExternalTextureForBrowser(
7814 queue: WGPUQueue,
7815 source: *const WGPUImageCopyExternalTexture,
7816 destination: *const WGPUTexelCopyTextureInfo,
7817 copySize: *const WGPUExtent3D,
7818 options: *const WGPUCopyTextureForBrowserOptions,
7819 );
7820}
7821unsafe extern "C" {
7822 pub fn wgpuQueueCopyTextureForBrowser(
7823 queue: WGPUQueue,
7824 source: *const WGPUTexelCopyTextureInfo,
7825 destination: *const WGPUTexelCopyTextureInfo,
7826 copySize: *const WGPUExtent3D,
7827 options: *const WGPUCopyTextureForBrowserOptions,
7828 );
7829}
7830unsafe extern "C" {
7831 pub fn wgpuQueueOnSubmittedWorkDone(
7832 queue: WGPUQueue,
7833 callbackInfo: WGPUQueueWorkDoneCallbackInfo,
7834 ) -> WGPUFuture;
7835}
7836unsafe extern "C" {
7837 pub fn wgpuQueueSetLabel(queue: WGPUQueue, label: WGPUStringView);
7838}
7839unsafe extern "C" {
7840 pub fn wgpuQueueSubmit(
7841 queue: WGPUQueue,
7842 commandCount: usize,
7843 commands: *const WGPUCommandBuffer,
7844 );
7845}
7846unsafe extern "C" {
7847 pub fn wgpuQueueWriteBuffer(
7848 queue: WGPUQueue,
7849 buffer: WGPUBuffer,
7850 bufferOffset: u64,
7851 data: *const ::core::ffi::c_void,
7852 size: usize,
7853 );
7854}
7855unsafe extern "C" {
7856 pub fn wgpuQueueWriteTexture(
7857 queue: WGPUQueue,
7858 destination: *const WGPUTexelCopyTextureInfo,
7859 data: *const ::core::ffi::c_void,
7860 dataSize: usize,
7861 dataLayout: *const WGPUTexelCopyBufferLayout,
7862 writeSize: *const WGPUExtent3D,
7863 );
7864}
7865unsafe extern "C" {
7866 pub fn wgpuQueueAddRef(queue: WGPUQueue);
7867}
7868unsafe extern "C" {
7869 pub fn wgpuQueueRelease(queue: WGPUQueue);
7870}
7871unsafe extern "C" {
7872 pub fn wgpuRenderBundleSetLabel(renderBundle: WGPURenderBundle, label: WGPUStringView);
7873}
7874unsafe extern "C" {
7875 pub fn wgpuRenderBundleAddRef(renderBundle: WGPURenderBundle);
7876}
7877unsafe extern "C" {
7878 pub fn wgpuRenderBundleRelease(renderBundle: WGPURenderBundle);
7879}
7880unsafe extern "C" {
7881 pub fn wgpuRenderBundleEncoderDraw(
7882 renderBundleEncoder: WGPURenderBundleEncoder,
7883 vertexCount: u32,
7884 instanceCount: u32,
7885 firstVertex: u32,
7886 firstInstance: u32,
7887 );
7888}
7889unsafe extern "C" {
7890 pub fn wgpuRenderBundleEncoderDrawIndexed(
7891 renderBundleEncoder: WGPURenderBundleEncoder,
7892 indexCount: u32,
7893 instanceCount: u32,
7894 firstIndex: u32,
7895 baseVertex: i32,
7896 firstInstance: u32,
7897 );
7898}
7899unsafe extern "C" {
7900 pub fn wgpuRenderBundleEncoderDrawIndexedIndirect(
7901 renderBundleEncoder: WGPURenderBundleEncoder,
7902 indirectBuffer: WGPUBuffer,
7903 indirectOffset: u64,
7904 );
7905}
7906unsafe extern "C" {
7907 pub fn wgpuRenderBundleEncoderDrawIndirect(
7908 renderBundleEncoder: WGPURenderBundleEncoder,
7909 indirectBuffer: WGPUBuffer,
7910 indirectOffset: u64,
7911 );
7912}
7913unsafe extern "C" {
7914 pub fn wgpuRenderBundleEncoderFinish(
7915 renderBundleEncoder: WGPURenderBundleEncoder,
7916 descriptor: *const WGPURenderBundleDescriptor,
7917 ) -> WGPURenderBundle;
7918}
7919unsafe extern "C" {
7920 pub fn wgpuRenderBundleEncoderInsertDebugMarker(
7921 renderBundleEncoder: WGPURenderBundleEncoder,
7922 markerLabel: WGPUStringView,
7923 );
7924}
7925unsafe extern "C" {
7926 pub fn wgpuRenderBundleEncoderPopDebugGroup(renderBundleEncoder: WGPURenderBundleEncoder);
7927}
7928unsafe extern "C" {
7929 pub fn wgpuRenderBundleEncoderPushDebugGroup(
7930 renderBundleEncoder: WGPURenderBundleEncoder,
7931 groupLabel: WGPUStringView,
7932 );
7933}
7934unsafe extern "C" {
7935 pub fn wgpuRenderBundleEncoderSetBindGroup(
7936 renderBundleEncoder: WGPURenderBundleEncoder,
7937 groupIndex: u32,
7938 group: WGPUBindGroup,
7939 dynamicOffsetCount: usize,
7940 dynamicOffsets: *const u32,
7941 );
7942}
7943unsafe extern "C" {
7944 pub fn wgpuRenderBundleEncoderSetImmediateData(
7945 renderBundleEncoder: WGPURenderBundleEncoder,
7946 offset: u32,
7947 data: *const ::core::ffi::c_void,
7948 size: usize,
7949 );
7950}
7951unsafe extern "C" {
7952 pub fn wgpuRenderBundleEncoderSetIndexBuffer(
7953 renderBundleEncoder: WGPURenderBundleEncoder,
7954 buffer: WGPUBuffer,
7955 format: WGPUIndexFormat,
7956 offset: u64,
7957 size: u64,
7958 );
7959}
7960unsafe extern "C" {
7961 pub fn wgpuRenderBundleEncoderSetLabel(
7962 renderBundleEncoder: WGPURenderBundleEncoder,
7963 label: WGPUStringView,
7964 );
7965}
7966unsafe extern "C" {
7967 pub fn wgpuRenderBundleEncoderSetPipeline(
7968 renderBundleEncoder: WGPURenderBundleEncoder,
7969 pipeline: WGPURenderPipeline,
7970 );
7971}
7972unsafe extern "C" {
7973 pub fn wgpuRenderBundleEncoderSetVertexBuffer(
7974 renderBundleEncoder: WGPURenderBundleEncoder,
7975 slot: u32,
7976 buffer: WGPUBuffer,
7977 offset: u64,
7978 size: u64,
7979 );
7980}
7981unsafe extern "C" {
7982 pub fn wgpuRenderBundleEncoderAddRef(renderBundleEncoder: WGPURenderBundleEncoder);
7983}
7984unsafe extern "C" {
7985 pub fn wgpuRenderBundleEncoderRelease(renderBundleEncoder: WGPURenderBundleEncoder);
7986}
7987unsafe extern "C" {
7988 pub fn wgpuRenderPassEncoderBeginOcclusionQuery(
7989 renderPassEncoder: WGPURenderPassEncoder,
7990 queryIndex: u32,
7991 );
7992}
7993unsafe extern "C" {
7994 pub fn wgpuRenderPassEncoderDraw(
7995 renderPassEncoder: WGPURenderPassEncoder,
7996 vertexCount: u32,
7997 instanceCount: u32,
7998 firstVertex: u32,
7999 firstInstance: u32,
8000 );
8001}
8002unsafe extern "C" {
8003 pub fn wgpuRenderPassEncoderDrawIndexed(
8004 renderPassEncoder: WGPURenderPassEncoder,
8005 indexCount: u32,
8006 instanceCount: u32,
8007 firstIndex: u32,
8008 baseVertex: i32,
8009 firstInstance: u32,
8010 );
8011}
8012unsafe extern "C" {
8013 pub fn wgpuRenderPassEncoderDrawIndexedIndirect(
8014 renderPassEncoder: WGPURenderPassEncoder,
8015 indirectBuffer: WGPUBuffer,
8016 indirectOffset: u64,
8017 );
8018}
8019unsafe extern "C" {
8020 pub fn wgpuRenderPassEncoderDrawIndirect(
8021 renderPassEncoder: WGPURenderPassEncoder,
8022 indirectBuffer: WGPUBuffer,
8023 indirectOffset: u64,
8024 );
8025}
8026unsafe extern "C" {
8027 pub fn wgpuRenderPassEncoderEnd(renderPassEncoder: WGPURenderPassEncoder);
8028}
8029unsafe extern "C" {
8030 pub fn wgpuRenderPassEncoderEndOcclusionQuery(renderPassEncoder: WGPURenderPassEncoder);
8031}
8032unsafe extern "C" {
8033 pub fn wgpuRenderPassEncoderExecuteBundles(
8034 renderPassEncoder: WGPURenderPassEncoder,
8035 bundleCount: usize,
8036 bundles: *const WGPURenderBundle,
8037 );
8038}
8039unsafe extern "C" {
8040 pub fn wgpuRenderPassEncoderInsertDebugMarker(
8041 renderPassEncoder: WGPURenderPassEncoder,
8042 markerLabel: WGPUStringView,
8043 );
8044}
8045unsafe extern "C" {
8046 pub fn wgpuRenderPassEncoderMultiDrawIndexedIndirect(
8047 renderPassEncoder: WGPURenderPassEncoder,
8048 indirectBuffer: WGPUBuffer,
8049 indirectOffset: u64,
8050 maxDrawCount: u32,
8051 drawCountBuffer: WGPUBuffer,
8052 drawCountBufferOffset: u64,
8053 );
8054}
8055unsafe extern "C" {
8056 pub fn wgpuRenderPassEncoderMultiDrawIndirect(
8057 renderPassEncoder: WGPURenderPassEncoder,
8058 indirectBuffer: WGPUBuffer,
8059 indirectOffset: u64,
8060 maxDrawCount: u32,
8061 drawCountBuffer: WGPUBuffer,
8062 drawCountBufferOffset: u64,
8063 );
8064}
8065unsafe extern "C" {
8066 pub fn wgpuRenderPassEncoderPixelLocalStorageBarrier(renderPassEncoder: WGPURenderPassEncoder);
8067}
8068unsafe extern "C" {
8069 pub fn wgpuRenderPassEncoderPopDebugGroup(renderPassEncoder: WGPURenderPassEncoder);
8070}
8071unsafe extern "C" {
8072 pub fn wgpuRenderPassEncoderPushDebugGroup(
8073 renderPassEncoder: WGPURenderPassEncoder,
8074 groupLabel: WGPUStringView,
8075 );
8076}
8077unsafe extern "C" {
8078 pub fn wgpuRenderPassEncoderSetBindGroup(
8079 renderPassEncoder: WGPURenderPassEncoder,
8080 groupIndex: u32,
8081 group: WGPUBindGroup,
8082 dynamicOffsetCount: usize,
8083 dynamicOffsets: *const u32,
8084 );
8085}
8086unsafe extern "C" {
8087 pub fn wgpuRenderPassEncoderSetBlendConstant(
8088 renderPassEncoder: WGPURenderPassEncoder,
8089 color: *const WGPUColor,
8090 );
8091}
8092unsafe extern "C" {
8093 pub fn wgpuRenderPassEncoderSetImmediateData(
8094 renderPassEncoder: WGPURenderPassEncoder,
8095 offset: u32,
8096 data: *const ::core::ffi::c_void,
8097 size: usize,
8098 );
8099}
8100unsafe extern "C" {
8101 pub fn wgpuRenderPassEncoderSetIndexBuffer(
8102 renderPassEncoder: WGPURenderPassEncoder,
8103 buffer: WGPUBuffer,
8104 format: WGPUIndexFormat,
8105 offset: u64,
8106 size: u64,
8107 );
8108}
8109unsafe extern "C" {
8110 pub fn wgpuRenderPassEncoderSetLabel(
8111 renderPassEncoder: WGPURenderPassEncoder,
8112 label: WGPUStringView,
8113 );
8114}
8115unsafe extern "C" {
8116 pub fn wgpuRenderPassEncoderSetPipeline(
8117 renderPassEncoder: WGPURenderPassEncoder,
8118 pipeline: WGPURenderPipeline,
8119 );
8120}
8121unsafe extern "C" {
8122 pub fn wgpuRenderPassEncoderSetScissorRect(
8123 renderPassEncoder: WGPURenderPassEncoder,
8124 x: u32,
8125 y: u32,
8126 width: u32,
8127 height: u32,
8128 );
8129}
8130unsafe extern "C" {
8131 pub fn wgpuRenderPassEncoderSetStencilReference(
8132 renderPassEncoder: WGPURenderPassEncoder,
8133 reference: u32,
8134 );
8135}
8136unsafe extern "C" {
8137 pub fn wgpuRenderPassEncoderSetVertexBuffer(
8138 renderPassEncoder: WGPURenderPassEncoder,
8139 slot: u32,
8140 buffer: WGPUBuffer,
8141 offset: u64,
8142 size: u64,
8143 );
8144}
8145unsafe extern "C" {
8146 pub fn wgpuRenderPassEncoderSetViewport(
8147 renderPassEncoder: WGPURenderPassEncoder,
8148 x: f32,
8149 y: f32,
8150 width: f32,
8151 height: f32,
8152 minDepth: f32,
8153 maxDepth: f32,
8154 );
8155}
8156unsafe extern "C" {
8157 pub fn wgpuRenderPassEncoderWriteTimestamp(
8158 renderPassEncoder: WGPURenderPassEncoder,
8159 querySet: WGPUQuerySet,
8160 queryIndex: u32,
8161 );
8162}
8163unsafe extern "C" {
8164 pub fn wgpuRenderPassEncoderAddRef(renderPassEncoder: WGPURenderPassEncoder);
8165}
8166unsafe extern "C" {
8167 pub fn wgpuRenderPassEncoderRelease(renderPassEncoder: WGPURenderPassEncoder);
8168}
8169unsafe extern "C" {
8170 pub fn wgpuRenderPipelineGetBindGroupLayout(
8171 renderPipeline: WGPURenderPipeline,
8172 groupIndex: u32,
8173 ) -> WGPUBindGroupLayout;
8174}
8175unsafe extern "C" {
8176 pub fn wgpuRenderPipelineSetLabel(renderPipeline: WGPURenderPipeline, label: WGPUStringView);
8177}
8178unsafe extern "C" {
8179 pub fn wgpuRenderPipelineAddRef(renderPipeline: WGPURenderPipeline);
8180}
8181unsafe extern "C" {
8182 pub fn wgpuRenderPipelineRelease(renderPipeline: WGPURenderPipeline);
8183}
8184unsafe extern "C" {
8185 pub fn wgpuSamplerSetLabel(sampler: WGPUSampler, label: WGPUStringView);
8186}
8187unsafe extern "C" {
8188 pub fn wgpuSamplerAddRef(sampler: WGPUSampler);
8189}
8190unsafe extern "C" {
8191 pub fn wgpuSamplerRelease(sampler: WGPUSampler);
8192}
8193unsafe extern "C" {
8194 pub fn wgpuShaderModuleGetCompilationInfo(
8195 shaderModule: WGPUShaderModule,
8196 callbackInfo: WGPUCompilationInfoCallbackInfo,
8197 ) -> WGPUFuture;
8198}
8199unsafe extern "C" {
8200 pub fn wgpuShaderModuleSetLabel(shaderModule: WGPUShaderModule, label: WGPUStringView);
8201}
8202unsafe extern "C" {
8203 pub fn wgpuShaderModuleAddRef(shaderModule: WGPUShaderModule);
8204}
8205unsafe extern "C" {
8206 pub fn wgpuShaderModuleRelease(shaderModule: WGPUShaderModule);
8207}
8208unsafe extern "C" {
8209 pub fn wgpuSharedBufferMemoryBeginAccess(
8210 sharedBufferMemory: WGPUSharedBufferMemory,
8211 buffer: WGPUBuffer,
8212 descriptor: *const WGPUSharedBufferMemoryBeginAccessDescriptor,
8213 ) -> WGPUStatus;
8214}
8215unsafe extern "C" {
8216 pub fn wgpuSharedBufferMemoryCreateBuffer(
8217 sharedBufferMemory: WGPUSharedBufferMemory,
8218 descriptor: *const WGPUBufferDescriptor,
8219 ) -> WGPUBuffer;
8220}
8221unsafe extern "C" {
8222 pub fn wgpuSharedBufferMemoryEndAccess(
8223 sharedBufferMemory: WGPUSharedBufferMemory,
8224 buffer: WGPUBuffer,
8225 descriptor: *mut WGPUSharedBufferMemoryEndAccessState,
8226 ) -> WGPUStatus;
8227}
8228unsafe extern "C" {
8229 pub fn wgpuSharedBufferMemoryGetProperties(
8230 sharedBufferMemory: WGPUSharedBufferMemory,
8231 properties: *mut WGPUSharedBufferMemoryProperties,
8232 ) -> WGPUStatus;
8233}
8234unsafe extern "C" {
8235 pub fn wgpuSharedBufferMemoryIsDeviceLost(
8236 sharedBufferMemory: WGPUSharedBufferMemory,
8237 ) -> WGPUBool;
8238}
8239unsafe extern "C" {
8240 pub fn wgpuSharedBufferMemorySetLabel(
8241 sharedBufferMemory: WGPUSharedBufferMemory,
8242 label: WGPUStringView,
8243 );
8244}
8245unsafe extern "C" {
8246 pub fn wgpuSharedBufferMemoryAddRef(sharedBufferMemory: WGPUSharedBufferMemory);
8247}
8248unsafe extern "C" {
8249 pub fn wgpuSharedBufferMemoryRelease(sharedBufferMemory: WGPUSharedBufferMemory);
8250}
8251unsafe extern "C" {
8252 pub fn wgpuSharedFenceExportInfo(
8253 sharedFence: WGPUSharedFence,
8254 info: *mut WGPUSharedFenceExportInfo,
8255 );
8256}
8257unsafe extern "C" {
8258 pub fn wgpuSharedFenceAddRef(sharedFence: WGPUSharedFence);
8259}
8260unsafe extern "C" {
8261 pub fn wgpuSharedFenceRelease(sharedFence: WGPUSharedFence);
8262}
8263unsafe extern "C" {
8264 pub fn wgpuSharedTextureMemoryBeginAccess(
8265 sharedTextureMemory: WGPUSharedTextureMemory,
8266 texture: WGPUTexture,
8267 descriptor: *const WGPUSharedTextureMemoryBeginAccessDescriptor,
8268 ) -> WGPUStatus;
8269}
8270unsafe extern "C" {
8271 pub fn wgpuSharedTextureMemoryCreateTexture(
8272 sharedTextureMemory: WGPUSharedTextureMemory,
8273 descriptor: *const WGPUTextureDescriptor,
8274 ) -> WGPUTexture;
8275}
8276unsafe extern "C" {
8277 pub fn wgpuSharedTextureMemoryEndAccess(
8278 sharedTextureMemory: WGPUSharedTextureMemory,
8279 texture: WGPUTexture,
8280 descriptor: *mut WGPUSharedTextureMemoryEndAccessState,
8281 ) -> WGPUStatus;
8282}
8283unsafe extern "C" {
8284 pub fn wgpuSharedTextureMemoryGetProperties(
8285 sharedTextureMemory: WGPUSharedTextureMemory,
8286 properties: *mut WGPUSharedTextureMemoryProperties,
8287 ) -> WGPUStatus;
8288}
8289unsafe extern "C" {
8290 pub fn wgpuSharedTextureMemoryIsDeviceLost(
8291 sharedTextureMemory: WGPUSharedTextureMemory,
8292 ) -> WGPUBool;
8293}
8294unsafe extern "C" {
8295 pub fn wgpuSharedTextureMemorySetLabel(
8296 sharedTextureMemory: WGPUSharedTextureMemory,
8297 label: WGPUStringView,
8298 );
8299}
8300unsafe extern "C" {
8301 pub fn wgpuSharedTextureMemoryAddRef(sharedTextureMemory: WGPUSharedTextureMemory);
8302}
8303unsafe extern "C" {
8304 pub fn wgpuSharedTextureMemoryRelease(sharedTextureMemory: WGPUSharedTextureMemory);
8305}
8306unsafe extern "C" {
8307 pub fn wgpuSurfaceConfigure(surface: WGPUSurface, config: *const WGPUSurfaceConfiguration);
8308}
8309unsafe extern "C" {
8310 pub fn wgpuSurfaceGetCapabilities(
8311 surface: WGPUSurface,
8312 adapter: WGPUAdapter,
8313 capabilities: *mut WGPUSurfaceCapabilities,
8314 ) -> WGPUStatus;
8315}
8316unsafe extern "C" {
8317 pub fn wgpuSurfaceGetCurrentTexture(
8318 surface: WGPUSurface,
8319 surfaceTexture: *mut WGPUSurfaceTexture,
8320 );
8321}
8322unsafe extern "C" {
8323 pub fn wgpuSurfacePresent(surface: WGPUSurface);
8324}
8325unsafe extern "C" {
8326 pub fn wgpuSurfaceSetLabel(surface: WGPUSurface, label: WGPUStringView);
8327}
8328unsafe extern "C" {
8329 pub fn wgpuSurfaceUnconfigure(surface: WGPUSurface);
8330}
8331unsafe extern "C" {
8332 pub fn wgpuSurfaceAddRef(surface: WGPUSurface);
8333}
8334unsafe extern "C" {
8335 pub fn wgpuSurfaceRelease(surface: WGPUSurface);
8336}
8337unsafe extern "C" {
8338 pub fn wgpuTextureCreateErrorView(
8339 texture: WGPUTexture,
8340 descriptor: *const WGPUTextureViewDescriptor,
8341 ) -> WGPUTextureView;
8342}
8343unsafe extern "C" {
8344 pub fn wgpuTextureCreateView(
8345 texture: WGPUTexture,
8346 descriptor: *const WGPUTextureViewDescriptor,
8347 ) -> WGPUTextureView;
8348}
8349unsafe extern "C" {
8350 pub fn wgpuTextureDestroy(texture: WGPUTexture);
8351}
8352unsafe extern "C" {
8353 pub fn wgpuTextureGetDepthOrArrayLayers(texture: WGPUTexture) -> u32;
8354}
8355unsafe extern "C" {
8356 pub fn wgpuTextureGetDimension(texture: WGPUTexture) -> WGPUTextureDimension;
8357}
8358unsafe extern "C" {
8359 pub fn wgpuTextureGetFormat(texture: WGPUTexture) -> WGPUTextureFormat;
8360}
8361unsafe extern "C" {
8362 pub fn wgpuTextureGetHeight(texture: WGPUTexture) -> u32;
8363}
8364unsafe extern "C" {
8365 pub fn wgpuTextureGetMipLevelCount(texture: WGPUTexture) -> u32;
8366}
8367unsafe extern "C" {
8368 pub fn wgpuTextureGetSampleCount(texture: WGPUTexture) -> u32;
8369}
8370unsafe extern "C" {
8371 pub fn wgpuTextureGetUsage(texture: WGPUTexture) -> WGPUTextureUsage;
8372}
8373unsafe extern "C" {
8374 pub fn wgpuTextureGetWidth(texture: WGPUTexture) -> u32;
8375}
8376unsafe extern "C" {
8377 pub fn wgpuTextureSetLabel(texture: WGPUTexture, label: WGPUStringView);
8378}
8379unsafe extern "C" {
8380 pub fn wgpuTextureAddRef(texture: WGPUTexture);
8381}
8382unsafe extern "C" {
8383 pub fn wgpuTextureRelease(texture: WGPUTexture);
8384}
8385unsafe extern "C" {
8386 pub fn wgpuTextureViewSetLabel(textureView: WGPUTextureView, label: WGPUStringView);
8387}
8388unsafe extern "C" {
8389 pub fn wgpuTextureViewAddRef(textureView: WGPUTextureView);
8390}
8391unsafe extern "C" {
8392 pub fn wgpuTextureViewRelease(textureView: WGPUTextureView);
8393}
8394#[repr(C)]
8395#[derive(Debug, Copy, Clone)]
8396pub struct __crt_locale_data {
8397 pub _address: u8,
8398}
8399#[repr(C)]
8400#[derive(Debug, Copy, Clone)]
8401pub struct __crt_multibyte_data {
8402 pub _address: u8,
8403}