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