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(
9 extends = "::js_sys::Object",
10 js_name = "GPUComputePassEncoder",
11 typescript_type = "GPUComputePassEncoder"
12 )]
13 #[derive(Debug, Clone, PartialEq, Eq)]
14 #[doc = "The `GpuComputePassEncoder` class."]
15 #[doc = ""]
16 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder)"]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
19 #[doc = ""]
20 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
21 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
22 pub type GpuComputePassEncoder;
23 #[cfg(web_sys_unstable_apis)]
24 #[wasm_bindgen(method, getter, js_class = "GPUComputePassEncoder", js_name = "label")]
25 #[doc = "Getter for the `label` field of this object."]
26 #[doc = ""]
27 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/label)"]
28 #[doc = ""]
29 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
30 #[doc = ""]
31 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
32 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
33 pub fn label(this: &GpuComputePassEncoder) -> ::alloc::string::String;
34 #[cfg(web_sys_unstable_apis)]
35 #[wasm_bindgen(method, setter, js_class = "GPUComputePassEncoder", js_name = "label")]
36 #[doc = "Setter for the `label` field of this object."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/label)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
41 #[doc = ""]
42 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
43 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
44 pub fn set_label(this: &GpuComputePassEncoder, value: &str);
45 #[cfg(web_sys_unstable_apis)]
46 #[wasm_bindgen(
47 method,
48 js_class = "GPUComputePassEncoder",
49 js_name = "dispatchWorkgroups"
50 )]
51 #[doc = "The `dispatchWorkgroups()` method."]
52 #[doc = ""]
53 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)"]
54 #[doc = ""]
55 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
56 #[doc = ""]
57 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
58 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
59 pub fn dispatch_workgroups(this: &GpuComputePassEncoder, workgroup_count_x: u32);
60 #[cfg(web_sys_unstable_apis)]
61 #[wasm_bindgen(
62 method,
63 js_class = "GPUComputePassEncoder",
64 js_name = "dispatchWorkgroups"
65 )]
66 #[doc = "The `dispatchWorkgroups()` method."]
67 #[doc = ""]
68 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)"]
69 #[doc = ""]
70 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
71 #[doc = ""]
72 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
73 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
74 pub fn dispatch_workgroups_with_workgroup_count_y(
75 this: &GpuComputePassEncoder,
76 workgroup_count_x: u32,
77 workgroup_count_y: u32,
78 );
79 #[cfg(web_sys_unstable_apis)]
80 #[wasm_bindgen(
81 method,
82 js_class = "GPUComputePassEncoder",
83 js_name = "dispatchWorkgroups"
84 )]
85 #[doc = "The `dispatchWorkgroups()` method."]
86 #[doc = ""]
87 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)"]
88 #[doc = ""]
89 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
90 #[doc = ""]
91 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
92 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
93 pub fn dispatch_workgroups_with_workgroup_count_y_and_workgroup_count_z(
94 this: &GpuComputePassEncoder,
95 workgroup_count_x: u32,
96 workgroup_count_y: u32,
97 workgroup_count_z: u32,
98 );
99 #[cfg(web_sys_unstable_apis)]
100 #[cfg(feature = "GpuBuffer")]
101 #[wasm_bindgen(
102 method,
103 js_class = "GPUComputePassEncoder",
104 js_name = "dispatchWorkgroupsIndirect"
105 )]
106 #[doc = "The `dispatchWorkgroupsIndirect()` method."]
107 #[doc = ""]
108 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)"]
109 #[doc = ""]
110 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuComputePassEncoder`*"]
111 #[doc = ""]
112 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
113 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
114 pub fn dispatch_workgroups_indirect_with_u32(
115 this: &GpuComputePassEncoder,
116 indirect_buffer: &GpuBuffer,
117 indirect_offset: u32,
118 );
119 #[cfg(web_sys_unstable_apis)]
120 #[cfg(feature = "GpuBuffer")]
121 #[wasm_bindgen(
122 method,
123 js_class = "GPUComputePassEncoder",
124 js_name = "dispatchWorkgroupsIndirect"
125 )]
126 #[doc = "The `dispatchWorkgroupsIndirect()` method."]
127 #[doc = ""]
128 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)"]
129 #[doc = ""]
130 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuComputePassEncoder`*"]
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 dispatch_workgroups_indirect_with_f64(
135 this: &GpuComputePassEncoder,
136 indirect_buffer: &GpuBuffer,
137 indirect_offset: f64,
138 );
139 #[cfg(web_sys_unstable_apis)]
140 #[wasm_bindgen(method, js_class = "GPUComputePassEncoder")]
141 #[doc = "The `end()` method."]
142 #[doc = ""]
143 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/end)"]
144 #[doc = ""]
145 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
149 pub fn end(this: &GpuComputePassEncoder);
150 #[cfg(web_sys_unstable_apis)]
151 #[cfg(feature = "GpuComputePipeline")]
152 #[wasm_bindgen(method, js_class = "GPUComputePassEncoder", js_name = "setPipeline")]
153 #[doc = "The `setPipeline()` method."]
154 #[doc = ""]
155 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setPipeline)"]
156 #[doc = ""]
157 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`, `GpuComputePipeline`*"]
158 #[doc = ""]
159 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
160 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
161 pub fn set_pipeline(this: &GpuComputePassEncoder, pipeline: &GpuComputePipeline);
162 #[cfg(web_sys_unstable_apis)]
163 #[cfg(feature = "GpuBindGroup")]
164 #[wasm_bindgen(method, js_class = "GPUComputePassEncoder", js_name = "setBindGroup")]
165 #[doc = "The `setBindGroup()` method."]
166 #[doc = ""]
167 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"]
168 #[doc = ""]
169 #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuComputePassEncoder`*"]
170 #[doc = ""]
171 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
172 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
173 pub fn set_bind_group(
174 this: &GpuComputePassEncoder,
175 index: u32,
176 bind_group: Option<&GpuBindGroup>,
177 );
178 #[cfg(web_sys_unstable_apis)]
179 #[cfg(feature = "GpuBindGroup")]
180 #[wasm_bindgen(method, js_class = "GPUComputePassEncoder", js_name = "setBindGroup")]
181 #[doc = "The `setBindGroup()` method."]
182 #[doc = ""]
183 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"]
184 #[doc = ""]
185 #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuComputePassEncoder`*"]
186 #[doc = ""]
187 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
188 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
189 pub fn set_bind_group_with_u32_sequence(
190 this: &GpuComputePassEncoder,
191 index: u32,
192 bind_group: Option<&GpuBindGroup>,
193 dynamic_offsets: &[::js_sys::Number],
194 );
195 #[cfg(web_sys_unstable_apis)]
196 #[cfg(feature = "GpuBindGroup")]
197 #[wasm_bindgen(
198 catch,
199 method,
200 js_class = "GPUComputePassEncoder",
201 js_name = "setBindGroup"
202 )]
203 #[doc = "The `setBindGroup()` method."]
204 #[doc = ""]
205 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"]
206 #[doc = ""]
207 #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuComputePassEncoder`*"]
208 #[doc = ""]
209 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
210 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
211 pub fn set_bind_group_with_u32_slice_and_u32_and_dynamic_offsets_data_length(
212 this: &GpuComputePassEncoder,
213 index: u32,
214 bind_group: Option<&GpuBindGroup>,
215 dynamic_offsets_data: &[u32],
216 dynamic_offsets_data_start: u32,
217 dynamic_offsets_data_length: u32,
218 ) -> Result<(), JsValue>;
219 #[cfg(web_sys_unstable_apis)]
220 #[cfg(feature = "GpuBindGroup")]
221 #[wasm_bindgen(
222 catch,
223 method,
224 js_class = "GPUComputePassEncoder",
225 js_name = "setBindGroup"
226 )]
227 #[doc = "The `setBindGroup()` method."]
228 #[doc = ""]
229 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"]
230 #[doc = ""]
231 #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuComputePassEncoder`*"]
232 #[doc = ""]
233 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
234 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
235 pub fn set_bind_group_with_u32_array_and_u32_and_dynamic_offsets_data_length(
236 this: &GpuComputePassEncoder,
237 index: u32,
238 bind_group: Option<&GpuBindGroup>,
239 dynamic_offsets_data: &::js_sys::Uint32Array,
240 dynamic_offsets_data_start: u32,
241 dynamic_offsets_data_length: u32,
242 ) -> Result<(), JsValue>;
243 #[cfg(web_sys_unstable_apis)]
244 #[cfg(feature = "GpuBindGroup")]
245 #[wasm_bindgen(
246 catch,
247 method,
248 js_class = "GPUComputePassEncoder",
249 js_name = "setBindGroup"
250 )]
251 #[doc = "The `setBindGroup()` method."]
252 #[doc = ""]
253 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"]
254 #[doc = ""]
255 #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuComputePassEncoder`*"]
256 #[doc = ""]
257 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
258 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
259 pub fn set_bind_group_with_u32_slice_and_f64_and_dynamic_offsets_data_length(
260 this: &GpuComputePassEncoder,
261 index: u32,
262 bind_group: Option<&GpuBindGroup>,
263 dynamic_offsets_data: &[u32],
264 dynamic_offsets_data_start: f64,
265 dynamic_offsets_data_length: u32,
266 ) -> Result<(), JsValue>;
267 #[cfg(web_sys_unstable_apis)]
268 #[cfg(feature = "GpuBindGroup")]
269 #[wasm_bindgen(
270 catch,
271 method,
272 js_class = "GPUComputePassEncoder",
273 js_name = "setBindGroup"
274 )]
275 #[doc = "The `setBindGroup()` method."]
276 #[doc = ""]
277 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"]
278 #[doc = ""]
279 #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuComputePassEncoder`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
283 pub fn set_bind_group_with_u32_array_and_f64_and_dynamic_offsets_data_length(
284 this: &GpuComputePassEncoder,
285 index: u32,
286 bind_group: Option<&GpuBindGroup>,
287 dynamic_offsets_data: &::js_sys::Uint32Array,
288 dynamic_offsets_data_start: f64,
289 dynamic_offsets_data_length: u32,
290 ) -> Result<(), JsValue>;
291 #[cfg(web_sys_unstable_apis)]
292 #[wasm_bindgen(
293 catch,
294 method,
295 js_class = "GPUComputePassEncoder",
296 js_name = "setImmediates"
297 )]
298 #[doc = "The `setImmediates()` method."]
299 #[doc = ""]
300 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"]
301 #[doc = ""]
302 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
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 set_immediates_with_buffer_source(
307 this: &GpuComputePassEncoder,
308 range_offset: u32,
309 data: &::js_sys::Object,
310 ) -> Result<(), JsValue>;
311 #[cfg(web_sys_unstable_apis)]
312 #[wasm_bindgen(
313 catch,
314 method,
315 js_class = "GPUComputePassEncoder",
316 js_name = "setImmediates"
317 )]
318 #[doc = "The `setImmediates()` method."]
319 #[doc = ""]
320 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"]
321 #[doc = ""]
322 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
323 #[doc = ""]
324 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
325 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
326 pub fn set_immediates_with_u8_slice(
327 this: &GpuComputePassEncoder,
328 range_offset: u32,
329 data: &mut [u8],
330 ) -> Result<(), JsValue>;
331 #[cfg(web_sys_unstable_apis)]
332 #[wasm_bindgen(
333 catch,
334 method,
335 js_class = "GPUComputePassEncoder",
336 js_name = "setImmediates"
337 )]
338 #[doc = "The `setImmediates()` method."]
339 #[doc = ""]
340 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"]
341 #[doc = ""]
342 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
343 #[doc = ""]
344 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
345 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
346 pub fn set_immediates_with_u8_array(
347 this: &GpuComputePassEncoder,
348 range_offset: u32,
349 data: &::js_sys::Uint8Array,
350 ) -> Result<(), JsValue>;
351 #[cfg(web_sys_unstable_apis)]
352 #[wasm_bindgen(
353 catch,
354 method,
355 js_class = "GPUComputePassEncoder",
356 js_name = "setImmediates"
357 )]
358 #[doc = "The `setImmediates()` method."]
359 #[doc = ""]
360 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"]
361 #[doc = ""]
362 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
366 pub fn set_immediates_with_buffer_source_and_u32(
367 this: &GpuComputePassEncoder,
368 range_offset: u32,
369 data: &::js_sys::Object,
370 data_offset: u32,
371 ) -> Result<(), JsValue>;
372 #[cfg(web_sys_unstable_apis)]
373 #[wasm_bindgen(
374 catch,
375 method,
376 js_class = "GPUComputePassEncoder",
377 js_name = "setImmediates"
378 )]
379 #[doc = "The `setImmediates()` method."]
380 #[doc = ""]
381 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"]
382 #[doc = ""]
383 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
384 #[doc = ""]
385 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
386 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
387 pub fn set_immediates_with_u8_slice_and_u32(
388 this: &GpuComputePassEncoder,
389 range_offset: u32,
390 data: &mut [u8],
391 data_offset: u32,
392 ) -> Result<(), JsValue>;
393 #[cfg(web_sys_unstable_apis)]
394 #[wasm_bindgen(
395 catch,
396 method,
397 js_class = "GPUComputePassEncoder",
398 js_name = "setImmediates"
399 )]
400 #[doc = "The `setImmediates()` method."]
401 #[doc = ""]
402 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"]
403 #[doc = ""]
404 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
405 #[doc = ""]
406 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
407 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
408 pub fn set_immediates_with_u8_array_and_u32(
409 this: &GpuComputePassEncoder,
410 range_offset: u32,
411 data: &::js_sys::Uint8Array,
412 data_offset: u32,
413 ) -> Result<(), JsValue>;
414 #[cfg(web_sys_unstable_apis)]
415 #[wasm_bindgen(
416 catch,
417 method,
418 js_class = "GPUComputePassEncoder",
419 js_name = "setImmediates"
420 )]
421 #[doc = "The `setImmediates()` method."]
422 #[doc = ""]
423 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"]
424 #[doc = ""]
425 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
426 #[doc = ""]
427 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
428 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
429 pub fn set_immediates_with_buffer_source_and_f64(
430 this: &GpuComputePassEncoder,
431 range_offset: u32,
432 data: &::js_sys::Object,
433 data_offset: f64,
434 ) -> Result<(), JsValue>;
435 #[cfg(web_sys_unstable_apis)]
436 #[wasm_bindgen(
437 catch,
438 method,
439 js_class = "GPUComputePassEncoder",
440 js_name = "setImmediates"
441 )]
442 #[doc = "The `setImmediates()` method."]
443 #[doc = ""]
444 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"]
445 #[doc = ""]
446 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
447 #[doc = ""]
448 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
449 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
450 pub fn set_immediates_with_u8_slice_and_f64(
451 this: &GpuComputePassEncoder,
452 range_offset: u32,
453 data: &mut [u8],
454 data_offset: f64,
455 ) -> Result<(), JsValue>;
456 #[cfg(web_sys_unstable_apis)]
457 #[wasm_bindgen(
458 catch,
459 method,
460 js_class = "GPUComputePassEncoder",
461 js_name = "setImmediates"
462 )]
463 #[doc = "The `setImmediates()` method."]
464 #[doc = ""]
465 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"]
466 #[doc = ""]
467 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
468 #[doc = ""]
469 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
470 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
471 pub fn set_immediates_with_u8_array_and_f64(
472 this: &GpuComputePassEncoder,
473 range_offset: u32,
474 data: &::js_sys::Uint8Array,
475 data_offset: f64,
476 ) -> Result<(), JsValue>;
477 #[cfg(web_sys_unstable_apis)]
478 #[wasm_bindgen(
479 catch,
480 method,
481 js_class = "GPUComputePassEncoder",
482 js_name = "setImmediates"
483 )]
484 #[doc = "The `setImmediates()` method."]
485 #[doc = ""]
486 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"]
487 #[doc = ""]
488 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
489 #[doc = ""]
490 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
491 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
492 pub fn set_immediates_with_buffer_source_and_u32_and_u32(
493 this: &GpuComputePassEncoder,
494 range_offset: u32,
495 data: &::js_sys::Object,
496 data_offset: u32,
497 data_size: u32,
498 ) -> Result<(), JsValue>;
499 #[cfg(web_sys_unstable_apis)]
500 #[wasm_bindgen(
501 catch,
502 method,
503 js_class = "GPUComputePassEncoder",
504 js_name = "setImmediates"
505 )]
506 #[doc = "The `setImmediates()` method."]
507 #[doc = ""]
508 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"]
509 #[doc = ""]
510 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
511 #[doc = ""]
512 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
513 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
514 pub fn set_immediates_with_u8_slice_and_u32_and_u32(
515 this: &GpuComputePassEncoder,
516 range_offset: u32,
517 data: &mut [u8],
518 data_offset: u32,
519 data_size: u32,
520 ) -> Result<(), JsValue>;
521 #[cfg(web_sys_unstable_apis)]
522 #[wasm_bindgen(
523 catch,
524 method,
525 js_class = "GPUComputePassEncoder",
526 js_name = "setImmediates"
527 )]
528 #[doc = "The `setImmediates()` method."]
529 #[doc = ""]
530 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"]
531 #[doc = ""]
532 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
533 #[doc = ""]
534 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
535 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
536 pub fn set_immediates_with_u8_array_and_u32_and_u32(
537 this: &GpuComputePassEncoder,
538 range_offset: u32,
539 data: &::js_sys::Uint8Array,
540 data_offset: u32,
541 data_size: u32,
542 ) -> Result<(), JsValue>;
543 #[cfg(web_sys_unstable_apis)]
544 #[wasm_bindgen(
545 catch,
546 method,
547 js_class = "GPUComputePassEncoder",
548 js_name = "setImmediates"
549 )]
550 #[doc = "The `setImmediates()` method."]
551 #[doc = ""]
552 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"]
553 #[doc = ""]
554 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
555 #[doc = ""]
556 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
557 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
558 pub fn set_immediates_with_buffer_source_and_f64_and_u32(
559 this: &GpuComputePassEncoder,
560 range_offset: u32,
561 data: &::js_sys::Object,
562 data_offset: f64,
563 data_size: u32,
564 ) -> Result<(), JsValue>;
565 #[cfg(web_sys_unstable_apis)]
566 #[wasm_bindgen(
567 catch,
568 method,
569 js_class = "GPUComputePassEncoder",
570 js_name = "setImmediates"
571 )]
572 #[doc = "The `setImmediates()` method."]
573 #[doc = ""]
574 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"]
575 #[doc = ""]
576 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
577 #[doc = ""]
578 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
579 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
580 pub fn set_immediates_with_u8_slice_and_f64_and_u32(
581 this: &GpuComputePassEncoder,
582 range_offset: u32,
583 data: &mut [u8],
584 data_offset: f64,
585 data_size: u32,
586 ) -> Result<(), JsValue>;
587 #[cfg(web_sys_unstable_apis)]
588 #[wasm_bindgen(
589 catch,
590 method,
591 js_class = "GPUComputePassEncoder",
592 js_name = "setImmediates"
593 )]
594 #[doc = "The `setImmediates()` method."]
595 #[doc = ""]
596 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"]
597 #[doc = ""]
598 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
599 #[doc = ""]
600 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
601 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
602 pub fn set_immediates_with_u8_array_and_f64_and_u32(
603 this: &GpuComputePassEncoder,
604 range_offset: u32,
605 data: &::js_sys::Uint8Array,
606 data_offset: f64,
607 data_size: u32,
608 ) -> Result<(), JsValue>;
609 #[cfg(web_sys_unstable_apis)]
610 #[wasm_bindgen(
611 catch,
612 method,
613 js_class = "GPUComputePassEncoder",
614 js_name = "setImmediates"
615 )]
616 #[doc = "The `setImmediates()` method."]
617 #[doc = ""]
618 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"]
619 #[doc = ""]
620 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
621 #[doc = ""]
622 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
623 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
624 pub fn set_immediates_with_buffer_source_and_u32_and_f64(
625 this: &GpuComputePassEncoder,
626 range_offset: u32,
627 data: &::js_sys::Object,
628 data_offset: u32,
629 data_size: f64,
630 ) -> Result<(), JsValue>;
631 #[cfg(web_sys_unstable_apis)]
632 #[wasm_bindgen(
633 catch,
634 method,
635 js_class = "GPUComputePassEncoder",
636 js_name = "setImmediates"
637 )]
638 #[doc = "The `setImmediates()` method."]
639 #[doc = ""]
640 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"]
641 #[doc = ""]
642 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
643 #[doc = ""]
644 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
645 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
646 pub fn set_immediates_with_u8_slice_and_u32_and_f64(
647 this: &GpuComputePassEncoder,
648 range_offset: u32,
649 data: &mut [u8],
650 data_offset: u32,
651 data_size: f64,
652 ) -> Result<(), JsValue>;
653 #[cfg(web_sys_unstable_apis)]
654 #[wasm_bindgen(
655 catch,
656 method,
657 js_class = "GPUComputePassEncoder",
658 js_name = "setImmediates"
659 )]
660 #[doc = "The `setImmediates()` method."]
661 #[doc = ""]
662 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"]
663 #[doc = ""]
664 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
665 #[doc = ""]
666 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
667 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
668 pub fn set_immediates_with_u8_array_and_u32_and_f64(
669 this: &GpuComputePassEncoder,
670 range_offset: u32,
671 data: &::js_sys::Uint8Array,
672 data_offset: u32,
673 data_size: f64,
674 ) -> Result<(), JsValue>;
675 #[cfg(web_sys_unstable_apis)]
676 #[wasm_bindgen(
677 catch,
678 method,
679 js_class = "GPUComputePassEncoder",
680 js_name = "setImmediates"
681 )]
682 #[doc = "The `setImmediates()` method."]
683 #[doc = ""]
684 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"]
685 #[doc = ""]
686 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
687 #[doc = ""]
688 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
689 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
690 pub fn set_immediates_with_buffer_source_and_f64_and_f64(
691 this: &GpuComputePassEncoder,
692 range_offset: u32,
693 data: &::js_sys::Object,
694 data_offset: f64,
695 data_size: f64,
696 ) -> Result<(), JsValue>;
697 #[cfg(web_sys_unstable_apis)]
698 #[wasm_bindgen(
699 catch,
700 method,
701 js_class = "GPUComputePassEncoder",
702 js_name = "setImmediates"
703 )]
704 #[doc = "The `setImmediates()` method."]
705 #[doc = ""]
706 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"]
707 #[doc = ""]
708 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
709 #[doc = ""]
710 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
711 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
712 pub fn set_immediates_with_u8_slice_and_f64_and_f64(
713 this: &GpuComputePassEncoder,
714 range_offset: u32,
715 data: &mut [u8],
716 data_offset: f64,
717 data_size: f64,
718 ) -> Result<(), JsValue>;
719 #[cfg(web_sys_unstable_apis)]
720 #[wasm_bindgen(
721 catch,
722 method,
723 js_class = "GPUComputePassEncoder",
724 js_name = "setImmediates"
725 )]
726 #[doc = "The `setImmediates()` method."]
727 #[doc = ""]
728 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"]
729 #[doc = ""]
730 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
731 #[doc = ""]
732 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
733 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
734 pub fn set_immediates_with_u8_array_and_f64_and_f64(
735 this: &GpuComputePassEncoder,
736 range_offset: u32,
737 data: &::js_sys::Uint8Array,
738 data_offset: f64,
739 data_size: f64,
740 ) -> Result<(), JsValue>;
741 #[cfg(web_sys_unstable_apis)]
742 #[wasm_bindgen(
743 method,
744 js_class = "GPUComputePassEncoder",
745 js_name = "insertDebugMarker"
746 )]
747 #[doc = "The `insertDebugMarker()` method."]
748 #[doc = ""]
749 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/insertDebugMarker)"]
750 #[doc = ""]
751 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
752 #[doc = ""]
753 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
754 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
755 pub fn insert_debug_marker(this: &GpuComputePassEncoder, marker_label: &str);
756 #[cfg(web_sys_unstable_apis)]
757 #[wasm_bindgen(method, js_class = "GPUComputePassEncoder", js_name = "popDebugGroup")]
758 #[doc = "The `popDebugGroup()` method."]
759 #[doc = ""]
760 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/popDebugGroup)"]
761 #[doc = ""]
762 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
763 #[doc = ""]
764 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
765 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
766 pub fn pop_debug_group(this: &GpuComputePassEncoder);
767 #[cfg(web_sys_unstable_apis)]
768 #[wasm_bindgen(method, js_class = "GPUComputePassEncoder", js_name = "pushDebugGroup")]
769 #[doc = "The `pushDebugGroup()` method."]
770 #[doc = ""]
771 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/pushDebugGroup)"]
772 #[doc = ""]
773 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
774 #[doc = ""]
775 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
776 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
777 pub fn push_debug_group(this: &GpuComputePassEncoder, group_label: &str);
778}