1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[cfg(web_sys_unstable_apis)]
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderBundleEncoder , typescript_type = "GPURenderBundleEncoder")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `GpuRenderBundleEncoder` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
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 GpuRenderBundleEncoder;
18 #[cfg(web_sys_unstable_apis)]
19 # [wasm_bindgen (structural , method , getter , js_class = "GPURenderBundleEncoder" , js_name = label)]
20 #[doc = "Getter for the `label` field of this object."]
21 #[doc = ""]
22 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/label)"]
23 #[doc = ""]
24 #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
25 #[doc = ""]
26 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
27 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
28 pub fn label(this: &GpuRenderBundleEncoder) -> Option<String>;
29 #[cfg(web_sys_unstable_apis)]
30 # [wasm_bindgen (structural , method , setter , js_class = "GPURenderBundleEncoder" , js_name = label)]
31 #[doc = "Setter for the `label` field of this object."]
32 #[doc = ""]
33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/label)"]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
36 #[doc = ""]
37 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
38 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
39 pub fn set_label(this: &GpuRenderBundleEncoder, value: Option<&str>);
40 #[cfg(web_sys_unstable_apis)]
41 #[cfg(feature = "GpuRenderBundle")]
42 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = finish)]
43 #[doc = "The `finish()` method."]
44 #[doc = ""]
45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/finish)"]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundle`, `GpuRenderBundleEncoder`*"]
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 finish(this: &GpuRenderBundleEncoder) -> GpuRenderBundle;
52 #[cfg(web_sys_unstable_apis)]
53 #[cfg(all(feature = "GpuRenderBundle", feature = "GpuRenderBundleDescriptor",))]
54 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = finish)]
55 #[doc = "The `finish()` method."]
56 #[doc = ""]
57 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/finish)"]
58 #[doc = ""]
59 #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundle`, `GpuRenderBundleDescriptor`, `GpuRenderBundleEncoder`*"]
60 #[doc = ""]
61 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
62 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
63 pub fn finish_with_descriptor(
64 this: &GpuRenderBundleEncoder,
65 descriptor: &GpuRenderBundleDescriptor,
66 ) -> GpuRenderBundle;
67 #[cfg(web_sys_unstable_apis)]
68 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = insertDebugMarker)]
69 #[doc = "The `insertDebugMarker()` method."]
70 #[doc = ""]
71 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/insertDebugMarker)"]
72 #[doc = ""]
73 #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
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 insert_debug_marker(this: &GpuRenderBundleEncoder, marker_label: &str);
78 #[cfg(web_sys_unstable_apis)]
79 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = popDebugGroup)]
80 #[doc = "The `popDebugGroup()` method."]
81 #[doc = ""]
82 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/popDebugGroup)"]
83 #[doc = ""]
84 #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
85 #[doc = ""]
86 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
87 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
88 pub fn pop_debug_group(this: &GpuRenderBundleEncoder);
89 #[cfg(web_sys_unstable_apis)]
90 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = pushDebugGroup)]
91 #[doc = "The `pushDebugGroup()` method."]
92 #[doc = ""]
93 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/pushDebugGroup)"]
94 #[doc = ""]
95 #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
96 #[doc = ""]
97 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
98 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
99 pub fn push_debug_group(this: &GpuRenderBundleEncoder, group_label: &str);
100 #[cfg(web_sys_unstable_apis)]
101 #[cfg(feature = "GpuBindGroup")]
102 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setBindGroup)]
103 #[doc = "The `setBindGroup()` method."]
104 #[doc = ""]
105 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setBindGroup)"]
106 #[doc = ""]
107 #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderBundleEncoder`*"]
108 #[doc = ""]
109 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
110 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
111 pub fn set_bind_group(this: &GpuRenderBundleEncoder, index: u32, bind_group: &GpuBindGroup);
112 #[cfg(web_sys_unstable_apis)]
113 #[cfg(feature = "GpuBindGroup")]
114 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setBindGroup)]
115 #[doc = "The `setBindGroup()` method."]
116 #[doc = ""]
117 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setBindGroup)"]
118 #[doc = ""]
119 #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderBundleEncoder`*"]
120 #[doc = ""]
121 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
122 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
123 pub fn set_bind_group_with_u32_sequence(
124 this: &GpuRenderBundleEncoder,
125 index: u32,
126 bind_group: &GpuBindGroup,
127 dynamic_offsets: &::wasm_bindgen::JsValue,
128 );
129 #[cfg(web_sys_unstable_apis)]
130 #[cfg(feature = "GpuBindGroup")]
131 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setBindGroup)]
132 #[doc = "The `setBindGroup()` method."]
133 #[doc = ""]
134 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setBindGroup)"]
135 #[doc = ""]
136 #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderBundleEncoder`*"]
137 #[doc = ""]
138 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
139 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
140 pub fn set_bind_group_with_u32_array_and_u32_and_dynamic_offsets_data_length(
141 this: &GpuRenderBundleEncoder,
142 index: u32,
143 bind_group: &GpuBindGroup,
144 dynamic_offsets_data: &[u32],
145 dynamic_offsets_data_start: u32,
146 dynamic_offsets_data_length: u32,
147 );
148 #[cfg(web_sys_unstable_apis)]
149 #[cfg(feature = "GpuBindGroup")]
150 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setBindGroup)]
151 #[doc = "The `setBindGroup()` method."]
152 #[doc = ""]
153 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setBindGroup)"]
154 #[doc = ""]
155 #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderBundleEncoder`*"]
156 #[doc = ""]
157 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
158 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
159 pub fn set_bind_group_with_u32_array_and_f64_and_dynamic_offsets_data_length(
160 this: &GpuRenderBundleEncoder,
161 index: u32,
162 bind_group: &GpuBindGroup,
163 dynamic_offsets_data: &[u32],
164 dynamic_offsets_data_start: f64,
165 dynamic_offsets_data_length: u32,
166 );
167 #[cfg(web_sys_unstable_apis)]
168 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = draw)]
169 #[doc = "The `draw()` method."]
170 #[doc = ""]
171 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/draw)"]
172 #[doc = ""]
173 #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
174 #[doc = ""]
175 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
176 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
177 pub fn draw(this: &GpuRenderBundleEncoder, vertex_count: u32);
178 #[cfg(web_sys_unstable_apis)]
179 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = draw)]
180 #[doc = "The `draw()` method."]
181 #[doc = ""]
182 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/draw)"]
183 #[doc = ""]
184 #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
185 #[doc = ""]
186 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
187 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
188 pub fn draw_with_instance_count(
189 this: &GpuRenderBundleEncoder,
190 vertex_count: u32,
191 instance_count: u32,
192 );
193 #[cfg(web_sys_unstable_apis)]
194 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = draw)]
195 #[doc = "The `draw()` method."]
196 #[doc = ""]
197 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/draw)"]
198 #[doc = ""]
199 #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
200 #[doc = ""]
201 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
202 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
203 pub fn draw_with_instance_count_and_first_vertex(
204 this: &GpuRenderBundleEncoder,
205 vertex_count: u32,
206 instance_count: u32,
207 first_vertex: u32,
208 );
209 #[cfg(web_sys_unstable_apis)]
210 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = draw)]
211 #[doc = "The `draw()` method."]
212 #[doc = ""]
213 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/draw)"]
214 #[doc = ""]
215 #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
216 #[doc = ""]
217 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
218 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
219 pub fn draw_with_instance_count_and_first_vertex_and_first_instance(
220 this: &GpuRenderBundleEncoder,
221 vertex_count: u32,
222 instance_count: u32,
223 first_vertex: u32,
224 first_instance: u32,
225 );
226 #[cfg(web_sys_unstable_apis)]
227 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndexed)]
228 #[doc = "The `drawIndexed()` method."]
229 #[doc = ""]
230 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndexed)"]
231 #[doc = ""]
232 #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
233 #[doc = ""]
234 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
235 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
236 pub fn draw_indexed(this: &GpuRenderBundleEncoder, index_count: u32);
237 #[cfg(web_sys_unstable_apis)]
238 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndexed)]
239 #[doc = "The `drawIndexed()` method."]
240 #[doc = ""]
241 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndexed)"]
242 #[doc = ""]
243 #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
244 #[doc = ""]
245 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
246 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
247 pub fn draw_indexed_with_instance_count(
248 this: &GpuRenderBundleEncoder,
249 index_count: u32,
250 instance_count: u32,
251 );
252 #[cfg(web_sys_unstable_apis)]
253 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndexed)]
254 #[doc = "The `drawIndexed()` method."]
255 #[doc = ""]
256 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndexed)"]
257 #[doc = ""]
258 #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
259 #[doc = ""]
260 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
261 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
262 pub fn draw_indexed_with_instance_count_and_first_index(
263 this: &GpuRenderBundleEncoder,
264 index_count: u32,
265 instance_count: u32,
266 first_index: u32,
267 );
268 #[cfg(web_sys_unstable_apis)]
269 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndexed)]
270 #[doc = "The `drawIndexed()` method."]
271 #[doc = ""]
272 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndexed)"]
273 #[doc = ""]
274 #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
275 #[doc = ""]
276 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
277 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
278 pub fn draw_indexed_with_instance_count_and_first_index_and_base_vertex(
279 this: &GpuRenderBundleEncoder,
280 index_count: u32,
281 instance_count: u32,
282 first_index: u32,
283 base_vertex: i32,
284 );
285 #[cfg(web_sys_unstable_apis)]
286 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndexed)]
287 #[doc = "The `drawIndexed()` method."]
288 #[doc = ""]
289 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndexed)"]
290 #[doc = ""]
291 #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
292 #[doc = ""]
293 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
294 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
295 pub fn draw_indexed_with_instance_count_and_first_index_and_base_vertex_and_first_instance(
296 this: &GpuRenderBundleEncoder,
297 index_count: u32,
298 instance_count: u32,
299 first_index: u32,
300 base_vertex: i32,
301 first_instance: u32,
302 );
303 #[cfg(web_sys_unstable_apis)]
304 #[cfg(feature = "GpuBuffer")]
305 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndexedIndirect)]
306 #[doc = "The `drawIndexedIndirect()` method."]
307 #[doc = ""]
308 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect)"]
309 #[doc = ""]
310 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderBundleEncoder`*"]
311 #[doc = ""]
312 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
313 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
314 pub fn draw_indexed_indirect_with_u32(
315 this: &GpuRenderBundleEncoder,
316 indirect_buffer: &GpuBuffer,
317 indirect_offset: u32,
318 );
319 #[cfg(web_sys_unstable_apis)]
320 #[cfg(feature = "GpuBuffer")]
321 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndexedIndirect)]
322 #[doc = "The `drawIndexedIndirect()` method."]
323 #[doc = ""]
324 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect)"]
325 #[doc = ""]
326 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderBundleEncoder`*"]
327 #[doc = ""]
328 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
329 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
330 pub fn draw_indexed_indirect_with_f64(
331 this: &GpuRenderBundleEncoder,
332 indirect_buffer: &GpuBuffer,
333 indirect_offset: f64,
334 );
335 #[cfg(web_sys_unstable_apis)]
336 #[cfg(feature = "GpuBuffer")]
337 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndirect)]
338 #[doc = "The `drawIndirect()` method."]
339 #[doc = ""]
340 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndirect)"]
341 #[doc = ""]
342 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderBundleEncoder`*"]
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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
346 pub fn draw_indirect_with_u32(
347 this: &GpuRenderBundleEncoder,
348 indirect_buffer: &GpuBuffer,
349 indirect_offset: u32,
350 );
351 #[cfg(web_sys_unstable_apis)]
352 #[cfg(feature = "GpuBuffer")]
353 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndirect)]
354 #[doc = "The `drawIndirect()` method."]
355 #[doc = ""]
356 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndirect)"]
357 #[doc = ""]
358 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderBundleEncoder`*"]
359 #[doc = ""]
360 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
361 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
362 pub fn draw_indirect_with_f64(
363 this: &GpuRenderBundleEncoder,
364 indirect_buffer: &GpuBuffer,
365 indirect_offset: f64,
366 );
367 #[cfg(web_sys_unstable_apis)]
368 #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))]
369 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setIndexBuffer)]
370 #[doc = "The `setIndexBuffer()` method."]
371 #[doc = ""]
372 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer)"]
373 #[doc = ""]
374 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `GpuRenderBundleEncoder`*"]
375 #[doc = ""]
376 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
377 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
378 pub fn set_index_buffer(
379 this: &GpuRenderBundleEncoder,
380 buffer: &GpuBuffer,
381 index_format: GpuIndexFormat,
382 );
383 #[cfg(web_sys_unstable_apis)]
384 #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))]
385 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setIndexBuffer)]
386 #[doc = "The `setIndexBuffer()` method."]
387 #[doc = ""]
388 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer)"]
389 #[doc = ""]
390 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `GpuRenderBundleEncoder`*"]
391 #[doc = ""]
392 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
393 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
394 pub fn set_index_buffer_with_u32(
395 this: &GpuRenderBundleEncoder,
396 buffer: &GpuBuffer,
397 index_format: GpuIndexFormat,
398 offset: u32,
399 );
400 #[cfg(web_sys_unstable_apis)]
401 #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))]
402 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setIndexBuffer)]
403 #[doc = "The `setIndexBuffer()` method."]
404 #[doc = ""]
405 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer)"]
406 #[doc = ""]
407 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `GpuRenderBundleEncoder`*"]
408 #[doc = ""]
409 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
410 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
411 pub fn set_index_buffer_with_f64(
412 this: &GpuRenderBundleEncoder,
413 buffer: &GpuBuffer,
414 index_format: GpuIndexFormat,
415 offset: f64,
416 );
417 #[cfg(web_sys_unstable_apis)]
418 #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))]
419 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setIndexBuffer)]
420 #[doc = "The `setIndexBuffer()` method."]
421 #[doc = ""]
422 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer)"]
423 #[doc = ""]
424 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `GpuRenderBundleEncoder`*"]
425 #[doc = ""]
426 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
427 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
428 pub fn set_index_buffer_with_u32_and_u32(
429 this: &GpuRenderBundleEncoder,
430 buffer: &GpuBuffer,
431 index_format: GpuIndexFormat,
432 offset: u32,
433 size: u32,
434 );
435 #[cfg(web_sys_unstable_apis)]
436 #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))]
437 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setIndexBuffer)]
438 #[doc = "The `setIndexBuffer()` method."]
439 #[doc = ""]
440 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer)"]
441 #[doc = ""]
442 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `GpuRenderBundleEncoder`*"]
443 #[doc = ""]
444 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
445 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
446 pub fn set_index_buffer_with_f64_and_u32(
447 this: &GpuRenderBundleEncoder,
448 buffer: &GpuBuffer,
449 index_format: GpuIndexFormat,
450 offset: f64,
451 size: u32,
452 );
453 #[cfg(web_sys_unstable_apis)]
454 #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))]
455 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setIndexBuffer)]
456 #[doc = "The `setIndexBuffer()` method."]
457 #[doc = ""]
458 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer)"]
459 #[doc = ""]
460 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `GpuRenderBundleEncoder`*"]
461 #[doc = ""]
462 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
463 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
464 pub fn set_index_buffer_with_u32_and_f64(
465 this: &GpuRenderBundleEncoder,
466 buffer: &GpuBuffer,
467 index_format: GpuIndexFormat,
468 offset: u32,
469 size: f64,
470 );
471 #[cfg(web_sys_unstable_apis)]
472 #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))]
473 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setIndexBuffer)]
474 #[doc = "The `setIndexBuffer()` method."]
475 #[doc = ""]
476 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer)"]
477 #[doc = ""]
478 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `GpuRenderBundleEncoder`*"]
479 #[doc = ""]
480 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
481 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
482 pub fn set_index_buffer_with_f64_and_f64(
483 this: &GpuRenderBundleEncoder,
484 buffer: &GpuBuffer,
485 index_format: GpuIndexFormat,
486 offset: f64,
487 size: f64,
488 );
489 #[cfg(web_sys_unstable_apis)]
490 #[cfg(feature = "GpuRenderPipeline")]
491 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setPipeline)]
492 #[doc = "The `setPipeline()` method."]
493 #[doc = ""]
494 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setPipeline)"]
495 #[doc = ""]
496 #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`, `GpuRenderPipeline`*"]
497 #[doc = ""]
498 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
499 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
500 pub fn set_pipeline(this: &GpuRenderBundleEncoder, pipeline: &GpuRenderPipeline);
501 #[cfg(web_sys_unstable_apis)]
502 #[cfg(feature = "GpuBuffer")]
503 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer)]
504 #[doc = "The `setVertexBuffer()` method."]
505 #[doc = ""]
506 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer)"]
507 #[doc = ""]
508 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderBundleEncoder`*"]
509 #[doc = ""]
510 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
511 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
512 pub fn set_vertex_buffer(this: &GpuRenderBundleEncoder, slot: u32, buffer: &GpuBuffer);
513 #[cfg(web_sys_unstable_apis)]
514 #[cfg(feature = "GpuBuffer")]
515 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer)]
516 #[doc = "The `setVertexBuffer()` method."]
517 #[doc = ""]
518 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer)"]
519 #[doc = ""]
520 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderBundleEncoder`*"]
521 #[doc = ""]
522 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
523 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
524 pub fn set_vertex_buffer_with_u32(
525 this: &GpuRenderBundleEncoder,
526 slot: u32,
527 buffer: &GpuBuffer,
528 offset: u32,
529 );
530 #[cfg(web_sys_unstable_apis)]
531 #[cfg(feature = "GpuBuffer")]
532 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer)]
533 #[doc = "The `setVertexBuffer()` method."]
534 #[doc = ""]
535 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer)"]
536 #[doc = ""]
537 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderBundleEncoder`*"]
538 #[doc = ""]
539 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
540 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
541 pub fn set_vertex_buffer_with_f64(
542 this: &GpuRenderBundleEncoder,
543 slot: u32,
544 buffer: &GpuBuffer,
545 offset: f64,
546 );
547 #[cfg(web_sys_unstable_apis)]
548 #[cfg(feature = "GpuBuffer")]
549 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer)]
550 #[doc = "The `setVertexBuffer()` method."]
551 #[doc = ""]
552 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer)"]
553 #[doc = ""]
554 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderBundleEncoder`*"]
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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
558 pub fn set_vertex_buffer_with_u32_and_u32(
559 this: &GpuRenderBundleEncoder,
560 slot: u32,
561 buffer: &GpuBuffer,
562 offset: u32,
563 size: u32,
564 );
565 #[cfg(web_sys_unstable_apis)]
566 #[cfg(feature = "GpuBuffer")]
567 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer)]
568 #[doc = "The `setVertexBuffer()` method."]
569 #[doc = ""]
570 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer)"]
571 #[doc = ""]
572 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderBundleEncoder`*"]
573 #[doc = ""]
574 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
575 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
576 pub fn set_vertex_buffer_with_f64_and_u32(
577 this: &GpuRenderBundleEncoder,
578 slot: u32,
579 buffer: &GpuBuffer,
580 offset: f64,
581 size: u32,
582 );
583 #[cfg(web_sys_unstable_apis)]
584 #[cfg(feature = "GpuBuffer")]
585 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer)]
586 #[doc = "The `setVertexBuffer()` method."]
587 #[doc = ""]
588 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer)"]
589 #[doc = ""]
590 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderBundleEncoder`*"]
591 #[doc = ""]
592 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
593 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
594 pub fn set_vertex_buffer_with_u32_and_f64(
595 this: &GpuRenderBundleEncoder,
596 slot: u32,
597 buffer: &GpuBuffer,
598 offset: u32,
599 size: f64,
600 );
601 #[cfg(web_sys_unstable_apis)]
602 #[cfg(feature = "GpuBuffer")]
603 # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer)]
604 #[doc = "The `setVertexBuffer()` method."]
605 #[doc = ""]
606 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer)"]
607 #[doc = ""]
608 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderBundleEncoder`*"]
609 #[doc = ""]
610 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
611 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
612 pub fn set_vertex_buffer_with_f64_and_f64(
613 this: &GpuRenderBundleEncoder,
614 slot: u32,
615 buffer: &GpuBuffer,
616 offset: f64,
617 size: f64,
618 );
619}