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 = :: js_sys :: Object , js_name = GPUComputePassEncoder , typescript_type = "GPUComputePassEncoder")]
9 #[derive(Debug, Clone, PartialEq, Eq)]
10 #[doc = "The `GpuComputePassEncoder` class."]
11 #[doc = ""]
12 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder)"]
13 #[doc = ""]
14 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
18 pub type GpuComputePassEncoder;
19 #[cfg(web_sys_unstable_apis)]
20 # [wasm_bindgen (structural , method , getter , js_class = "GPUComputePassEncoder" , js_name = label)]
21 #[doc = "Getter for the `label` field of this object."]
22 #[doc = ""]
23 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/label)"]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
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)*"]
29 pub fn label(this: &GpuComputePassEncoder) -> ::alloc::string::String;
30 #[cfg(web_sys_unstable_apis)]
31 # [wasm_bindgen (structural , method , setter , js_class = "GPUComputePassEncoder" , js_name = label)]
32 #[doc = "Setter for the `label` field of this object."]
33 #[doc = ""]
34 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/label)"]
35 #[doc = ""]
36 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
37 #[doc = ""]
38 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
39 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
40 pub fn set_label(this: &GpuComputePassEncoder, value: &str);
41 #[cfg(web_sys_unstable_apis)]
42 # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatchWorkgroups)]
43 #[doc = "The `dispatchWorkgroups()` method."]
44 #[doc = ""]
45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)"]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
48 #[doc = ""]
49 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
50 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
51 pub fn dispatch_workgroups(this: &GpuComputePassEncoder, workgroup_count_x: u32);
52 #[cfg(web_sys_unstable_apis)]
53 # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatchWorkgroups)]
54 #[doc = "The `dispatchWorkgroups()` method."]
55 #[doc = ""]
56 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)"]
57 #[doc = ""]
58 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
59 #[doc = ""]
60 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
61 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
62 pub fn dispatch_workgroups_with_workgroup_count_y(
63 this: &GpuComputePassEncoder,
64 workgroup_count_x: u32,
65 workgroup_count_y: u32,
66 );
67 #[cfg(web_sys_unstable_apis)]
68 # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatchWorkgroups)]
69 #[doc = "The `dispatchWorkgroups()` method."]
70 #[doc = ""]
71 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)"]
72 #[doc = ""]
73 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
74 #[doc = ""]
75 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
76 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
77 pub fn dispatch_workgroups_with_workgroup_count_y_and_workgroup_count_z(
78 this: &GpuComputePassEncoder,
79 workgroup_count_x: u32,
80 workgroup_count_y: u32,
81 workgroup_count_z: u32,
82 );
83 #[cfg(web_sys_unstable_apis)]
84 #[cfg(feature = "GpuBuffer")]
85 # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatchWorkgroupsIndirect)]
86 #[doc = "The `dispatchWorkgroupsIndirect()` method."]
87 #[doc = ""]
88 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)"]
89 #[doc = ""]
90 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuComputePassEncoder`*"]
91 #[doc = ""]
92 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
93 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
94 pub fn dispatch_workgroups_indirect_with_u32(
95 this: &GpuComputePassEncoder,
96 indirect_buffer: &GpuBuffer,
97 indirect_offset: u32,
98 );
99 #[cfg(web_sys_unstable_apis)]
100 #[cfg(feature = "GpuBuffer")]
101 # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatchWorkgroupsIndirect)]
102 #[doc = "The `dispatchWorkgroupsIndirect()` method."]
103 #[doc = ""]
104 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)"]
105 #[doc = ""]
106 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuComputePassEncoder`*"]
107 #[doc = ""]
108 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
109 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
110 pub fn dispatch_workgroups_indirect_with_f64(
111 this: &GpuComputePassEncoder,
112 indirect_buffer: &GpuBuffer,
113 indirect_offset: f64,
114 );
115 #[cfg(web_sys_unstable_apis)]
116 # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = end)]
117 #[doc = "The `end()` method."]
118 #[doc = ""]
119 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/end)"]
120 #[doc = ""]
121 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
122 #[doc = ""]
123 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
124 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
125 pub fn end(this: &GpuComputePassEncoder);
126 #[cfg(web_sys_unstable_apis)]
127 #[cfg(feature = "GpuComputePipeline")]
128 # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = setPipeline)]
129 #[doc = "The `setPipeline()` method."]
130 #[doc = ""]
131 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setPipeline)"]
132 #[doc = ""]
133 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`, `GpuComputePipeline`*"]
134 #[doc = ""]
135 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
136 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
137 pub fn set_pipeline(this: &GpuComputePassEncoder, pipeline: &GpuComputePipeline);
138 #[cfg(web_sys_unstable_apis)]
139 #[cfg(feature = "GpuBindGroup")]
140 # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup)]
141 #[doc = "The `setBindGroup()` method."]
142 #[doc = ""]
143 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"]
144 #[doc = ""]
145 #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
149 pub fn set_bind_group(
150 this: &GpuComputePassEncoder,
151 index: u32,
152 bind_group: Option<&GpuBindGroup>,
153 );
154 #[cfg(web_sys_unstable_apis)]
155 #[cfg(feature = "GpuBindGroup")]
156 # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup)]
157 #[doc = "The `setBindGroup()` method."]
158 #[doc = ""]
159 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"]
160 #[doc = ""]
161 #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuComputePassEncoder`*"]
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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
165 pub fn set_bind_group_with_u32_sequence(
166 this: &GpuComputePassEncoder,
167 index: u32,
168 bind_group: Option<&GpuBindGroup>,
169 dynamic_offsets: &::wasm_bindgen::JsValue,
170 );
171 #[cfg(web_sys_unstable_apis)]
172 #[cfg(feature = "GpuBindGroup")]
173 # [wasm_bindgen (catch , method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup)]
174 #[doc = "The `setBindGroup()` method."]
175 #[doc = ""]
176 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"]
177 #[doc = ""]
178 #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuComputePassEncoder`*"]
179 #[doc = ""]
180 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
181 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
182 pub fn set_bind_group_with_u32_slice_and_u32_and_dynamic_offsets_data_length(
183 this: &GpuComputePassEncoder,
184 index: u32,
185 bind_group: Option<&GpuBindGroup>,
186 dynamic_offsets_data: &[u32],
187 dynamic_offsets_data_start: u32,
188 dynamic_offsets_data_length: u32,
189 ) -> Result<(), JsValue>;
190 #[cfg(web_sys_unstable_apis)]
191 #[cfg(feature = "GpuBindGroup")]
192 # [wasm_bindgen (catch , method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup)]
193 #[doc = "The `setBindGroup()` method."]
194 #[doc = ""]
195 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"]
196 #[doc = ""]
197 #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuComputePassEncoder`*"]
198 #[doc = ""]
199 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
200 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
201 pub fn set_bind_group_with_u32_array_and_u32_and_dynamic_offsets_data_length(
202 this: &GpuComputePassEncoder,
203 index: u32,
204 bind_group: Option<&GpuBindGroup>,
205 dynamic_offsets_data: &::js_sys::Uint32Array,
206 dynamic_offsets_data_start: u32,
207 dynamic_offsets_data_length: u32,
208 ) -> Result<(), JsValue>;
209 #[cfg(web_sys_unstable_apis)]
210 #[cfg(feature = "GpuBindGroup")]
211 # [wasm_bindgen (catch , method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup)]
212 #[doc = "The `setBindGroup()` method."]
213 #[doc = ""]
214 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"]
215 #[doc = ""]
216 #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuComputePassEncoder`*"]
217 #[doc = ""]
218 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
219 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
220 pub fn set_bind_group_with_u32_slice_and_f64_and_dynamic_offsets_data_length(
221 this: &GpuComputePassEncoder,
222 index: u32,
223 bind_group: Option<&GpuBindGroup>,
224 dynamic_offsets_data: &[u32],
225 dynamic_offsets_data_start: f64,
226 dynamic_offsets_data_length: u32,
227 ) -> Result<(), JsValue>;
228 #[cfg(web_sys_unstable_apis)]
229 #[cfg(feature = "GpuBindGroup")]
230 # [wasm_bindgen (catch , method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup)]
231 #[doc = "The `setBindGroup()` method."]
232 #[doc = ""]
233 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"]
234 #[doc = ""]
235 #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuComputePassEncoder`*"]
236 #[doc = ""]
237 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
238 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
239 pub fn set_bind_group_with_u32_array_and_f64_and_dynamic_offsets_data_length(
240 this: &GpuComputePassEncoder,
241 index: u32,
242 bind_group: Option<&GpuBindGroup>,
243 dynamic_offsets_data: &::js_sys::Uint32Array,
244 dynamic_offsets_data_start: f64,
245 dynamic_offsets_data_length: u32,
246 ) -> Result<(), JsValue>;
247 #[cfg(web_sys_unstable_apis)]
248 # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = insertDebugMarker)]
249 #[doc = "The `insertDebugMarker()` method."]
250 #[doc = ""]
251 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/insertDebugMarker)"]
252 #[doc = ""]
253 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
254 #[doc = ""]
255 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
256 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
257 pub fn insert_debug_marker(this: &GpuComputePassEncoder, marker_label: &str);
258 #[cfg(web_sys_unstable_apis)]
259 # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = popDebugGroup)]
260 #[doc = "The `popDebugGroup()` method."]
261 #[doc = ""]
262 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/popDebugGroup)"]
263 #[doc = ""]
264 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
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)*"]
268 pub fn pop_debug_group(this: &GpuComputePassEncoder);
269 #[cfg(web_sys_unstable_apis)]
270 # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = pushDebugGroup)]
271 #[doc = "The `pushDebugGroup()` method."]
272 #[doc = ""]
273 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/pushDebugGroup)"]
274 #[doc = ""]
275 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
276 #[doc = ""]
277 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
278 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
279 pub fn push_debug_group(this: &GpuComputePassEncoder, group_label: &str);
280}