1 #![allow(unused_imports)] 2 use super::*; 3 use wasm_bindgen::prelude::*; 4 #[cfg(web_sys_unstable_apis)] 5 #[wasm_bindgen] 6 extern "C" { 7 # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = GPUDevice , typescript_type = "GPUDevice")] 8 #[derive(Debug, Clone, PartialEq, Eq)] 9 #[doc = "The `GpuDevice` class."] 10 #[doc = ""] 11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice)"] 12 #[doc = ""] 13 #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"] 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 GpuDevice; 18 #[cfg(web_sys_unstable_apis)] 19 #[cfg(feature = "GpuAdapter")] 20 # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = adapter)] 21 #[doc = "Getter for the `adapter` field of this object."] 22 #[doc = ""] 23 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/adapter)"] 24 #[doc = ""] 25 #[doc = "*This API requires the following crate features to be activated: `GpuAdapter`, `GpuDevice`*"] 26 #[doc = ""] 27 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 28 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] adapter(this: &GpuDevice) -> GpuAdapter29 pub fn adapter(this: &GpuDevice) -> GpuAdapter; 30 #[cfg(web_sys_unstable_apis)] 31 # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = features)] 32 #[doc = "Getter for the `features` field of this object."] 33 #[doc = ""] 34 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/features)"] 35 #[doc = ""] 36 #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"] 37 #[doc = ""] 38 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 39 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] features(this: &GpuDevice) -> ::js_sys::Array40 pub fn features(this: &GpuDevice) -> ::js_sys::Array; 41 #[cfg(web_sys_unstable_apis)] 42 # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = limits)] 43 #[doc = "Getter for the `limits` field of this object."] 44 #[doc = ""] 45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/limits)"] 46 #[doc = ""] 47 #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"] 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)*"] limits(this: &GpuDevice) -> ::js_sys::Object51 pub fn limits(this: &GpuDevice) -> ::js_sys::Object; 52 #[cfg(web_sys_unstable_apis)] 53 #[cfg(feature = "GpuQueue")] 54 # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = queue)] 55 #[doc = "Getter for the `queue` field of this object."] 56 #[doc = ""] 57 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/queue)"] 58 #[doc = ""] 59 #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuQueue`*"] 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)*"] queue(this: &GpuDevice) -> GpuQueue63 pub fn queue(this: &GpuDevice) -> GpuQueue; 64 #[cfg(web_sys_unstable_apis)] 65 # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = lost)] 66 #[doc = "Getter for the `lost` field of this object."] 67 #[doc = ""] 68 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/lost)"] 69 #[doc = ""] 70 #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"] 71 #[doc = ""] 72 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 73 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] lost(this: &GpuDevice) -> ::js_sys::Promise74 pub fn lost(this: &GpuDevice) -> ::js_sys::Promise; 75 #[cfg(web_sys_unstable_apis)] 76 # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = onuncapturederror)] 77 #[doc = "Getter for the `onuncapturederror` field of this object."] 78 #[doc = ""] 79 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/onuncapturederror)"] 80 #[doc = ""] 81 #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"] 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] onuncapturederror(this: &GpuDevice) -> Option<::js_sys::Function>85 pub fn onuncapturederror(this: &GpuDevice) -> Option<::js_sys::Function>; 86 #[cfg(web_sys_unstable_apis)] 87 # [wasm_bindgen (structural , method , setter , js_class = "GPUDevice" , js_name = onuncapturederror)] 88 #[doc = "Setter for the `onuncapturederror` field of this object."] 89 #[doc = ""] 90 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/onuncapturederror)"] 91 #[doc = ""] 92 #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"] 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] set_onuncapturederror(this: &GpuDevice, value: Option<&::js_sys::Function>)96 pub fn set_onuncapturederror(this: &GpuDevice, value: Option<&::js_sys::Function>); 97 #[cfg(web_sys_unstable_apis)] 98 # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = label)] 99 #[doc = "Getter for the `label` field of this object."] 100 #[doc = ""] 101 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/label)"] 102 #[doc = ""] 103 #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"] 104 #[doc = ""] 105 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 106 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] label(this: &GpuDevice) -> Option<String>107 pub fn label(this: &GpuDevice) -> Option<String>; 108 #[cfg(web_sys_unstable_apis)] 109 # [wasm_bindgen (structural , method , setter , js_class = "GPUDevice" , js_name = label)] 110 #[doc = "Setter for the `label` field of this object."] 111 #[doc = ""] 112 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/label)"] 113 #[doc = ""] 114 #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"] 115 #[doc = ""] 116 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 117 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] set_label(this: &GpuDevice, value: Option<&str>)118 pub fn set_label(this: &GpuDevice, value: Option<&str>); 119 #[cfg(web_sys_unstable_apis)] 120 #[cfg(all(feature = "GpuBindGroup", feature = "GpuBindGroupDescriptor",))] 121 # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createBindGroup)] 122 #[doc = "The `createBindGroup()` method."] 123 #[doc = ""] 124 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createBindGroup)"] 125 #[doc = ""] 126 #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuBindGroupDescriptor`, `GpuDevice`*"] 127 #[doc = ""] 128 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 129 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] create_bind_group(this: &GpuDevice, descriptor: &GpuBindGroupDescriptor) -> GpuBindGroup130 pub fn create_bind_group(this: &GpuDevice, descriptor: &GpuBindGroupDescriptor) 131 -> GpuBindGroup; 132 #[cfg(web_sys_unstable_apis)] 133 #[cfg(all( 134 feature = "GpuBindGroupLayout", 135 feature = "GpuBindGroupLayoutDescriptor", 136 ))] 137 # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createBindGroupLayout)] 138 #[doc = "The `createBindGroupLayout()` method."] 139 #[doc = ""] 140 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createBindGroupLayout)"] 141 #[doc = ""] 142 #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayout`, `GpuBindGroupLayoutDescriptor`, `GpuDevice`*"] 143 #[doc = ""] 144 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 145 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] create_bind_group_layout( this: &GpuDevice, descriptor: &GpuBindGroupLayoutDescriptor, ) -> GpuBindGroupLayout146 pub fn create_bind_group_layout( 147 this: &GpuDevice, 148 descriptor: &GpuBindGroupLayoutDescriptor, 149 ) -> GpuBindGroupLayout; 150 #[cfg(web_sys_unstable_apis)] 151 #[cfg(all(feature = "GpuBuffer", feature = "GpuBufferDescriptor",))] 152 # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createBuffer)] 153 #[doc = "The `createBuffer()` method."] 154 #[doc = ""] 155 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createBuffer)"] 156 #[doc = ""] 157 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuBufferDescriptor`, `GpuDevice`*"] 158 #[doc = ""] 159 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 160 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] create_buffer(this: &GpuDevice, descriptor: &GpuBufferDescriptor) -> GpuBuffer161 pub fn create_buffer(this: &GpuDevice, descriptor: &GpuBufferDescriptor) -> GpuBuffer; 162 #[cfg(web_sys_unstable_apis)] 163 #[cfg(feature = "GpuCommandEncoder")] 164 # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createCommandEncoder)] 165 #[doc = "The `createCommandEncoder()` method."] 166 #[doc = ""] 167 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createCommandEncoder)"] 168 #[doc = ""] 169 #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuDevice`*"] 170 #[doc = ""] 171 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 172 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] create_command_encoder(this: &GpuDevice) -> GpuCommandEncoder173 pub fn create_command_encoder(this: &GpuDevice) -> GpuCommandEncoder; 174 #[cfg(web_sys_unstable_apis)] 175 #[cfg(all(feature = "GpuCommandEncoder", feature = "GpuCommandEncoderDescriptor",))] 176 # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createCommandEncoder)] 177 #[doc = "The `createCommandEncoder()` method."] 178 #[doc = ""] 179 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createCommandEncoder)"] 180 #[doc = ""] 181 #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuCommandEncoderDescriptor`, `GpuDevice`*"] 182 #[doc = ""] 183 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 184 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] create_command_encoder_with_descriptor( this: &GpuDevice, descriptor: &GpuCommandEncoderDescriptor, ) -> GpuCommandEncoder185 pub fn create_command_encoder_with_descriptor( 186 this: &GpuDevice, 187 descriptor: &GpuCommandEncoderDescriptor, 188 ) -> GpuCommandEncoder; 189 #[cfg(web_sys_unstable_apis)] 190 #[cfg(all( 191 feature = "GpuComputePipeline", 192 feature = "GpuComputePipelineDescriptor", 193 ))] 194 # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createComputePipeline)] 195 #[doc = "The `createComputePipeline()` method."] 196 #[doc = ""] 197 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createComputePipeline)"] 198 #[doc = ""] 199 #[doc = "*This API requires the following crate features to be activated: `GpuComputePipeline`, `GpuComputePipelineDescriptor`, `GpuDevice`*"] 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)*"] create_compute_pipeline( this: &GpuDevice, descriptor: &GpuComputePipelineDescriptor, ) -> GpuComputePipeline203 pub fn create_compute_pipeline( 204 this: &GpuDevice, 205 descriptor: &GpuComputePipelineDescriptor, 206 ) -> GpuComputePipeline; 207 #[cfg(web_sys_unstable_apis)] 208 #[cfg(feature = "GpuComputePipelineDescriptor")] 209 # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createComputePipelineAsync)] 210 #[doc = "The `createComputePipelineAsync()` method."] 211 #[doc = ""] 212 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createComputePipelineAsync)"] 213 #[doc = ""] 214 #[doc = "*This API requires the following crate features to be activated: `GpuComputePipelineDescriptor`, `GpuDevice`*"] 215 #[doc = ""] 216 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 217 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] create_compute_pipeline_async( this: &GpuDevice, descriptor: &GpuComputePipelineDescriptor, ) -> ::js_sys::Promise218 pub fn create_compute_pipeline_async( 219 this: &GpuDevice, 220 descriptor: &GpuComputePipelineDescriptor, 221 ) -> ::js_sys::Promise; 222 #[cfg(web_sys_unstable_apis)] 223 #[cfg(all(feature = "GpuPipelineLayout", feature = "GpuPipelineLayoutDescriptor",))] 224 # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createPipelineLayout)] 225 #[doc = "The `createPipelineLayout()` method."] 226 #[doc = ""] 227 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createPipelineLayout)"] 228 #[doc = ""] 229 #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuPipelineLayout`, `GpuPipelineLayoutDescriptor`*"] 230 #[doc = ""] 231 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 232 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] create_pipeline_layout( this: &GpuDevice, descriptor: &GpuPipelineLayoutDescriptor, ) -> GpuPipelineLayout233 pub fn create_pipeline_layout( 234 this: &GpuDevice, 235 descriptor: &GpuPipelineLayoutDescriptor, 236 ) -> GpuPipelineLayout; 237 #[cfg(web_sys_unstable_apis)] 238 #[cfg(all(feature = "GpuQuerySet", feature = "GpuQuerySetDescriptor",))] 239 # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createQuerySet)] 240 #[doc = "The `createQuerySet()` method."] 241 #[doc = ""] 242 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createQuerySet)"] 243 #[doc = ""] 244 #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuQuerySet`, `GpuQuerySetDescriptor`*"] 245 #[doc = ""] 246 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 247 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] create_query_set(this: &GpuDevice, descriptor: &GpuQuerySetDescriptor) -> GpuQuerySet248 pub fn create_query_set(this: &GpuDevice, descriptor: &GpuQuerySetDescriptor) -> GpuQuerySet; 249 #[cfg(web_sys_unstable_apis)] 250 #[cfg(all( 251 feature = "GpuRenderBundleEncoder", 252 feature = "GpuRenderBundleEncoderDescriptor", 253 ))] 254 # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createRenderBundleEncoder)] 255 #[doc = "The `createRenderBundleEncoder()` method."] 256 #[doc = ""] 257 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createRenderBundleEncoder)"] 258 #[doc = ""] 259 #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuRenderBundleEncoder`, `GpuRenderBundleEncoderDescriptor`*"] 260 #[doc = ""] 261 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 262 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] create_render_bundle_encoder( this: &GpuDevice, descriptor: &GpuRenderBundleEncoderDescriptor, ) -> GpuRenderBundleEncoder263 pub fn create_render_bundle_encoder( 264 this: &GpuDevice, 265 descriptor: &GpuRenderBundleEncoderDescriptor, 266 ) -> GpuRenderBundleEncoder; 267 #[cfg(web_sys_unstable_apis)] 268 #[cfg(all(feature = "GpuRenderPipeline", feature = "GpuRenderPipelineDescriptor",))] 269 # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createRenderPipeline)] 270 #[doc = "The `createRenderPipeline()` method."] 271 #[doc = ""] 272 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createRenderPipeline)"] 273 #[doc = ""] 274 #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuRenderPipeline`, `GpuRenderPipelineDescriptor`*"] 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)*"] create_render_pipeline( this: &GpuDevice, descriptor: &GpuRenderPipelineDescriptor, ) -> GpuRenderPipeline278 pub fn create_render_pipeline( 279 this: &GpuDevice, 280 descriptor: &GpuRenderPipelineDescriptor, 281 ) -> GpuRenderPipeline; 282 #[cfg(web_sys_unstable_apis)] 283 #[cfg(feature = "GpuRenderPipelineDescriptor")] 284 # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createRenderPipelineAsync)] 285 #[doc = "The `createRenderPipelineAsync()` method."] 286 #[doc = ""] 287 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createRenderPipelineAsync)"] 288 #[doc = ""] 289 #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuRenderPipelineDescriptor`*"] 290 #[doc = ""] 291 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 292 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] create_render_pipeline_async( this: &GpuDevice, descriptor: &GpuRenderPipelineDescriptor, ) -> ::js_sys::Promise293 pub fn create_render_pipeline_async( 294 this: &GpuDevice, 295 descriptor: &GpuRenderPipelineDescriptor, 296 ) -> ::js_sys::Promise; 297 #[cfg(web_sys_unstable_apis)] 298 #[cfg(feature = "GpuSampler")] 299 # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createSampler)] 300 #[doc = "The `createSampler()` method."] 301 #[doc = ""] 302 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createSampler)"] 303 #[doc = ""] 304 #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuSampler`*"] 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] create_sampler(this: &GpuDevice) -> GpuSampler308 pub fn create_sampler(this: &GpuDevice) -> GpuSampler; 309 #[cfg(web_sys_unstable_apis)] 310 #[cfg(all(feature = "GpuSampler", feature = "GpuSamplerDescriptor",))] 311 # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createSampler)] 312 #[doc = "The `createSampler()` method."] 313 #[doc = ""] 314 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createSampler)"] 315 #[doc = ""] 316 #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuSampler`, `GpuSamplerDescriptor`*"] 317 #[doc = ""] 318 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 319 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] create_sampler_with_descriptor( this: &GpuDevice, descriptor: &GpuSamplerDescriptor, ) -> GpuSampler320 pub fn create_sampler_with_descriptor( 321 this: &GpuDevice, 322 descriptor: &GpuSamplerDescriptor, 323 ) -> GpuSampler; 324 #[cfg(web_sys_unstable_apis)] 325 #[cfg(all(feature = "GpuShaderModule", feature = "GpuShaderModuleDescriptor",))] 326 # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createShaderModule)] 327 #[doc = "The `createShaderModule()` method."] 328 #[doc = ""] 329 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createShaderModule)"] 330 #[doc = ""] 331 #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuShaderModule`, `GpuShaderModuleDescriptor`*"] 332 #[doc = ""] 333 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 334 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] create_shader_module( this: &GpuDevice, descriptor: &GpuShaderModuleDescriptor, ) -> GpuShaderModule335 pub fn create_shader_module( 336 this: &GpuDevice, 337 descriptor: &GpuShaderModuleDescriptor, 338 ) -> GpuShaderModule; 339 #[cfg(web_sys_unstable_apis)] 340 #[cfg(all(feature = "GpuTexture", feature = "GpuTextureDescriptor",))] 341 # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createTexture)] 342 #[doc = "The `createTexture()` method."] 343 #[doc = ""] 344 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createTexture)"] 345 #[doc = ""] 346 #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuTexture`, `GpuTextureDescriptor`*"] 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] create_texture(this: &GpuDevice, descriptor: &GpuTextureDescriptor) -> GpuTexture350 pub fn create_texture(this: &GpuDevice, descriptor: &GpuTextureDescriptor) -> GpuTexture; 351 #[cfg(web_sys_unstable_apis)] 352 # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = destroy)] 353 #[doc = "The `destroy()` method."] 354 #[doc = ""] 355 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/destroy)"] 356 #[doc = ""] 357 #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"] 358 #[doc = ""] 359 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 360 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] destroy(this: &GpuDevice)361 pub fn destroy(this: &GpuDevice); 362 #[cfg(web_sys_unstable_apis)] 363 # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = popErrorScope)] 364 #[doc = "The `popErrorScope()` method."] 365 #[doc = ""] 366 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/popErrorScope)"] 367 #[doc = ""] 368 #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"] 369 #[doc = ""] 370 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 371 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pop_error_scope(this: &GpuDevice) -> ::js_sys::Promise372 pub fn pop_error_scope(this: &GpuDevice) -> ::js_sys::Promise; 373 #[cfg(web_sys_unstable_apis)] 374 #[cfg(feature = "GpuErrorFilter")] 375 # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = pushErrorScope)] 376 #[doc = "The `pushErrorScope()` method."] 377 #[doc = ""] 378 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/pushErrorScope)"] 379 #[doc = ""] 380 #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuErrorFilter`*"] 381 #[doc = ""] 382 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 383 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] push_error_scope(this: &GpuDevice, filter: GpuErrorFilter)384 pub fn push_error_scope(this: &GpuDevice, filter: GpuErrorFilter); 385 } 386