Skip to content

Commit 1e4390f

Browse files
authored
Update to latest WebGPU WebIDL (#2482)
1 parent 1ca80e3 commit 1e4390f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1856
-1453
lines changed

crates/web-sys/Cargo.toml

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -404,25 +404,27 @@ GetUserMediaRequest = []
404404
Gpu = []
405405
GpuAdapter = []
406406
GpuAdapterFeatures = []
407+
GpuAdapterLimits = []
407408
GpuAddressMode = []
408409
GpuBindGroup = []
409410
GpuBindGroupDescriptor = []
410411
GpuBindGroupEntry = []
411412
GpuBindGroupLayout = []
412413
GpuBindGroupLayoutDescriptor = []
413414
GpuBindGroupLayoutEntry = []
414-
GpuBindingType = []
415-
GpuBlendDescriptor = []
415+
GpuBlendComponent = []
416416
GpuBlendFactor = []
417417
GpuBlendOperation = []
418+
GpuBlendState = []
418419
GpuBuffer = []
419420
GpuBufferBinding = []
420-
GpuBufferCopyView = []
421+
GpuBufferBindingLayout = []
422+
GpuBufferBindingType = []
421423
GpuBufferDescriptor = []
422424
GpuBufferUsage = []
423425
GpuCanvasContext = []
424426
GpuColorDict = []
425-
GpuColorStateDescriptor = []
427+
GpuColorTargetState = []
426428
GpuColorWrite = []
427429
GpuCommandBuffer = []
428430
GpuCommandBufferDescriptor = []
@@ -437,23 +439,26 @@ GpuComputePassEncoder = []
437439
GpuComputePipeline = []
438440
GpuComputePipelineDescriptor = []
439441
GpuCullMode = []
440-
GpuDepthStencilStateDescriptor = []
442+
GpuDepthStencilState = []
441443
GpuDevice = ["EventTarget"]
442444
GpuDeviceDescriptor = []
443445
GpuDeviceLostInfo = []
446+
GpuDeviceLostReason = []
444447
GpuErrorFilter = []
445448
GpuExtent3dDict = []
446449
GpuFeatureName = []
447-
GpuFence = []
448-
GpuFenceDescriptor = []
449450
GpuFilterMode = []
451+
GpuFragmentState = []
450452
GpuFrontFace = []
451-
GpuImageBitmapCopyView = []
453+
GpuImageCopyBuffer = []
454+
GpuImageCopyImageBitmap = []
455+
GpuImageCopyTexture = []
456+
GpuImageDataLayout = []
452457
GpuIndexFormat = []
453458
GpuInputStepMode = []
454-
GpuLimits = []
455459
GpuLoadOp = []
456460
GpuMapMode = []
461+
GpuMultisampleState = []
457462
GpuObjectDescriptorBase = []
458463
GpuOrigin2dDict = []
459464
GpuOrigin3dDict = []
@@ -463,53 +468,56 @@ GpuPipelineLayout = []
463468
GpuPipelineLayoutDescriptor = []
464469
GpuPipelineStatisticName = []
465470
GpuPowerPreference = []
471+
GpuPrimitiveState = []
466472
GpuPrimitiveTopology = []
467-
GpuProgrammableStageDescriptor = []
473+
GpuProgrammableStage = []
468474
GpuQuerySet = []
469475
GpuQuerySetDescriptor = []
470476
GpuQueryType = []
471477
GpuQueue = []
472-
GpuRasterizationStateDescriptor = []
473478
GpuRenderBundle = []
474479
GpuRenderBundleDescriptor = []
475480
GpuRenderBundleEncoder = []
476481
GpuRenderBundleEncoderDescriptor = []
477-
GpuRenderPassColorAttachmentDescriptor = []
478-
GpuRenderPassDepthStencilAttachmentDescriptor = []
482+
GpuRenderPassColorAttachment = []
483+
GpuRenderPassDepthStencilAttachment = []
479484
GpuRenderPassDescriptor = []
480485
GpuRenderPassEncoder = []
481486
GpuRenderPipeline = []
482487
GpuRenderPipelineDescriptor = []
483488
GpuRequestAdapterOptions = []
484489
GpuSampler = []
490+
GpuSamplerBindingLayout = []
491+
GpuSamplerBindingType = []
485492
GpuSamplerDescriptor = []
486493
GpuShaderModule = []
487494
GpuShaderModuleDescriptor = []
488495
GpuShaderStage = []
496+
GpuStencilFaceState = []
489497
GpuStencilOperation = []
490-
GpuStencilStateFaceDescriptor = []
498+
GpuStorageTextureAccess = []
499+
GpuStorageTextureBindingLayout = []
491500
GpuStoreOp = []
492501
GpuSwapChain = []
493502
GpuSwapChainDescriptor = []
494503
GpuTexture = []
495504
GpuTextureAspect = []
496-
GpuTextureComponentType = []
497-
GpuTextureCopyView = []
498-
GpuTextureDataLayout = []
505+
GpuTextureBindingLayout = []
499506
GpuTextureDescriptor = []
500507
GpuTextureDimension = []
501508
GpuTextureFormat = []
509+
GpuTextureSampleType = []
502510
GpuTextureUsage = []
503511
GpuTextureView = []
504512
GpuTextureViewDescriptor = []
505513
GpuTextureViewDimension = []
506514
GpuUncapturedErrorEvent = ["Event"]
507515
GpuUncapturedErrorEventInit = []
508516
GpuValidationError = []
509-
GpuVertexAttributeDescriptor = []
510-
GpuVertexBufferLayoutDescriptor = []
517+
GpuVertexAttribute = []
518+
GpuVertexBufferLayout = []
511519
GpuVertexFormat = []
512-
GpuVertexStateDescriptor = []
520+
GpuVertexState = []
513521
GridDeclaration = []
514522
GridTrackState = []
515523
GroupedHistoryEventInit = []

crates/web-sys/src/features/gen_GpuAdapter.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@ extern "C" {
3939
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
4040
pub fn features(this: &GpuAdapter) -> GpuAdapterFeatures;
4141
#[cfg(web_sys_unstable_apis)]
42+
#[cfg(feature = "GpuAdapterLimits")]
43+
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapter" , js_name = limits)]
44+
#[doc = "Getter for the `limits` field of this object."]
45+
#[doc = ""]
46+
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapter/limits)"]
47+
#[doc = ""]
48+
#[doc = "*This API requires the following crate features to be activated: `GpuAdapter`, `GpuAdapterLimits`*"]
49+
#[doc = ""]
50+
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
51+
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
52+
pub fn limits(this: &GpuAdapter) -> GpuAdapterLimits;
53+
#[cfg(web_sys_unstable_apis)]
4254
# [wasm_bindgen (method , structural , js_class = "GPUAdapter" , js_name = requestDevice)]
4355
#[doc = "The `requestDevice()` method."]
4456
#[doc = ""]
Lines changed: 205 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,205 @@
1+
#![allow(unused_imports)]
2+
use super::*;
3+
use wasm_bindgen::prelude::*;
4+
#[cfg(web_sys_unstable_apis)]
5+
#[wasm_bindgen]
6+
extern "C" {
7+
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUAdapterLimits , typescript_type = "GPUAdapterLimits")]
8+
#[derive(Debug, Clone, PartialEq, Eq)]
9+
#[doc = "The `GpuAdapterLimits` class."]
10+
#[doc = ""]
11+
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterLimits)"]
12+
#[doc = ""]
13+
#[doc = "*This API requires the following crate features to be activated: `GpuAdapterLimits`*"]
14+
#[doc = ""]
15+
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
16+
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
17+
pub type GpuAdapterLimits;
18+
#[cfg(web_sys_unstable_apis)]
19+
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterLimits" , js_name = maxTextureDimension1D)]
20+
#[doc = "Getter for the `maxTextureDimension1D` field of this object."]
21+
#[doc = ""]
22+
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterLimits/maxTextureDimension1D)"]
23+
#[doc = ""]
24+
#[doc = "*This API requires the following crate features to be activated: `GpuAdapterLimits`*"]
25+
#[doc = ""]
26+
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
27+
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
28+
pub fn max_texture_dimension_1d(this: &GpuAdapterLimits) -> u32;
29+
#[cfg(web_sys_unstable_apis)]
30+
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterLimits" , js_name = maxTextureDimension2D)]
31+
#[doc = "Getter for the `maxTextureDimension2D` field of this object."]
32+
#[doc = ""]
33+
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterLimits/maxTextureDimension2D)"]
34+
#[doc = ""]
35+
#[doc = "*This API requires the following crate features to be activated: `GpuAdapterLimits`*"]
36+
#[doc = ""]
37+
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
38+
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
39+
pub fn max_texture_dimension_2d(this: &GpuAdapterLimits) -> u32;
40+
#[cfg(web_sys_unstable_apis)]
41+
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterLimits" , js_name = maxTextureDimension3D)]
42+
#[doc = "Getter for the `maxTextureDimension3D` field of this object."]
43+
#[doc = ""]
44+
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterLimits/maxTextureDimension3D)"]
45+
#[doc = ""]
46+
#[doc = "*This API requires the following crate features to be activated: `GpuAdapterLimits`*"]
47+
#[doc = ""]
48+
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
49+
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
50+
pub fn max_texture_dimension_3d(this: &GpuAdapterLimits) -> u32;
51+
#[cfg(web_sys_unstable_apis)]
52+
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterLimits" , js_name = maxTextureArrayLayers)]
53+
#[doc = "Getter for the `maxTextureArrayLayers` field of this object."]
54+
#[doc = ""]
55+
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterLimits/maxTextureArrayLayers)"]
56+
#[doc = ""]
57+
#[doc = "*This API requires the following crate features to be activated: `GpuAdapterLimits`*"]
58+
#[doc = ""]
59+
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
60+
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
61+
pub fn max_texture_array_layers(this: &GpuAdapterLimits) -> u32;
62+
#[cfg(web_sys_unstable_apis)]
63+
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterLimits" , js_name = maxBindGroups)]
64+
#[doc = "Getter for the `maxBindGroups` field of this object."]
65+
#[doc = ""]
66+
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterLimits/maxBindGroups)"]
67+
#[doc = ""]
68+
#[doc = "*This API requires the following crate features to be activated: `GpuAdapterLimits`*"]
69+
#[doc = ""]
70+
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
71+
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
72+
pub fn max_bind_groups(this: &GpuAdapterLimits) -> u32;
73+
#[cfg(web_sys_unstable_apis)]
74+
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterLimits" , js_name = maxDynamicUniformBuffersPerPipelineLayout)]
75+
#[doc = "Getter for the `maxDynamicUniformBuffersPerPipelineLayout` field of this object."]
76+
#[doc = ""]
77+
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterLimits/maxDynamicUniformBuffersPerPipelineLayout)"]
78+
#[doc = ""]
79+
#[doc = "*This API requires the following crate features to be activated: `GpuAdapterLimits`*"]
80+
#[doc = ""]
81+
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
82+
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
83+
pub fn max_dynamic_uniform_buffers_per_pipeline_layout(this: &GpuAdapterLimits) -> u32;
84+
#[cfg(web_sys_unstable_apis)]
85+
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterLimits" , js_name = maxDynamicStorageBuffersPerPipelineLayout)]
86+
#[doc = "Getter for the `maxDynamicStorageBuffersPerPipelineLayout` field of this object."]
87+
#[doc = ""]
88+
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterLimits/maxDynamicStorageBuffersPerPipelineLayout)"]
89+
#[doc = ""]
90+
#[doc = "*This API requires the following crate features to be activated: `GpuAdapterLimits`*"]
91+
#[doc = ""]
92+
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
93+
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
94+
pub fn max_dynamic_storage_buffers_per_pipeline_layout(this: &GpuAdapterLimits) -> u32;
95+
#[cfg(web_sys_unstable_apis)]
96+
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterLimits" , js_name = maxSampledTexturesPerShaderStage)]
97+
#[doc = "Getter for the `maxSampledTexturesPerShaderStage` field of this object."]
98+
#[doc = ""]
99+
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterLimits/maxSampledTexturesPerShaderStage)"]
100+
#[doc = ""]
101+
#[doc = "*This API requires the following crate features to be activated: `GpuAdapterLimits`*"]
102+
#[doc = ""]
103+
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
104+
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
105+
pub fn max_sampled_textures_per_shader_stage(this: &GpuAdapterLimits) -> u32;
106+
#[cfg(web_sys_unstable_apis)]
107+
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterLimits" , js_name = maxSamplersPerShaderStage)]
108+
#[doc = "Getter for the `maxSamplersPerShaderStage` field of this object."]
109+
#[doc = ""]
110+
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterLimits/maxSamplersPerShaderStage)"]
111+
#[doc = ""]
112+
#[doc = "*This API requires the following crate features to be activated: `GpuAdapterLimits`*"]
113+
#[doc = ""]
114+
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
115+
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
116+
pub fn max_samplers_per_shader_stage(this: &GpuAdapterLimits) -> u32;
117+
#[cfg(web_sys_unstable_apis)]
118+
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterLimits" , js_name = maxStorageBuffersPerShaderStage)]
119+
#[doc = "Getter for the `maxStorageBuffersPerShaderStage` field of this object."]
120+
#[doc = ""]
121+
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterLimits/maxStorageBuffersPerShaderStage)"]
122+
#[doc = ""]
123+
#[doc = "*This API requires the following crate features to be activated: `GpuAdapterLimits`*"]
124+
#[doc = ""]
125+
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
126+
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
127+
pub fn max_storage_buffers_per_shader_stage(this: &GpuAdapterLimits) -> u32;
128+
#[cfg(web_sys_unstable_apis)]
129+
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterLimits" , js_name = maxStorageTexturesPerShaderStage)]
130+
#[doc = "Getter for the `maxStorageTexturesPerShaderStage` field of this object."]
131+
#[doc = ""]
132+
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterLimits/maxStorageTexturesPerShaderStage)"]
133+
#[doc = ""]
134+
#[doc = "*This API requires the following crate features to be activated: `GpuAdapterLimits`*"]
135+
#[doc = ""]
136+
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
137+
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
138+
pub fn max_storage_textures_per_shader_stage(this: &GpuAdapterLimits) -> u32;
139+
#[cfg(web_sys_unstable_apis)]
140+
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterLimits" , js_name = maxUniformBuffersPerShaderStage)]
141+
#[doc = "Getter for the `maxUniformBuffersPerShaderStage` field of this object."]
142+
#[doc = ""]
143+
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterLimits/maxUniformBuffersPerShaderStage)"]
144+
#[doc = ""]
145+
#[doc = "*This API requires the following crate features to be activated: `GpuAdapterLimits`*"]
146+
#[doc = ""]
147+
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
148+
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
149+
pub fn max_uniform_buffers_per_shader_stage(this: &GpuAdapterLimits) -> u32;
150+
#[cfg(web_sys_unstable_apis)]
151+
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterLimits" , js_name = maxUniformBufferBindingSize)]
152+
#[doc = "Getter for the `maxUniformBufferBindingSize` field of this object."]
153+
#[doc = ""]
154+
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterLimits/maxUniformBufferBindingSize)"]
155+
#[doc = ""]
156+
#[doc = "*This API requires the following crate features to be activated: `GpuAdapterLimits`*"]
157+
#[doc = ""]
158+
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
159+
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
160+
pub fn max_uniform_buffer_binding_size(this: &GpuAdapterLimits) -> u32;
161+
#[cfg(web_sys_unstable_apis)]
162+
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterLimits" , js_name = maxStorageBufferBindingSize)]
163+
#[doc = "Getter for the `maxStorageBufferBindingSize` field of this object."]
164+
#[doc = ""]
165+
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterLimits/maxStorageBufferBindingSize)"]
166+
#[doc = ""]
167+
#[doc = "*This API requires the following crate features to be activated: `GpuAdapterLimits`*"]
168+
#[doc = ""]
169+
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
170+
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
171+
pub fn max_storage_buffer_binding_size(this: &GpuAdapterLimits) -> u32;
172+
#[cfg(web_sys_unstable_apis)]
173+
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterLimits" , js_name = maxVertexBuffers)]
174+
#[doc = "Getter for the `maxVertexBuffers` field of this object."]
175+
#[doc = ""]
176+
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterLimits/maxVertexBuffers)"]
177+
#[doc = ""]
178+
#[doc = "*This API requires the following crate features to be activated: `GpuAdapterLimits`*"]
179+
#[doc = ""]
180+
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
181+
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
182+
pub fn max_vertex_buffers(this: &GpuAdapterLimits) -> u32;
183+
#[cfg(web_sys_unstable_apis)]
184+
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterLimits" , js_name = maxVertexAttributes)]
185+
#[doc = "Getter for the `maxVertexAttributes` field of this object."]
186+
#[doc = ""]
187+
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterLimits/maxVertexAttributes)"]
188+
#[doc = ""]
189+
#[doc = "*This API requires the following crate features to be activated: `GpuAdapterLimits`*"]
190+
#[doc = ""]
191+
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
192+
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
193+
pub fn max_vertex_attributes(this: &GpuAdapterLimits) -> u32;
194+
#[cfg(web_sys_unstable_apis)]
195+
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterLimits" , js_name = maxVertexBufferArrayStride)]
196+
#[doc = "Getter for the `maxVertexBufferArrayStride` field of this object."]
197+
#[doc = ""]
198+
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterLimits/maxVertexBufferArrayStride)"]
199+
#[doc = ""]
200+
#[doc = "*This API requires the following crate features to be activated: `GpuAdapterLimits`*"]
201+
#[doc = ""]
202+
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
203+
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
204+
pub fn max_vertex_buffer_array_stride(this: &GpuAdapterLimits) -> u32;
205+
}

0 commit comments

Comments
 (0)