maxcountryman_web_sys/features/
gen_GpuComputePassEncoder.rs1#![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 = GPUComputePassEncoder , typescript_type = "GPUComputePassEncoder")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `GpuComputePassEncoder` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
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 GpuComputePassEncoder;
18 #[cfg(web_sys_unstable_apis)]
19 # [wasm_bindgen (structural , method , getter , js_class = "GPUComputePassEncoder" , 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/GPUComputePassEncoder/label)"]
23 #[doc = ""]
24 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
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: &GpuComputePassEncoder) -> Option<String>;
29 #[cfg(web_sys_unstable_apis)]
30 # [wasm_bindgen (structural , method , setter , js_class = "GPUComputePassEncoder" , 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/GPUComputePassEncoder/label)"]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
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: &GpuComputePassEncoder, value: Option<&str>);
40 #[cfg(web_sys_unstable_apis)]
41 #[cfg(feature = "GpuQuerySet")]
42 # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = beginPipelineStatisticsQuery)]
43 #[doc = "The `beginPipelineStatisticsQuery()` method."]
44 #[doc = ""]
45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/beginPipelineStatisticsQuery)"]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`, `GpuQuerySet`*"]
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 begin_pipeline_statistics_query(
52 this: &GpuComputePassEncoder,
53 query_set: &GpuQuerySet,
54 query_index: u32,
55 );
56 #[cfg(web_sys_unstable_apis)]
57 # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatch)]
58 #[doc = "The `dispatch()` method."]
59 #[doc = ""]
60 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatch)"]
61 #[doc = ""]
62 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
63 #[doc = ""]
64 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
65 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
66 pub fn dispatch(this: &GpuComputePassEncoder, x: u32);
67 #[cfg(web_sys_unstable_apis)]
68 # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatch)]
69 #[doc = "The `dispatch()` method."]
70 #[doc = ""]
71 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatch)"]
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_with_y(this: &GpuComputePassEncoder, x: u32, y: u32);
78 #[cfg(web_sys_unstable_apis)]
79 # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatch)]
80 #[doc = "The `dispatch()` method."]
81 #[doc = ""]
82 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatch)"]
83 #[doc = ""]
84 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
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 dispatch_with_y_and_z(this: &GpuComputePassEncoder, x: u32, y: u32, z: u32);
89 #[cfg(web_sys_unstable_apis)]
90 #[cfg(feature = "GpuBuffer")]
91 # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatchIndirect)]
92 #[doc = "The `dispatchIndirect()` method."]
93 #[doc = ""]
94 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatchIndirect)"]
95 #[doc = ""]
96 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuComputePassEncoder`*"]
97 #[doc = ""]
98 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
99 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
100 pub fn dispatch_indirect_with_u32(
101 this: &GpuComputePassEncoder,
102 indirect_buffer: &GpuBuffer,
103 indirect_offset: u32,
104 );
105 #[cfg(web_sys_unstable_apis)]
106 #[cfg(feature = "GpuBuffer")]
107 # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatchIndirect)]
108 #[doc = "The `dispatchIndirect()` method."]
109 #[doc = ""]
110 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatchIndirect)"]
111 #[doc = ""]
112 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuComputePassEncoder`*"]
113 #[doc = ""]
114 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
115 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
116 pub fn dispatch_indirect_with_f64(
117 this: &GpuComputePassEncoder,
118 indirect_buffer: &GpuBuffer,
119 indirect_offset: f64,
120 );
121 #[cfg(web_sys_unstable_apis)]
122 # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = endPass)]
123 #[doc = "The `endPass()` method."]
124 #[doc = ""]
125 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/endPass)"]
126 #[doc = ""]
127 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
128 #[doc = ""]
129 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
130 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
131 pub fn end_pass(this: &GpuComputePassEncoder);
132 #[cfg(web_sys_unstable_apis)]
133 # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = endPipelineStatisticsQuery)]
134 #[doc = "The `endPipelineStatisticsQuery()` method."]
135 #[doc = ""]
136 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/endPipelineStatisticsQuery)"]
137 #[doc = ""]
138 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
139 #[doc = ""]
140 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
141 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
142 pub fn end_pipeline_statistics_query(this: &GpuComputePassEncoder);
143 #[cfg(web_sys_unstable_apis)]
144 #[cfg(feature = "GpuComputePipeline")]
145 # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = setPipeline)]
146 #[doc = "The `setPipeline()` method."]
147 #[doc = ""]
148 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setPipeline)"]
149 #[doc = ""]
150 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`, `GpuComputePipeline`*"]
151 #[doc = ""]
152 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
153 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
154 pub fn set_pipeline(this: &GpuComputePassEncoder, pipeline: &GpuComputePipeline);
155 #[cfg(web_sys_unstable_apis)]
156 #[cfg(feature = "GpuQuerySet")]
157 # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = writeTimestamp)]
158 #[doc = "The `writeTimestamp()` method."]
159 #[doc = ""]
160 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/writeTimestamp)"]
161 #[doc = ""]
162 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`, `GpuQuerySet`*"]
163 #[doc = ""]
164 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
165 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
166 pub fn write_timestamp(this: &GpuComputePassEncoder, query_set: &GpuQuerySet, query_index: u32);
167 #[cfg(web_sys_unstable_apis)]
168 # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = insertDebugMarker)]
169 #[doc = "The `insertDebugMarker()` method."]
170 #[doc = ""]
171 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/insertDebugMarker)"]
172 #[doc = ""]
173 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
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 insert_debug_marker(this: &GpuComputePassEncoder, marker_label: &str);
178 #[cfg(web_sys_unstable_apis)]
179 # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = popDebugGroup)]
180 #[doc = "The `popDebugGroup()` method."]
181 #[doc = ""]
182 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/popDebugGroup)"]
183 #[doc = ""]
184 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
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 pop_debug_group(this: &GpuComputePassEncoder);
189 #[cfg(web_sys_unstable_apis)]
190 # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = pushDebugGroup)]
191 #[doc = "The `pushDebugGroup()` method."]
192 #[doc = ""]
193 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/pushDebugGroup)"]
194 #[doc = ""]
195 #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
196 #[doc = ""]
197 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
198 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
199 pub fn push_debug_group(this: &GpuComputePassEncoder, group_label: &str);
200 #[cfg(web_sys_unstable_apis)]
201 #[cfg(feature = "GpuBindGroup")]
202 # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup)]
203 #[doc = "The `setBindGroup()` method."]
204 #[doc = ""]
205 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"]
206 #[doc = ""]
207 #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuComputePassEncoder`*"]
208 #[doc = ""]
209 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
210 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
211 pub fn set_bind_group(this: &GpuComputePassEncoder, index: u32, bind_group: &GpuBindGroup);
212 #[cfg(web_sys_unstable_apis)]
213 #[cfg(feature = "GpuBindGroup")]
214 # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup)]
215 #[doc = "The `setBindGroup()` method."]
216 #[doc = ""]
217 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"]
218 #[doc = ""]
219 #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuComputePassEncoder`*"]
220 #[doc = ""]
221 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
222 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
223 pub fn set_bind_group_with_u32_sequence(
224 this: &GpuComputePassEncoder,
225 index: u32,
226 bind_group: &GpuBindGroup,
227 dynamic_offsets: &::wasm_bindgen::JsValue,
228 );
229 #[cfg(web_sys_unstable_apis)]
230 #[cfg(feature = "GpuBindGroup")]
231 # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup)]
232 #[doc = "The `setBindGroup()` method."]
233 #[doc = ""]
234 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"]
235 #[doc = ""]
236 #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuComputePassEncoder`*"]
237 #[doc = ""]
238 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
239 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
240 pub fn set_bind_group_with_u32_array_and_u32_and_dynamic_offsets_data_length(
241 this: &GpuComputePassEncoder,
242 index: u32,
243 bind_group: &GpuBindGroup,
244 dynamic_offsets_data: &[u32],
245 dynamic_offsets_data_start: u32,
246 dynamic_offsets_data_length: u32,
247 );
248 #[cfg(web_sys_unstable_apis)]
249 #[cfg(feature = "GpuBindGroup")]
250 # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup)]
251 #[doc = "The `setBindGroup()` method."]
252 #[doc = ""]
253 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"]
254 #[doc = ""]
255 #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuComputePassEncoder`*"]
256 #[doc = ""]
257 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
258 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
259 pub fn set_bind_group_with_u32_array_and_f64_and_dynamic_offsets_data_length(
260 this: &GpuComputePassEncoder,
261 index: u32,
262 bind_group: &GpuBindGroup,
263 dynamic_offsets_data: &[u32],
264 dynamic_offsets_data_start: f64,
265 dynamic_offsets_data_length: u32,
266 );
267}