Skip to main content

web_sys/features/
gen_GpuDevice.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8    # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = GPUDevice , typescript_type = "GPUDevice")]
9    #[derive(Debug, Clone, PartialEq, Eq)]
10    #[doc = "The `GpuDevice` class."]
11    #[doc = ""]
12    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice)"]
13    #[doc = ""]
14    #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"]
15    #[doc = ""]
16    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
17    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
18    pub type GpuDevice;
19    #[cfg(web_sys_unstable_apis)]
20    #[cfg(feature = "GpuSupportedFeatures")]
21    # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = features)]
22    #[doc = "Getter for the `features` field of this object."]
23    #[doc = ""]
24    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/features)"]
25    #[doc = ""]
26    #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuSupportedFeatures`*"]
27    #[doc = ""]
28    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
29    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
30    pub fn features(this: &GpuDevice) -> GpuSupportedFeatures;
31    #[cfg(web_sys_unstable_apis)]
32    #[cfg(feature = "GpuSupportedLimits")]
33    # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = limits)]
34    #[doc = "Getter for the `limits` field of this object."]
35    #[doc = ""]
36    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/limits)"]
37    #[doc = ""]
38    #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuSupportedLimits`*"]
39    #[doc = ""]
40    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
41    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
42    pub fn limits(this: &GpuDevice) -> GpuSupportedLimits;
43    #[cfg(web_sys_unstable_apis)]
44    #[cfg(feature = "GpuAdapterInfo")]
45    # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = adapterInfo)]
46    #[doc = "Getter for the `adapterInfo` field of this object."]
47    #[doc = ""]
48    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/adapterInfo)"]
49    #[doc = ""]
50    #[doc = "*This API requires the following crate features to be activated: `GpuAdapterInfo`, `GpuDevice`*"]
51    #[doc = ""]
52    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
53    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
54    pub fn adapter_info(this: &GpuDevice) -> GpuAdapterInfo;
55    #[cfg(web_sys_unstable_apis)]
56    #[cfg(feature = "GpuQueue")]
57    # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = queue)]
58    #[doc = "Getter for the `queue` field of this object."]
59    #[doc = ""]
60    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/queue)"]
61    #[doc = ""]
62    #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuQueue`*"]
63    #[doc = ""]
64    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
65    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
66    pub fn queue(this: &GpuDevice) -> GpuQueue;
67    #[cfg(web_sys_unstable_apis)]
68    #[cfg(feature = "GpuDeviceLostInfo")]
69    # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = lost)]
70    #[doc = "Getter for the `lost` field of this object."]
71    #[doc = ""]
72    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/lost)"]
73    #[doc = ""]
74    #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuDeviceLostInfo`*"]
75    #[doc = ""]
76    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
77    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
78    pub fn lost(this: &GpuDevice) -> ::js_sys::Promise<GpuDeviceLostInfo>;
79    #[cfg(web_sys_unstable_apis)]
80    # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = onuncapturederror)]
81    #[doc = "Getter for the `onuncapturederror` field of this object."]
82    #[doc = ""]
83    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/onuncapturederror)"]
84    #[doc = ""]
85    #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"]
86    #[doc = ""]
87    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
88    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
89    pub fn onuncapturederror(this: &GpuDevice) -> Option<::js_sys::Function>;
90    #[cfg(web_sys_unstable_apis)]
91    # [wasm_bindgen (structural , method , setter , js_class = "GPUDevice" , js_name = onuncapturederror)]
92    #[doc = "Setter for the `onuncapturederror` field of this object."]
93    #[doc = ""]
94    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/onuncapturederror)"]
95    #[doc = ""]
96    #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"]
97    #[doc = ""]
98    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
99    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
100    pub fn set_onuncapturederror(this: &GpuDevice, value: Option<&::js_sys::Function>);
101    #[cfg(web_sys_unstable_apis)]
102    # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = label)]
103    #[doc = "Getter for the `label` field of this object."]
104    #[doc = ""]
105    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/label)"]
106    #[doc = ""]
107    #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"]
108    #[doc = ""]
109    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
110    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
111    pub fn label(this: &GpuDevice) -> ::alloc::string::String;
112    #[cfg(web_sys_unstable_apis)]
113    # [wasm_bindgen (structural , method , setter , js_class = "GPUDevice" , js_name = label)]
114    #[doc = "Setter for the `label` field of this object."]
115    #[doc = ""]
116    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/label)"]
117    #[doc = ""]
118    #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"]
119    #[doc = ""]
120    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
121    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
122    pub fn set_label(this: &GpuDevice, value: &str);
123    #[cfg(web_sys_unstable_apis)]
124    #[cfg(all(feature = "GpuBindGroup", feature = "GpuBindGroupDescriptor",))]
125    # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createBindGroup)]
126    #[doc = "The `createBindGroup()` method."]
127    #[doc = ""]
128    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createBindGroup)"]
129    #[doc = ""]
130    #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuBindGroupDescriptor`, `GpuDevice`*"]
131    #[doc = ""]
132    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
133    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
134    pub fn create_bind_group(this: &GpuDevice, descriptor: &GpuBindGroupDescriptor)
135        -> GpuBindGroup;
136    #[cfg(web_sys_unstable_apis)]
137    #[cfg(all(
138        feature = "GpuBindGroupLayout",
139        feature = "GpuBindGroupLayoutDescriptor",
140    ))]
141    # [wasm_bindgen (catch , method , structural , js_class = "GPUDevice" , js_name = createBindGroupLayout)]
142    #[doc = "The `createBindGroupLayout()` method."]
143    #[doc = ""]
144    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createBindGroupLayout)"]
145    #[doc = ""]
146    #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayout`, `GpuBindGroupLayoutDescriptor`, `GpuDevice`*"]
147    #[doc = ""]
148    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
149    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
150    pub fn create_bind_group_layout(
151        this: &GpuDevice,
152        descriptor: &GpuBindGroupLayoutDescriptor,
153    ) -> Result<GpuBindGroupLayout, JsValue>;
154    #[cfg(web_sys_unstable_apis)]
155    #[cfg(all(feature = "GpuBuffer", feature = "GpuBufferDescriptor",))]
156    # [wasm_bindgen (catch , method , structural , js_class = "GPUDevice" , js_name = createBuffer)]
157    #[doc = "The `createBuffer()` method."]
158    #[doc = ""]
159    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createBuffer)"]
160    #[doc = ""]
161    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuBufferDescriptor`, `GpuDevice`*"]
162    #[doc = ""]
163    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
164    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
165    pub fn create_buffer(
166        this: &GpuDevice,
167        descriptor: &GpuBufferDescriptor,
168    ) -> Result<GpuBuffer, JsValue>;
169    #[cfg(web_sys_unstable_apis)]
170    #[cfg(feature = "GpuCommandEncoder")]
171    # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createCommandEncoder)]
172    #[doc = "The `createCommandEncoder()` method."]
173    #[doc = ""]
174    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createCommandEncoder)"]
175    #[doc = ""]
176    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuDevice`*"]
177    #[doc = ""]
178    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
179    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
180    pub fn create_command_encoder(this: &GpuDevice) -> GpuCommandEncoder;
181    #[cfg(web_sys_unstable_apis)]
182    #[cfg(all(feature = "GpuCommandEncoder", feature = "GpuCommandEncoderDescriptor",))]
183    # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createCommandEncoder)]
184    #[doc = "The `createCommandEncoder()` method."]
185    #[doc = ""]
186    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createCommandEncoder)"]
187    #[doc = ""]
188    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuCommandEncoderDescriptor`, `GpuDevice`*"]
189    #[doc = ""]
190    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
191    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
192    pub fn create_command_encoder_with_descriptor(
193        this: &GpuDevice,
194        descriptor: &GpuCommandEncoderDescriptor,
195    ) -> GpuCommandEncoder;
196    #[cfg(web_sys_unstable_apis)]
197    #[cfg(all(
198        feature = "GpuComputePipeline",
199        feature = "GpuComputePipelineDescriptor",
200    ))]
201    # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createComputePipeline)]
202    #[doc = "The `createComputePipeline()` method."]
203    #[doc = ""]
204    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createComputePipeline)"]
205    #[doc = ""]
206    #[doc = "*This API requires the following crate features to be activated: `GpuComputePipeline`, `GpuComputePipelineDescriptor`, `GpuDevice`*"]
207    #[doc = ""]
208    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
209    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
210    pub fn create_compute_pipeline(
211        this: &GpuDevice,
212        descriptor: &GpuComputePipelineDescriptor,
213    ) -> GpuComputePipeline;
214    #[cfg(web_sys_unstable_apis)]
215    #[cfg(all(
216        feature = "GpuComputePipeline",
217        feature = "GpuComputePipelineDescriptor",
218    ))]
219    # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createComputePipelineAsync)]
220    #[doc = "The `createComputePipelineAsync()` method."]
221    #[doc = ""]
222    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createComputePipelineAsync)"]
223    #[doc = ""]
224    #[doc = "*This API requires the following crate features to be activated: `GpuComputePipeline`, `GpuComputePipelineDescriptor`, `GpuDevice`*"]
225    #[doc = ""]
226    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
227    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
228    pub fn create_compute_pipeline_async(
229        this: &GpuDevice,
230        descriptor: &GpuComputePipelineDescriptor,
231    ) -> ::js_sys::Promise<GpuComputePipeline>;
232    #[cfg(web_sys_unstable_apis)]
233    #[cfg(all(feature = "GpuPipelineLayout", feature = "GpuPipelineLayoutDescriptor",))]
234    # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createPipelineLayout)]
235    #[doc = "The `createPipelineLayout()` method."]
236    #[doc = ""]
237    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createPipelineLayout)"]
238    #[doc = ""]
239    #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuPipelineLayout`, `GpuPipelineLayoutDescriptor`*"]
240    #[doc = ""]
241    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
242    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
243    pub fn create_pipeline_layout(
244        this: &GpuDevice,
245        descriptor: &GpuPipelineLayoutDescriptor,
246    ) -> GpuPipelineLayout;
247    #[cfg(web_sys_unstable_apis)]
248    #[cfg(all(feature = "GpuQuerySet", feature = "GpuQuerySetDescriptor",))]
249    # [wasm_bindgen (catch , method , structural , js_class = "GPUDevice" , js_name = createQuerySet)]
250    #[doc = "The `createQuerySet()` method."]
251    #[doc = ""]
252    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createQuerySet)"]
253    #[doc = ""]
254    #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuQuerySet`, `GpuQuerySetDescriptor`*"]
255    #[doc = ""]
256    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
257    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
258    pub fn create_query_set(
259        this: &GpuDevice,
260        descriptor: &GpuQuerySetDescriptor,
261    ) -> Result<GpuQuerySet, JsValue>;
262    #[cfg(web_sys_unstable_apis)]
263    #[cfg(all(
264        feature = "GpuRenderBundleEncoder",
265        feature = "GpuRenderBundleEncoderDescriptor",
266    ))]
267    # [wasm_bindgen (catch , method , structural , js_class = "GPUDevice" , js_name = createRenderBundleEncoder)]
268    #[doc = "The `createRenderBundleEncoder()` method."]
269    #[doc = ""]
270    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createRenderBundleEncoder)"]
271    #[doc = ""]
272    #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuRenderBundleEncoder`, `GpuRenderBundleEncoderDescriptor`*"]
273    #[doc = ""]
274    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
275    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
276    pub fn create_render_bundle_encoder(
277        this: &GpuDevice,
278        descriptor: &GpuRenderBundleEncoderDescriptor,
279    ) -> Result<GpuRenderBundleEncoder, JsValue>;
280    #[cfg(web_sys_unstable_apis)]
281    #[cfg(all(feature = "GpuRenderPipeline", feature = "GpuRenderPipelineDescriptor",))]
282    # [wasm_bindgen (catch , method , structural , js_class = "GPUDevice" , js_name = createRenderPipeline)]
283    #[doc = "The `createRenderPipeline()` method."]
284    #[doc = ""]
285    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createRenderPipeline)"]
286    #[doc = ""]
287    #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuRenderPipeline`, `GpuRenderPipelineDescriptor`*"]
288    #[doc = ""]
289    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
290    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
291    pub fn create_render_pipeline(
292        this: &GpuDevice,
293        descriptor: &GpuRenderPipelineDescriptor,
294    ) -> Result<GpuRenderPipeline, JsValue>;
295    #[cfg(web_sys_unstable_apis)]
296    #[cfg(all(feature = "GpuRenderPipeline", feature = "GpuRenderPipelineDescriptor",))]
297    # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createRenderPipelineAsync)]
298    #[doc = "The `createRenderPipelineAsync()` method."]
299    #[doc = ""]
300    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createRenderPipelineAsync)"]
301    #[doc = ""]
302    #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuRenderPipeline`, `GpuRenderPipelineDescriptor`*"]
303    #[doc = ""]
304    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
305    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
306    pub fn create_render_pipeline_async(
307        this: &GpuDevice,
308        descriptor: &GpuRenderPipelineDescriptor,
309    ) -> ::js_sys::Promise<GpuRenderPipeline>;
310    #[cfg(web_sys_unstable_apis)]
311    #[cfg(feature = "GpuSampler")]
312    # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createSampler)]
313    #[doc = "The `createSampler()` method."]
314    #[doc = ""]
315    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createSampler)"]
316    #[doc = ""]
317    #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuSampler`*"]
318    #[doc = ""]
319    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
320    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
321    pub fn create_sampler(this: &GpuDevice) -> GpuSampler;
322    #[cfg(web_sys_unstable_apis)]
323    #[cfg(all(feature = "GpuSampler", feature = "GpuSamplerDescriptor",))]
324    # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createSampler)]
325    #[doc = "The `createSampler()` method."]
326    #[doc = ""]
327    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createSampler)"]
328    #[doc = ""]
329    #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuSampler`, `GpuSamplerDescriptor`*"]
330    #[doc = ""]
331    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
332    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
333    pub fn create_sampler_with_descriptor(
334        this: &GpuDevice,
335        descriptor: &GpuSamplerDescriptor,
336    ) -> GpuSampler;
337    #[cfg(web_sys_unstable_apis)]
338    #[cfg(all(feature = "GpuShaderModule", feature = "GpuShaderModuleDescriptor",))]
339    # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createShaderModule)]
340    #[doc = "The `createShaderModule()` method."]
341    #[doc = ""]
342    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createShaderModule)"]
343    #[doc = ""]
344    #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuShaderModule`, `GpuShaderModuleDescriptor`*"]
345    #[doc = ""]
346    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
347    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
348    pub fn create_shader_module(
349        this: &GpuDevice,
350        descriptor: &GpuShaderModuleDescriptor,
351    ) -> GpuShaderModule;
352    #[cfg(web_sys_unstable_apis)]
353    #[cfg(all(feature = "GpuTexture", feature = "GpuTextureDescriptor",))]
354    # [wasm_bindgen (catch , method , structural , js_class = "GPUDevice" , js_name = createTexture)]
355    #[doc = "The `createTexture()` method."]
356    #[doc = ""]
357    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createTexture)"]
358    #[doc = ""]
359    #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuTexture`, `GpuTextureDescriptor`*"]
360    #[doc = ""]
361    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
362    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
363    pub fn create_texture(
364        this: &GpuDevice,
365        descriptor: &GpuTextureDescriptor,
366    ) -> Result<GpuTexture, JsValue>;
367    #[cfg(web_sys_unstable_apis)]
368    # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = destroy)]
369    #[doc = "The `destroy()` method."]
370    #[doc = ""]
371    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/destroy)"]
372    #[doc = ""]
373    #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"]
374    #[doc = ""]
375    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
376    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
377    pub fn destroy(this: &GpuDevice);
378    #[cfg(web_sys_unstable_apis)]
379    #[cfg(all(
380        feature = "GpuExternalTexture",
381        feature = "GpuExternalTextureDescriptor",
382    ))]
383    # [wasm_bindgen (catch , method , structural , js_class = "GPUDevice" , js_name = importExternalTexture)]
384    #[doc = "The `importExternalTexture()` method."]
385    #[doc = ""]
386    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/importExternalTexture)"]
387    #[doc = ""]
388    #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuExternalTexture`, `GpuExternalTextureDescriptor`*"]
389    #[doc = ""]
390    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
391    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
392    pub fn import_external_texture(
393        this: &GpuDevice,
394        descriptor: &GpuExternalTextureDescriptor,
395    ) -> Result<GpuExternalTexture, JsValue>;
396    #[cfg(web_sys_unstable_apis)]
397    #[cfg(feature = "GpuError")]
398    # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = popErrorScope)]
399    #[doc = "The `popErrorScope()` method."]
400    #[doc = ""]
401    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/popErrorScope)"]
402    #[doc = ""]
403    #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuError`*"]
404    #[doc = ""]
405    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
406    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
407    pub fn pop_error_scope(this: &GpuDevice) -> ::js_sys::Promise<::js_sys::JsOption<GpuError>>;
408    #[cfg(web_sys_unstable_apis)]
409    #[cfg(feature = "GpuErrorFilter")]
410    # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = pushErrorScope)]
411    #[doc = "The `pushErrorScope()` method."]
412    #[doc = ""]
413    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/pushErrorScope)"]
414    #[doc = ""]
415    #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuErrorFilter`*"]
416    #[doc = ""]
417    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
418    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
419    pub fn push_error_scope(this: &GpuDevice, filter: GpuErrorFilter);
420}