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 method,
294 js_class = "GPUComputePassEncoder",
295 js_name = "insertDebugMarker"
296 )]
297 #[doc = "The `insertDebugMarker()` method."]
298 #[doc = ""]
299 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/insertDebugMarker)"]
300 #[doc = ""]
301 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
302 #[doc = ""]
303 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
304 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
305 pub fn insert_debug_marker(this: &GpuComputePassEncoder, marker_label: &str);
306 #[cfg(web_sys_unstable_apis)]
307 #[wasm_bindgen(method, js_class = "GPUComputePassEncoder", js_name = "popDebugGroup")]
308 #[doc = "The `popDebugGroup()` method."]
309 #[doc = ""]
310 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/popDebugGroup)"]
311 #[doc = ""]
312 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
313 #[doc = ""]
314 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
315 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
316 pub fn pop_debug_group(this: &GpuComputePassEncoder);
317 #[cfg(web_sys_unstable_apis)]
318 #[wasm_bindgen(method, js_class = "GPUComputePassEncoder", js_name = "pushDebugGroup")]
319 #[doc = "The `pushDebugGroup()` method."]
320 #[doc = ""]
321 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/pushDebugGroup)"]
322 #[doc = ""]
323 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
324 #[doc = ""]
325 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
326 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
327 pub fn push_debug_group(this: &GpuComputePassEncoder, group_label: &str);
328}