Skip to main content

web_sys/features/
gen_GpuRenderPassEncoder.rs

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 = GPURenderPassEncoder , typescript_type = "GPURenderPassEncoder")]
9    #[derive(Debug, Clone, PartialEq, Eq)]
10    #[doc = "The `GpuRenderPassEncoder` class."]
11    #[doc = ""]
12    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder)"]
13    #[doc = ""]
14    #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
18    pub type GpuRenderPassEncoder;
19    #[cfg(web_sys_unstable_apis)]
20    # [wasm_bindgen (structural , method , getter , js_class = "GPURenderPassEncoder" , 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/GPURenderPassEncoder/label)"]
24    #[doc = ""]
25    #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
29    pub fn label(this: &GpuRenderPassEncoder) -> ::alloc::string::String;
30    #[cfg(web_sys_unstable_apis)]
31    # [wasm_bindgen (structural , method , setter , js_class = "GPURenderPassEncoder" , 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/GPURenderPassEncoder/label)"]
35    #[doc = ""]
36    #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
40    pub fn set_label(this: &GpuRenderPassEncoder, value: &str);
41    #[cfg(web_sys_unstable_apis)]
42    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = beginOcclusionQuery)]
43    #[doc = "The `beginOcclusionQuery()` method."]
44    #[doc = ""]
45    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/beginOcclusionQuery)"]
46    #[doc = ""]
47    #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
51    pub fn begin_occlusion_query(this: &GpuRenderPassEncoder, query_index: u32);
52    #[cfg(web_sys_unstable_apis)]
53    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = end)]
54    #[doc = "The `end()` method."]
55    #[doc = ""]
56    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/end)"]
57    #[doc = ""]
58    #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
62    pub fn end(this: &GpuRenderPassEncoder);
63    #[cfg(web_sys_unstable_apis)]
64    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = endOcclusionQuery)]
65    #[doc = "The `endOcclusionQuery()` method."]
66    #[doc = ""]
67    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/endOcclusionQuery)"]
68    #[doc = ""]
69    #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
70    #[doc = ""]
71    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
72    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
73    pub fn end_occlusion_query(this: &GpuRenderPassEncoder);
74    #[cfg(web_sys_unstable_apis)]
75    #[cfg(feature = "GpuRenderBundle")]
76    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = executeBundles)]
77    #[doc = "The `executeBundles()` method."]
78    #[doc = ""]
79    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/executeBundles)"]
80    #[doc = ""]
81    #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundle`, `GpuRenderPassEncoder`*"]
82    #[doc = ""]
83    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
84    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
85    pub fn execute_bundles(this: &GpuRenderPassEncoder, bundles: &[GpuRenderBundle]);
86    #[cfg(web_sys_unstable_apis)]
87    # [wasm_bindgen (catch , method , structural , js_class = "GPURenderPassEncoder" , js_name = setBlendConstant)]
88    #[doc = "The `setBlendConstant()` method."]
89    #[doc = ""]
90    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBlendConstant)"]
91    #[doc = ""]
92    #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
93    #[doc = ""]
94    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
95    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
96    pub fn set_blend_constant_with_f64_sequence(
97        this: &GpuRenderPassEncoder,
98        color: &[::js_sys::Number],
99    ) -> Result<(), JsValue>;
100    #[cfg(web_sys_unstable_apis)]
101    #[cfg(feature = "GpuColorDict")]
102    # [wasm_bindgen (catch , method , structural , js_class = "GPURenderPassEncoder" , js_name = setBlendConstant)]
103    #[doc = "The `setBlendConstant()` method."]
104    #[doc = ""]
105    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBlendConstant)"]
106    #[doc = ""]
107    #[doc = "*This API requires the following crate features to be activated: `GpuColorDict`, `GpuRenderPassEncoder`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
111    pub fn set_blend_constant_with_gpu_color_dict(
112        this: &GpuRenderPassEncoder,
113        color: &GpuColorDict,
114    ) -> Result<(), JsValue>;
115    #[cfg(web_sys_unstable_apis)]
116    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setScissorRect)]
117    #[doc = "The `setScissorRect()` method."]
118    #[doc = ""]
119    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setScissorRect)"]
120    #[doc = ""]
121    #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
125    pub fn set_scissor_rect(this: &GpuRenderPassEncoder, x: u32, y: u32, width: u32, height: u32);
126    #[cfg(web_sys_unstable_apis)]
127    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setStencilReference)]
128    #[doc = "The `setStencilReference()` method."]
129    #[doc = ""]
130    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setStencilReference)"]
131    #[doc = ""]
132    #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
133    #[doc = ""]
134    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
135    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
136    pub fn set_stencil_reference(this: &GpuRenderPassEncoder, reference: u32);
137    #[cfg(web_sys_unstable_apis)]
138    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setViewport)]
139    #[doc = "The `setViewport()` method."]
140    #[doc = ""]
141    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setViewport)"]
142    #[doc = ""]
143    #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
144    #[doc = ""]
145    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
146    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
147    pub fn set_viewport(
148        this: &GpuRenderPassEncoder,
149        x: f32,
150        y: f32,
151        width: f32,
152        height: f32,
153        min_depth: f32,
154        max_depth: f32,
155    );
156    #[cfg(web_sys_unstable_apis)]
157    #[cfg(feature = "GpuBindGroup")]
158    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup)]
159    #[doc = "The `setBindGroup()` method."]
160    #[doc = ""]
161    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"]
162    #[doc = ""]
163    #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderPassEncoder`*"]
164    #[doc = ""]
165    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
166    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
167    pub fn set_bind_group(
168        this: &GpuRenderPassEncoder,
169        index: u32,
170        bind_group: Option<&GpuBindGroup>,
171    );
172    #[cfg(web_sys_unstable_apis)]
173    #[cfg(feature = "GpuBindGroup")]
174    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup)]
175    #[doc = "The `setBindGroup()` method."]
176    #[doc = ""]
177    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"]
178    #[doc = ""]
179    #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderPassEncoder`*"]
180    #[doc = ""]
181    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
182    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
183    pub fn set_bind_group_with_u32_sequence(
184        this: &GpuRenderPassEncoder,
185        index: u32,
186        bind_group: Option<&GpuBindGroup>,
187        dynamic_offsets: &[::js_sys::Number],
188    );
189    #[cfg(web_sys_unstable_apis)]
190    #[cfg(feature = "GpuBindGroup")]
191    # [wasm_bindgen (catch , method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup)]
192    #[doc = "The `setBindGroup()` method."]
193    #[doc = ""]
194    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"]
195    #[doc = ""]
196    #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderPassEncoder`*"]
197    #[doc = ""]
198    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
199    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
200    pub fn set_bind_group_with_u32_slice_and_u32_and_dynamic_offsets_data_length(
201        this: &GpuRenderPassEncoder,
202        index: u32,
203        bind_group: Option<&GpuBindGroup>,
204        dynamic_offsets_data: &[u32],
205        dynamic_offsets_data_start: u32,
206        dynamic_offsets_data_length: u32,
207    ) -> Result<(), JsValue>;
208    #[cfg(web_sys_unstable_apis)]
209    #[cfg(feature = "GpuBindGroup")]
210    # [wasm_bindgen (catch , method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup)]
211    #[doc = "The `setBindGroup()` method."]
212    #[doc = ""]
213    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"]
214    #[doc = ""]
215    #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderPassEncoder`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
219    pub fn set_bind_group_with_u32_array_and_u32_and_dynamic_offsets_data_length(
220        this: &GpuRenderPassEncoder,
221        index: u32,
222        bind_group: Option<&GpuBindGroup>,
223        dynamic_offsets_data: &::js_sys::Uint32Array,
224        dynamic_offsets_data_start: u32,
225        dynamic_offsets_data_length: u32,
226    ) -> Result<(), JsValue>;
227    #[cfg(web_sys_unstable_apis)]
228    #[cfg(feature = "GpuBindGroup")]
229    # [wasm_bindgen (catch , method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup)]
230    #[doc = "The `setBindGroup()` method."]
231    #[doc = ""]
232    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"]
233    #[doc = ""]
234    #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderPassEncoder`*"]
235    #[doc = ""]
236    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
237    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
238    pub fn set_bind_group_with_u32_slice_and_f64_and_dynamic_offsets_data_length(
239        this: &GpuRenderPassEncoder,
240        index: u32,
241        bind_group: Option<&GpuBindGroup>,
242        dynamic_offsets_data: &[u32],
243        dynamic_offsets_data_start: f64,
244        dynamic_offsets_data_length: u32,
245    ) -> Result<(), JsValue>;
246    #[cfg(web_sys_unstable_apis)]
247    #[cfg(feature = "GpuBindGroup")]
248    # [wasm_bindgen (catch , method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup)]
249    #[doc = "The `setBindGroup()` method."]
250    #[doc = ""]
251    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"]
252    #[doc = ""]
253    #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderPassEncoder`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
257    pub fn set_bind_group_with_u32_array_and_f64_and_dynamic_offsets_data_length(
258        this: &GpuRenderPassEncoder,
259        index: u32,
260        bind_group: Option<&GpuBindGroup>,
261        dynamic_offsets_data: &::js_sys::Uint32Array,
262        dynamic_offsets_data_start: f64,
263        dynamic_offsets_data_length: u32,
264    ) -> Result<(), JsValue>;
265    #[cfg(web_sys_unstable_apis)]
266    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = insertDebugMarker)]
267    #[doc = "The `insertDebugMarker()` method."]
268    #[doc = ""]
269    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/insertDebugMarker)"]
270    #[doc = ""]
271    #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
272    #[doc = ""]
273    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
274    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
275    pub fn insert_debug_marker(this: &GpuRenderPassEncoder, marker_label: &str);
276    #[cfg(web_sys_unstable_apis)]
277    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = popDebugGroup)]
278    #[doc = "The `popDebugGroup()` method."]
279    #[doc = ""]
280    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/popDebugGroup)"]
281    #[doc = ""]
282    #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
283    #[doc = ""]
284    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
285    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
286    pub fn pop_debug_group(this: &GpuRenderPassEncoder);
287    #[cfg(web_sys_unstable_apis)]
288    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = pushDebugGroup)]
289    #[doc = "The `pushDebugGroup()` method."]
290    #[doc = ""]
291    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/pushDebugGroup)"]
292    #[doc = ""]
293    #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
294    #[doc = ""]
295    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
296    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
297    pub fn push_debug_group(this: &GpuRenderPassEncoder, group_label: &str);
298    #[cfg(web_sys_unstable_apis)]
299    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = draw)]
300    #[doc = "The `draw()` method."]
301    #[doc = ""]
302    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/draw)"]
303    #[doc = ""]
304    #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
305    #[doc = ""]
306    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
307    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
308    pub fn draw(this: &GpuRenderPassEncoder, vertex_count: u32);
309    #[cfg(web_sys_unstable_apis)]
310    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = draw)]
311    #[doc = "The `draw()` method."]
312    #[doc = ""]
313    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/draw)"]
314    #[doc = ""]
315    #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
316    #[doc = ""]
317    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
318    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
319    pub fn draw_with_instance_count(
320        this: &GpuRenderPassEncoder,
321        vertex_count: u32,
322        instance_count: u32,
323    );
324    #[cfg(web_sys_unstable_apis)]
325    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = draw)]
326    #[doc = "The `draw()` method."]
327    #[doc = ""]
328    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/draw)"]
329    #[doc = ""]
330    #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
331    #[doc = ""]
332    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
333    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
334    pub fn draw_with_instance_count_and_first_vertex(
335        this: &GpuRenderPassEncoder,
336        vertex_count: u32,
337        instance_count: u32,
338        first_vertex: u32,
339    );
340    #[cfg(web_sys_unstable_apis)]
341    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = draw)]
342    #[doc = "The `draw()` method."]
343    #[doc = ""]
344    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/draw)"]
345    #[doc = ""]
346    #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
347    #[doc = ""]
348    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
349    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
350    pub fn draw_with_instance_count_and_first_vertex_and_first_instance(
351        this: &GpuRenderPassEncoder,
352        vertex_count: u32,
353        instance_count: u32,
354        first_vertex: u32,
355        first_instance: u32,
356    );
357    #[cfg(web_sys_unstable_apis)]
358    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexed)]
359    #[doc = "The `drawIndexed()` method."]
360    #[doc = ""]
361    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexed)"]
362    #[doc = ""]
363    #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
364    #[doc = ""]
365    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
366    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
367    pub fn draw_indexed(this: &GpuRenderPassEncoder, index_count: u32);
368    #[cfg(web_sys_unstable_apis)]
369    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexed)]
370    #[doc = "The `drawIndexed()` method."]
371    #[doc = ""]
372    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexed)"]
373    #[doc = ""]
374    #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
378    pub fn draw_indexed_with_instance_count(
379        this: &GpuRenderPassEncoder,
380        index_count: u32,
381        instance_count: u32,
382    );
383    #[cfg(web_sys_unstable_apis)]
384    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexed)]
385    #[doc = "The `drawIndexed()` method."]
386    #[doc = ""]
387    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexed)"]
388    #[doc = ""]
389    #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
390    #[doc = ""]
391    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
392    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
393    pub fn draw_indexed_with_instance_count_and_first_index(
394        this: &GpuRenderPassEncoder,
395        index_count: u32,
396        instance_count: u32,
397        first_index: u32,
398    );
399    #[cfg(web_sys_unstable_apis)]
400    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexed)]
401    #[doc = "The `drawIndexed()` method."]
402    #[doc = ""]
403    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexed)"]
404    #[doc = ""]
405    #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
406    #[doc = ""]
407    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
408    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
409    pub fn draw_indexed_with_instance_count_and_first_index_and_base_vertex(
410        this: &GpuRenderPassEncoder,
411        index_count: u32,
412        instance_count: u32,
413        first_index: u32,
414        base_vertex: i32,
415    );
416    #[cfg(web_sys_unstable_apis)]
417    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexed)]
418    #[doc = "The `drawIndexed()` method."]
419    #[doc = ""]
420    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexed)"]
421    #[doc = ""]
422    #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
423    #[doc = ""]
424    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
425    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
426    pub fn draw_indexed_with_instance_count_and_first_index_and_base_vertex_and_first_instance(
427        this: &GpuRenderPassEncoder,
428        index_count: u32,
429        instance_count: u32,
430        first_index: u32,
431        base_vertex: i32,
432        first_instance: u32,
433    );
434    #[cfg(web_sys_unstable_apis)]
435    #[cfg(feature = "GpuBuffer")]
436    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexedIndirect)]
437    #[doc = "The `drawIndexedIndirect()` method."]
438    #[doc = ""]
439    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexedIndirect)"]
440    #[doc = ""]
441    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"]
442    #[doc = ""]
443    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
444    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
445    pub fn draw_indexed_indirect_with_u32(
446        this: &GpuRenderPassEncoder,
447        indirect_buffer: &GpuBuffer,
448        indirect_offset: u32,
449    );
450    #[cfg(web_sys_unstable_apis)]
451    #[cfg(feature = "GpuBuffer")]
452    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexedIndirect)]
453    #[doc = "The `drawIndexedIndirect()` method."]
454    #[doc = ""]
455    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexedIndirect)"]
456    #[doc = ""]
457    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"]
458    #[doc = ""]
459    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
460    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
461    pub fn draw_indexed_indirect_with_f64(
462        this: &GpuRenderPassEncoder,
463        indirect_buffer: &GpuBuffer,
464        indirect_offset: f64,
465    );
466    #[cfg(web_sys_unstable_apis)]
467    #[cfg(feature = "GpuBuffer")]
468    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndirect)]
469    #[doc = "The `drawIndirect()` method."]
470    #[doc = ""]
471    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndirect)"]
472    #[doc = ""]
473    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"]
474    #[doc = ""]
475    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
476    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
477    pub fn draw_indirect_with_u32(
478        this: &GpuRenderPassEncoder,
479        indirect_buffer: &GpuBuffer,
480        indirect_offset: u32,
481    );
482    #[cfg(web_sys_unstable_apis)]
483    #[cfg(feature = "GpuBuffer")]
484    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndirect)]
485    #[doc = "The `drawIndirect()` method."]
486    #[doc = ""]
487    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndirect)"]
488    #[doc = ""]
489    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"]
490    #[doc = ""]
491    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
492    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
493    pub fn draw_indirect_with_f64(
494        this: &GpuRenderPassEncoder,
495        indirect_buffer: &GpuBuffer,
496        indirect_offset: f64,
497    );
498    #[cfg(web_sys_unstable_apis)]
499    #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))]
500    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer)]
501    #[doc = "The `setIndexBuffer()` method."]
502    #[doc = ""]
503    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"]
504    #[doc = ""]
505    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `GpuRenderPassEncoder`*"]
506    #[doc = ""]
507    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
508    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
509    pub fn set_index_buffer(
510        this: &GpuRenderPassEncoder,
511        buffer: &GpuBuffer,
512        index_format: GpuIndexFormat,
513    );
514    #[cfg(web_sys_unstable_apis)]
515    #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))]
516    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer)]
517    #[doc = "The `setIndexBuffer()` method."]
518    #[doc = ""]
519    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"]
520    #[doc = ""]
521    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `GpuRenderPassEncoder`*"]
522    #[doc = ""]
523    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
524    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
525    pub fn set_index_buffer_with_u32(
526        this: &GpuRenderPassEncoder,
527        buffer: &GpuBuffer,
528        index_format: GpuIndexFormat,
529        offset: u32,
530    );
531    #[cfg(web_sys_unstable_apis)]
532    #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))]
533    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer)]
534    #[doc = "The `setIndexBuffer()` method."]
535    #[doc = ""]
536    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"]
537    #[doc = ""]
538    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `GpuRenderPassEncoder`*"]
539    #[doc = ""]
540    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
541    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
542    pub fn set_index_buffer_with_f64(
543        this: &GpuRenderPassEncoder,
544        buffer: &GpuBuffer,
545        index_format: GpuIndexFormat,
546        offset: f64,
547    );
548    #[cfg(web_sys_unstable_apis)]
549    #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))]
550    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer)]
551    #[doc = "The `setIndexBuffer()` method."]
552    #[doc = ""]
553    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"]
554    #[doc = ""]
555    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `GpuRenderPassEncoder`*"]
556    #[doc = ""]
557    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
558    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
559    pub fn set_index_buffer_with_u32_and_u32(
560        this: &GpuRenderPassEncoder,
561        buffer: &GpuBuffer,
562        index_format: GpuIndexFormat,
563        offset: u32,
564        size: u32,
565    );
566    #[cfg(web_sys_unstable_apis)]
567    #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))]
568    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer)]
569    #[doc = "The `setIndexBuffer()` method."]
570    #[doc = ""]
571    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"]
572    #[doc = ""]
573    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `GpuRenderPassEncoder`*"]
574    #[doc = ""]
575    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
576    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
577    pub fn set_index_buffer_with_f64_and_u32(
578        this: &GpuRenderPassEncoder,
579        buffer: &GpuBuffer,
580        index_format: GpuIndexFormat,
581        offset: f64,
582        size: u32,
583    );
584    #[cfg(web_sys_unstable_apis)]
585    #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))]
586    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer)]
587    #[doc = "The `setIndexBuffer()` method."]
588    #[doc = ""]
589    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"]
590    #[doc = ""]
591    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `GpuRenderPassEncoder`*"]
592    #[doc = ""]
593    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
594    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
595    pub fn set_index_buffer_with_u32_and_f64(
596        this: &GpuRenderPassEncoder,
597        buffer: &GpuBuffer,
598        index_format: GpuIndexFormat,
599        offset: u32,
600        size: f64,
601    );
602    #[cfg(web_sys_unstable_apis)]
603    #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))]
604    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer)]
605    #[doc = "The `setIndexBuffer()` method."]
606    #[doc = ""]
607    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"]
608    #[doc = ""]
609    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `GpuRenderPassEncoder`*"]
610    #[doc = ""]
611    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
612    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
613    pub fn set_index_buffer_with_f64_and_f64(
614        this: &GpuRenderPassEncoder,
615        buffer: &GpuBuffer,
616        index_format: GpuIndexFormat,
617        offset: f64,
618        size: f64,
619    );
620    #[cfg(web_sys_unstable_apis)]
621    #[cfg(feature = "GpuRenderPipeline")]
622    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setPipeline)]
623    #[doc = "The `setPipeline()` method."]
624    #[doc = ""]
625    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setPipeline)"]
626    #[doc = ""]
627    #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`, `GpuRenderPipeline`*"]
628    #[doc = ""]
629    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
630    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
631    pub fn set_pipeline(this: &GpuRenderPassEncoder, pipeline: &GpuRenderPipeline);
632    #[cfg(web_sys_unstable_apis)]
633    #[cfg(feature = "GpuBuffer")]
634    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)]
635    #[doc = "The `setVertexBuffer()` method."]
636    #[doc = ""]
637    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"]
638    #[doc = ""]
639    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"]
640    #[doc = ""]
641    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
642    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
643    pub fn set_vertex_buffer(this: &GpuRenderPassEncoder, slot: u32, buffer: Option<&GpuBuffer>);
644    #[cfg(web_sys_unstable_apis)]
645    #[cfg(feature = "GpuBuffer")]
646    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)]
647    #[doc = "The `setVertexBuffer()` method."]
648    #[doc = ""]
649    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"]
650    #[doc = ""]
651    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"]
652    #[doc = ""]
653    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
654    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
655    pub fn set_vertex_buffer_with_u32(
656        this: &GpuRenderPassEncoder,
657        slot: u32,
658        buffer: Option<&GpuBuffer>,
659        offset: u32,
660    );
661    #[cfg(web_sys_unstable_apis)]
662    #[cfg(feature = "GpuBuffer")]
663    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)]
664    #[doc = "The `setVertexBuffer()` method."]
665    #[doc = ""]
666    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"]
667    #[doc = ""]
668    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"]
669    #[doc = ""]
670    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
671    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
672    pub fn set_vertex_buffer_with_f64(
673        this: &GpuRenderPassEncoder,
674        slot: u32,
675        buffer: Option<&GpuBuffer>,
676        offset: f64,
677    );
678    #[cfg(web_sys_unstable_apis)]
679    #[cfg(feature = "GpuBuffer")]
680    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)]
681    #[doc = "The `setVertexBuffer()` method."]
682    #[doc = ""]
683    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"]
684    #[doc = ""]
685    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"]
686    #[doc = ""]
687    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
688    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
689    pub fn set_vertex_buffer_with_u32_and_u32(
690        this: &GpuRenderPassEncoder,
691        slot: u32,
692        buffer: Option<&GpuBuffer>,
693        offset: u32,
694        size: u32,
695    );
696    #[cfg(web_sys_unstable_apis)]
697    #[cfg(feature = "GpuBuffer")]
698    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)]
699    #[doc = "The `setVertexBuffer()` method."]
700    #[doc = ""]
701    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"]
702    #[doc = ""]
703    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"]
704    #[doc = ""]
705    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
706    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
707    pub fn set_vertex_buffer_with_f64_and_u32(
708        this: &GpuRenderPassEncoder,
709        slot: u32,
710        buffer: Option<&GpuBuffer>,
711        offset: f64,
712        size: u32,
713    );
714    #[cfg(web_sys_unstable_apis)]
715    #[cfg(feature = "GpuBuffer")]
716    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)]
717    #[doc = "The `setVertexBuffer()` method."]
718    #[doc = ""]
719    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"]
720    #[doc = ""]
721    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"]
722    #[doc = ""]
723    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
724    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
725    pub fn set_vertex_buffer_with_u32_and_f64(
726        this: &GpuRenderPassEncoder,
727        slot: u32,
728        buffer: Option<&GpuBuffer>,
729        offset: u32,
730        size: f64,
731    );
732    #[cfg(web_sys_unstable_apis)]
733    #[cfg(feature = "GpuBuffer")]
734    # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)]
735    #[doc = "The `setVertexBuffer()` method."]
736    #[doc = ""]
737    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"]
738    #[doc = ""]
739    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"]
740    #[doc = ""]
741    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
742    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
743    pub fn set_vertex_buffer_with_f64_and_f64(
744        this: &GpuRenderPassEncoder,
745        slot: u32,
746        buffer: Option<&GpuBuffer>,
747        offset: f64,
748        size: f64,
749    );
750}