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)*"]
max_texture_dimension_1d(this: &GpuAdapterLimits) -> u3228     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)*"]
max_texture_dimension_2d(this: &GpuAdapterLimits) -> u3239     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)*"]
max_texture_dimension_3d(this: &GpuAdapterLimits) -> u3250     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)*"]
max_texture_array_layers(this: &GpuAdapterLimits) -> u3261     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)*"]
max_bind_groups(this: &GpuAdapterLimits) -> u3272     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)*"]
max_dynamic_uniform_buffers_per_pipeline_layout(this: &GpuAdapterLimits) -> u3283     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)*"]
max_dynamic_storage_buffers_per_pipeline_layout(this: &GpuAdapterLimits) -> u3294     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)*"]
max_sampled_textures_per_shader_stage(this: &GpuAdapterLimits) -> u32105     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)*"]
max_samplers_per_shader_stage(this: &GpuAdapterLimits) -> u32116     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)*"]
max_storage_buffers_per_shader_stage(this: &GpuAdapterLimits) -> u32127     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)*"]
max_storage_textures_per_shader_stage(this: &GpuAdapterLimits) -> u32138     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)*"]
max_uniform_buffers_per_shader_stage(this: &GpuAdapterLimits) -> u32149     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)*"]
max_uniform_buffer_binding_size(this: &GpuAdapterLimits) -> u32160     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)*"]
max_storage_buffer_binding_size(this: &GpuAdapterLimits) -> u32171     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)*"]
max_vertex_buffers(this: &GpuAdapterLimits) -> u32182     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)*"]
max_vertex_attributes(this: &GpuAdapterLimits) -> u32193     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)*"]
max_vertex_buffer_array_stride(this: &GpuAdapterLimits) -> u32204     pub fn max_vertex_buffer_array_stride(this: &GpuAdapterLimits) -> u32;
205 }
206