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