From b1c997395f4b8819e9e81ba4083b8271458d7a3c Mon Sep 17 00:00:00 2001 From: Luo Zhiaho Date: Sun, 9 Aug 2026 20:30:23 +0800 Subject: [PATCH 1/4] Re-vendor WebGPU bindings --- wgpu/src/backend/webgpu/webgpu_sys/gen_Gpu.rs | 16 +- .../webgpu/webgpu_sys/gen_GpuAdapter.rs | 18 +- .../webgpu/webgpu_sys/gen_GpuAdapterInfo.rs | 37 +- .../webgpu/webgpu_sys/gen_GpuAddressMode.rs | 2 +- .../webgpu_sys/gen_GpuAutoLayoutMode.rs | 2 +- .../webgpu/webgpu_sys/gen_GpuBindGroup.rs | 12 +- .../webgpu_sys/gen_GpuBindGroupDescriptor.rs | 4 +- .../webgpu_sys/gen_GpuBindGroupEntry.rs | 4 +- .../webgpu_sys/gen_GpuBindGroupLayout.rs | 12 +- .../gen_GpuBindGroupLayoutDescriptor.rs | 4 +- .../webgpu_sys/gen_GpuBindGroupLayoutEntry.rs | 4 +- .../webgpu_sys/gen_GpuBlendComponent.rs | 4 +- .../webgpu/webgpu_sys/gen_GpuBlendFactor.rs | 2 +- .../webgpu_sys/gen_GpuBlendOperation.rs | 2 +- .../webgpu/webgpu_sys/gen_GpuBlendState.rs | 4 +- .../webgpu/webgpu_sys/gen_GpuBuffer.rs | 50 +- .../webgpu/webgpu_sys/gen_GpuBufferBinding.rs | 4 +- .../webgpu_sys/gen_GpuBufferBindingLayout.rs | 4 +- .../webgpu_sys/gen_GpuBufferBindingType.rs | 2 +- .../webgpu_sys/gen_GpuBufferDescriptor.rs | 4 +- .../webgpu_sys/gen_GpuBufferMapState.rs | 2 +- .../webgpu_sys/gen_GpuCanvasAlphaMode.rs | 2 +- .../webgpu_sys/gen_GpuCanvasConfiguration.rs | 4 +- .../webgpu/webgpu_sys/gen_GpuCanvasContext.rs | 23 +- .../webgpu_sys/gen_GpuCanvasToneMapping.rs | 4 +- .../gen_GpuCanvasToneMappingMode.rs | 2 +- .../webgpu/webgpu_sys/gen_GpuColorDict.rs | 4 +- .../webgpu_sys/gen_GpuColorTargetState.rs | 4 +- .../webgpu/webgpu_sys/gen_GpuCommandBuffer.rs | 12 +- .../gen_GpuCommandBufferDescriptor.rs | 4 +- .../webgpu_sys/gen_GpuCommandEncoder.rs | 239 +++++-- .../gen_GpuCommandEncoderDescriptor.rs | 4 +- .../webgpu_sys/gen_GpuCompareFunction.rs | 2 +- .../webgpu_sys/gen_GpuCompilationInfo.rs | 10 +- .../webgpu_sys/gen_GpuCompilationMessage.rs | 35 +- .../gen_GpuCompilationMessageType.rs | 2 +- .../gen_GpuComputePassDescriptor.rs | 4 +- .../webgpu_sys/gen_GpuComputePassEncoder.rs | 538 ++++++++++++++- .../gen_GpuComputePassTimestampWrites.rs | 7 +- .../webgpu_sys/gen_GpuComputePipeline.rs | 18 +- .../gen_GpuComputePipelineDescriptor.rs | 4 +- .../gen_GpuCopyExternalImageDestInfo.rs | 4 +- .../gen_GpuCopyExternalImageSourceInfo.rs | 7 +- .../webgpu/webgpu_sys/gen_GpuCullMode.rs | 2 +- .../webgpu_sys/gen_GpuDepthStencilState.rs | 4 +- .../webgpu/webgpu_sys/gen_GpuDevice.rs | 89 ++- .../webgpu_sys/gen_GpuDeviceDescriptor.rs | 4 +- .../webgpu_sys/gen_GpuDeviceLostInfo.rs | 12 +- .../webgpu_sys/gen_GpuDeviceLostReason.rs | 2 +- .../backend/webgpu/webgpu_sys/gen_GpuError.rs | 10 +- .../webgpu/webgpu_sys/gen_GpuErrorFilter.rs | 2 +- .../webgpu/webgpu_sys/gen_GpuExtent3dDict.rs | 4 +- .../webgpu_sys/gen_GpuExternalTexture.rs | 12 +- .../gen_GpuExternalTextureBindingLayout.rs | 7 +- .../gen_GpuExternalTextureDescriptor.rs | 4 +- .../webgpu/webgpu_sys/gen_GpuFeatureName.rs | 3 +- .../webgpu/webgpu_sys/gen_GpuFilterMode.rs | 2 +- .../webgpu/webgpu_sys/gen_GpuFragmentState.rs | 12 +- .../webgpu/webgpu_sys/gen_GpuFrontFace.rs | 2 +- .../webgpu/webgpu_sys/gen_GpuIndexFormat.rs | 2 +- .../webgpu/webgpu_sys/gen_GpuInternalError.rs | 9 +- .../webgpu/webgpu_sys/gen_GpuLoadOp.rs | 2 +- .../webgpu_sys/gen_GpuMipmapFilterMode.rs | 2 +- .../webgpu_sys/gen_GpuMultisampleState.rs | 4 +- .../webgpu_sys/gen_GpuObjectDescriptorBase.rs | 4 +- .../webgpu/webgpu_sys/gen_GpuOrigin2dDict.rs | 4 +- .../webgpu/webgpu_sys/gen_GpuOrigin3dDict.rs | 4 +- .../webgpu_sys/gen_GpuOutOfMemoryError.rs | 9 +- .../gen_GpuPipelineDescriptorBase.rs | 4 +- .../webgpu_sys/gen_GpuPipelineLayout.rs | 12 +- .../gen_GpuPipelineLayoutDescriptor.rs | 36 +- .../webgpu_sys/gen_GpuPowerPreference.rs | 2 +- .../webgpu_sys/gen_GpuPrimitiveState.rs | 4 +- .../webgpu_sys/gen_GpuPrimitiveTopology.rs | 2 +- .../webgpu_sys/gen_GpuProgrammableStage.rs | 4 +- .../webgpu/webgpu_sys/gen_GpuQuerySet.rs | 18 +- .../webgpu_sys/gen_GpuQuerySetDescriptor.rs | 4 +- .../webgpu/webgpu_sys/gen_GpuQueryType.rs | 2 +- .../backend/webgpu/webgpu_sys/gen_GpuQueue.rs | 126 ++-- .../webgpu_sys/gen_GpuQueueDescriptor.rs | 4 +- .../webgpu/webgpu_sys/gen_GpuRenderBundle.rs | 12 +- .../gen_GpuRenderBundleDescriptor.rs | 4 +- .../webgpu_sys/gen_GpuRenderBundleEncoder.rs | 632 ++++++++++++++++-- .../gen_GpuRenderBundleEncoderDescriptor.rs | 15 +- .../gen_GpuRenderPassColorAttachment.rs | 4 +- ...gen_GpuRenderPassDepthStencilAttachment.rs | 7 +- .../webgpu_sys/gen_GpuRenderPassDescriptor.rs | 12 +- .../webgpu_sys/gen_GpuRenderPassEncoder.rs | 608 +++++++++++++++-- .../gen_GpuRenderPassTimestampWrites.rs | 4 +- .../webgpu_sys/gen_GpuRenderPipeline.rs | 14 +- .../gen_GpuRenderPipelineDescriptor.rs | 4 +- .../gen_GpuRequestAdapterOptions.rs | 4 +- .../webgpu/webgpu_sys/gen_GpuSampler.rs | 12 +- .../webgpu_sys/gen_GpuSamplerBindingLayout.rs | 4 +- .../webgpu_sys/gen_GpuSamplerBindingType.rs | 2 +- .../webgpu_sys/gen_GpuSamplerDescriptor.rs | 4 +- .../webgpu/webgpu_sys/gen_GpuShaderModule.rs | 14 +- .../gen_GpuShaderModuleCompilationHint.rs | 7 +- .../gen_GpuShaderModuleDescriptor.rs | 4 +- .../webgpu_sys/gen_GpuStencilFaceState.rs | 4 +- .../webgpu_sys/gen_GpuStencilOperation.rs | 2 +- .../webgpu_sys/gen_GpuStorageTextureAccess.rs | 2 +- .../gen_GpuStorageTextureBindingLayout.rs | 7 +- .../webgpu/webgpu_sys/gen_GpuStoreOp.rs | 2 +- .../webgpu_sys/gen_GpuSupportedFeatures.rs | 20 +- .../webgpu_sys/gen_GpuSupportedLimits.rs | 269 +++++++- .../webgpu_sys/gen_GpuTexelCopyBufferInfo.rs | 4 +- .../gen_GpuTexelCopyBufferLayout.rs | 4 +- .../webgpu_sys/gen_GpuTexelCopyTextureInfo.rs | 4 +- .../webgpu/webgpu_sys/gen_GpuTexture.rs | 46 +- .../webgpu/webgpu_sys/gen_GpuTextureAspect.rs | 2 +- .../webgpu_sys/gen_GpuTextureBindingLayout.rs | 4 +- .../webgpu_sys/gen_GpuTextureDescriptor.rs | 4 +- .../webgpu_sys/gen_GpuTextureDimension.rs | 2 +- .../webgpu/webgpu_sys/gen_GpuTextureFormat.rs | 2 +- .../webgpu_sys/gen_GpuTextureSampleType.rs | 2 +- .../webgpu/webgpu_sys/gen_GpuTextureView.rs | 12 +- .../gen_GpuTextureViewDescriptor.rs | 4 +- .../webgpu_sys/gen_GpuTextureViewDimension.rs | 2 +- .../webgpu_sys/gen_GpuUncapturedErrorEvent.rs | 16 +- .../gen_GpuUncapturedErrorEventInit.rs | 4 +- .../webgpu_sys/gen_GpuValidationError.rs | 9 +- .../webgpu_sys/gen_GpuVertexAttribute.rs | 4 +- .../webgpu_sys/gen_GpuVertexBufferLayout.rs | 4 +- .../webgpu/webgpu_sys/gen_GpuVertexFormat.rs | 2 +- .../webgpu/webgpu_sys/gen_GpuVertexState.rs | 10 +- .../webgpu_sys/gen_GpuVertexStepMode.rs | 2 +- .../webgpu_sys/gen_WgslLanguageFeatures.rs | 20 +- .../webgpu/webgpu_sys/gen_gpu_map_mode.rs | 2 +- wgpu/src/backend/webgpu/webgpu_sys/mod.rs | 2 +- 130 files changed, 2777 insertions(+), 618 deletions(-) diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_Gpu.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_Gpu.rs index 2ce5a28d6ae..13145af7dcf 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_Gpu.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_Gpu.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPU , typescript_type = "GPU")] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPU", typescript_type = "GPU")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Gpu` class."] #[doc = ""] @@ -38,7 +38,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type Gpu; - # [wasm_bindgen (structural , method , getter , js_class = "GPU" , js_name = wgslLanguageFeatures)] + #[wasm_bindgen(method, getter, js_class = "GPU", js_name = "wgslLanguageFeatures")] #[doc = "Getter for the `wgslLanguageFeatures` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPU/wgslLanguageFeatures)"] @@ -49,7 +49,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn wgsl_language_features(this: &Gpu) -> WgslLanguageFeatures; - # [wasm_bindgen (method , structural , js_class = "GPU" , js_name = getPreferredCanvasFormat)] + #[wasm_bindgen(method, js_class = "GPU", js_name = "getPreferredCanvasFormat")] #[doc = "The `getPreferredCanvasFormat()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPU/getPreferredCanvasFormat)"] @@ -60,7 +60,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_preferred_canvas_format(this: &Gpu) -> GpuTextureFormat; - # [wasm_bindgen (method , structural , js_class = "GPU" , js_name = requestAdapter)] + #[wasm_bindgen(method, js_class = "GPU", js_name = "requestAdapter")] #[doc = "The `requestAdapter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPU/requestAdapter)"] @@ -69,9 +69,9 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn request_adapter(this: &Gpu) -> ::js_sys::Promise<::js_sys::JsOption>; + pub fn request_adapter(this: &Gpu) -> ::js_sys::Promise<::js_sys::JsNullable>; - # [wasm_bindgen (method , structural , js_class = "GPU" , js_name = requestAdapter)] + #[wasm_bindgen(method, js_class = "GPU", js_name = "requestAdapter")] #[doc = "The `requestAdapter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPU/requestAdapter)"] @@ -83,5 +83,5 @@ extern "C" { pub fn request_adapter_with_options( this: &Gpu, options: &GpuRequestAdapterOptions, - ) -> ::js_sys::Promise<::js_sys::JsOption>; + ) -> ::js_sys::Promise<::js_sys::JsNullable>; } diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuAdapter.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuAdapter.rs index 594a2652e3c..11c5bc27a2f 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuAdapter.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuAdapter.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,11 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUAdapter , typescript_type = "GPUAdapter")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUAdapter", + typescript_type = "GPUAdapter" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuAdapter` class."] #[doc = ""] @@ -38,7 +42,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuAdapter; - # [wasm_bindgen (structural , method , getter , js_class = "GPUAdapter" , js_name = features)] + #[wasm_bindgen(method, getter, js_class = "GPUAdapter", js_name = "features")] #[doc = "Getter for the `features` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapter/features)"] @@ -49,7 +53,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn features(this: &GpuAdapter) -> GpuSupportedFeatures; - # [wasm_bindgen (structural , method , getter , js_class = "GPUAdapter" , js_name = limits)] + #[wasm_bindgen(method, getter, js_class = "GPUAdapter", js_name = "limits")] #[doc = "Getter for the `limits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapter/limits)"] @@ -60,7 +64,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn limits(this: &GpuAdapter) -> GpuSupportedLimits; - # [wasm_bindgen (structural , method , getter , js_class = "GPUAdapter" , js_name = info)] + #[wasm_bindgen(method, getter, js_class = "GPUAdapter", js_name = "info")] #[doc = "Getter for the `info` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapter/info)"] @@ -71,7 +75,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn info(this: &GpuAdapter) -> GpuAdapterInfo; - # [wasm_bindgen (method , structural , js_class = "GPUAdapter" , js_name = requestDevice)] + #[wasm_bindgen(method, js_class = "GPUAdapter", js_name = "requestDevice")] #[doc = "The `requestDevice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapter/requestDevice)"] @@ -82,7 +86,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request_device(this: &GpuAdapter) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "GPUAdapter" , js_name = requestDevice)] + #[wasm_bindgen(method, js_class = "GPUAdapter", js_name = "requestDevice")] #[doc = "The `requestDevice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapter/requestDevice)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuAdapterInfo.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuAdapterInfo.rs index 26d89ffacc2..c63e77e282b 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuAdapterInfo.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuAdapterInfo.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,11 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUAdapterInfo , typescript_type = "GPUAdapterInfo")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUAdapterInfo", + typescript_type = "GPUAdapterInfo" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuAdapterInfo` class."] #[doc = ""] @@ -38,7 +42,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuAdapterInfo; - # [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterInfo" , js_name = vendor)] + #[wasm_bindgen(method, getter, js_class = "GPUAdapterInfo", js_name = "vendor")] #[doc = "Getter for the `vendor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterInfo/vendor)"] @@ -49,7 +53,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn vendor(this: &GpuAdapterInfo) -> ::alloc::string::String; - # [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterInfo" , js_name = architecture)] + #[wasm_bindgen(method, getter, js_class = "GPUAdapterInfo", js_name = "architecture")] #[doc = "Getter for the `architecture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterInfo/architecture)"] @@ -60,7 +64,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn architecture(this: &GpuAdapterInfo) -> ::alloc::string::String; - # [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterInfo" , js_name = device)] + #[wasm_bindgen(method, getter, js_class = "GPUAdapterInfo", js_name = "device")] #[doc = "Getter for the `device` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterInfo/device)"] @@ -71,7 +75,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device(this: &GpuAdapterInfo) -> ::alloc::string::String; - # [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterInfo" , js_name = description)] + #[wasm_bindgen(method, getter, js_class = "GPUAdapterInfo", js_name = "description")] #[doc = "Getter for the `description` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterInfo/description)"] @@ -82,7 +86,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn description(this: &GpuAdapterInfo) -> ::alloc::string::String; - # [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterInfo" , js_name = subgroupMinSize)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUAdapterInfo", + js_name = "subgroupMinSize" + )] #[doc = "Getter for the `subgroupMinSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterInfo/subgroupMinSize)"] @@ -93,7 +102,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn subgroup_min_size(this: &GpuAdapterInfo) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterInfo" , js_name = subgroupMaxSize)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUAdapterInfo", + js_name = "subgroupMaxSize" + )] #[doc = "Getter for the `subgroupMaxSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)"] @@ -104,7 +118,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn subgroup_max_size(this: &GpuAdapterInfo) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterInfo" , js_name = isFallbackAdapter)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUAdapterInfo", + js_name = "isFallbackAdapter" + )] #[doc = "Getter for the `isFallbackAdapter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuAddressMode.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuAddressMode.rs index 30daa4c7394..1aea967d8a9 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuAddressMode.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuAddressMode.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuAutoLayoutMode.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuAutoLayoutMode.rs index 388f9db1256..0ecb1024f4c 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuAutoLayoutMode.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuAutoLayoutMode.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBindGroup.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBindGroup.rs index a0444cfd91e..fadfa1543e9 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBindGroup.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBindGroup.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,11 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBindGroup , typescript_type = "GPUBindGroup")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUBindGroup", + typescript_type = "GPUBindGroup" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBindGroup` class."] #[doc = ""] @@ -38,7 +42,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuBindGroup; - # [wasm_bindgen (structural , method , getter , js_class = "GPUBindGroup" , js_name = label)] + #[wasm_bindgen(method, getter, js_class = "GPUBindGroup", js_name = "label")] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBindGroup/label)"] @@ -49,7 +53,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuBindGroup) -> ::alloc::string::String; - # [wasm_bindgen (structural , method , setter , js_class = "GPUBindGroup" , js_name = label)] + #[wasm_bindgen(method, setter, js_class = "GPUBindGroup", js_name = "label")] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBindGroup/label)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBindGroupDescriptor.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBindGroupDescriptor.rs index 7b45a922481..5c03d0dc7d8 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBindGroupDescriptor.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBindGroupDescriptor.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBindGroupDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUBindGroupDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBindGroupDescriptor` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBindGroupEntry.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBindGroupEntry.rs index bf931765cea..b1f895a459b 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBindGroupEntry.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBindGroupEntry.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBindGroupEntry)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUBindGroupEntry")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBindGroupEntry` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBindGroupLayout.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBindGroupLayout.rs index 26c8f248a4b..39fa59ba2c7 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBindGroupLayout.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBindGroupLayout.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,11 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBindGroupLayout , typescript_type = "GPUBindGroupLayout")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUBindGroupLayout", + typescript_type = "GPUBindGroupLayout" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBindGroupLayout` class."] #[doc = ""] @@ -38,7 +42,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuBindGroupLayout; - # [wasm_bindgen (structural , method , getter , js_class = "GPUBindGroupLayout" , js_name = label)] + #[wasm_bindgen(method, getter, js_class = "GPUBindGroupLayout", js_name = "label")] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBindGroupLayout/label)"] @@ -49,7 +53,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuBindGroupLayout) -> ::alloc::string::String; - # [wasm_bindgen (structural , method , setter , js_class = "GPUBindGroupLayout" , js_name = label)] + #[wasm_bindgen(method, setter, js_class = "GPUBindGroupLayout", js_name = "label")] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBindGroupLayout/label)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBindGroupLayoutDescriptor.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBindGroupLayoutDescriptor.rs index 69b4b93cf2c..5ef6ba791e0 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBindGroupLayoutDescriptor.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBindGroupLayoutDescriptor.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBindGroupLayoutDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUBindGroupLayoutDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBindGroupLayoutDescriptor` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBindGroupLayoutEntry.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBindGroupLayoutEntry.rs index d6bf550201d..7b924a06f7a 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBindGroupLayoutEntry.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBindGroupLayoutEntry.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBindGroupLayoutEntry)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUBindGroupLayoutEntry")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBindGroupLayoutEntry` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBlendComponent.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBlendComponent.rs index a316ec3bf1e..92f8885fa47 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBlendComponent.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBlendComponent.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBlendComponent)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUBlendComponent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBlendComponent` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBlendFactor.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBlendFactor.rs index d7dfd224ccc..739ced74d61 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBlendFactor.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBlendFactor.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBlendOperation.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBlendOperation.rs index 86f4586fefe..8ff82646b21 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBlendOperation.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBlendOperation.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBlendState.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBlendState.rs index c91a73568aa..004c435ae27 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBlendState.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBlendState.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBlendState)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUBlendState")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBlendState` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBuffer.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBuffer.rs index e384dad3bb5..00bf9fcd0ca 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBuffer.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBuffer.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,11 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBuffer , typescript_type = "GPUBuffer")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUBuffer", + typescript_type = "GPUBuffer" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBuffer` class."] #[doc = ""] @@ -38,7 +42,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuBuffer; - # [wasm_bindgen (structural , method , getter , js_class = "GPUBuffer" , js_name = size)] + #[wasm_bindgen(method, getter, js_class = "GPUBuffer", js_name = "size")] #[doc = "Getter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/size)"] @@ -49,7 +53,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn size(this: &GpuBuffer) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "GPUBuffer" , js_name = usage)] + #[wasm_bindgen(method, getter, js_class = "GPUBuffer", js_name = "usage")] #[doc = "Getter for the `usage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/usage)"] @@ -60,7 +64,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn usage(this: &GpuBuffer) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUBuffer" , js_name = mapState)] + #[wasm_bindgen(method, getter, js_class = "GPUBuffer", js_name = "mapState")] #[doc = "Getter for the `mapState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapState)"] @@ -71,7 +75,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn map_state(this: &GpuBuffer) -> GpuBufferMapState; - # [wasm_bindgen (structural , method , getter , js_class = "GPUBuffer" , js_name = label)] + #[wasm_bindgen(method, getter, js_class = "GPUBuffer", js_name = "label")] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/label)"] @@ -82,7 +86,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuBuffer) -> ::alloc::string::String; - # [wasm_bindgen (structural , method , setter , js_class = "GPUBuffer" , js_name = label)] + #[wasm_bindgen(method, setter, js_class = "GPUBuffer", js_name = "label")] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/label)"] @@ -93,7 +97,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuBuffer, value: &str); - # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = destroy)] + #[wasm_bindgen(method, js_class = "GPUBuffer")] #[doc = "The `destroy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/destroy)"] @@ -104,7 +108,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn destroy(this: &GpuBuffer); - # [wasm_bindgen (catch , method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)] + #[wasm_bindgen(catch, method, js_class = "GPUBuffer", js_name = "getMappedRange")] #[doc = "The `getMappedRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)"] @@ -115,7 +119,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_mapped_range(this: &GpuBuffer) -> Result<::js_sys::ArrayBuffer, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)] + #[wasm_bindgen(catch, method, js_class = "GPUBuffer", js_name = "getMappedRange")] #[doc = "The `getMappedRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)"] @@ -129,7 +133,7 @@ extern "C" { offset: u32, ) -> Result<::js_sys::ArrayBuffer, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)] + #[wasm_bindgen(catch, method, js_class = "GPUBuffer", js_name = "getMappedRange")] #[doc = "The `getMappedRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)"] @@ -143,7 +147,7 @@ extern "C" { offset: f64, ) -> Result<::js_sys::ArrayBuffer, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)] + #[wasm_bindgen(catch, method, js_class = "GPUBuffer", js_name = "getMappedRange")] #[doc = "The `getMappedRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)"] @@ -158,7 +162,7 @@ extern "C" { size: u32, ) -> Result<::js_sys::ArrayBuffer, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)] + #[wasm_bindgen(catch, method, js_class = "GPUBuffer", js_name = "getMappedRange")] #[doc = "The `getMappedRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)"] @@ -173,7 +177,7 @@ extern "C" { size: u32, ) -> Result<::js_sys::ArrayBuffer, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)] + #[wasm_bindgen(catch, method, js_class = "GPUBuffer", js_name = "getMappedRange")] #[doc = "The `getMappedRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)"] @@ -188,7 +192,7 @@ extern "C" { size: f64, ) -> Result<::js_sys::ArrayBuffer, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)] + #[wasm_bindgen(catch, method, js_class = "GPUBuffer", js_name = "getMappedRange")] #[doc = "The `getMappedRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)"] @@ -203,7 +207,7 @@ extern "C" { size: f64, ) -> Result<::js_sys::ArrayBuffer, JsValue>; - # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = mapAsync)] + #[wasm_bindgen(method, js_class = "GPUBuffer", js_name = "mapAsync")] #[doc = "The `mapAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapAsync)"] @@ -214,7 +218,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn map_async(this: &GpuBuffer, mode: u32) -> ::js_sys::Promise<::js_sys::Undefined>; - # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = mapAsync)] + #[wasm_bindgen(method, js_class = "GPUBuffer", js_name = "mapAsync")] #[doc = "The `mapAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapAsync)"] @@ -229,7 +233,7 @@ extern "C" { offset: u32, ) -> ::js_sys::Promise<::js_sys::Undefined>; - # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = mapAsync)] + #[wasm_bindgen(method, js_class = "GPUBuffer", js_name = "mapAsync")] #[doc = "The `mapAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapAsync)"] @@ -244,7 +248,7 @@ extern "C" { offset: f64, ) -> ::js_sys::Promise<::js_sys::Undefined>; - # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = mapAsync)] + #[wasm_bindgen(method, js_class = "GPUBuffer", js_name = "mapAsync")] #[doc = "The `mapAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapAsync)"] @@ -260,7 +264,7 @@ extern "C" { size: u32, ) -> ::js_sys::Promise<::js_sys::Undefined>; - # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = mapAsync)] + #[wasm_bindgen(method, js_class = "GPUBuffer", js_name = "mapAsync")] #[doc = "The `mapAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapAsync)"] @@ -276,7 +280,7 @@ extern "C" { size: u32, ) -> ::js_sys::Promise<::js_sys::Undefined>; - # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = mapAsync)] + #[wasm_bindgen(method, js_class = "GPUBuffer", js_name = "mapAsync")] #[doc = "The `mapAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapAsync)"] @@ -292,7 +296,7 @@ extern "C" { size: f64, ) -> ::js_sys::Promise<::js_sys::Undefined>; - # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = mapAsync)] + #[wasm_bindgen(method, js_class = "GPUBuffer", js_name = "mapAsync")] #[doc = "The `mapAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapAsync)"] @@ -308,7 +312,7 @@ extern "C" { size: f64, ) -> ::js_sys::Promise<::js_sys::Undefined>; - # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = unmap)] + #[wasm_bindgen(method, js_class = "GPUBuffer")] #[doc = "The `unmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/unmap)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBufferBinding.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBufferBinding.rs index c9f35b2d70f..c1d387e501b 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBufferBinding.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBufferBinding.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBufferBinding)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUBufferBinding")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBufferBinding` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBufferBindingLayout.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBufferBindingLayout.rs index 9167204059c..da68879ef86 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBufferBindingLayout.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBufferBindingLayout.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBufferBindingLayout)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUBufferBindingLayout")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBufferBindingLayout` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBufferBindingType.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBufferBindingType.rs index 0b1b9a05ba4..56f81d604e0 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBufferBindingType.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBufferBindingType.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBufferDescriptor.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBufferDescriptor.rs index d6632221828..a63b945fa54 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBufferDescriptor.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBufferDescriptor.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBufferDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUBufferDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBufferDescriptor` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBufferMapState.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBufferMapState.rs index cdfd85b10cf..b6091519329 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBufferMapState.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBufferMapState.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCanvasAlphaMode.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCanvasAlphaMode.rs index 93d6ba4c091..05ae5e58d7a 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCanvasAlphaMode.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCanvasAlphaMode.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCanvasConfiguration.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCanvasConfiguration.rs index 1bb67e40c7b..d30e02dc4e5 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCanvasConfiguration.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCanvasConfiguration.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCanvasConfiguration)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUCanvasConfiguration")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCanvasConfiguration` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCanvasContext.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCanvasContext.rs index f829e2b38c6..d8fc927af4d 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCanvasContext.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCanvasContext.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,11 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCanvasContext , typescript_type = "GPUCanvasContext")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUCanvasContext", + typescript_type = "GPUCanvasContext" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCanvasContext` class."] #[doc = ""] @@ -38,7 +42,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuCanvasContext; - # [wasm_bindgen (structural , method , getter , js_class = "GPUCanvasContext" , js_name = canvas)] + #[wasm_bindgen(method, getter, js_class = "GPUCanvasContext", js_name = "canvas")] #[doc = "Getter for the `canvas` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCanvasContext/canvas)"] @@ -49,7 +53,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn canvas(this: &GpuCanvasContext) -> ::js_sys::Object; - # [wasm_bindgen (catch , method , structural , js_class = "GPUCanvasContext" , js_name = configure)] + #[wasm_bindgen(catch, method, js_class = "GPUCanvasContext")] #[doc = "The `configure()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCanvasContext/configure)"] @@ -63,7 +67,7 @@ extern "C" { configuration: &GpuCanvasConfiguration, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "GPUCanvasContext" , js_name = getConfiguration)] + #[wasm_bindgen(method, js_class = "GPUCanvasContext", js_name = "getConfiguration")] #[doc = "The `getConfiguration()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCanvasContext/getConfiguration)"] @@ -74,7 +78,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_configuration(this: &GpuCanvasContext) -> Option; - # [wasm_bindgen (catch , method , structural , js_class = "GPUCanvasContext" , js_name = getCurrentTexture)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUCanvasContext", + js_name = "getCurrentTexture" + )] #[doc = "The `getCurrentTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCanvasContext/getCurrentTexture)"] @@ -85,7 +94,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_current_texture(this: &GpuCanvasContext) -> Result; - # [wasm_bindgen (method , structural , js_class = "GPUCanvasContext" , js_name = unconfigure)] + #[wasm_bindgen(method, js_class = "GPUCanvasContext")] #[doc = "The `unconfigure()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCanvasContext/unconfigure)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCanvasToneMapping.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCanvasToneMapping.rs index 3c4a8c51b20..9bc83600735 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCanvasToneMapping.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCanvasToneMapping.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCanvasToneMapping)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUCanvasToneMapping")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCanvasToneMapping` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCanvasToneMappingMode.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCanvasToneMappingMode.rs index d7241a840a1..f30c49e9c27 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCanvasToneMappingMode.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCanvasToneMappingMode.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuColorDict.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuColorDict.rs index 07305f4e9fd..33a0a599e7e 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuColorDict.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuColorDict.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUColorDict)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUColorDict")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuColorDict` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuColorTargetState.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuColorTargetState.rs index 1700b3b819a..d941a525a27 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuColorTargetState.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuColorTargetState.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUColorTargetState)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUColorTargetState")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuColorTargetState` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCommandBuffer.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCommandBuffer.rs index f87d957178b..515e4738404 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCommandBuffer.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCommandBuffer.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,11 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCommandBuffer , typescript_type = "GPUCommandBuffer")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUCommandBuffer", + typescript_type = "GPUCommandBuffer" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCommandBuffer` class."] #[doc = ""] @@ -38,7 +42,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuCommandBuffer; - # [wasm_bindgen (structural , method , getter , js_class = "GPUCommandBuffer" , js_name = label)] + #[wasm_bindgen(method, getter, js_class = "GPUCommandBuffer", js_name = "label")] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandBuffer/label)"] @@ -49,7 +53,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuCommandBuffer) -> ::alloc::string::String; - # [wasm_bindgen (structural , method , setter , js_class = "GPUCommandBuffer" , js_name = label)] + #[wasm_bindgen(method, setter, js_class = "GPUCommandBuffer", js_name = "label")] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandBuffer/label)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCommandBufferDescriptor.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCommandBufferDescriptor.rs index 7feab075a7e..358127206ee 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCommandBufferDescriptor.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCommandBufferDescriptor.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCommandBufferDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUCommandBufferDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCommandBufferDescriptor` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCommandEncoder.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCommandEncoder.rs index f4114af0f5e..2f713d383bd 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCommandEncoder.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCommandEncoder.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,11 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCommandEncoder , typescript_type = "GPUCommandEncoder")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUCommandEncoder", + typescript_type = "GPUCommandEncoder" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCommandEncoder` class."] #[doc = ""] @@ -38,7 +42,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuCommandEncoder; - # [wasm_bindgen (structural , method , getter , js_class = "GPUCommandEncoder" , js_name = label)] + #[wasm_bindgen(method, getter, js_class = "GPUCommandEncoder", js_name = "label")] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/label)"] @@ -49,7 +53,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuCommandEncoder) -> ::alloc::string::String; - # [wasm_bindgen (structural , method , setter , js_class = "GPUCommandEncoder" , js_name = label)] + #[wasm_bindgen(method, setter, js_class = "GPUCommandEncoder", js_name = "label")] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/label)"] @@ -60,7 +64,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuCommandEncoder, value: &str); - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = beginComputePass)] + #[wasm_bindgen(method, js_class = "GPUCommandEncoder", js_name = "beginComputePass")] #[doc = "The `beginComputePass()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/beginComputePass)"] @@ -71,7 +75,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn begin_compute_pass(this: &GpuCommandEncoder) -> GpuComputePassEncoder; - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = beginComputePass)] + #[wasm_bindgen(method, js_class = "GPUCommandEncoder", js_name = "beginComputePass")] #[doc = "The `beginComputePass()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/beginComputePass)"] @@ -85,7 +89,12 @@ extern "C" { descriptor: &GpuComputePassDescriptor, ) -> GpuComputePassEncoder; - # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = beginRenderPass)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUCommandEncoder", + js_name = "beginRenderPass" + )] #[doc = "The `beginRenderPass()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/beginRenderPass)"] @@ -99,7 +108,7 @@ extern "C" { descriptor: &GpuRenderPassDescriptor, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = clearBuffer)] + #[wasm_bindgen(method, js_class = "GPUCommandEncoder", js_name = "clearBuffer")] #[doc = "The `clearBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/clearBuffer)"] @@ -110,7 +119,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn clear_buffer(this: &GpuCommandEncoder, buffer: &GpuBuffer); - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = clearBuffer)] + #[wasm_bindgen(method, js_class = "GPUCommandEncoder", js_name = "clearBuffer")] #[doc = "The `clearBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/clearBuffer)"] @@ -121,7 +130,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn clear_buffer_with_u32(this: &GpuCommandEncoder, buffer: &GpuBuffer, offset: u32); - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = clearBuffer)] + #[wasm_bindgen(method, js_class = "GPUCommandEncoder", js_name = "clearBuffer")] #[doc = "The `clearBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/clearBuffer)"] @@ -132,7 +141,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn clear_buffer_with_f64(this: &GpuCommandEncoder, buffer: &GpuBuffer, offset: f64); - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = clearBuffer)] + #[wasm_bindgen(method, js_class = "GPUCommandEncoder", js_name = "clearBuffer")] #[doc = "The `clearBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/clearBuffer)"] @@ -148,7 +157,7 @@ extern "C" { size: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = clearBuffer)] + #[wasm_bindgen(method, js_class = "GPUCommandEncoder", js_name = "clearBuffer")] #[doc = "The `clearBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/clearBuffer)"] @@ -164,7 +173,7 @@ extern "C" { size: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = clearBuffer)] + #[wasm_bindgen(method, js_class = "GPUCommandEncoder", js_name = "clearBuffer")] #[doc = "The `clearBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/clearBuffer)"] @@ -180,7 +189,7 @@ extern "C" { size: f64, ); - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = clearBuffer)] + #[wasm_bindgen(method, js_class = "GPUCommandEncoder", js_name = "clearBuffer")] #[doc = "The `clearBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/clearBuffer)"] @@ -196,7 +205,74 @@ extern "C" { size: f64, ); - # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUCommandEncoder", + js_name = "copyBufferToBuffer" + )] + #[doc = "The `copyBufferToBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn copy_buffer_to_buffer( + this: &GpuCommandEncoder, + source: &GpuBuffer, + destination: &GpuBuffer, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPUCommandEncoder", + js_name = "copyBufferToBuffer" + )] + #[doc = "The `copyBufferToBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn copy_buffer_to_buffer_with_u32( + this: &GpuCommandEncoder, + source: &GpuBuffer, + destination: &GpuBuffer, + size: u32, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPUCommandEncoder", + js_name = "copyBufferToBuffer" + )] + #[doc = "The `copyBufferToBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn copy_buffer_to_buffer_with_f64( + this: &GpuCommandEncoder, + source: &GpuBuffer, + destination: &GpuBuffer, + size: f64, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPUCommandEncoder", + js_name = "copyBufferToBuffer" + )] #[doc = "The `copyBufferToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] @@ -213,7 +289,12 @@ extern "C" { destination_offset: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUCommandEncoder", + js_name = "copyBufferToBuffer" + )] #[doc = "The `copyBufferToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] @@ -230,7 +311,12 @@ extern "C" { destination_offset: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUCommandEncoder", + js_name = "copyBufferToBuffer" + )] #[doc = "The `copyBufferToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] @@ -247,7 +333,12 @@ extern "C" { destination_offset: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUCommandEncoder", + js_name = "copyBufferToBuffer" + )] #[doc = "The `copyBufferToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] @@ -264,7 +355,12 @@ extern "C" { destination_offset: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUCommandEncoder", + js_name = "copyBufferToBuffer" + )] #[doc = "The `copyBufferToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] @@ -282,7 +378,12 @@ extern "C" { size: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUCommandEncoder", + js_name = "copyBufferToBuffer" + )] #[doc = "The `copyBufferToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] @@ -300,7 +401,12 @@ extern "C" { size: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUCommandEncoder", + js_name = "copyBufferToBuffer" + )] #[doc = "The `copyBufferToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] @@ -318,7 +424,12 @@ extern "C" { size: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUCommandEncoder", + js_name = "copyBufferToBuffer" + )] #[doc = "The `copyBufferToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] @@ -336,7 +447,12 @@ extern "C" { size: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUCommandEncoder", + js_name = "copyBufferToBuffer" + )] #[doc = "The `copyBufferToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] @@ -354,7 +470,12 @@ extern "C" { size: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUCommandEncoder", + js_name = "copyBufferToBuffer" + )] #[doc = "The `copyBufferToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] @@ -372,7 +493,12 @@ extern "C" { size: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUCommandEncoder", + js_name = "copyBufferToBuffer" + )] #[doc = "The `copyBufferToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] @@ -390,7 +516,12 @@ extern "C" { size: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUCommandEncoder", + js_name = "copyBufferToBuffer" + )] #[doc = "The `copyBufferToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] @@ -408,7 +539,12 @@ extern "C" { size: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToTexture)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUCommandEncoder", + js_name = "copyBufferToTexture" + )] #[doc = "The `copyBufferToTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)"] @@ -424,7 +560,12 @@ extern "C" { copy_size: &[::js_sys::Number], ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToTexture)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUCommandEncoder", + js_name = "copyBufferToTexture" + )] #[doc = "The `copyBufferToTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)"] @@ -440,7 +581,12 @@ extern "C" { copy_size: &GpuExtent3dDict, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToBuffer)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUCommandEncoder", + js_name = "copyTextureToBuffer" + )] #[doc = "The `copyTextureToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)"] @@ -456,7 +602,12 @@ extern "C" { copy_size: &[::js_sys::Number], ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToBuffer)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUCommandEncoder", + js_name = "copyTextureToBuffer" + )] #[doc = "The `copyTextureToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)"] @@ -472,7 +623,12 @@ extern "C" { copy_size: &GpuExtent3dDict, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToTexture)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUCommandEncoder", + js_name = "copyTextureToTexture" + )] #[doc = "The `copyTextureToTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)"] @@ -488,7 +644,12 @@ extern "C" { copy_size: &[::js_sys::Number], ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToTexture)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUCommandEncoder", + js_name = "copyTextureToTexture" + )] #[doc = "The `copyTextureToTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)"] @@ -504,7 +665,7 @@ extern "C" { copy_size: &GpuExtent3dDict, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = finish)] + #[wasm_bindgen(method, js_class = "GPUCommandEncoder")] #[doc = "The `finish()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/finish)"] @@ -515,7 +676,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn finish(this: &GpuCommandEncoder) -> GpuCommandBuffer; - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = finish)] + #[wasm_bindgen(method, js_class = "GPUCommandEncoder", js_name = "finish")] #[doc = "The `finish()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/finish)"] @@ -529,7 +690,7 @@ extern "C" { descriptor: &GpuCommandBufferDescriptor, ) -> GpuCommandBuffer; - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = resolveQuerySet)] + #[wasm_bindgen(method, js_class = "GPUCommandEncoder", js_name = "resolveQuerySet")] #[doc = "The `resolveQuerySet()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/resolveQuerySet)"] @@ -547,7 +708,7 @@ extern "C" { destination_offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = resolveQuerySet)] + #[wasm_bindgen(method, js_class = "GPUCommandEncoder", js_name = "resolveQuerySet")] #[doc = "The `resolveQuerySet()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/resolveQuerySet)"] @@ -565,7 +726,7 @@ extern "C" { destination_offset: f64, ); - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = insertDebugMarker)] + #[wasm_bindgen(method, js_class = "GPUCommandEncoder", js_name = "insertDebugMarker")] #[doc = "The `insertDebugMarker()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/insertDebugMarker)"] @@ -576,7 +737,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn insert_debug_marker(this: &GpuCommandEncoder, marker_label: &str); - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = popDebugGroup)] + #[wasm_bindgen(method, js_class = "GPUCommandEncoder", js_name = "popDebugGroup")] #[doc = "The `popDebugGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/popDebugGroup)"] @@ -587,7 +748,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn pop_debug_group(this: &GpuCommandEncoder); - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = pushDebugGroup)] + #[wasm_bindgen(method, js_class = "GPUCommandEncoder", js_name = "pushDebugGroup")] #[doc = "The `pushDebugGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/pushDebugGroup)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCommandEncoderDescriptor.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCommandEncoderDescriptor.rs index 6177aa172bf..f237730bb55 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCommandEncoderDescriptor.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCommandEncoderDescriptor.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCommandEncoderDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUCommandEncoderDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCommandEncoderDescriptor` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCompareFunction.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCompareFunction.rs index c0f6c578471..c0a8dbd69fd 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCompareFunction.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCompareFunction.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCompilationInfo.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCompilationInfo.rs index d23ec3f116b..1c39b57685e 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCompilationInfo.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCompilationInfo.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,11 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCompilationInfo , typescript_type = "GPUCompilationInfo")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUCompilationInfo", + typescript_type = "GPUCompilationInfo" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCompilationInfo` class."] #[doc = ""] @@ -38,7 +42,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuCompilationInfo; - # [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationInfo" , js_name = messages)] + #[wasm_bindgen(method, getter, js_class = "GPUCompilationInfo", js_name = "messages")] #[doc = "Getter for the `messages` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationInfo/messages)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCompilationMessage.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCompilationMessage.rs index cbe2aa94e46..df5475ea4b6 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCompilationMessage.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCompilationMessage.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,11 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCompilationMessage , typescript_type = "GPUCompilationMessage")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUCompilationMessage", + typescript_type = "GPUCompilationMessage" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCompilationMessage` class."] #[doc = ""] @@ -38,7 +42,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuCompilationMessage; - # [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationMessage" , js_name = message)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUCompilationMessage", + js_name = "message" + )] #[doc = "Getter for the `message` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationMessage/message)"] @@ -49,7 +58,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn message(this: &GpuCompilationMessage) -> ::alloc::string::String; - # [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationMessage" , js_name = type)] + #[wasm_bindgen(method, getter, js_class = "GPUCompilationMessage", js_name = "type")] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationMessage/type)"] @@ -60,7 +69,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn type_(this: &GpuCompilationMessage) -> GpuCompilationMessageType; - # [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationMessage" , js_name = lineNum)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUCompilationMessage", + js_name = "lineNum" + )] #[doc = "Getter for the `lineNum` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationMessage/lineNum)"] @@ -71,7 +85,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn line_num(this: &GpuCompilationMessage) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationMessage" , js_name = linePos)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUCompilationMessage", + js_name = "linePos" + )] #[doc = "Getter for the `linePos` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationMessage/linePos)"] @@ -82,7 +101,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn line_pos(this: &GpuCompilationMessage) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationMessage" , js_name = offset)] + #[wasm_bindgen(method, getter, js_class = "GPUCompilationMessage", js_name = "offset")] #[doc = "Getter for the `offset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationMessage/offset)"] @@ -93,7 +112,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn offset(this: &GpuCompilationMessage) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationMessage" , js_name = length)] + #[wasm_bindgen(method, getter, js_class = "GPUCompilationMessage", js_name = "length")] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationMessage/length)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCompilationMessageType.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCompilationMessageType.rs index 64aa0d7a7dd..b2575e47fc0 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCompilationMessageType.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCompilationMessageType.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuComputePassDescriptor.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuComputePassDescriptor.rs index d01dff8ea67..c7a69c26f37 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuComputePassDescriptor.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuComputePassDescriptor.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUComputePassDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUComputePassDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuComputePassDescriptor` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuComputePassEncoder.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuComputePassEncoder.rs index 39c7c67c78e..1a9bfd4aeed 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuComputePassEncoder.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuComputePassEncoder.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,11 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUComputePassEncoder , typescript_type = "GPUComputePassEncoder")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUComputePassEncoder", + typescript_type = "GPUComputePassEncoder" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuComputePassEncoder` class."] #[doc = ""] @@ -38,7 +42,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuComputePassEncoder; - # [wasm_bindgen (structural , method , getter , js_class = "GPUComputePassEncoder" , js_name = label)] + #[wasm_bindgen(method, getter, js_class = "GPUComputePassEncoder", js_name = "label")] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/label)"] @@ -49,7 +53,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuComputePassEncoder) -> ::alloc::string::String; - # [wasm_bindgen (structural , method , setter , js_class = "GPUComputePassEncoder" , js_name = label)] + #[wasm_bindgen(method, setter, js_class = "GPUComputePassEncoder", js_name = "label")] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/label)"] @@ -60,7 +64,11 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuComputePassEncoder, value: &str); - # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatchWorkgroups)] + #[wasm_bindgen( + method, + js_class = "GPUComputePassEncoder", + js_name = "dispatchWorkgroups" + )] #[doc = "The `dispatchWorkgroups()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)"] @@ -71,7 +79,11 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn dispatch_workgroups(this: &GpuComputePassEncoder, workgroup_count_x: u32); - # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatchWorkgroups)] + #[wasm_bindgen( + method, + js_class = "GPUComputePassEncoder", + js_name = "dispatchWorkgroups" + )] #[doc = "The `dispatchWorkgroups()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)"] @@ -86,7 +98,11 @@ extern "C" { workgroup_count_y: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatchWorkgroups)] + #[wasm_bindgen( + method, + js_class = "GPUComputePassEncoder", + js_name = "dispatchWorkgroups" + )] #[doc = "The `dispatchWorkgroups()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)"] @@ -102,7 +118,11 @@ extern "C" { workgroup_count_z: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatchWorkgroupsIndirect)] + #[wasm_bindgen( + method, + js_class = "GPUComputePassEncoder", + js_name = "dispatchWorkgroupsIndirect" + )] #[doc = "The `dispatchWorkgroupsIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)"] @@ -117,7 +137,11 @@ extern "C" { indirect_offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatchWorkgroupsIndirect)] + #[wasm_bindgen( + method, + js_class = "GPUComputePassEncoder", + js_name = "dispatchWorkgroupsIndirect" + )] #[doc = "The `dispatchWorkgroupsIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)"] @@ -132,7 +156,7 @@ extern "C" { indirect_offset: f64, ); - # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = end)] + #[wasm_bindgen(method, js_class = "GPUComputePassEncoder")] #[doc = "The `end()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/end)"] @@ -143,7 +167,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn end(this: &GpuComputePassEncoder); - # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = setPipeline)] + #[wasm_bindgen(method, js_class = "GPUComputePassEncoder", js_name = "setPipeline")] #[doc = "The `setPipeline()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setPipeline)"] @@ -154,7 +178,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_pipeline(this: &GpuComputePassEncoder, pipeline: &GpuComputePipeline); - # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup)] + #[wasm_bindgen(method, js_class = "GPUComputePassEncoder", js_name = "setBindGroup")] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"] @@ -169,7 +193,7 @@ extern "C" { bind_group: Option<&GpuBindGroup>, ); - # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup)] + #[wasm_bindgen(method, js_class = "GPUComputePassEncoder", js_name = "setBindGroup")] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"] @@ -185,7 +209,12 @@ extern "C" { dynamic_offsets: &[::js_sys::Number], ); - # [wasm_bindgen (catch , method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUComputePassEncoder", + js_name = "setBindGroup" + )] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"] @@ -203,7 +232,12 @@ extern "C" { dynamic_offsets_data_length: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUComputePassEncoder", + js_name = "setBindGroup" + )] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"] @@ -221,7 +255,12 @@ extern "C" { dynamic_offsets_data_length: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUComputePassEncoder", + js_name = "setBindGroup" + )] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"] @@ -239,7 +278,12 @@ extern "C" { dynamic_offsets_data_length: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUComputePassEncoder", + js_name = "setBindGroup" + )] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"] @@ -257,7 +301,461 @@ extern "C" { dynamic_offsets_data_length: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = insertDebugMarker)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUComputePassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_buffer_source( + this: &GpuComputePassEncoder, + range_offset: u32, + data: &::js_sys::Object, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPUComputePassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_slice( + this: &GpuComputePassEncoder, + range_offset: u32, + data: &mut [u8], + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPUComputePassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_array( + this: &GpuComputePassEncoder, + range_offset: u32, + data: &::js_sys::Uint8Array, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPUComputePassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_buffer_source_and_u32( + this: &GpuComputePassEncoder, + range_offset: u32, + data: &::js_sys::Object, + data_offset: u32, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPUComputePassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_slice_and_u32( + this: &GpuComputePassEncoder, + range_offset: u32, + data: &mut [u8], + data_offset: u32, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPUComputePassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_array_and_u32( + this: &GpuComputePassEncoder, + range_offset: u32, + data: &::js_sys::Uint8Array, + data_offset: u32, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPUComputePassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_buffer_source_and_f64( + this: &GpuComputePassEncoder, + range_offset: u32, + data: &::js_sys::Object, + data_offset: f64, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPUComputePassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_slice_and_f64( + this: &GpuComputePassEncoder, + range_offset: u32, + data: &mut [u8], + data_offset: f64, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPUComputePassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_array_and_f64( + this: &GpuComputePassEncoder, + range_offset: u32, + data: &::js_sys::Uint8Array, + data_offset: f64, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPUComputePassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_buffer_source_and_u32_and_u32( + this: &GpuComputePassEncoder, + range_offset: u32, + data: &::js_sys::Object, + data_offset: u32, + data_size: u32, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPUComputePassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_slice_and_u32_and_u32( + this: &GpuComputePassEncoder, + range_offset: u32, + data: &mut [u8], + data_offset: u32, + data_size: u32, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPUComputePassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_array_and_u32_and_u32( + this: &GpuComputePassEncoder, + range_offset: u32, + data: &::js_sys::Uint8Array, + data_offset: u32, + data_size: u32, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPUComputePassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_buffer_source_and_f64_and_u32( + this: &GpuComputePassEncoder, + range_offset: u32, + data: &::js_sys::Object, + data_offset: f64, + data_size: u32, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPUComputePassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_slice_and_f64_and_u32( + this: &GpuComputePassEncoder, + range_offset: u32, + data: &mut [u8], + data_offset: f64, + data_size: u32, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPUComputePassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_array_and_f64_and_u32( + this: &GpuComputePassEncoder, + range_offset: u32, + data: &::js_sys::Uint8Array, + data_offset: f64, + data_size: u32, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPUComputePassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_buffer_source_and_u32_and_f64( + this: &GpuComputePassEncoder, + range_offset: u32, + data: &::js_sys::Object, + data_offset: u32, + data_size: f64, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPUComputePassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_slice_and_u32_and_f64( + this: &GpuComputePassEncoder, + range_offset: u32, + data: &mut [u8], + data_offset: u32, + data_size: f64, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPUComputePassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_array_and_u32_and_f64( + this: &GpuComputePassEncoder, + range_offset: u32, + data: &::js_sys::Uint8Array, + data_offset: u32, + data_size: f64, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPUComputePassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_buffer_source_and_f64_and_f64( + this: &GpuComputePassEncoder, + range_offset: u32, + data: &::js_sys::Object, + data_offset: f64, + data_size: f64, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPUComputePassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_slice_and_f64_and_f64( + this: &GpuComputePassEncoder, + range_offset: u32, + data: &mut [u8], + data_offset: f64, + data_size: f64, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPUComputePassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_array_and_f64_and_f64( + this: &GpuComputePassEncoder, + range_offset: u32, + data: &::js_sys::Uint8Array, + data_offset: f64, + data_size: f64, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + method, + js_class = "GPUComputePassEncoder", + js_name = "insertDebugMarker" + )] #[doc = "The `insertDebugMarker()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/insertDebugMarker)"] @@ -268,7 +766,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn insert_debug_marker(this: &GpuComputePassEncoder, marker_label: &str); - # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = popDebugGroup)] + #[wasm_bindgen(method, js_class = "GPUComputePassEncoder", js_name = "popDebugGroup")] #[doc = "The `popDebugGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/popDebugGroup)"] @@ -279,7 +777,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn pop_debug_group(this: &GpuComputePassEncoder); - # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = pushDebugGroup)] + #[wasm_bindgen(method, js_class = "GPUComputePassEncoder", js_name = "pushDebugGroup")] #[doc = "The `pushDebugGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/pushDebugGroup)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuComputePassTimestampWrites.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuComputePassTimestampWrites.rs index e1b412df322..50723c4f258 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuComputePassTimestampWrites.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuComputePassTimestampWrites.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,10 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUComputePassTimestampWrites)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUComputePassTimestampWrites" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuComputePassTimestampWrites` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuComputePipeline.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuComputePipeline.rs index 73d00341c58..130923ad14e 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuComputePipeline.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuComputePipeline.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,11 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUComputePipeline , typescript_type = "GPUComputePipeline")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUComputePipeline", + typescript_type = "GPUComputePipeline" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuComputePipeline` class."] #[doc = ""] @@ -38,7 +42,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuComputePipeline; - # [wasm_bindgen (structural , method , getter , js_class = "GPUComputePipeline" , js_name = label)] + #[wasm_bindgen(method, getter, js_class = "GPUComputePipeline", js_name = "label")] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePipeline/label)"] @@ -49,7 +53,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuComputePipeline) -> ::alloc::string::String; - # [wasm_bindgen (structural , method , setter , js_class = "GPUComputePipeline" , js_name = label)] + #[wasm_bindgen(method, setter, js_class = "GPUComputePipeline", js_name = "label")] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePipeline/label)"] @@ -60,7 +64,11 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuComputePipeline, value: &str); - # [wasm_bindgen (method , structural , js_class = "GPUComputePipeline" , js_name = getBindGroupLayout)] + #[wasm_bindgen( + method, + js_class = "GPUComputePipeline", + js_name = "getBindGroupLayout" + )] #[doc = "The `getBindGroupLayout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePipeline/getBindGroupLayout)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuComputePipelineDescriptor.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuComputePipelineDescriptor.rs index 3ece28e271d..c4464b2dd26 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuComputePipelineDescriptor.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuComputePipelineDescriptor.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUComputePipelineDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUComputePipelineDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuComputePipelineDescriptor` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCopyExternalImageDestInfo.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCopyExternalImageDestInfo.rs index f98310326b8..7d9aba04ab7 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCopyExternalImageDestInfo.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCopyExternalImageDestInfo.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCopyExternalImageDestInfo)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUCopyExternalImageDestInfo")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCopyExternalImageDestInfo` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCopyExternalImageSourceInfo.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCopyExternalImageSourceInfo.rs index dcd7261d9fe..4106b1a18d9 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCopyExternalImageSourceInfo.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCopyExternalImageSourceInfo.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,10 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCopyExternalImageSourceInfo)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUCopyExternalImageSourceInfo" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCopyExternalImageSourceInfo` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCullMode.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCullMode.rs index 87b64deea64..833cb600514 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCullMode.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCullMode.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuDepthStencilState.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuDepthStencilState.rs index 186344a4a2b..201cdc5cf9e 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuDepthStencilState.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuDepthStencilState.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUDepthStencilState)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUDepthStencilState")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuDepthStencilState` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuDevice.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuDevice.rs index 0f3db99b92c..4105e884223 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuDevice.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuDevice.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,12 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = GPUDevice , typescript_type = "GPUDevice")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "GPUDevice", + typescript_type = "GPUDevice" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuDevice` class."] #[doc = ""] @@ -38,7 +43,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuDevice; - # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = features)] + #[wasm_bindgen(method, getter, js_class = "GPUDevice", js_name = "features")] #[doc = "Getter for the `features` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/features)"] @@ -49,7 +54,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn features(this: &GpuDevice) -> GpuSupportedFeatures; - # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = limits)] + #[wasm_bindgen(method, getter, js_class = "GPUDevice", js_name = "limits")] #[doc = "Getter for the `limits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/limits)"] @@ -60,7 +65,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn limits(this: &GpuDevice) -> GpuSupportedLimits; - # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = adapterInfo)] + #[wasm_bindgen(method, getter, js_class = "GPUDevice", js_name = "adapterInfo")] #[doc = "Getter for the `adapterInfo` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/adapterInfo)"] @@ -71,7 +76,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn adapter_info(this: &GpuDevice) -> GpuAdapterInfo; - # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = queue)] + #[wasm_bindgen(method, getter, js_class = "GPUDevice", js_name = "queue")] #[doc = "Getter for the `queue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/queue)"] @@ -82,7 +87,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn queue(this: &GpuDevice) -> GpuQueue; - # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = lost)] + #[wasm_bindgen(method, getter, js_class = "GPUDevice", js_name = "lost")] #[doc = "Getter for the `lost` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/lost)"] @@ -93,7 +98,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn lost(this: &GpuDevice) -> ::js_sys::Promise; - # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = onuncapturederror)] + #[wasm_bindgen(method, getter, js_class = "GPUDevice", js_name = "onuncapturederror")] #[doc = "Getter for the `onuncapturederror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/onuncapturederror)"] @@ -104,7 +109,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onuncapturederror(this: &GpuDevice) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "GPUDevice" , js_name = onuncapturederror)] + #[wasm_bindgen(method, setter, js_class = "GPUDevice", js_name = "onuncapturederror")] #[doc = "Setter for the `onuncapturederror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/onuncapturederror)"] @@ -115,7 +120,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onuncapturederror(this: &GpuDevice, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = label)] + #[wasm_bindgen(method, getter, js_class = "GPUDevice", js_name = "label")] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/label)"] @@ -126,7 +131,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuDevice) -> ::alloc::string::String; - # [wasm_bindgen (structural , method , setter , js_class = "GPUDevice" , js_name = label)] + #[wasm_bindgen(method, setter, js_class = "GPUDevice", js_name = "label")] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/label)"] @@ -137,7 +142,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuDevice, value: &str); - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createBindGroup)] + #[wasm_bindgen(method, js_class = "GPUDevice", js_name = "createBindGroup")] #[doc = "The `createBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createBindGroup)"] @@ -149,7 +154,12 @@ extern "C" { pub fn create_bind_group(this: &GpuDevice, descriptor: &GpuBindGroupDescriptor) -> GpuBindGroup; - # [wasm_bindgen (catch , method , structural , js_class = "GPUDevice" , js_name = createBindGroupLayout)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUDevice", + js_name = "createBindGroupLayout" + )] #[doc = "The `createBindGroupLayout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createBindGroupLayout)"] @@ -163,7 +173,7 @@ extern "C" { descriptor: &GpuBindGroupLayoutDescriptor, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "GPUDevice" , js_name = createBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUDevice", js_name = "createBuffer")] #[doc = "The `createBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createBuffer)"] @@ -177,7 +187,7 @@ extern "C" { descriptor: &GpuBufferDescriptor, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createCommandEncoder)] + #[wasm_bindgen(method, js_class = "GPUDevice", js_name = "createCommandEncoder")] #[doc = "The `createCommandEncoder()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createCommandEncoder)"] @@ -188,7 +198,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_command_encoder(this: &GpuDevice) -> GpuCommandEncoder; - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createCommandEncoder)] + #[wasm_bindgen(method, js_class = "GPUDevice", js_name = "createCommandEncoder")] #[doc = "The `createCommandEncoder()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createCommandEncoder)"] @@ -202,7 +212,7 @@ extern "C" { descriptor: &GpuCommandEncoderDescriptor, ) -> GpuCommandEncoder; - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createComputePipeline)] + #[wasm_bindgen(method, js_class = "GPUDevice", js_name = "createComputePipeline")] #[doc = "The `createComputePipeline()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createComputePipeline)"] @@ -216,7 +226,7 @@ extern "C" { descriptor: &GpuComputePipelineDescriptor, ) -> GpuComputePipeline; - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createComputePipelineAsync)] + #[wasm_bindgen(method, js_class = "GPUDevice", js_name = "createComputePipelineAsync")] #[doc = "The `createComputePipelineAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createComputePipelineAsync)"] @@ -230,7 +240,7 @@ extern "C" { descriptor: &GpuComputePipelineDescriptor, ) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createPipelineLayout)] + #[wasm_bindgen(method, js_class = "GPUDevice", js_name = "createPipelineLayout")] #[doc = "The `createPipelineLayout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createPipelineLayout)"] @@ -244,7 +254,7 @@ extern "C" { descriptor: &GpuPipelineLayoutDescriptor, ) -> GpuPipelineLayout; - # [wasm_bindgen (catch , method , structural , js_class = "GPUDevice" , js_name = createQuerySet)] + #[wasm_bindgen(catch, method, js_class = "GPUDevice", js_name = "createQuerySet")] #[doc = "The `createQuerySet()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createQuerySet)"] @@ -258,7 +268,12 @@ extern "C" { descriptor: &GpuQuerySetDescriptor, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "GPUDevice" , js_name = createRenderBundleEncoder)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUDevice", + js_name = "createRenderBundleEncoder" + )] #[doc = "The `createRenderBundleEncoder()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createRenderBundleEncoder)"] @@ -272,7 +287,12 @@ extern "C" { descriptor: &GpuRenderBundleEncoderDescriptor, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "GPUDevice" , js_name = createRenderPipeline)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUDevice", + js_name = "createRenderPipeline" + )] #[doc = "The `createRenderPipeline()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createRenderPipeline)"] @@ -286,7 +306,7 @@ extern "C" { descriptor: &GpuRenderPipelineDescriptor, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createRenderPipelineAsync)] + #[wasm_bindgen(method, js_class = "GPUDevice", js_name = "createRenderPipelineAsync")] #[doc = "The `createRenderPipelineAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createRenderPipelineAsync)"] @@ -300,7 +320,7 @@ extern "C" { descriptor: &GpuRenderPipelineDescriptor, ) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createSampler)] + #[wasm_bindgen(method, js_class = "GPUDevice", js_name = "createSampler")] #[doc = "The `createSampler()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createSampler)"] @@ -311,7 +331,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_sampler(this: &GpuDevice) -> GpuSampler; - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createSampler)] + #[wasm_bindgen(method, js_class = "GPUDevice", js_name = "createSampler")] #[doc = "The `createSampler()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createSampler)"] @@ -325,7 +345,7 @@ extern "C" { descriptor: &GpuSamplerDescriptor, ) -> GpuSampler; - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createShaderModule)] + #[wasm_bindgen(method, js_class = "GPUDevice", js_name = "createShaderModule")] #[doc = "The `createShaderModule()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createShaderModule)"] @@ -339,7 +359,7 @@ extern "C" { descriptor: &GpuShaderModuleDescriptor, ) -> GpuShaderModule; - # [wasm_bindgen (catch , method , structural , js_class = "GPUDevice" , js_name = createTexture)] + #[wasm_bindgen(catch, method, js_class = "GPUDevice", js_name = "createTexture")] #[doc = "The `createTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createTexture)"] @@ -353,7 +373,7 @@ extern "C" { descriptor: &GpuTextureDescriptor, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = destroy)] + #[wasm_bindgen(method, js_class = "GPUDevice")] #[doc = "The `destroy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/destroy)"] @@ -364,7 +384,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn destroy(this: &GpuDevice); - # [wasm_bindgen (catch , method , structural , js_class = "GPUDevice" , js_name = importExternalTexture)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUDevice", + js_name = "importExternalTexture" + )] #[doc = "The `importExternalTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/importExternalTexture)"] @@ -378,7 +403,7 @@ extern "C" { descriptor: &GpuExternalTextureDescriptor, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = popErrorScope)] + #[wasm_bindgen(method, js_class = "GPUDevice", js_name = "popErrorScope")] #[doc = "The `popErrorScope()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/popErrorScope)"] @@ -387,9 +412,9 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn pop_error_scope(this: &GpuDevice) -> ::js_sys::Promise<::js_sys::JsOption>; + pub fn pop_error_scope(this: &GpuDevice) -> ::js_sys::Promise<::js_sys::JsNullable>; - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = pushErrorScope)] + #[wasm_bindgen(method, js_class = "GPUDevice", js_name = "pushErrorScope")] #[doc = "The `pushErrorScope()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/pushErrorScope)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuDeviceDescriptor.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuDeviceDescriptor.rs index 18bc8493b86..008502b761c 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuDeviceDescriptor.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuDeviceDescriptor.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUDeviceDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUDeviceDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuDeviceDescriptor` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuDeviceLostInfo.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuDeviceLostInfo.rs index ee5527cb3de..af7bf2550a5 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuDeviceLostInfo.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuDeviceLostInfo.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,11 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUDeviceLostInfo , typescript_type = "GPUDeviceLostInfo")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUDeviceLostInfo", + typescript_type = "GPUDeviceLostInfo" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuDeviceLostInfo` class."] #[doc = ""] @@ -38,7 +42,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuDeviceLostInfo; - # [wasm_bindgen (structural , method , getter , js_class = "GPUDeviceLostInfo" , js_name = reason)] + #[wasm_bindgen(method, getter, js_class = "GPUDeviceLostInfo", js_name = "reason")] #[doc = "Getter for the `reason` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDeviceLostInfo/reason)"] @@ -49,7 +53,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn reason(this: &GpuDeviceLostInfo) -> GpuDeviceLostReason; - # [wasm_bindgen (structural , method , getter , js_class = "GPUDeviceLostInfo" , js_name = message)] + #[wasm_bindgen(method, getter, js_class = "GPUDeviceLostInfo", js_name = "message")] #[doc = "Getter for the `message` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDeviceLostInfo/message)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuDeviceLostReason.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuDeviceLostReason.rs index c82f20b543a..2cdbdce3fc8 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuDeviceLostReason.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuDeviceLostReason.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuError.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuError.rs index 3674030cb3d..fa3752ace59 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuError.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuError.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,11 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUError , typescript_type = "GPUError")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUError", + typescript_type = "GPUError" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuError` class."] #[doc = ""] @@ -38,7 +42,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuError; - # [wasm_bindgen (structural , method , getter , js_class = "GPUError" , js_name = message)] + #[wasm_bindgen(method, getter, js_class = "GPUError", js_name = "message")] #[doc = "Getter for the `message` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUError/message)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuErrorFilter.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuErrorFilter.rs index 9344aabce2d..91452b0b22b 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuErrorFilter.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuErrorFilter.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuExtent3dDict.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuExtent3dDict.rs index ec3e4f95538..766f74b7684 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuExtent3dDict.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuExtent3dDict.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUExtent3DDict)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUExtent3DDict")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuExtent3dDict` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuExternalTexture.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuExternalTexture.rs index 3880a1ece16..59c46efc983 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuExternalTexture.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuExternalTexture.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,11 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUExternalTexture , typescript_type = "GPUExternalTexture")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUExternalTexture", + typescript_type = "GPUExternalTexture" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuExternalTexture` class."] #[doc = ""] @@ -38,7 +42,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuExternalTexture; - # [wasm_bindgen (structural , method , getter , js_class = "GPUExternalTexture" , js_name = label)] + #[wasm_bindgen(method, getter, js_class = "GPUExternalTexture", js_name = "label")] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUExternalTexture/label)"] @@ -49,7 +53,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuExternalTexture) -> ::alloc::string::String; - # [wasm_bindgen (structural , method , setter , js_class = "GPUExternalTexture" , js_name = label)] + #[wasm_bindgen(method, setter, js_class = "GPUExternalTexture", js_name = "label")] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUExternalTexture/label)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuExternalTextureBindingLayout.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuExternalTextureBindingLayout.rs index 9a94fff3ee4..070fe212cca 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuExternalTextureBindingLayout.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuExternalTextureBindingLayout.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,10 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUExternalTextureBindingLayout)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUExternalTextureBindingLayout" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuExternalTextureBindingLayout` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuExternalTextureDescriptor.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuExternalTextureDescriptor.rs index f0ed0c3f68d..55e85a05327 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuExternalTextureDescriptor.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuExternalTextureDescriptor.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUExternalTextureDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUExternalTextureDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuExternalTextureDescriptor` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuFeatureName.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuFeatureName.rs index c6fb944a2d0..4d757123a14 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuFeatureName.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuFeatureName.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; @@ -54,4 +54,5 @@ pub enum GpuFeatureName { TextureFormatsTier2 = "texture-formats-tier2", PrimitiveIndex = "primitive-index", TextureComponentSwizzle = "texture-component-swizzle", + SubgroupSizeControl = "subgroup-size-control", } diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuFilterMode.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuFilterMode.rs index 05536b5271b..844299ceda0 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuFilterMode.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuFilterMode.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuFragmentState.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuFragmentState.rs index ef68e9a794c..172fbae3d60 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuFragmentState.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuFragmentState.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUFragmentState)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUFragmentState")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuFragmentState` dictionary."] #[doc = ""] @@ -99,7 +99,7 @@ extern "C" { #[wasm_bindgen(method, getter = "targets")] pub fn get_targets( this: &GpuFragmentState, - ) -> ::js_sys::Array<::js_sys::JsOption>; + ) -> ::js_sys::Array<::js_sys::JsNullable>; #[doc = "Change the `targets` field of this object."] #[doc = ""] @@ -108,7 +108,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "targets")] - pub fn set_targets(this: &GpuFragmentState, val: &[::js_sys::JsOption]); + pub fn set_targets(this: &GpuFragmentState, val: &[::js_sys::JsNullable]); } impl GpuFragmentState { @@ -120,7 +120,7 @@ impl GpuFragmentState { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( module: &GpuShaderModule, - targets: &[::js_sys::JsOption], + targets: &[::js_sys::JsNullable], ) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); @@ -148,7 +148,7 @@ impl GpuFragmentState { } #[deprecated = "Use `set_targets()` instead."] - pub fn targets(&mut self, val: &[::js_sys::JsOption]) -> &mut Self { + pub fn targets(&mut self, val: &[::js_sys::JsNullable]) -> &mut Self { self.set_targets(val); self } diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuFrontFace.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuFrontFace.rs index a9aa98284b3..334ed07b02d 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuFrontFace.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuFrontFace.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuIndexFormat.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuIndexFormat.rs index 616aab49d3d..ddb6a4e292c 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuIndexFormat.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuIndexFormat.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuInternalError.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuInternalError.rs index 352914dd44f..2438a4846f8 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuInternalError.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuInternalError.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,12 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = GpuError , extends = :: js_sys :: Object , js_name = GPUInternalError , typescript_type = "GPUInternalError")] + #[wasm_bindgen( + extends = "GpuError", + extends = "::js_sys::Object", + js_name = "GPUInternalError", + typescript_type = "GPUInternalError" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuInternalError` class."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuLoadOp.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuLoadOp.rs index 1a50584a4e4..0a1e410d0b2 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuLoadOp.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuLoadOp.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuMipmapFilterMode.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuMipmapFilterMode.rs index eea93dfa6e8..6a546f48d1b 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuMipmapFilterMode.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuMipmapFilterMode.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuMultisampleState.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuMultisampleState.rs index 72176e4c235..3dafa83fbeb 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuMultisampleState.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuMultisampleState.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUMultisampleState)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUMultisampleState")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuMultisampleState` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuObjectDescriptorBase.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuObjectDescriptorBase.rs index 64992304edb..9fd19b7a462 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuObjectDescriptorBase.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuObjectDescriptorBase.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUObjectDescriptorBase)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUObjectDescriptorBase")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuObjectDescriptorBase` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuOrigin2dDict.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuOrigin2dDict.rs index 0d3a066124b..7feabe8aa67 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuOrigin2dDict.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuOrigin2dDict.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUOrigin2DDict)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUOrigin2DDict")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuOrigin2dDict` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuOrigin3dDict.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuOrigin3dDict.rs index 36d00128193..f0177e13903 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuOrigin3dDict.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuOrigin3dDict.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUOrigin3DDict)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUOrigin3DDict")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuOrigin3dDict` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuOutOfMemoryError.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuOutOfMemoryError.rs index 6f861af08a0..394d6c98489 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuOutOfMemoryError.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuOutOfMemoryError.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,12 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = GpuError , extends = :: js_sys :: Object , js_name = GPUOutOfMemoryError , typescript_type = "GPUOutOfMemoryError")] + #[wasm_bindgen( + extends = "GpuError", + extends = "::js_sys::Object", + js_name = "GPUOutOfMemoryError", + typescript_type = "GPUOutOfMemoryError" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuOutOfMemoryError` class."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuPipelineDescriptorBase.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuPipelineDescriptorBase.rs index c1d8c714e03..db578fa5888 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuPipelineDescriptorBase.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuPipelineDescriptorBase.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUPipelineDescriptorBase)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUPipelineDescriptorBase")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuPipelineDescriptorBase` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuPipelineLayout.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuPipelineLayout.rs index d7f85f39b34..7a4ad20f2ba 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuPipelineLayout.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuPipelineLayout.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,11 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUPipelineLayout , typescript_type = "GPUPipelineLayout")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUPipelineLayout", + typescript_type = "GPUPipelineLayout" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuPipelineLayout` class."] #[doc = ""] @@ -38,7 +42,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuPipelineLayout; - # [wasm_bindgen (structural , method , getter , js_class = "GPUPipelineLayout" , js_name = label)] + #[wasm_bindgen(method, getter, js_class = "GPUPipelineLayout", js_name = "label")] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUPipelineLayout/label)"] @@ -49,7 +53,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuPipelineLayout) -> ::alloc::string::String; - # [wasm_bindgen (structural , method , setter , js_class = "GPUPipelineLayout" , js_name = label)] + #[wasm_bindgen(method, setter, js_class = "GPUPipelineLayout", js_name = "label")] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUPipelineLayout/label)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuPipelineLayoutDescriptor.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuPipelineLayoutDescriptor.rs index 15205c8406b..2f7d840f2f8 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuPipelineLayoutDescriptor.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuPipelineLayoutDescriptor.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUPipelineLayoutDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUPipelineLayoutDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuPipelineLayoutDescriptor` dictionary."] #[doc = ""] @@ -63,7 +63,7 @@ extern "C" { #[wasm_bindgen(method, getter = "bindGroupLayouts")] pub fn get_bind_group_layouts( this: &GpuPipelineLayoutDescriptor, - ) -> ::js_sys::Array<::js_sys::JsOption>; + ) -> ::js_sys::Array<::js_sys::JsNullable>; #[doc = "Change the `bindGroupLayouts` field of this object."] #[doc = ""] @@ -74,8 +74,26 @@ extern "C" { #[wasm_bindgen(method, setter = "bindGroupLayouts")] pub fn set_bind_group_layouts( this: &GpuPipelineLayoutDescriptor, - val: &[::js_sys::JsOption], + val: &[::js_sys::JsNullable], ); + + #[doc = "Get the `immediateSize` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuPipelineLayoutDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + #[wasm_bindgen(method, getter = "immediateSize")] + pub fn get_immediate_size(this: &GpuPipelineLayoutDescriptor) -> Option; + + #[doc = "Change the `immediateSize` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuPipelineLayoutDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + #[wasm_bindgen(method, setter = "immediateSize")] + pub fn set_immediate_size(this: &GpuPipelineLayoutDescriptor, val: u32); } impl GpuPipelineLayoutDescriptor { @@ -85,7 +103,7 @@ impl GpuPipelineLayoutDescriptor { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn new(bind_group_layouts: &[::js_sys::JsOption]) -> Self { + pub fn new(bind_group_layouts: &[::js_sys::JsNullable]) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_bind_group_layouts(bind_group_layouts); @@ -101,9 +119,15 @@ impl GpuPipelineLayoutDescriptor { #[deprecated = "Use `set_bind_group_layouts()` instead."] pub fn bind_group_layouts( &mut self, - val: &[::js_sys::JsOption], + val: &[::js_sys::JsNullable], ) -> &mut Self { self.set_bind_group_layouts(val); self } + + #[deprecated = "Use `set_immediate_size()` instead."] + pub fn immediate_size(&mut self, val: u32) -> &mut Self { + self.set_immediate_size(val); + self + } } diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuPowerPreference.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuPowerPreference.rs index 01462f63046..19b2a32b3c1 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuPowerPreference.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuPowerPreference.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuPrimitiveState.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuPrimitiveState.rs index 7e174c56c1c..b65b9eb5cd1 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuPrimitiveState.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuPrimitiveState.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUPrimitiveState)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUPrimitiveState")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuPrimitiveState` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuPrimitiveTopology.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuPrimitiveTopology.rs index 1709bab66f3..f6f5d577048 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuPrimitiveTopology.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuPrimitiveTopology.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuProgrammableStage.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuProgrammableStage.rs index fd8695651f3..7be9e4fac02 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuProgrammableStage.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuProgrammableStage.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUProgrammableStage)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUProgrammableStage")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuProgrammableStage` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuQuerySet.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuQuerySet.rs index af82ef3a394..8b67e2d4050 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuQuerySet.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuQuerySet.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,11 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUQuerySet , typescript_type = "GPUQuerySet")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUQuerySet", + typescript_type = "GPUQuerySet" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuQuerySet` class."] #[doc = ""] @@ -38,7 +42,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuQuerySet; - # [wasm_bindgen (structural , method , getter , js_class = "GPUQuerySet" , js_name = type)] + #[wasm_bindgen(method, getter, js_class = "GPUQuerySet", js_name = "type")] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQuerySet/type)"] @@ -49,7 +53,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn type_(this: &GpuQuerySet) -> GpuQueryType; - # [wasm_bindgen (structural , method , getter , js_class = "GPUQuerySet" , js_name = count)] + #[wasm_bindgen(method, getter, js_class = "GPUQuerySet", js_name = "count")] #[doc = "Getter for the `count` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQuerySet/count)"] @@ -60,7 +64,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn count(this: &GpuQuerySet) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUQuerySet" , js_name = label)] + #[wasm_bindgen(method, getter, js_class = "GPUQuerySet", js_name = "label")] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQuerySet/label)"] @@ -71,7 +75,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuQuerySet) -> ::alloc::string::String; - # [wasm_bindgen (structural , method , setter , js_class = "GPUQuerySet" , js_name = label)] + #[wasm_bindgen(method, setter, js_class = "GPUQuerySet", js_name = "label")] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQuerySet/label)"] @@ -82,7 +86,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuQuerySet, value: &str); - # [wasm_bindgen (method , structural , js_class = "GPUQuerySet" , js_name = destroy)] + #[wasm_bindgen(method, js_class = "GPUQuerySet")] #[doc = "The `destroy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQuerySet/destroy)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuQuerySetDescriptor.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuQuerySetDescriptor.rs index 5a262f28fa0..c946ced5cbe 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuQuerySetDescriptor.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuQuerySetDescriptor.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUQuerySetDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUQuerySetDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuQuerySetDescriptor` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuQueryType.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuQueryType.rs index 7a68a3c9157..3213bef5eb2 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuQueryType.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuQueryType.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuQueue.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuQueue.rs index b14a45b9edc..f85b437c0c2 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuQueue.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuQueue.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,11 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUQueue , typescript_type = "GPUQueue")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUQueue", + typescript_type = "GPUQueue" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuQueue` class."] #[doc = ""] @@ -38,7 +42,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuQueue; - # [wasm_bindgen (structural , method , getter , js_class = "GPUQueue" , js_name = label)] + #[wasm_bindgen(method, getter, js_class = "GPUQueue", js_name = "label")] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/label)"] @@ -49,7 +53,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuQueue) -> ::alloc::string::String; - # [wasm_bindgen (structural , method , setter , js_class = "GPUQueue" , js_name = label)] + #[wasm_bindgen(method, setter, js_class = "GPUQueue", js_name = "label")] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/label)"] @@ -60,7 +64,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuQueue, value: &str); - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = copyExternalImageToTexture)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUQueue", + js_name = "copyExternalImageToTexture" + )] #[doc = "The `copyExternalImageToTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/copyExternalImageToTexture)"] @@ -76,7 +85,12 @@ extern "C" { copy_size: &[::js_sys::Number], ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = copyExternalImageToTexture)] + #[wasm_bindgen( + catch, + method, + js_class = "GPUQueue", + js_name = "copyExternalImageToTexture" + )] #[doc = "The `copyExternalImageToTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/copyExternalImageToTexture)"] @@ -92,7 +106,7 @@ extern "C" { copy_size: &GpuExtent3dDict, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = onSubmittedWorkDone)] + #[wasm_bindgen(method, js_class = "GPUQueue", js_name = "onSubmittedWorkDone")] #[doc = "The `onSubmittedWorkDone()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/onSubmittedWorkDone)"] @@ -103,7 +117,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn on_submitted_work_done(this: &GpuQueue) -> ::js_sys::Promise<::js_sys::Undefined>; - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = submit)] + #[wasm_bindgen(method, js_class = "GPUQueue")] #[doc = "The `submit()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/submit)"] @@ -114,7 +128,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn submit(this: &GpuQueue, command_buffers: &[GpuCommandBuffer]); - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -130,7 +144,7 @@ extern "C" { data: &::js_sys::Object, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -146,7 +160,7 @@ extern "C" { data: &::js_sys::Object, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -162,7 +176,7 @@ extern "C" { data: &[u8], ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -178,7 +192,7 @@ extern "C" { data: &[u8], ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -194,7 +208,7 @@ extern "C" { data: &::js_sys::Uint8Array, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -210,7 +224,7 @@ extern "C" { data: &::js_sys::Uint8Array, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -227,7 +241,7 @@ extern "C" { data_offset: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -244,7 +258,7 @@ extern "C" { data_offset: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -261,7 +275,7 @@ extern "C" { data_offset: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -278,7 +292,7 @@ extern "C" { data_offset: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -295,7 +309,7 @@ extern "C" { data_offset: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -312,7 +326,7 @@ extern "C" { data_offset: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -329,7 +343,7 @@ extern "C" { data_offset: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -346,7 +360,7 @@ extern "C" { data_offset: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -363,7 +377,7 @@ extern "C" { data_offset: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -380,7 +394,7 @@ extern "C" { data_offset: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -397,7 +411,7 @@ extern "C" { data_offset: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -414,7 +428,7 @@ extern "C" { data_offset: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -432,7 +446,7 @@ extern "C" { size: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -450,7 +464,7 @@ extern "C" { size: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -468,7 +482,7 @@ extern "C" { size: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -486,7 +500,7 @@ extern "C" { size: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -504,7 +518,7 @@ extern "C" { size: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -522,7 +536,7 @@ extern "C" { size: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -540,7 +554,7 @@ extern "C" { size: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -558,7 +572,7 @@ extern "C" { size: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -576,7 +590,7 @@ extern "C" { size: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -594,7 +608,7 @@ extern "C" { size: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -612,7 +626,7 @@ extern "C" { size: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -630,7 +644,7 @@ extern "C" { size: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -648,7 +662,7 @@ extern "C" { size: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -666,7 +680,7 @@ extern "C" { size: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -684,7 +698,7 @@ extern "C" { size: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -702,7 +716,7 @@ extern "C" { size: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -720,7 +734,7 @@ extern "C" { size: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -738,7 +752,7 @@ extern "C" { size: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -756,7 +770,7 @@ extern "C" { size: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -774,7 +788,7 @@ extern "C" { size: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -792,7 +806,7 @@ extern "C" { size: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -810,7 +824,7 @@ extern "C" { size: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -828,7 +842,7 @@ extern "C" { size: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -846,7 +860,7 @@ extern "C" { size: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeTexture)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeTexture")] #[doc = "The `writeTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"] @@ -863,7 +877,7 @@ extern "C" { size: &[::js_sys::Number], ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeTexture)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeTexture")] #[doc = "The `writeTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"] @@ -880,7 +894,7 @@ extern "C" { size: &[::js_sys::Number], ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeTexture)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeTexture")] #[doc = "The `writeTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"] @@ -897,7 +911,7 @@ extern "C" { size: &[::js_sys::Number], ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeTexture)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeTexture")] #[doc = "The `writeTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"] @@ -914,7 +928,7 @@ extern "C" { size: &GpuExtent3dDict, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeTexture)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeTexture")] #[doc = "The `writeTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"] @@ -931,7 +945,7 @@ extern "C" { size: &GpuExtent3dDict, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeTexture)] + #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeTexture")] #[doc = "The `writeTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuQueueDescriptor.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuQueueDescriptor.rs index 2c95e17c8a8..31ae71b907d 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuQueueDescriptor.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuQueueDescriptor.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUQueueDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUQueueDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuQueueDescriptor` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderBundle.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderBundle.rs index a6ba2f51553..d88dbbf9035 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderBundle.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderBundle.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,11 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderBundle , typescript_type = "GPURenderBundle")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPURenderBundle", + typescript_type = "GPURenderBundle" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderBundle` class."] #[doc = ""] @@ -38,7 +42,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuRenderBundle; - # [wasm_bindgen (structural , method , getter , js_class = "GPURenderBundle" , js_name = label)] + #[wasm_bindgen(method, getter, js_class = "GPURenderBundle", js_name = "label")] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundle/label)"] @@ -49,7 +53,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuRenderBundle) -> ::alloc::string::String; - # [wasm_bindgen (structural , method , setter , js_class = "GPURenderBundle" , js_name = label)] + #[wasm_bindgen(method, setter, js_class = "GPURenderBundle", js_name = "label")] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundle/label)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderBundleDescriptor.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderBundleDescriptor.rs index 75744faacbf..25f22994e63 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderBundleDescriptor.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderBundleDescriptor.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderBundleDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPURenderBundleDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderBundleDescriptor` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderBundleEncoder.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderBundleEncoder.rs index 3cd53300fa9..40dff484675 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderBundleEncoder.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderBundleEncoder.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,11 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderBundleEncoder , typescript_type = "GPURenderBundleEncoder")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPURenderBundleEncoder", + typescript_type = "GPURenderBundleEncoder" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderBundleEncoder` class."] #[doc = ""] @@ -38,7 +42,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuRenderBundleEncoder; - # [wasm_bindgen (structural , method , getter , js_class = "GPURenderBundleEncoder" , js_name = label)] + #[wasm_bindgen(method, getter, js_class = "GPURenderBundleEncoder", js_name = "label")] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/label)"] @@ -49,7 +53,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuRenderBundleEncoder) -> ::alloc::string::String; - # [wasm_bindgen (structural , method , setter , js_class = "GPURenderBundleEncoder" , js_name = label)] + #[wasm_bindgen(method, setter, js_class = "GPURenderBundleEncoder", js_name = "label")] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/label)"] @@ -60,7 +64,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuRenderBundleEncoder, value: &str); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = finish)] + #[wasm_bindgen(method, js_class = "GPURenderBundleEncoder")] #[doc = "The `finish()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/finish)"] @@ -71,7 +75,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn finish(this: &GpuRenderBundleEncoder) -> GpuRenderBundle; - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = finish)] + #[wasm_bindgen(method, js_class = "GPURenderBundleEncoder", js_name = "finish")] #[doc = "The `finish()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/finish)"] @@ -85,7 +89,7 @@ extern "C" { descriptor: &GpuRenderBundleDescriptor, ) -> GpuRenderBundle; - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setBindGroup)] + #[wasm_bindgen(method, js_class = "GPURenderBundleEncoder", js_name = "setBindGroup")] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setBindGroup)"] @@ -100,7 +104,7 @@ extern "C" { bind_group: Option<&GpuBindGroup>, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setBindGroup)] + #[wasm_bindgen(method, js_class = "GPURenderBundleEncoder", js_name = "setBindGroup")] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setBindGroup)"] @@ -116,7 +120,12 @@ extern "C" { dynamic_offsets: &[::js_sys::Number], ); - # [wasm_bindgen (catch , method , structural , js_class = "GPURenderBundleEncoder" , js_name = setBindGroup)] + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderBundleEncoder", + js_name = "setBindGroup" + )] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setBindGroup)"] @@ -134,7 +143,12 @@ extern "C" { dynamic_offsets_data_length: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPURenderBundleEncoder" , js_name = setBindGroup)] + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderBundleEncoder", + js_name = "setBindGroup" + )] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setBindGroup)"] @@ -152,7 +166,12 @@ extern "C" { dynamic_offsets_data_length: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPURenderBundleEncoder" , js_name = setBindGroup)] + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderBundleEncoder", + js_name = "setBindGroup" + )] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setBindGroup)"] @@ -170,7 +189,12 @@ extern "C" { dynamic_offsets_data_length: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPURenderBundleEncoder" , js_name = setBindGroup)] + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderBundleEncoder", + js_name = "setBindGroup" + )] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setBindGroup)"] @@ -188,7 +212,461 @@ extern "C" { dynamic_offsets_data_length: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = insertDebugMarker)] + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderBundleEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_buffer_source( + this: &GpuRenderBundleEncoder, + range_offset: u32, + data: &::js_sys::Object, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderBundleEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_slice( + this: &GpuRenderBundleEncoder, + range_offset: u32, + data: &mut [u8], + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderBundleEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_array( + this: &GpuRenderBundleEncoder, + range_offset: u32, + data: &::js_sys::Uint8Array, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderBundleEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_buffer_source_and_u32( + this: &GpuRenderBundleEncoder, + range_offset: u32, + data: &::js_sys::Object, + data_offset: u32, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderBundleEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_slice_and_u32( + this: &GpuRenderBundleEncoder, + range_offset: u32, + data: &mut [u8], + data_offset: u32, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderBundleEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_array_and_u32( + this: &GpuRenderBundleEncoder, + range_offset: u32, + data: &::js_sys::Uint8Array, + data_offset: u32, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderBundleEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_buffer_source_and_f64( + this: &GpuRenderBundleEncoder, + range_offset: u32, + data: &::js_sys::Object, + data_offset: f64, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderBundleEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_slice_and_f64( + this: &GpuRenderBundleEncoder, + range_offset: u32, + data: &mut [u8], + data_offset: f64, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderBundleEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_array_and_f64( + this: &GpuRenderBundleEncoder, + range_offset: u32, + data: &::js_sys::Uint8Array, + data_offset: f64, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderBundleEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_buffer_source_and_u32_and_u32( + this: &GpuRenderBundleEncoder, + range_offset: u32, + data: &::js_sys::Object, + data_offset: u32, + data_size: u32, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderBundleEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_slice_and_u32_and_u32( + this: &GpuRenderBundleEncoder, + range_offset: u32, + data: &mut [u8], + data_offset: u32, + data_size: u32, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderBundleEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_array_and_u32_and_u32( + this: &GpuRenderBundleEncoder, + range_offset: u32, + data: &::js_sys::Uint8Array, + data_offset: u32, + data_size: u32, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderBundleEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_buffer_source_and_f64_and_u32( + this: &GpuRenderBundleEncoder, + range_offset: u32, + data: &::js_sys::Object, + data_offset: f64, + data_size: u32, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderBundleEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_slice_and_f64_and_u32( + this: &GpuRenderBundleEncoder, + range_offset: u32, + data: &mut [u8], + data_offset: f64, + data_size: u32, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderBundleEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_array_and_f64_and_u32( + this: &GpuRenderBundleEncoder, + range_offset: u32, + data: &::js_sys::Uint8Array, + data_offset: f64, + data_size: u32, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderBundleEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_buffer_source_and_u32_and_f64( + this: &GpuRenderBundleEncoder, + range_offset: u32, + data: &::js_sys::Object, + data_offset: u32, + data_size: f64, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderBundleEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_slice_and_u32_and_f64( + this: &GpuRenderBundleEncoder, + range_offset: u32, + data: &mut [u8], + data_offset: u32, + data_size: f64, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderBundleEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_array_and_u32_and_f64( + this: &GpuRenderBundleEncoder, + range_offset: u32, + data: &::js_sys::Uint8Array, + data_offset: u32, + data_size: f64, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderBundleEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_buffer_source_and_f64_and_f64( + this: &GpuRenderBundleEncoder, + range_offset: u32, + data: &::js_sys::Object, + data_offset: f64, + data_size: f64, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderBundleEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_slice_and_f64_and_f64( + this: &GpuRenderBundleEncoder, + range_offset: u32, + data: &mut [u8], + data_offset: f64, + data_size: f64, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderBundleEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_array_and_f64_and_f64( + this: &GpuRenderBundleEncoder, + range_offset: u32, + data: &::js_sys::Uint8Array, + data_offset: f64, + data_size: f64, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + method, + js_class = "GPURenderBundleEncoder", + js_name = "insertDebugMarker" + )] #[doc = "The `insertDebugMarker()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/insertDebugMarker)"] @@ -199,7 +677,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn insert_debug_marker(this: &GpuRenderBundleEncoder, marker_label: &str); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = popDebugGroup)] + #[wasm_bindgen(method, js_class = "GPURenderBundleEncoder", js_name = "popDebugGroup")] #[doc = "The `popDebugGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/popDebugGroup)"] @@ -210,7 +688,11 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn pop_debug_group(this: &GpuRenderBundleEncoder); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = pushDebugGroup)] + #[wasm_bindgen( + method, + js_class = "GPURenderBundleEncoder", + js_name = "pushDebugGroup" + )] #[doc = "The `pushDebugGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/pushDebugGroup)"] @@ -221,7 +703,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn push_debug_group(this: &GpuRenderBundleEncoder, group_label: &str); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = draw)] + #[wasm_bindgen(method, js_class = "GPURenderBundleEncoder")] #[doc = "The `draw()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/draw)"] @@ -232,7 +714,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw(this: &GpuRenderBundleEncoder, vertex_count: u32); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = draw)] + #[wasm_bindgen(method, js_class = "GPURenderBundleEncoder", js_name = "draw")] #[doc = "The `draw()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/draw)"] @@ -247,7 +729,7 @@ extern "C" { instance_count: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = draw)] + #[wasm_bindgen(method, js_class = "GPURenderBundleEncoder", js_name = "draw")] #[doc = "The `draw()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/draw)"] @@ -263,7 +745,7 @@ extern "C" { first_vertex: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = draw)] + #[wasm_bindgen(method, js_class = "GPURenderBundleEncoder", js_name = "draw")] #[doc = "The `draw()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/draw)"] @@ -280,7 +762,7 @@ extern "C" { first_instance: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndexed)] + #[wasm_bindgen(method, js_class = "GPURenderBundleEncoder", js_name = "drawIndexed")] #[doc = "The `drawIndexed()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndexed)"] @@ -291,7 +773,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_indexed(this: &GpuRenderBundleEncoder, index_count: u32); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndexed)] + #[wasm_bindgen(method, js_class = "GPURenderBundleEncoder", js_name = "drawIndexed")] #[doc = "The `drawIndexed()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndexed)"] @@ -306,7 +788,7 @@ extern "C" { instance_count: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndexed)] + #[wasm_bindgen(method, js_class = "GPURenderBundleEncoder", js_name = "drawIndexed")] #[doc = "The `drawIndexed()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndexed)"] @@ -322,7 +804,7 @@ extern "C" { first_index: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndexed)] + #[wasm_bindgen(method, js_class = "GPURenderBundleEncoder", js_name = "drawIndexed")] #[doc = "The `drawIndexed()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndexed)"] @@ -339,7 +821,7 @@ extern "C" { base_vertex: i32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndexed)] + #[wasm_bindgen(method, js_class = "GPURenderBundleEncoder", js_name = "drawIndexed")] #[doc = "The `drawIndexed()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndexed)"] @@ -357,7 +839,11 @@ extern "C" { first_instance: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndexedIndirect)] + #[wasm_bindgen( + method, + js_class = "GPURenderBundleEncoder", + js_name = "drawIndexedIndirect" + )] #[doc = "The `drawIndexedIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect)"] @@ -372,7 +858,11 @@ extern "C" { indirect_offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndexedIndirect)] + #[wasm_bindgen( + method, + js_class = "GPURenderBundleEncoder", + js_name = "drawIndexedIndirect" + )] #[doc = "The `drawIndexedIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect)"] @@ -387,7 +877,7 @@ extern "C" { indirect_offset: f64, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndirect)] + #[wasm_bindgen(method, js_class = "GPURenderBundleEncoder", js_name = "drawIndirect")] #[doc = "The `drawIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndirect)"] @@ -402,7 +892,7 @@ extern "C" { indirect_offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndirect)] + #[wasm_bindgen(method, js_class = "GPURenderBundleEncoder", js_name = "drawIndirect")] #[doc = "The `drawIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndirect)"] @@ -417,7 +907,11 @@ extern "C" { indirect_offset: f64, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setIndexBuffer)] + #[wasm_bindgen( + method, + js_class = "GPURenderBundleEncoder", + js_name = "setIndexBuffer" + )] #[doc = "The `setIndexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer)"] @@ -432,7 +926,11 @@ extern "C" { index_format: GpuIndexFormat, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setIndexBuffer)] + #[wasm_bindgen( + method, + js_class = "GPURenderBundleEncoder", + js_name = "setIndexBuffer" + )] #[doc = "The `setIndexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer)"] @@ -448,7 +946,11 @@ extern "C" { offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setIndexBuffer)] + #[wasm_bindgen( + method, + js_class = "GPURenderBundleEncoder", + js_name = "setIndexBuffer" + )] #[doc = "The `setIndexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer)"] @@ -464,7 +966,11 @@ extern "C" { offset: f64, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setIndexBuffer)] + #[wasm_bindgen( + method, + js_class = "GPURenderBundleEncoder", + js_name = "setIndexBuffer" + )] #[doc = "The `setIndexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer)"] @@ -481,7 +987,11 @@ extern "C" { size: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setIndexBuffer)] + #[wasm_bindgen( + method, + js_class = "GPURenderBundleEncoder", + js_name = "setIndexBuffer" + )] #[doc = "The `setIndexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer)"] @@ -498,7 +1008,11 @@ extern "C" { size: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setIndexBuffer)] + #[wasm_bindgen( + method, + js_class = "GPURenderBundleEncoder", + js_name = "setIndexBuffer" + )] #[doc = "The `setIndexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer)"] @@ -515,7 +1029,11 @@ extern "C" { size: f64, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setIndexBuffer)] + #[wasm_bindgen( + method, + js_class = "GPURenderBundleEncoder", + js_name = "setIndexBuffer" + )] #[doc = "The `setIndexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer)"] @@ -532,7 +1050,7 @@ extern "C" { size: f64, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setPipeline)] + #[wasm_bindgen(method, js_class = "GPURenderBundleEncoder", js_name = "setPipeline")] #[doc = "The `setPipeline()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setPipeline)"] @@ -543,7 +1061,11 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_pipeline(this: &GpuRenderBundleEncoder, pipeline: &GpuRenderPipeline); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer)] + #[wasm_bindgen( + method, + js_class = "GPURenderBundleEncoder", + js_name = "setVertexBuffer" + )] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer)"] @@ -554,7 +1076,11 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer(this: &GpuRenderBundleEncoder, slot: u32, buffer: Option<&GpuBuffer>); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer)] + #[wasm_bindgen( + method, + js_class = "GPURenderBundleEncoder", + js_name = "setVertexBuffer" + )] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer)"] @@ -570,7 +1096,11 @@ extern "C" { offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer)] + #[wasm_bindgen( + method, + js_class = "GPURenderBundleEncoder", + js_name = "setVertexBuffer" + )] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer)"] @@ -586,7 +1116,11 @@ extern "C" { offset: f64, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer)] + #[wasm_bindgen( + method, + js_class = "GPURenderBundleEncoder", + js_name = "setVertexBuffer" + )] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer)"] @@ -603,7 +1137,11 @@ extern "C" { size: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer)] + #[wasm_bindgen( + method, + js_class = "GPURenderBundleEncoder", + js_name = "setVertexBuffer" + )] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer)"] @@ -620,7 +1158,11 @@ extern "C" { size: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer)] + #[wasm_bindgen( + method, + js_class = "GPURenderBundleEncoder", + js_name = "setVertexBuffer" + )] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer)"] @@ -637,7 +1179,11 @@ extern "C" { size: f64, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer)] + #[wasm_bindgen( + method, + js_class = "GPURenderBundleEncoder", + js_name = "setVertexBuffer" + )] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderBundleEncoderDescriptor.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderBundleEncoderDescriptor.rs index fc5023619fb..ec96e1826c8 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderBundleEncoderDescriptor.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderBundleEncoderDescriptor.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,10 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderBundleEncoderDescriptor)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPURenderBundleEncoderDescriptor" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderBundleEncoderDescriptor` dictionary."] #[doc = ""] @@ -63,7 +66,7 @@ extern "C" { #[wasm_bindgen(method, getter = "colorFormats")] pub fn get_color_formats( this: &GpuRenderBundleEncoderDescriptor, - ) -> ::js_sys::Array<::js_sys::JsOption<::js_sys::JsString>>; + ) -> ::js_sys::Array<::js_sys::JsNullable<::js_sys::JsString>>; #[doc = "Change the `colorFormats` field of this object."] #[doc = ""] @@ -74,7 +77,7 @@ extern "C" { #[wasm_bindgen(method, setter = "colorFormats")] pub fn set_color_formats( this: &GpuRenderBundleEncoderDescriptor, - val: &[::js_sys::JsOption<::js_sys::JsString>], + val: &[::js_sys::JsNullable<::js_sys::JsString>], ); #[doc = "Get the `depthStencilFormat` field of this object."] @@ -159,7 +162,7 @@ impl GpuRenderBundleEncoderDescriptor { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn new(color_formats: &[::js_sys::JsOption<::js_sys::JsString>]) -> Self { + pub fn new(color_formats: &[::js_sys::JsNullable<::js_sys::JsString>]) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_color_formats(color_formats); @@ -173,7 +176,7 @@ impl GpuRenderBundleEncoderDescriptor { } #[deprecated = "Use `set_color_formats()` instead."] - pub fn color_formats(&mut self, val: &[::js_sys::JsOption<::js_sys::JsString>]) -> &mut Self { + pub fn color_formats(&mut self, val: &[::js_sys::JsNullable<::js_sys::JsString>]) -> &mut Self { self.set_color_formats(val); self } diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderPassColorAttachment.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderPassColorAttachment.rs index b14fdd44c83..d785c92e37c 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderPassColorAttachment.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderPassColorAttachment.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderPassColorAttachment)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPURenderPassColorAttachment")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderPassColorAttachment` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderPassDepthStencilAttachment.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderPassDepthStencilAttachment.rs index d44ffd75f96..9f61d8efca8 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderPassDepthStencilAttachment.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderPassDepthStencilAttachment.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,10 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderPassDepthStencilAttachment)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPURenderPassDepthStencilAttachment" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderPassDepthStencilAttachment` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderPassDescriptor.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderPassDescriptor.rs index 24fafd5f716..704058d4637 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderPassDescriptor.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderPassDescriptor.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderPassDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPURenderPassDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderPassDescriptor` dictionary."] #[doc = ""] @@ -63,7 +63,7 @@ extern "C" { #[wasm_bindgen(method, getter = "colorAttachments")] pub fn get_color_attachments( this: &GpuRenderPassDescriptor, - ) -> ::js_sys::Array<::js_sys::JsOption>; + ) -> ::js_sys::Array<::js_sys::JsNullable>; #[doc = "Change the `colorAttachments` field of this object."] #[doc = ""] @@ -74,7 +74,7 @@ extern "C" { #[wasm_bindgen(method, setter = "colorAttachments")] pub fn set_color_attachments( this: &GpuRenderPassDescriptor, - val: &[::js_sys::JsOption], + val: &[::js_sys::JsNullable], ); #[doc = "Get the `depthStencilAttachment` field of this object."] @@ -173,7 +173,7 @@ impl GpuRenderPassDescriptor { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn new(color_attachments: &[::js_sys::JsOption]) -> Self { + pub fn new(color_attachments: &[::js_sys::JsNullable]) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_color_attachments(color_attachments); @@ -189,7 +189,7 @@ impl GpuRenderPassDescriptor { #[deprecated = "Use `set_color_attachments()` instead."] pub fn color_attachments( &mut self, - val: &[::js_sys::JsOption], + val: &[::js_sys::JsNullable], ) -> &mut Self { self.set_color_attachments(val); self diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderPassEncoder.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderPassEncoder.rs index 7d91522af24..2fc4dad79c3 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderPassEncoder.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderPassEncoder.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,11 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderPassEncoder , typescript_type = "GPURenderPassEncoder")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPURenderPassEncoder", + typescript_type = "GPURenderPassEncoder" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderPassEncoder` class."] #[doc = ""] @@ -38,7 +42,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuRenderPassEncoder; - # [wasm_bindgen (structural , method , getter , js_class = "GPURenderPassEncoder" , js_name = label)] + #[wasm_bindgen(method, getter, js_class = "GPURenderPassEncoder", js_name = "label")] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/label)"] @@ -49,7 +53,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuRenderPassEncoder) -> ::alloc::string::String; - # [wasm_bindgen (structural , method , setter , js_class = "GPURenderPassEncoder" , js_name = label)] + #[wasm_bindgen(method, setter, js_class = "GPURenderPassEncoder", js_name = "label")] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/label)"] @@ -60,7 +64,11 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuRenderPassEncoder, value: &str); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = beginOcclusionQuery)] + #[wasm_bindgen( + method, + js_class = "GPURenderPassEncoder", + js_name = "beginOcclusionQuery" + )] #[doc = "The `beginOcclusionQuery()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/beginOcclusionQuery)"] @@ -71,7 +79,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn begin_occlusion_query(this: &GpuRenderPassEncoder, query_index: u32); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = end)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder")] #[doc = "The `end()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/end)"] @@ -82,7 +90,11 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn end(this: &GpuRenderPassEncoder); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = endOcclusionQuery)] + #[wasm_bindgen( + method, + js_class = "GPURenderPassEncoder", + js_name = "endOcclusionQuery" + )] #[doc = "The `endOcclusionQuery()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/endOcclusionQuery)"] @@ -93,7 +105,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn end_occlusion_query(this: &GpuRenderPassEncoder); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = executeBundles)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "executeBundles")] #[doc = "The `executeBundles()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/executeBundles)"] @@ -104,7 +116,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn execute_bundles(this: &GpuRenderPassEncoder, bundles: &[GpuRenderBundle]); - # [wasm_bindgen (catch , method , structural , js_class = "GPURenderPassEncoder" , js_name = setBlendConstant)] + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderPassEncoder", + js_name = "setBlendConstant" + )] #[doc = "The `setBlendConstant()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBlendConstant)"] @@ -118,7 +135,12 @@ extern "C" { color: &[::js_sys::Number], ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPURenderPassEncoder" , js_name = setBlendConstant)] + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderPassEncoder", + js_name = "setBlendConstant" + )] #[doc = "The `setBlendConstant()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBlendConstant)"] @@ -132,7 +154,7 @@ extern "C" { color: &GpuColorDict, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setScissorRect)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "setScissorRect")] #[doc = "The `setScissorRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setScissorRect)"] @@ -143,7 +165,11 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_scissor_rect(this: &GpuRenderPassEncoder, x: u32, y: u32, width: u32, height: u32); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setStencilReference)] + #[wasm_bindgen( + method, + js_class = "GPURenderPassEncoder", + js_name = "setStencilReference" + )] #[doc = "The `setStencilReference()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setStencilReference)"] @@ -154,7 +180,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_stencil_reference(this: &GpuRenderPassEncoder, reference: u32); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setViewport)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "setViewport")] #[doc = "The `setViewport()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setViewport)"] @@ -173,7 +199,7 @@ extern "C" { max_depth: f32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "setBindGroup")] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"] @@ -188,7 +214,7 @@ extern "C" { bind_group: Option<&GpuBindGroup>, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "setBindGroup")] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"] @@ -204,7 +230,12 @@ extern "C" { dynamic_offsets: &[::js_sys::Number], ); - # [wasm_bindgen (catch , method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup)] + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderPassEncoder", + js_name = "setBindGroup" + )] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"] @@ -222,7 +253,12 @@ extern "C" { dynamic_offsets_data_length: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup)] + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderPassEncoder", + js_name = "setBindGroup" + )] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"] @@ -240,7 +276,12 @@ extern "C" { dynamic_offsets_data_length: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup)] + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderPassEncoder", + js_name = "setBindGroup" + )] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"] @@ -258,7 +299,12 @@ extern "C" { dynamic_offsets_data_length: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup)] + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderPassEncoder", + js_name = "setBindGroup" + )] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"] @@ -276,7 +322,461 @@ extern "C" { dynamic_offsets_data_length: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = insertDebugMarker)] + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderPassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_buffer_source( + this: &GpuRenderPassEncoder, + range_offset: u32, + data: &::js_sys::Object, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderPassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_slice( + this: &GpuRenderPassEncoder, + range_offset: u32, + data: &mut [u8], + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderPassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_array( + this: &GpuRenderPassEncoder, + range_offset: u32, + data: &::js_sys::Uint8Array, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderPassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_buffer_source_and_u32( + this: &GpuRenderPassEncoder, + range_offset: u32, + data: &::js_sys::Object, + data_offset: u32, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderPassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_slice_and_u32( + this: &GpuRenderPassEncoder, + range_offset: u32, + data: &mut [u8], + data_offset: u32, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderPassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_array_and_u32( + this: &GpuRenderPassEncoder, + range_offset: u32, + data: &::js_sys::Uint8Array, + data_offset: u32, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderPassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_buffer_source_and_f64( + this: &GpuRenderPassEncoder, + range_offset: u32, + data: &::js_sys::Object, + data_offset: f64, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderPassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_slice_and_f64( + this: &GpuRenderPassEncoder, + range_offset: u32, + data: &mut [u8], + data_offset: f64, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderPassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_array_and_f64( + this: &GpuRenderPassEncoder, + range_offset: u32, + data: &::js_sys::Uint8Array, + data_offset: f64, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderPassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_buffer_source_and_u32_and_u32( + this: &GpuRenderPassEncoder, + range_offset: u32, + data: &::js_sys::Object, + data_offset: u32, + data_size: u32, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderPassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_slice_and_u32_and_u32( + this: &GpuRenderPassEncoder, + range_offset: u32, + data: &mut [u8], + data_offset: u32, + data_size: u32, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderPassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_array_and_u32_and_u32( + this: &GpuRenderPassEncoder, + range_offset: u32, + data: &::js_sys::Uint8Array, + data_offset: u32, + data_size: u32, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderPassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_buffer_source_and_f64_and_u32( + this: &GpuRenderPassEncoder, + range_offset: u32, + data: &::js_sys::Object, + data_offset: f64, + data_size: u32, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderPassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_slice_and_f64_and_u32( + this: &GpuRenderPassEncoder, + range_offset: u32, + data: &mut [u8], + data_offset: f64, + data_size: u32, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderPassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_array_and_f64_and_u32( + this: &GpuRenderPassEncoder, + range_offset: u32, + data: &::js_sys::Uint8Array, + data_offset: f64, + data_size: u32, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderPassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_buffer_source_and_u32_and_f64( + this: &GpuRenderPassEncoder, + range_offset: u32, + data: &::js_sys::Object, + data_offset: u32, + data_size: f64, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderPassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_slice_and_u32_and_f64( + this: &GpuRenderPassEncoder, + range_offset: u32, + data: &mut [u8], + data_offset: u32, + data_size: f64, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderPassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_array_and_u32_and_f64( + this: &GpuRenderPassEncoder, + range_offset: u32, + data: &::js_sys::Uint8Array, + data_offset: u32, + data_size: f64, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderPassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_buffer_source_and_f64_and_f64( + this: &GpuRenderPassEncoder, + range_offset: u32, + data: &::js_sys::Object, + data_offset: f64, + data_size: f64, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderPassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_slice_and_f64_and_f64( + this: &GpuRenderPassEncoder, + range_offset: u32, + data: &mut [u8], + data_offset: f64, + data_size: f64, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + catch, + method, + js_class = "GPURenderPassEncoder", + js_name = "setImmediates" + )] + #[doc = "The `setImmediates()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setImmediates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_immediates_with_u8_array_and_f64_and_f64( + this: &GpuRenderPassEncoder, + range_offset: u32, + data: &::js_sys::Uint8Array, + data_offset: f64, + data_size: f64, + ) -> Result<(), JsValue>; + + #[wasm_bindgen( + method, + js_class = "GPURenderPassEncoder", + js_name = "insertDebugMarker" + )] #[doc = "The `insertDebugMarker()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/insertDebugMarker)"] @@ -287,7 +787,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn insert_debug_marker(this: &GpuRenderPassEncoder, marker_label: &str); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = popDebugGroup)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "popDebugGroup")] #[doc = "The `popDebugGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/popDebugGroup)"] @@ -298,7 +798,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn pop_debug_group(this: &GpuRenderPassEncoder); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = pushDebugGroup)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "pushDebugGroup")] #[doc = "The `pushDebugGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/pushDebugGroup)"] @@ -309,7 +809,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn push_debug_group(this: &GpuRenderPassEncoder, group_label: &str); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = draw)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder")] #[doc = "The `draw()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/draw)"] @@ -320,7 +820,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw(this: &GpuRenderPassEncoder, vertex_count: u32); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = draw)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "draw")] #[doc = "The `draw()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/draw)"] @@ -335,7 +835,7 @@ extern "C" { instance_count: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = draw)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "draw")] #[doc = "The `draw()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/draw)"] @@ -351,7 +851,7 @@ extern "C" { first_vertex: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = draw)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "draw")] #[doc = "The `draw()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/draw)"] @@ -368,7 +868,7 @@ extern "C" { first_instance: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexed)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "drawIndexed")] #[doc = "The `drawIndexed()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexed)"] @@ -379,7 +879,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_indexed(this: &GpuRenderPassEncoder, index_count: u32); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexed)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "drawIndexed")] #[doc = "The `drawIndexed()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexed)"] @@ -394,7 +894,7 @@ extern "C" { instance_count: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexed)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "drawIndexed")] #[doc = "The `drawIndexed()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexed)"] @@ -410,7 +910,7 @@ extern "C" { first_index: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexed)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "drawIndexed")] #[doc = "The `drawIndexed()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexed)"] @@ -427,7 +927,7 @@ extern "C" { base_vertex: i32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexed)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "drawIndexed")] #[doc = "The `drawIndexed()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexed)"] @@ -445,7 +945,11 @@ extern "C" { first_instance: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexedIndirect)] + #[wasm_bindgen( + method, + js_class = "GPURenderPassEncoder", + js_name = "drawIndexedIndirect" + )] #[doc = "The `drawIndexedIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexedIndirect)"] @@ -460,7 +964,11 @@ extern "C" { indirect_offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexedIndirect)] + #[wasm_bindgen( + method, + js_class = "GPURenderPassEncoder", + js_name = "drawIndexedIndirect" + )] #[doc = "The `drawIndexedIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexedIndirect)"] @@ -475,7 +983,7 @@ extern "C" { indirect_offset: f64, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndirect)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "drawIndirect")] #[doc = "The `drawIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndirect)"] @@ -490,7 +998,7 @@ extern "C" { indirect_offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndirect)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "drawIndirect")] #[doc = "The `drawIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndirect)"] @@ -505,7 +1013,7 @@ extern "C" { indirect_offset: f64, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "setIndexBuffer")] #[doc = "The `setIndexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"] @@ -520,7 +1028,7 @@ extern "C" { index_format: GpuIndexFormat, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "setIndexBuffer")] #[doc = "The `setIndexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"] @@ -536,7 +1044,7 @@ extern "C" { offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "setIndexBuffer")] #[doc = "The `setIndexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"] @@ -552,7 +1060,7 @@ extern "C" { offset: f64, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "setIndexBuffer")] #[doc = "The `setIndexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"] @@ -569,7 +1077,7 @@ extern "C" { size: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "setIndexBuffer")] #[doc = "The `setIndexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"] @@ -586,7 +1094,7 @@ extern "C" { size: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "setIndexBuffer")] #[doc = "The `setIndexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"] @@ -603,7 +1111,7 @@ extern "C" { size: f64, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "setIndexBuffer")] #[doc = "The `setIndexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"] @@ -620,7 +1128,7 @@ extern "C" { size: f64, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setPipeline)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "setPipeline")] #[doc = "The `setPipeline()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setPipeline)"] @@ -631,7 +1139,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_pipeline(this: &GpuRenderPassEncoder, pipeline: &GpuRenderPipeline); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "setVertexBuffer")] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"] @@ -642,7 +1150,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer(this: &GpuRenderPassEncoder, slot: u32, buffer: Option<&GpuBuffer>); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "setVertexBuffer")] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"] @@ -658,7 +1166,7 @@ extern "C" { offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "setVertexBuffer")] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"] @@ -674,7 +1182,7 @@ extern "C" { offset: f64, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "setVertexBuffer")] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"] @@ -691,7 +1199,7 @@ extern "C" { size: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "setVertexBuffer")] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"] @@ -708,7 +1216,7 @@ extern "C" { size: u32, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "setVertexBuffer")] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"] @@ -725,7 +1233,7 @@ extern "C" { size: f64, ); - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)] + #[wasm_bindgen(method, js_class = "GPURenderPassEncoder", js_name = "setVertexBuffer")] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderPassTimestampWrites.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderPassTimestampWrites.rs index 2dd6b94bcfa..89aa07e8bb5 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderPassTimestampWrites.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderPassTimestampWrites.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderPassTimestampWrites)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPURenderPassTimestampWrites")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderPassTimestampWrites` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderPipeline.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderPipeline.rs index 973dd408b3e..49358c5d603 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderPipeline.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderPipeline.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,11 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderPipeline , typescript_type = "GPURenderPipeline")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPURenderPipeline", + typescript_type = "GPURenderPipeline" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderPipeline` class."] #[doc = ""] @@ -38,7 +42,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuRenderPipeline; - # [wasm_bindgen (structural , method , getter , js_class = "GPURenderPipeline" , js_name = label)] + #[wasm_bindgen(method, getter, js_class = "GPURenderPipeline", js_name = "label")] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPipeline/label)"] @@ -49,7 +53,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuRenderPipeline) -> ::alloc::string::String; - # [wasm_bindgen (structural , method , setter , js_class = "GPURenderPipeline" , js_name = label)] + #[wasm_bindgen(method, setter, js_class = "GPURenderPipeline", js_name = "label")] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPipeline/label)"] @@ -60,7 +64,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuRenderPipeline, value: &str); - # [wasm_bindgen (method , structural , js_class = "GPURenderPipeline" , js_name = getBindGroupLayout)] + #[wasm_bindgen(method, js_class = "GPURenderPipeline", js_name = "getBindGroupLayout")] #[doc = "The `getBindGroupLayout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPipeline/getBindGroupLayout)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderPipelineDescriptor.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderPipelineDescriptor.rs index cebf4011740..fc405a04bb9 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderPipelineDescriptor.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRenderPipelineDescriptor.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderPipelineDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPURenderPipelineDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderPipelineDescriptor` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRequestAdapterOptions.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRequestAdapterOptions.rs index 709d946e53a..b659b64f33d 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRequestAdapterOptions.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuRequestAdapterOptions.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURequestAdapterOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPURequestAdapterOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRequestAdapterOptions` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuSampler.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuSampler.rs index 9ecc2f6efcb..6c8a7974bb0 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuSampler.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuSampler.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,11 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUSampler , typescript_type = "GPUSampler")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUSampler", + typescript_type = "GPUSampler" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuSampler` class."] #[doc = ""] @@ -38,7 +42,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuSampler; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSampler" , js_name = label)] + #[wasm_bindgen(method, getter, js_class = "GPUSampler", js_name = "label")] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSampler/label)"] @@ -49,7 +53,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuSampler) -> ::alloc::string::String; - # [wasm_bindgen (structural , method , setter , js_class = "GPUSampler" , js_name = label)] + #[wasm_bindgen(method, setter, js_class = "GPUSampler", js_name = "label")] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSampler/label)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuSamplerBindingLayout.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuSamplerBindingLayout.rs index dec78ae3d03..06c604b2894 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuSamplerBindingLayout.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuSamplerBindingLayout.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUSamplerBindingLayout)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUSamplerBindingLayout")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuSamplerBindingLayout` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuSamplerBindingType.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuSamplerBindingType.rs index 35fc1139856..2f545951fb5 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuSamplerBindingType.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuSamplerBindingType.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuSamplerDescriptor.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuSamplerDescriptor.rs index 1b2780383a9..d296c1ef412 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuSamplerDescriptor.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuSamplerDescriptor.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUSamplerDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUSamplerDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuSamplerDescriptor` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuShaderModule.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuShaderModule.rs index 0d6bc46c391..76feb4528b7 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuShaderModule.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuShaderModule.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,11 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUShaderModule , typescript_type = "GPUShaderModule")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUShaderModule", + typescript_type = "GPUShaderModule" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuShaderModule` class."] #[doc = ""] @@ -38,7 +42,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuShaderModule; - # [wasm_bindgen (structural , method , getter , js_class = "GPUShaderModule" , js_name = label)] + #[wasm_bindgen(method, getter, js_class = "GPUShaderModule", js_name = "label")] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUShaderModule/label)"] @@ -49,7 +53,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuShaderModule) -> ::alloc::string::String; - # [wasm_bindgen (structural , method , setter , js_class = "GPUShaderModule" , js_name = label)] + #[wasm_bindgen(method, setter, js_class = "GPUShaderModule", js_name = "label")] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUShaderModule/label)"] @@ -60,7 +64,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuShaderModule, value: &str); - # [wasm_bindgen (method , structural , js_class = "GPUShaderModule" , js_name = getCompilationInfo)] + #[wasm_bindgen(method, js_class = "GPUShaderModule", js_name = "getCompilationInfo")] #[doc = "The `getCompilationInfo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUShaderModule/getCompilationInfo)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuShaderModuleCompilationHint.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuShaderModuleCompilationHint.rs index f428cafdeb4..a913582fe9a 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuShaderModuleCompilationHint.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuShaderModuleCompilationHint.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,10 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUShaderModuleCompilationHint)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUShaderModuleCompilationHint" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuShaderModuleCompilationHint` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuShaderModuleDescriptor.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuShaderModuleDescriptor.rs index e7cf0bc4685..d0bb204d1e0 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuShaderModuleDescriptor.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuShaderModuleDescriptor.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUShaderModuleDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUShaderModuleDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuShaderModuleDescriptor` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuStencilFaceState.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuStencilFaceState.rs index 32d40f18ae7..f8ee484b2ec 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuStencilFaceState.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuStencilFaceState.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUStencilFaceState)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUStencilFaceState")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuStencilFaceState` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuStencilOperation.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuStencilOperation.rs index 8dbf2a5121e..ec9a8985431 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuStencilOperation.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuStencilOperation.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuStorageTextureAccess.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuStorageTextureAccess.rs index 0dfdd340b73..91f0083d985 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuStorageTextureAccess.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuStorageTextureAccess.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuStorageTextureBindingLayout.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuStorageTextureBindingLayout.rs index 7157dab2e3b..93e3fc3682e 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuStorageTextureBindingLayout.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuStorageTextureBindingLayout.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,10 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUStorageTextureBindingLayout)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUStorageTextureBindingLayout" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuStorageTextureBindingLayout` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuStoreOp.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuStoreOp.rs index 19fbe158423..de476756d9e 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuStoreOp.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuStoreOp.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuSupportedFeatures.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuSupportedFeatures.rs index 19fa2096d3c..1aecc24a958 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuSupportedFeatures.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuSupportedFeatures.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,11 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUSupportedFeatures , typescript_type = "GPUSupportedFeatures")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUSupportedFeatures", + typescript_type = "GPUSupportedFeatures" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuSupportedFeatures` class."] #[doc = ""] @@ -38,7 +42,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuSupportedFeatures; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedFeatures" , js_name = size)] + #[wasm_bindgen(method, getter, js_class = "GPUSupportedFeatures", js_name = "size")] #[doc = "Getter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedFeatures/size)"] @@ -49,7 +53,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn size(this: &GpuSupportedFeatures) -> u32; - # [wasm_bindgen (catch , method , structural , js_class = "GPUSupportedFeatures" , js_name = forEach)] + #[wasm_bindgen(catch, method, js_class = "GPUSupportedFeatures", js_name = "forEach")] #[doc = "The `forEach()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedFeatures/forEach)"] @@ -63,7 +67,7 @@ extern "C" { callback: &::js_sys::Function ::js_sys::Undefined>, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "GPUSupportedFeatures" , js_name = has)] + #[wasm_bindgen(method, js_class = "GPUSupportedFeatures")] #[doc = "The `has()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedFeatures/has)"] @@ -74,7 +78,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn has(this: &GpuSupportedFeatures, value: &str) -> bool; - # [wasm_bindgen (method , structural , js_class = "GPUSupportedFeatures" , js_name = entries)] + #[wasm_bindgen(method, js_class = "GPUSupportedFeatures")] #[doc = "The `entries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedFeatures/entries)"] @@ -87,7 +91,7 @@ extern "C" { this: &GpuSupportedFeatures, ) -> ::js_sys::Iterator<::js_sys::ArrayTuple<(::js_sys::JsString, ::js_sys::JsString)>>; - # [wasm_bindgen (method , structural , js_class = "GPUSupportedFeatures" , js_name = keys)] + #[wasm_bindgen(method, js_class = "GPUSupportedFeatures")] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedFeatures/keys)"] @@ -98,7 +102,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn keys(this: &GpuSupportedFeatures) -> ::js_sys::Iterator<::js_sys::JsString>; - # [wasm_bindgen (method , structural , js_class = "GPUSupportedFeatures" , js_name = values)] + #[wasm_bindgen(method, js_class = "GPUSupportedFeatures")] #[doc = "The `values()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedFeatures/values)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuSupportedLimits.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuSupportedLimits.rs index 8d5507050b3..eccc057453a 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuSupportedLimits.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuSupportedLimits.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,11 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUSupportedLimits , typescript_type = "GPUSupportedLimits")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUSupportedLimits", + typescript_type = "GPUSupportedLimits" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuSupportedLimits` class."] #[doc = ""] @@ -38,7 +42,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuSupportedLimits; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxTextureDimension1D)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxTextureDimension1D" + )] #[doc = "Getter for the `maxTextureDimension1D` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxTextureDimension1D)"] @@ -49,7 +58,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_texture_dimension_1d(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxTextureDimension2D)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxTextureDimension2D" + )] #[doc = "Getter for the `maxTextureDimension2D` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxTextureDimension2D)"] @@ -60,7 +74,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_texture_dimension_2d(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxTextureDimension3D)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxTextureDimension3D" + )] #[doc = "Getter for the `maxTextureDimension3D` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxTextureDimension3D)"] @@ -71,7 +90,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_texture_dimension_3d(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxTextureArrayLayers)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxTextureArrayLayers" + )] #[doc = "Getter for the `maxTextureArrayLayers` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxTextureArrayLayers)"] @@ -82,7 +106,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_texture_array_layers(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxBindGroups)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxBindGroups" + )] #[doc = "Getter for the `maxBindGroups` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxBindGroups)"] @@ -93,7 +122,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_bind_groups(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxBindGroupsPlusVertexBuffers)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxBindGroupsPlusVertexBuffers" + )] #[doc = "Getter for the `maxBindGroupsPlusVertexBuffers` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxBindGroupsPlusVertexBuffers)"] @@ -104,7 +138,28 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_bind_groups_plus_vertex_buffers(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxBindingsPerBindGroup)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxImmediateSize" + )] + #[doc = "Getter for the `maxImmediateSize` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxImmediateSize)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn max_immediate_size(this: &GpuSupportedLimits) -> u32; + + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxBindingsPerBindGroup" + )] #[doc = "Getter for the `maxBindingsPerBindGroup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxBindingsPerBindGroup)"] @@ -115,7 +170,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_bindings_per_bind_group(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxDynamicUniformBuffersPerPipelineLayout)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxDynamicUniformBuffersPerPipelineLayout" + )] #[doc = "Getter for the `maxDynamicUniformBuffersPerPipelineLayout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxDynamicUniformBuffersPerPipelineLayout)"] @@ -126,7 +186,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_dynamic_uniform_buffers_per_pipeline_layout(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxDynamicStorageBuffersPerPipelineLayout)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxDynamicStorageBuffersPerPipelineLayout" + )] #[doc = "Getter for the `maxDynamicStorageBuffersPerPipelineLayout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxDynamicStorageBuffersPerPipelineLayout)"] @@ -137,7 +202,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_dynamic_storage_buffers_per_pipeline_layout(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxSampledTexturesPerShaderStage)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxSampledTexturesPerShaderStage" + )] #[doc = "Getter for the `maxSampledTexturesPerShaderStage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxSampledTexturesPerShaderStage)"] @@ -148,7 +218,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_sampled_textures_per_shader_stage(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxSamplersPerShaderStage)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxSamplersPerShaderStage" + )] #[doc = "Getter for the `maxSamplersPerShaderStage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxSamplersPerShaderStage)"] @@ -159,7 +234,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_samplers_per_shader_stage(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxStorageBuffersPerShaderStage)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxStorageBuffersPerShaderStage" + )] #[doc = "Getter for the `maxStorageBuffersPerShaderStage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxStorageBuffersPerShaderStage)"] @@ -170,7 +250,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_storage_buffers_per_shader_stage(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxStorageBuffersInVertexStage)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxStorageBuffersInVertexStage" + )] #[doc = "Getter for the `maxStorageBuffersInVertexStage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxStorageBuffersInVertexStage)"] @@ -181,7 +266,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_storage_buffers_in_vertex_stage(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxStorageBuffersInFragmentStage)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxStorageBuffersInFragmentStage" + )] #[doc = "Getter for the `maxStorageBuffersInFragmentStage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxStorageBuffersInFragmentStage)"] @@ -192,7 +282,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_storage_buffers_in_fragment_stage(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxStorageTexturesPerShaderStage)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxStorageTexturesPerShaderStage" + )] #[doc = "Getter for the `maxStorageTexturesPerShaderStage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxStorageTexturesPerShaderStage)"] @@ -203,7 +298,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_storage_textures_per_shader_stage(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxStorageTexturesInVertexStage)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxStorageTexturesInVertexStage" + )] #[doc = "Getter for the `maxStorageTexturesInVertexStage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxStorageTexturesInVertexStage)"] @@ -214,7 +314,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_storage_textures_in_vertex_stage(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxStorageTexturesInFragmentStage)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxStorageTexturesInFragmentStage" + )] #[doc = "Getter for the `maxStorageTexturesInFragmentStage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxStorageTexturesInFragmentStage)"] @@ -225,7 +330,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_storage_textures_in_fragment_stage(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxUniformBuffersPerShaderStage)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxUniformBuffersPerShaderStage" + )] #[doc = "Getter for the `maxUniformBuffersPerShaderStage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxUniformBuffersPerShaderStage)"] @@ -236,7 +346,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_uniform_buffers_per_shader_stage(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxUniformBufferBindingSize)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxUniformBufferBindingSize" + )] #[doc = "Getter for the `maxUniformBufferBindingSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxUniformBufferBindingSize)"] @@ -247,7 +362,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_uniform_buffer_binding_size(this: &GpuSupportedLimits) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxStorageBufferBindingSize)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxStorageBufferBindingSize" + )] #[doc = "Getter for the `maxStorageBufferBindingSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxStorageBufferBindingSize)"] @@ -258,7 +378,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_storage_buffer_binding_size(this: &GpuSupportedLimits) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = minUniformBufferOffsetAlignment)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "minUniformBufferOffsetAlignment" + )] #[doc = "Getter for the `minUniformBufferOffsetAlignment` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/minUniformBufferOffsetAlignment)"] @@ -269,7 +394,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn min_uniform_buffer_offset_alignment(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = minStorageBufferOffsetAlignment)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "minStorageBufferOffsetAlignment" + )] #[doc = "Getter for the `minStorageBufferOffsetAlignment` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/minStorageBufferOffsetAlignment)"] @@ -280,7 +410,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn min_storage_buffer_offset_alignment(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxVertexBuffers)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxVertexBuffers" + )] #[doc = "Getter for the `maxVertexBuffers` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxVertexBuffers)"] @@ -291,7 +426,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_vertex_buffers(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxBufferSize)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxBufferSize" + )] #[doc = "Getter for the `maxBufferSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxBufferSize)"] @@ -302,7 +442,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_buffer_size(this: &GpuSupportedLimits) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxVertexAttributes)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxVertexAttributes" + )] #[doc = "Getter for the `maxVertexAttributes` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxVertexAttributes)"] @@ -313,7 +458,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_vertex_attributes(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxVertexBufferArrayStride)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxVertexBufferArrayStride" + )] #[doc = "Getter for the `maxVertexBufferArrayStride` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxVertexBufferArrayStride)"] @@ -324,7 +474,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_vertex_buffer_array_stride(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxInterStageShaderVariables)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxInterStageShaderVariables" + )] #[doc = "Getter for the `maxInterStageShaderVariables` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxInterStageShaderVariables)"] @@ -335,7 +490,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_inter_stage_shader_variables(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxColorAttachments)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxColorAttachments" + )] #[doc = "Getter for the `maxColorAttachments` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxColorAttachments)"] @@ -346,7 +506,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_color_attachments(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxColorAttachmentBytesPerSample)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxColorAttachmentBytesPerSample" + )] #[doc = "Getter for the `maxColorAttachmentBytesPerSample` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxColorAttachmentBytesPerSample)"] @@ -357,7 +522,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_color_attachment_bytes_per_sample(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxComputeWorkgroupStorageSize)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxComputeWorkgroupStorageSize" + )] #[doc = "Getter for the `maxComputeWorkgroupStorageSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxComputeWorkgroupStorageSize)"] @@ -368,7 +538,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_compute_workgroup_storage_size(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxComputeInvocationsPerWorkgroup)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxComputeInvocationsPerWorkgroup" + )] #[doc = "Getter for the `maxComputeInvocationsPerWorkgroup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxComputeInvocationsPerWorkgroup)"] @@ -379,7 +554,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_compute_invocations_per_workgroup(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxComputeWorkgroupSizeX)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxComputeWorkgroupSizeX" + )] #[doc = "Getter for the `maxComputeWorkgroupSizeX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxComputeWorkgroupSizeX)"] @@ -390,7 +570,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_compute_workgroup_size_x(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxComputeWorkgroupSizeY)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxComputeWorkgroupSizeY" + )] #[doc = "Getter for the `maxComputeWorkgroupSizeY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxComputeWorkgroupSizeY)"] @@ -401,7 +586,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_compute_workgroup_size_y(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxComputeWorkgroupSizeZ)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxComputeWorkgroupSizeZ" + )] #[doc = "Getter for the `maxComputeWorkgroupSizeZ` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxComputeWorkgroupSizeZ)"] @@ -412,7 +602,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_compute_workgroup_size_z(this: &GpuSupportedLimits) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxComputeWorkgroupsPerDimension)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxComputeWorkgroupsPerDimension" + )] #[doc = "Getter for the `maxComputeWorkgroupsPerDimension` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxComputeWorkgroupsPerDimension)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTexelCopyBufferInfo.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTexelCopyBufferInfo.rs index a5907da0e67..00de6967d7b 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTexelCopyBufferInfo.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTexelCopyBufferInfo.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUTexelCopyBufferInfo)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUTexelCopyBufferInfo")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuTexelCopyBufferInfo` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTexelCopyBufferLayout.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTexelCopyBufferLayout.rs index e3cd6acf45c..a62f4e7d376 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTexelCopyBufferLayout.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTexelCopyBufferLayout.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUTexelCopyBufferLayout)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUTexelCopyBufferLayout")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuTexelCopyBufferLayout` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTexelCopyTextureInfo.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTexelCopyTextureInfo.rs index eb71a6cc3b5..fecf5ad97b4 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTexelCopyTextureInfo.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTexelCopyTextureInfo.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUTexelCopyTextureInfo)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUTexelCopyTextureInfo")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuTexelCopyTextureInfo` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTexture.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTexture.rs index 040bce56aa1..55b87845f06 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTexture.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTexture.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,11 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUTexture , typescript_type = "GPUTexture")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUTexture", + typescript_type = "GPUTexture" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuTexture` class."] #[doc = ""] @@ -38,7 +42,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuTexture; - # [wasm_bindgen (structural , method , getter , js_class = "GPUTexture" , js_name = width)] + #[wasm_bindgen(method, getter, js_class = "GPUTexture", js_name = "width")] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/width)"] @@ -49,7 +53,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn width(this: &GpuTexture) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUTexture" , js_name = height)] + #[wasm_bindgen(method, getter, js_class = "GPUTexture", js_name = "height")] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/height)"] @@ -60,7 +64,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn height(this: &GpuTexture) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUTexture" , js_name = depthOrArrayLayers)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUTexture", + js_name = "depthOrArrayLayers" + )] #[doc = "Getter for the `depthOrArrayLayers` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/depthOrArrayLayers)"] @@ -71,7 +80,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn depth_or_array_layers(this: &GpuTexture) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUTexture" , js_name = mipLevelCount)] + #[wasm_bindgen(method, getter, js_class = "GPUTexture", js_name = "mipLevelCount")] #[doc = "Getter for the `mipLevelCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/mipLevelCount)"] @@ -82,7 +91,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn mip_level_count(this: &GpuTexture) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUTexture" , js_name = sampleCount)] + #[wasm_bindgen(method, getter, js_class = "GPUTexture", js_name = "sampleCount")] #[doc = "Getter for the `sampleCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/sampleCount)"] @@ -93,7 +102,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn sample_count(this: &GpuTexture) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUTexture" , js_name = dimension)] + #[wasm_bindgen(method, getter, js_class = "GPUTexture", js_name = "dimension")] #[doc = "Getter for the `dimension` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/dimension)"] @@ -104,7 +113,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn dimension(this: &GpuTexture) -> GpuTextureDimension; - # [wasm_bindgen (structural , method , getter , js_class = "GPUTexture" , js_name = format)] + #[wasm_bindgen(method, getter, js_class = "GPUTexture", js_name = "format")] #[doc = "Getter for the `format` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/format)"] @@ -115,7 +124,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn format(this: &GpuTexture) -> GpuTextureFormat; - # [wasm_bindgen (structural , method , getter , js_class = "GPUTexture" , js_name = usage)] + #[wasm_bindgen(method, getter, js_class = "GPUTexture", js_name = "usage")] #[doc = "Getter for the `usage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/usage)"] @@ -126,7 +135,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn usage(this: &GpuTexture) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GPUTexture" , js_name = textureBindingViewDimension)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUTexture", + js_name = "textureBindingViewDimension" + )] #[doc = "Getter for the `textureBindingViewDimension` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/textureBindingViewDimension)"] @@ -137,7 +151,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn texture_binding_view_dimension(this: &GpuTexture) -> ::wasm_bindgen::JsValue; - # [wasm_bindgen (structural , method , getter , js_class = "GPUTexture" , js_name = label)] + #[wasm_bindgen(method, getter, js_class = "GPUTexture", js_name = "label")] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/label)"] @@ -148,7 +162,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuTexture) -> ::alloc::string::String; - # [wasm_bindgen (structural , method , setter , js_class = "GPUTexture" , js_name = label)] + #[wasm_bindgen(method, setter, js_class = "GPUTexture", js_name = "label")] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/label)"] @@ -159,7 +173,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuTexture, value: &str); - # [wasm_bindgen (catch , method , structural , js_class = "GPUTexture" , js_name = createView)] + #[wasm_bindgen(catch, method, js_class = "GPUTexture", js_name = "createView")] #[doc = "The `createView()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/createView)"] @@ -170,7 +184,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_view(this: &GpuTexture) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "GPUTexture" , js_name = createView)] + #[wasm_bindgen(catch, method, js_class = "GPUTexture", js_name = "createView")] #[doc = "The `createView()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/createView)"] @@ -184,7 +198,7 @@ extern "C" { descriptor: &GpuTextureViewDescriptor, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "GPUTexture" , js_name = destroy)] + #[wasm_bindgen(method, js_class = "GPUTexture")] #[doc = "The `destroy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/destroy)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureAspect.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureAspect.rs index 9eb0578322b..0ba51e884af 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureAspect.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureAspect.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureBindingLayout.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureBindingLayout.rs index d3bcdf26057..5cf6fb16ebc 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureBindingLayout.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureBindingLayout.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUTextureBindingLayout)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUTextureBindingLayout")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuTextureBindingLayout` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureDescriptor.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureDescriptor.rs index 54ac87234a5..dc7b74a8f8f 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureDescriptor.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureDescriptor.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUTextureDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUTextureDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuTextureDescriptor` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureDimension.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureDimension.rs index c85860cf62f..13f5981929b 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureDimension.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureDimension.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureFormat.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureFormat.rs index 5c9d0bb46dc..4ebcf47274e 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureFormat.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureFormat.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureSampleType.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureSampleType.rs index 2dd6e75a7c8..c6242e6abc4 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureSampleType.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureSampleType.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureView.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureView.rs index 51c8d3c03c7..01b6ddbd7eb 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureView.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureView.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,11 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUTextureView , typescript_type = "GPUTextureView")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUTextureView", + typescript_type = "GPUTextureView" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuTextureView` class."] #[doc = ""] @@ -38,7 +42,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuTextureView; - # [wasm_bindgen (structural , method , getter , js_class = "GPUTextureView" , js_name = label)] + #[wasm_bindgen(method, getter, js_class = "GPUTextureView", js_name = "label")] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTextureView/label)"] @@ -49,7 +53,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuTextureView) -> ::alloc::string::String; - # [wasm_bindgen (structural , method , setter , js_class = "GPUTextureView" , js_name = label)] + #[wasm_bindgen(method, setter, js_class = "GPUTextureView", js_name = "label")] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTextureView/label)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureViewDescriptor.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureViewDescriptor.rs index 036dcded4b7..4a243436fc5 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureViewDescriptor.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureViewDescriptor.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUTextureViewDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUTextureViewDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuTextureViewDescriptor` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureViewDimension.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureViewDimension.rs index 52eea145ac6..60aa68e9a00 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureViewDimension.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuTextureViewDimension.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuUncapturedErrorEvent.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuUncapturedErrorEvent.rs index 60bf4de327f..671a21f6b41 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuUncapturedErrorEvent.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuUncapturedErrorEvent.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,12 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = GPUUncapturedErrorEvent , typescript_type = "GPUUncapturedErrorEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "GPUUncapturedErrorEvent", + typescript_type = "GPUUncapturedErrorEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuUncapturedErrorEvent` class."] #[doc = ""] @@ -38,7 +43,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuUncapturedErrorEvent; - # [wasm_bindgen (structural , method , getter , js_class = "GPUUncapturedErrorEvent" , js_name = error)] + #[wasm_bindgen( + method, + getter, + js_class = "GPUUncapturedErrorEvent", + js_name = "error" + )] #[doc = "Getter for the `error` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUUncapturedErrorEvent/error)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuUncapturedErrorEventInit.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuUncapturedErrorEventInit.rs index 587a1b51884..c9111706787 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuUncapturedErrorEventInit.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuUncapturedErrorEventInit.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUUncapturedErrorEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUUncapturedErrorEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuUncapturedErrorEventInit` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuValidationError.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuValidationError.rs index 3500056c0e3..74b2fdf78b5 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuValidationError.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuValidationError.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,12 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = GpuError , extends = :: js_sys :: Object , js_name = GPUValidationError , typescript_type = "GPUValidationError")] + #[wasm_bindgen( + extends = "GpuError", + extends = "::js_sys::Object", + js_name = "GPUValidationError", + typescript_type = "GPUValidationError" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuValidationError` class."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuVertexAttribute.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuVertexAttribute.rs index 7e56c1911a6..a261334b877 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuVertexAttribute.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuVertexAttribute.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUVertexAttribute)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUVertexAttribute")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuVertexAttribute` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuVertexBufferLayout.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuVertexBufferLayout.rs index 625ed61dcf2..a411459bdca 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuVertexBufferLayout.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuVertexBufferLayout.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUVertexBufferLayout)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUVertexBufferLayout")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuVertexBufferLayout` dictionary."] #[doc = ""] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuVertexFormat.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuVertexFormat.rs index 987d334dbff..73365eb68f7 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuVertexFormat.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuVertexFormat.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuVertexState.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuVertexState.rs index a1eb2ec962c..f17f38ad592 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuVertexState.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuVertexState.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUVertexState)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUVertexState")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuVertexState` dictionary."] #[doc = ""] @@ -99,7 +99,7 @@ extern "C" { #[wasm_bindgen(method, getter = "buffers")] pub fn get_buffers( this: &GpuVertexState, - ) -> Option<::js_sys::Array<::js_sys::JsOption>>; + ) -> Option<::js_sys::Array<::js_sys::JsNullable>>; #[doc = "Change the `buffers` field of this object."] #[doc = ""] @@ -108,7 +108,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "buffers")] - pub fn set_buffers(this: &GpuVertexState, val: &[::js_sys::JsOption]); + pub fn set_buffers(this: &GpuVertexState, val: &[::js_sys::JsNullable]); } impl GpuVertexState { @@ -144,7 +144,7 @@ impl GpuVertexState { } #[deprecated = "Use `set_buffers()` instead."] - pub fn buffers(&mut self, val: &[::js_sys::JsOption]) -> &mut Self { + pub fn buffers(&mut self, val: &[::js_sys::JsNullable]) -> &mut Self { self.set_buffers(val); self } diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuVertexStepMode.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuVertexStepMode.rs index 1afd5876e87..b30b9f30f09 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuVertexStepMode.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_GpuVertexStepMode.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_WgslLanguageFeatures.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_WgslLanguageFeatures.rs index 82e3804553f..c7e1cd97c51 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_WgslLanguageFeatures.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_WgslLanguageFeatures.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports)] #![allow(clippy::all)] use super::*; @@ -26,7 +26,11 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WGSLLanguageFeatures , typescript_type = "WGSLLanguageFeatures")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "WGSLLanguageFeatures", + typescript_type = "WGSLLanguageFeatures" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WgslLanguageFeatures` class."] #[doc = ""] @@ -38,7 +42,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type WgslLanguageFeatures; - # [wasm_bindgen (structural , method , getter , js_class = "WGSLLanguageFeatures" , js_name = size)] + #[wasm_bindgen(method, getter, js_class = "WGSLLanguageFeatures", js_name = "size")] #[doc = "Getter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures/size)"] @@ -49,7 +53,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn size(this: &WgslLanguageFeatures) -> u32; - # [wasm_bindgen (catch , method , structural , js_class = "WGSLLanguageFeatures" , js_name = forEach)] + #[wasm_bindgen(catch, method, js_class = "WGSLLanguageFeatures", js_name = "forEach")] #[doc = "The `forEach()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures/forEach)"] @@ -63,7 +67,7 @@ extern "C" { callback: &::js_sys::Function ::js_sys::Undefined>, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "WGSLLanguageFeatures" , js_name = has)] + #[wasm_bindgen(method, js_class = "WGSLLanguageFeatures")] #[doc = "The `has()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures/has)"] @@ -74,7 +78,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn has(this: &WgslLanguageFeatures, value: &str) -> bool; - # [wasm_bindgen (method , structural , js_class = "WGSLLanguageFeatures" , js_name = entries)] + #[wasm_bindgen(method, js_class = "WGSLLanguageFeatures")] #[doc = "The `entries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures/entries)"] @@ -87,7 +91,7 @@ extern "C" { this: &WgslLanguageFeatures, ) -> ::js_sys::Iterator<::js_sys::ArrayTuple<(::js_sys::JsString, ::js_sys::JsString)>>; - # [wasm_bindgen (method , structural , js_class = "WGSLLanguageFeatures" , js_name = keys)] + #[wasm_bindgen(method, js_class = "WGSLLanguageFeatures")] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures/keys)"] @@ -98,7 +102,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn keys(this: &WgslLanguageFeatures) -> ::js_sys::Iterator<::js_sys::JsString>; - # [wasm_bindgen (method , structural , js_class = "WGSLLanguageFeatures" , js_name = values)] + #[wasm_bindgen(method, js_class = "WGSLLanguageFeatures")] #[doc = "The `values()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures/values)"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/gen_gpu_map_mode.rs b/wgpu/src/backend/webgpu/webgpu_sys/gen_gpu_map_mode.rs index 825df136766..2f09b65ef06 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/gen_gpu_map_mode.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/gen_gpu_map_mode.rs @@ -18,7 +18,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] diff --git a/wgpu/src/backend/webgpu/webgpu_sys/mod.rs b/wgpu/src/backend/webgpu/webgpu_sys/mod.rs index 7311d6d6f33..11b85ec495b 100644 --- a/wgpu/src/backend/webgpu/webgpu_sys/mod.rs +++ b/wgpu/src/backend/webgpu/webgpu_sys/mod.rs @@ -21,7 +21,7 @@ // // If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository. // -// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.115` command. +// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.127` command. #![allow(unused_imports, non_snake_case)] use web_sys::{ From 7c9cad16e60b28f44da2e3bfa1a59870ed1d4728 Mon Sep 17 00:00:00 2001 From: Luo Zhiaho Date: Sun, 9 Aug 2026 23:09:51 +0800 Subject: [PATCH 2/4] Update wasm-bindgen deps and fix compilation --- CHANGELOG.md | 1 + Cargo.lock | 28 +++++++-------- Cargo.toml | 8 ++--- examples/standalone/03_hdr_surface/Cargo.toml | 6 ++-- wgpu/src/backend/webgpu.rs | 34 +++++++++---------- 5 files changed, 39 insertions(+), 38 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a9ccfb37f5c..827e71aa61c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -131,6 +131,7 @@ Bottom level categories: #### General - Raise the minimum version of the `wasm-bindgen` family to the earliest releases that support wasm64. By @nickbabcock in [#9836](https://github.com/gfx-rs/wgpu/pull/9836). +- Upgrade vendored WebGPU bindings and `wasm-bindgen` to 0.2.127. By @beicause in [#10034](https://github.com/gfx-rs/wgpu/pull/10034). #### GLES diff --git a/Cargo.lock b/Cargo.lock index f32a01f6695..851e44df76f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2111,9 +2111,9 @@ dependencies = [ [[package]] name = "js-sys" -version = "0.3.102" +version = "0.3.104" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03d04c30968dffe80775bd4d7fb676131cd04a1fb46d2686dbffbaec2d9dfd31" +checksum = "0e0c1080212aad755ea003d18543e8768dd432c48819efd73a7bf1e39b7a5a3a" dependencies = [ "cfg-if", "futures-util", @@ -4525,9 +4525,9 @@ dependencies = [ [[package]] name = "wasm-bindgen" -version = "0.2.125" +version = "0.2.127" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ddb3f79143bced6de84270411622a2699cee572fc0875aeaf1e7867cf9fca1a" +checksum = "1b70935747edd64d89de3efa29d73789b806c15798f8e7dca4d8ac356b50ce70" dependencies = [ "cfg-if", "once_cell", @@ -4538,9 +4538,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.75" +version = "0.4.77" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "503b14d284f2c8dac03b819967e155ea753f573586193b2b2c95990cb5d69280" +checksum = "6b7777d5cc23d0e91404e53ce2d5e8ec7acae3026b16233dba62cd3246457950" dependencies = [ "js-sys", "wasm-bindgen", @@ -4548,9 +4548,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.125" +version = "0.2.127" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e21a184b13fb19e157296e2c46056aec9092264fab83e4ba59e68c61b323c3d" +checksum = "77775f8f3f7217702089053b94958f8f54061a3f663417df76e19cbdcca29bc1" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -4558,9 +4558,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.125" +version = "0.2.127" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fecefd9c35bd935a20fc3fc344b5f29138961e4f47fb03297d88f2587afb5ebd" +checksum = "e11d33f857dc2fb11b8bc75aee111aa9cbeb12cd9f25efd3d4c2a3dd4e235284" dependencies = [ "bumpalo", "proc-macro2", @@ -4571,9 +4571,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.125" +version = "0.2.127" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23939e44bb9a5d7576fa2b563dc2e136628f1224e88a8deed09e04858b77871f" +checksum = "7ef64dbcc55df09c7e5a46182d181c2cfa3e925f3da937ea764728b4bbb9dcbf" dependencies = [ "unicode-ident", ] @@ -4699,9 +4699,9 @@ dependencies = [ [[package]] name = "web-sys" -version = "0.3.102" +version = "0.3.104" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6430a72df5eb332242960fe84b3002a241163998241eb596d4f739b9757061d" +checksum = "c435338968042f4f59a557f690a253676d47ce13ceb55d70100e7facf6620a30" dependencies = [ "js-sys", "wasm-bindgen", diff --git a/Cargo.toml b/Cargo.toml index 67d9b7cb465..dbeea434b9a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -302,10 +302,10 @@ windows = { version = "0.62", default-features = false } # wasm dependencies console_error_panic_hook = "0.1.5" console_log = "1" -js-sys = { version = "0.3.100", default-features = false } -wasm-bindgen = { version = "0.2.123", default-features = false } -wasm-bindgen-futures = { version = "0.4.73", default-features = false } -web-sys = { version = "0.3.100", default-features = false } +js-sys = { version = "0.3.104", default-features = false } +wasm-bindgen = { version = "0.2.127", default-features = false } +wasm-bindgen-futures = { version = "0.4.77", default-features = false } +web-sys = { version = "0.3.104", default-features = false } web-time = "1.1.0" # deno dependencies diff --git a/examples/standalone/03_hdr_surface/Cargo.toml b/examples/standalone/03_hdr_surface/Cargo.toml index 6631700865e..ced0e031ccd 100644 --- a/examples/standalone/03_hdr_surface/Cargo.toml +++ b/examples/standalone/03_hdr_surface/Cargo.toml @@ -24,9 +24,9 @@ block2 = "0.6.2" [target.'cfg(target_arch = "wasm32")'.dependencies] console_error_panic_hook = "0.1.5" -wasm-bindgen = "0.2.123" -wasm-bindgen-futures = "0.4.73" -web-sys = { version = "0.3.100", features = [ +wasm-bindgen = "0.2.127" +wasm-bindgen-futures = "0.4.77" +web-sys = { version = "0.3.104", features = [ "console", "Document", "Element", diff --git a/wgpu/src/backend/webgpu.rs b/wgpu/src/backend/webgpu.rs index 0a791fe2fcf..25017d8e907 100644 --- a/wgpu/src/backend/webgpu.rs +++ b/wgpu/src/backend/webgpu.rs @@ -1004,7 +1004,7 @@ fn map_js_sys_limits(limits: &wgt::Limits) -> js_sys::Object { } fn future_request_adapter( - result: Result, wasm_bindgen::JsValue>, + result: Result, wasm_bindgen::JsValue>, requested_backends: Backends, ) -> Result { result @@ -1067,7 +1067,7 @@ fn future_request_device( } fn future_pop_error_scope( - result: Result, wasm_bindgen::JsValue>, + result: Result, wasm_bindgen::JsValue>, ) -> Option { Some(crate::Error::from_js(result.ok()?.into_option()?.into())) } @@ -2277,10 +2277,10 @@ impl dispatch::DeviceInterface for WebDevice { .bind_group_layouts .iter() .map(|bgl| match bgl { - Some(bgl) => js_sys::JsOption::wrap(bgl.inner.as_webgpu().inner.clone()), - None => js_sys::JsOption::new(), + Some(bgl) => js_sys::JsNullable::wrap(bgl.inner.as_webgpu().inner.clone()), + None => js_sys::JsNullable::new(), }) - .collect::>>(); + .collect::>>(); let mapped_desc = webgpu_sys::GpuPipelineLayoutDescriptor::new(&temp_layouts); if let Some(label) = desc.label { mapped_desc.set_label(label); @@ -2332,11 +2332,11 @@ impl dispatch::DeviceInterface for WebDevice { &mapped_attributes, ); mapped_vbuf.set_step_mode(map_vertex_step_mode(vbuf.step_mode)); - js_sys::JsOption::wrap(mapped_vbuf) + js_sys::JsNullable::wrap(mapped_vbuf) } - None => js_sys::JsOption::new(), + None => js_sys::JsNullable::new(), }) - .collect::>>(); + .collect::>>(); mapped_vertex_state.set_buffers(&buffers); @@ -2375,11 +2375,11 @@ impl dispatch::DeviceInterface for WebDevice { mapped_color_state.set_blend(&mapped_blend_state); } mapped_color_state.set_write_mask(target.write_mask.bits()); - js_sys::JsOption::wrap(mapped_color_state) + js_sys::JsNullable::wrap(mapped_color_state) } - None => js_sys::JsOption::new(), + None => js_sys::JsNullable::new(), }) - .collect::>>(); + .collect::>>(); let module = frag.module.inner.as_webgpu(); let mapped_fragment_desc = webgpu_sys::GpuFragmentState::new(&module.module, &targets); insert_constants_map(&mapped_fragment_desc, frag.compilation_options.constants); @@ -2596,14 +2596,14 @@ impl dispatch::DeviceInterface for WebDevice { .color_formats .iter() .map(|cf| match cf { - Some(cf) => js_sys::JsOption::wrap( + Some(cf) => js_sys::JsNullable::wrap( wasm_bindgen::JsValue::from(map_texture_format(*cf)) .dyn_into::() .unwrap(), ), - None => js_sys::JsOption::new(), + None => js_sys::JsNullable::new(), }) - .collect::>>(); + .collect::>>(); let mapped_desc = webgpu_sys::GpuRenderBundleEncoderDescriptor::new(&mapped_color_formats); if let Some(label) = desc.label { mapped_desc.set_label(label); @@ -3272,11 +3272,11 @@ impl dispatch::CommandEncoderInterface for WebCommandEncoder { } mapped_color_attachment.set_store_op(map_store_op(ca.ops.store)); - js_sys::JsOption::wrap(mapped_color_attachment) + js_sys::JsNullable::wrap(mapped_color_attachment) } - None => js_sys::JsOption::new(), + None => js_sys::JsNullable::new(), }) - .collect::>>(); + .collect::>>(); let mapped_desc = webgpu_sys::GpuRenderPassDescriptor::new(&mapped_color_attachments); From 79d85eeabf434e5814285e3ceb6f9e57b17b09dd Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Wed, 12 Aug 2026 12:40:28 +0200 Subject: [PATCH 3/4] FIXUP: move `CHANGELOG` entry to new `WebGPU` section --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 827e71aa61c..0bd39d1610b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -131,6 +131,9 @@ Bottom level categories: #### General - Raise the minimum version of the `wasm-bindgen` family to the earliest releases that support wasm64. By @nickbabcock in [#9836](https://github.com/gfx-rs/wgpu/pull/9836). + +#### WebGPU + - Upgrade vendored WebGPU bindings and `wasm-bindgen` to 0.2.127. By @beicause in [#10034](https://github.com/gfx-rs/wgpu/pull/10034). #### GLES From d539a808ed270228a2472709b3a86c00fcbf6473 Mon Sep 17 00:00:00 2001 From: Luo Zhiaho Date: Fri, 14 Aug 2026 23:29:16 +0800 Subject: [PATCH 4/4] Simplify `future_pop_error_scope` since it's `JsNullable` --- wgpu/src/backend/webgpu.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/wgpu/src/backend/webgpu.rs b/wgpu/src/backend/webgpu.rs index 1357db4ef3d..433539bc934 100644 --- a/wgpu/src/backend/webgpu.rs +++ b/wgpu/src/backend/webgpu.rs @@ -1075,17 +1075,7 @@ fn future_request_device( fn future_pop_error_scope( result: Result, wasm_bindgen::JsValue>, ) -> Option { - let js_option = result.ok()?; - // WebGPU's `popErrorScope()` resolves with `null` when the scope captured no error, but - // `wasm-bindgen`'s `JsOption` only treats `undefined` as absent (not `null`), so `null` - // must be checked explicitly here. - if js_option.is_empty() || JsValue::is_null(&js_option) { - return None; - } - let err = js_option - .into_option() - .expect("null/undefined checked above"); - Some(crate::Error::from_js(err.into())) + Some(crate::Error::from_js(result.ok()?.into_option()?.into())) } fn future_compilation_info(