mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
chore: update webgpu_sys to draft 2024-11-22 (#6641)
This commit is contained in:
parent
246ed3ee8e
commit
00625a711a
File diff suppressed because it is too large
Load Diff
2
wgpu/src/backend/webgpu/webgpu_sys/gen_Gpu.rs
generated
2
wgpu/src/backend/webgpu/webgpu_sys/gen_Gpu.rs
generated
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
|
||||
24
wgpu/src/backend/webgpu/webgpu_sys/gen_GpuAdapter.rs
generated
24
wgpu/src/backend/webgpu/webgpu_sys/gen_GpuAdapter.rs
generated
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -60,6 +60,17 @@ extern "C" {
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn limits(this: &GpuAdapter) -> GpuSupportedLimits;
|
||||
|
||||
# [wasm_bindgen (structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuAdapter`, `GpuAdapterInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn info(this: &GpuAdapter) -> GpuAdapterInfo;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapter" , js_name = isFallbackAdapter)]
|
||||
#[doc = "Getter for the `isFallbackAdapter` field of this object."]
|
||||
#[doc = ""]
|
||||
@ -71,17 +82,6 @@ extern "C" {
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn is_fallback_adapter(this: &GpuAdapter) -> bool;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUAdapter" , js_name = requestAdapterInfo)]
|
||||
#[doc = "The `requestAdapterInfo()` method."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapter/requestAdapterInfo)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuAdapter`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn request_adapter_info(this: &GpuAdapter) -> ::js_sys::Promise;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUAdapter" , js_name = requestDevice)]
|
||||
#[doc = "The `requestDevice()` method."]
|
||||
#[doc = ""]
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -26,81 +26,59 @@ use wasm_bindgen::prelude::*;
|
||||
|
||||
#[wasm_bindgen]
|
||||
extern "C" {
|
||||
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUImageCopyExternalImage)]
|
||||
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUAdapterInfo , typescript_type = "GPUAdapterInfo")]
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
#[doc = "The `GpuImageCopyExternalImage` dictionary."]
|
||||
#[doc = "The `GpuAdapterInfo` class."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuImageCopyExternalImage`*"]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterInfo)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuAdapterInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuImageCopyExternalImage;
|
||||
}
|
||||
pub type GpuAdapterInfo;
|
||||
|
||||
impl GpuImageCopyExternalImage {
|
||||
#[doc = "Construct a new `GpuImageCopyExternalImage`."]
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterInfo" , js_name = vendor)]
|
||||
#[doc = "Getter for the `vendor` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuImageCopyExternalImage`*"]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterInfo/vendor)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuAdapterInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new(source: &::js_sys::Object) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.source(source);
|
||||
ret
|
||||
}
|
||||
pub fn vendor(this: &GpuAdapterInfo) -> ::alloc::string::String;
|
||||
|
||||
#[doc = "Change the `flipY` field of this object."]
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterInfo" , js_name = architecture)]
|
||||
#[doc = "Getter for the `architecture` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuImageCopyExternalImage`*"]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterInfo/architecture)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuAdapterInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn flip_y(&mut self, val: bool) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("flipY"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self
|
||||
}
|
||||
pub fn architecture(this: &GpuAdapterInfo) -> ::alloc::string::String;
|
||||
|
||||
#[doc = "Change the `origin` field of this object."]
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterInfo" , js_name = device)]
|
||||
#[doc = "Getter for the `device` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuImageCopyExternalImage`*"]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterInfo/device)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuAdapterInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn origin(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r =
|
||||
::js_sys::Reflect::set(self.as_ref(), &JsValue::from("origin"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self
|
||||
}
|
||||
pub fn device(this: &GpuAdapterInfo) -> ::alloc::string::String;
|
||||
|
||||
#[doc = "Change the `source` field of this object."]
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterInfo" , js_name = description)]
|
||||
#[doc = "Getter for the `description` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuImageCopyExternalImage`*"]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterInfo/description)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuAdapterInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn source(&mut self, val: &::js_sys::Object) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r =
|
||||
::js_sys::Reflect::set(self.as_ref(), &JsValue::from("source"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self
|
||||
}
|
||||
pub fn description(this: &GpuAdapterInfo) -> ::alloc::string::String;
|
||||
}
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -47,7 +47,7 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuBindGroup) -> String;
|
||||
pub fn label(this: &GpuBindGroup) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPUBindGroup" , js_name = label)]
|
||||
#[doc = "Setter for the `label` field of this object."]
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,60 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuBindGroupDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuBindGroupDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuBindGroupDescriptor, val: &str);
|
||||
|
||||
#[doc = "Get the `entries` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "entries")]
|
||||
pub fn get_entries(this: &GpuBindGroupDescriptor) -> ::js_sys::Array;
|
||||
|
||||
#[doc = "Change the `entries` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "entries")]
|
||||
pub fn set_entries(this: &GpuBindGroupDescriptor, val: &::wasm_bindgen::JsValue);
|
||||
|
||||
#[doc = "Get the `layout` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupDescriptor`, `GpuBindGroupLayout`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "layout")]
|
||||
pub fn get_layout(this: &GpuBindGroupDescriptor) -> GpuBindGroupLayout;
|
||||
|
||||
#[doc = "Change the `layout` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupDescriptor`, `GpuBindGroupLayout`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "layout")]
|
||||
pub fn set_layout(this: &GpuBindGroupDescriptor, val: &GpuBindGroupLayout);
|
||||
}
|
||||
|
||||
impl GpuBindGroupDescriptor {
|
||||
@ -47,64 +101,26 @@ impl GpuBindGroupDescriptor {
|
||||
pub fn new(entries: &::wasm_bindgen::JsValue, layout: &GpuBindGroupLayout) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.entries(entries);
|
||||
ret.layout(layout);
|
||||
ret.set_entries(entries);
|
||||
ret.set_layout(layout);
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_label()` instead."]
|
||||
pub fn label(&mut self, val: &str) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_label(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `entries` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_entries()` instead."]
|
||||
pub fn entries(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("entries"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_entries(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `layout` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupDescriptor`, `GpuBindGroupLayout`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_layout()` instead."]
|
||||
pub fn layout(&mut self, val: &GpuBindGroupLayout) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r =
|
||||
::js_sys::Reflect::set(self.as_ref(), &JsValue::from("layout"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_layout(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,42 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuBindGroupEntry;
|
||||
|
||||
#[doc = "Get the `binding` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupEntry`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "binding")]
|
||||
pub fn get_binding(this: &GpuBindGroupEntry) -> u32;
|
||||
|
||||
#[doc = "Change the `binding` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupEntry`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "binding")]
|
||||
pub fn set_binding(this: &GpuBindGroupEntry, val: u32);
|
||||
|
||||
#[doc = "Get the `resource` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupEntry`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "resource")]
|
||||
pub fn get_resource(this: &GpuBindGroupEntry) -> ::wasm_bindgen::JsValue;
|
||||
|
||||
#[doc = "Change the `resource` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupEntry`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "resource")]
|
||||
pub fn set_resource(this: &GpuBindGroupEntry, val: &::wasm_bindgen::JsValue);
|
||||
}
|
||||
|
||||
impl GpuBindGroupEntry {
|
||||
@ -47,50 +83,20 @@ impl GpuBindGroupEntry {
|
||||
pub fn new(binding: u32, resource: &::wasm_bindgen::JsValue) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.binding(binding);
|
||||
ret.resource(resource);
|
||||
ret.set_binding(binding);
|
||||
ret.set_resource(resource);
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `binding` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupEntry`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_binding()` instead."]
|
||||
pub fn binding(&mut self, val: u32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("binding"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_binding(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `resource` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupEntry`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_resource()` instead."]
|
||||
pub fn resource(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("resource"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_resource(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -47,7 +47,7 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuBindGroupLayout) -> String;
|
||||
pub fn label(this: &GpuBindGroupLayout) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPUBindGroupLayout" , js_name = label)]
|
||||
#[doc = "Setter for the `label` field of this object."]
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,42 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuBindGroupLayoutDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuBindGroupLayoutDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuBindGroupLayoutDescriptor, val: &str);
|
||||
|
||||
#[doc = "Get the `entries` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "entries")]
|
||||
pub fn get_entries(this: &GpuBindGroupLayoutDescriptor) -> ::js_sys::Array;
|
||||
|
||||
#[doc = "Change the `entries` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "entries")]
|
||||
pub fn set_entries(this: &GpuBindGroupLayoutDescriptor, val: &::wasm_bindgen::JsValue);
|
||||
}
|
||||
|
||||
impl GpuBindGroupLayoutDescriptor {
|
||||
@ -47,45 +83,19 @@ impl GpuBindGroupLayoutDescriptor {
|
||||
pub fn new(entries: &::wasm_bindgen::JsValue) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.entries(entries);
|
||||
ret.set_entries(entries);
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_label()` instead."]
|
||||
pub fn label(&mut self, val: &str) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_label(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `entries` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_entries()` instead."]
|
||||
pub fn entries(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("entries"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_entries(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,142 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuBindGroupLayoutEntry;
|
||||
|
||||
#[doc = "Get the `binding` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "binding")]
|
||||
pub fn get_binding(this: &GpuBindGroupLayoutEntry) -> u32;
|
||||
|
||||
#[doc = "Change the `binding` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "binding")]
|
||||
pub fn set_binding(this: &GpuBindGroupLayoutEntry, val: u32);
|
||||
|
||||
#[doc = "Get the `buffer` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`, `GpuBufferBindingLayout`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "buffer")]
|
||||
pub fn get_buffer(this: &GpuBindGroupLayoutEntry) -> Option<GpuBufferBindingLayout>;
|
||||
|
||||
#[doc = "Change the `buffer` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`, `GpuBufferBindingLayout`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "buffer")]
|
||||
pub fn set_buffer(this: &GpuBindGroupLayoutEntry, val: &GpuBufferBindingLayout);
|
||||
|
||||
#[doc = "Get the `externalTexture` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`, `GpuExternalTextureBindingLayout`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "externalTexture")]
|
||||
pub fn get_external_texture(
|
||||
this: &GpuBindGroupLayoutEntry,
|
||||
) -> Option<GpuExternalTextureBindingLayout>;
|
||||
|
||||
#[doc = "Change the `externalTexture` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`, `GpuExternalTextureBindingLayout`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "externalTexture")]
|
||||
pub fn set_external_texture(
|
||||
this: &GpuBindGroupLayoutEntry,
|
||||
val: &GpuExternalTextureBindingLayout,
|
||||
);
|
||||
|
||||
#[doc = "Get the `sampler` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`, `GpuSamplerBindingLayout`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "sampler")]
|
||||
pub fn get_sampler(this: &GpuBindGroupLayoutEntry) -> Option<GpuSamplerBindingLayout>;
|
||||
|
||||
#[doc = "Change the `sampler` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`, `GpuSamplerBindingLayout`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "sampler")]
|
||||
pub fn set_sampler(this: &GpuBindGroupLayoutEntry, val: &GpuSamplerBindingLayout);
|
||||
|
||||
#[doc = "Get the `storageTexture` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`, `GpuStorageTextureBindingLayout`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "storageTexture")]
|
||||
pub fn get_storage_texture(
|
||||
this: &GpuBindGroupLayoutEntry,
|
||||
) -> Option<GpuStorageTextureBindingLayout>;
|
||||
|
||||
#[doc = "Change the `storageTexture` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`, `GpuStorageTextureBindingLayout`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "storageTexture")]
|
||||
pub fn set_storage_texture(
|
||||
this: &GpuBindGroupLayoutEntry,
|
||||
val: &GpuStorageTextureBindingLayout,
|
||||
);
|
||||
|
||||
#[doc = "Get the `texture` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`, `GpuTextureBindingLayout`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "texture")]
|
||||
pub fn get_texture(this: &GpuBindGroupLayoutEntry) -> Option<GpuTextureBindingLayout>;
|
||||
|
||||
#[doc = "Change the `texture` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`, `GpuTextureBindingLayout`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "texture")]
|
||||
pub fn set_texture(this: &GpuBindGroupLayoutEntry, val: &GpuTextureBindingLayout);
|
||||
|
||||
#[doc = "Get the `visibility` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "visibility")]
|
||||
pub fn get_visibility(this: &GpuBindGroupLayoutEntry) -> u32;
|
||||
|
||||
#[doc = "Change the `visibility` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "visibility")]
|
||||
pub fn set_visibility(this: &GpuBindGroupLayoutEntry, val: u32);
|
||||
}
|
||||
|
||||
impl GpuBindGroupLayoutEntry {
|
||||
@ -47,152 +183,50 @@ impl GpuBindGroupLayoutEntry {
|
||||
pub fn new(binding: u32, visibility: u32) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.binding(binding);
|
||||
ret.visibility(visibility);
|
||||
ret.set_binding(binding);
|
||||
ret.set_visibility(visibility);
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `binding` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_binding()` instead."]
|
||||
pub fn binding(&mut self, val: u32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("binding"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_binding(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `buffer` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`, `GpuBufferBindingLayout`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_buffer()` instead."]
|
||||
pub fn buffer(&mut self, val: &GpuBufferBindingLayout) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r =
|
||||
::js_sys::Reflect::set(self.as_ref(), &JsValue::from("buffer"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_buffer(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `externalTexture` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`, `GpuExternalTextureBindingLayout`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_external_texture()` instead."]
|
||||
pub fn external_texture(&mut self, val: &GpuExternalTextureBindingLayout) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("externalTexture"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_external_texture(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `sampler` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`, `GpuSamplerBindingLayout`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_sampler()` instead."]
|
||||
pub fn sampler(&mut self, val: &GpuSamplerBindingLayout) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("sampler"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_sampler(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `storageTexture` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`, `GpuStorageTextureBindingLayout`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_storage_texture()` instead."]
|
||||
pub fn storage_texture(&mut self, val: &GpuStorageTextureBindingLayout) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("storageTexture"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_storage_texture(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `texture` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`, `GpuTextureBindingLayout`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_texture()` instead."]
|
||||
pub fn texture(&mut self, val: &GpuTextureBindingLayout) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("texture"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_texture(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `visibility` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_visibility()` instead."]
|
||||
pub fn visibility(&mut self, val: u32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("visibility"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_visibility(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,60 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuBlendComponent;
|
||||
|
||||
#[doc = "Get the `dstFactor` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBlendComponent`, `GpuBlendFactor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "dstFactor")]
|
||||
pub fn get_dst_factor(this: &GpuBlendComponent) -> Option<GpuBlendFactor>;
|
||||
|
||||
#[doc = "Change the `dstFactor` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBlendComponent`, `GpuBlendFactor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "dstFactor")]
|
||||
pub fn set_dst_factor(this: &GpuBlendComponent, val: GpuBlendFactor);
|
||||
|
||||
#[doc = "Get the `operation` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBlendComponent`, `GpuBlendOperation`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "operation")]
|
||||
pub fn get_operation(this: &GpuBlendComponent) -> Option<GpuBlendOperation>;
|
||||
|
||||
#[doc = "Change the `operation` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBlendComponent`, `GpuBlendOperation`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "operation")]
|
||||
pub fn set_operation(this: &GpuBlendComponent, val: GpuBlendOperation);
|
||||
|
||||
#[doc = "Get the `srcFactor` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBlendComponent`, `GpuBlendFactor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "srcFactor")]
|
||||
pub fn get_src_factor(this: &GpuBlendComponent) -> Option<GpuBlendFactor>;
|
||||
|
||||
#[doc = "Change the `srcFactor` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBlendComponent`, `GpuBlendFactor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "srcFactor")]
|
||||
pub fn set_src_factor(this: &GpuBlendComponent, val: GpuBlendFactor);
|
||||
}
|
||||
|
||||
impl GpuBlendComponent {
|
||||
@ -50,66 +104,21 @@ impl GpuBlendComponent {
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `dstFactor` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBlendComponent`, `GpuBlendFactor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_dst_factor()` instead."]
|
||||
pub fn dst_factor(&mut self, val: GpuBlendFactor) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("dstFactor"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_dst_factor(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `operation` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBlendComponent`, `GpuBlendOperation`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_operation()` instead."]
|
||||
pub fn operation(&mut self, val: GpuBlendOperation) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("operation"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_operation(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `srcFactor` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBlendComponent`, `GpuBlendFactor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_src_factor()` instead."]
|
||||
pub fn src_factor(&mut self, val: GpuBlendFactor) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("srcFactor"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_src_factor(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
@ -45,4 +45,8 @@ pub enum GpuBlendFactor {
|
||||
SrcAlphaSaturated = "src-alpha-saturated",
|
||||
Constant = "constant",
|
||||
OneMinusConstant = "one-minus-constant",
|
||||
Src1 = "src1",
|
||||
OneMinusSrc1 = "one-minus-src1",
|
||||
Src1Alpha = "src1-alpha",
|
||||
OneMinusSrc1Alpha = "one-minus-src1-alpha",
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,42 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuBlendState;
|
||||
|
||||
#[doc = "Get the `alpha` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBlendComponent`, `GpuBlendState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "alpha")]
|
||||
pub fn get_alpha(this: &GpuBlendState) -> GpuBlendComponent;
|
||||
|
||||
#[doc = "Change the `alpha` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBlendComponent`, `GpuBlendState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "alpha")]
|
||||
pub fn set_alpha(this: &GpuBlendState, val: &GpuBlendComponent);
|
||||
|
||||
#[doc = "Get the `color` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBlendComponent`, `GpuBlendState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "color")]
|
||||
pub fn get_color(this: &GpuBlendState) -> GpuBlendComponent;
|
||||
|
||||
#[doc = "Change the `color` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBlendComponent`, `GpuBlendState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "color")]
|
||||
pub fn set_color(this: &GpuBlendState, val: &GpuBlendComponent);
|
||||
}
|
||||
|
||||
impl GpuBlendState {
|
||||
@ -47,42 +83,20 @@ impl GpuBlendState {
|
||||
pub fn new(alpha: &GpuBlendComponent, color: &GpuBlendComponent) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.alpha(alpha);
|
||||
ret.color(color);
|
||||
ret.set_alpha(alpha);
|
||||
ret.set_color(color);
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `alpha` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBlendComponent`, `GpuBlendState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_alpha()` instead."]
|
||||
pub fn alpha(&mut self, val: &GpuBlendComponent) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("alpha"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_alpha(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `color` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBlendComponent`, `GpuBlendState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_color()` instead."]
|
||||
pub fn color(&mut self, val: &GpuBlendComponent) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("color"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_color(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
38
wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBuffer.rs
generated
38
wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBuffer.rs
generated
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -80,7 +80,7 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuBuffer) -> String;
|
||||
pub fn label(this: &GpuBuffer) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPUBuffer" , js_name = label)]
|
||||
#[doc = "Setter for the `label` field of this object."]
|
||||
@ -104,7 +104,7 @@ extern "C" {
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn destroy(this: &GpuBuffer);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -113,9 +113,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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn get_mapped_range(this: &GpuBuffer) -> ::js_sys::ArrayBuffer;
|
||||
pub fn get_mapped_range(this: &GpuBuffer) -> Result<::js_sys::ArrayBuffer, JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -124,9 +124,12 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn get_mapped_range_with_u32(this: &GpuBuffer, offset: u32) -> ::js_sys::ArrayBuffer;
|
||||
pub fn get_mapped_range_with_u32(
|
||||
this: &GpuBuffer,
|
||||
offset: u32,
|
||||
) -> Result<::js_sys::ArrayBuffer, JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -135,9 +138,12 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn get_mapped_range_with_f64(this: &GpuBuffer, offset: f64) -> ::js_sys::ArrayBuffer;
|
||||
pub fn get_mapped_range_with_f64(
|
||||
this: &GpuBuffer,
|
||||
offset: f64,
|
||||
) -> Result<::js_sys::ArrayBuffer, JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -150,9 +156,9 @@ extern "C" {
|
||||
this: &GpuBuffer,
|
||||
offset: u32,
|
||||
size: u32,
|
||||
) -> ::js_sys::ArrayBuffer;
|
||||
) -> Result<::js_sys::ArrayBuffer, JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -165,9 +171,9 @@ extern "C" {
|
||||
this: &GpuBuffer,
|
||||
offset: f64,
|
||||
size: u32,
|
||||
) -> ::js_sys::ArrayBuffer;
|
||||
) -> Result<::js_sys::ArrayBuffer, JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -180,9 +186,9 @@ extern "C" {
|
||||
this: &GpuBuffer,
|
||||
offset: u32,
|
||||
size: f64,
|
||||
) -> ::js_sys::ArrayBuffer;
|
||||
) -> Result<::js_sys::ArrayBuffer, JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -195,7 +201,7 @@ extern "C" {
|
||||
this: &GpuBuffer,
|
||||
offset: f64,
|
||||
size: f64,
|
||||
) -> ::js_sys::ArrayBuffer;
|
||||
) -> Result<::js_sys::ArrayBuffer, JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = mapAsync)]
|
||||
#[doc = "The `mapAsync()` method."]
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,60 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuBufferBinding;
|
||||
|
||||
#[doc = "Get the `buffer` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuBufferBinding`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "buffer")]
|
||||
pub fn get_buffer(this: &GpuBufferBinding) -> GpuBuffer;
|
||||
|
||||
#[doc = "Change the `buffer` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuBufferBinding`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "buffer")]
|
||||
pub fn set_buffer(this: &GpuBufferBinding, val: &GpuBuffer);
|
||||
|
||||
#[doc = "Get the `offset` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBufferBinding`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "offset")]
|
||||
pub fn get_offset(this: &GpuBufferBinding) -> Option<f64>;
|
||||
|
||||
#[doc = "Change the `offset` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBufferBinding`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "offset")]
|
||||
pub fn set_offset(this: &GpuBufferBinding, val: f64);
|
||||
|
||||
#[doc = "Get the `size` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBufferBinding`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "size")]
|
||||
pub fn get_size(this: &GpuBufferBinding) -> Option<f64>;
|
||||
|
||||
#[doc = "Change the `size` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBufferBinding`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "size")]
|
||||
pub fn set_size(this: &GpuBufferBinding, val: f64);
|
||||
}
|
||||
|
||||
impl GpuBufferBinding {
|
||||
@ -47,60 +101,25 @@ impl GpuBufferBinding {
|
||||
pub fn new(buffer: &GpuBuffer) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.buffer(buffer);
|
||||
ret.set_buffer(buffer);
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `buffer` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuBufferBinding`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_buffer()` instead."]
|
||||
pub fn buffer(&mut self, val: &GpuBuffer) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r =
|
||||
::js_sys::Reflect::set(self.as_ref(), &JsValue::from("buffer"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_buffer(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `offset` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBufferBinding`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_offset()` instead."]
|
||||
pub fn offset(&mut self, val: f64) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r =
|
||||
::js_sys::Reflect::set(self.as_ref(), &JsValue::from("offset"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_offset(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `size` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBufferBinding`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_size()` instead."]
|
||||
pub fn size(&mut self, val: f64) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("size"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_size(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,60 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuBufferBindingLayout;
|
||||
|
||||
#[doc = "Get the `hasDynamicOffset` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBufferBindingLayout`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "hasDynamicOffset")]
|
||||
pub fn get_has_dynamic_offset(this: &GpuBufferBindingLayout) -> Option<bool>;
|
||||
|
||||
#[doc = "Change the `hasDynamicOffset` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBufferBindingLayout`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "hasDynamicOffset")]
|
||||
pub fn set_has_dynamic_offset(this: &GpuBufferBindingLayout, val: bool);
|
||||
|
||||
#[doc = "Get the `minBindingSize` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBufferBindingLayout`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "minBindingSize")]
|
||||
pub fn get_min_binding_size(this: &GpuBufferBindingLayout) -> Option<f64>;
|
||||
|
||||
#[doc = "Change the `minBindingSize` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBufferBindingLayout`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "minBindingSize")]
|
||||
pub fn set_min_binding_size(this: &GpuBufferBindingLayout, val: f64);
|
||||
|
||||
#[doc = "Get the `type` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBufferBindingLayout`, `GpuBufferBindingType`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "type")]
|
||||
pub fn get_type(this: &GpuBufferBindingLayout) -> Option<GpuBufferBindingType>;
|
||||
|
||||
#[doc = "Change the `type` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBufferBindingLayout`, `GpuBufferBindingType`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "type")]
|
||||
pub fn set_type(this: &GpuBufferBindingLayout, val: GpuBufferBindingType);
|
||||
}
|
||||
|
||||
impl GpuBufferBindingLayout {
|
||||
@ -50,62 +104,21 @@ impl GpuBufferBindingLayout {
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `hasDynamicOffset` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBufferBindingLayout`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_has_dynamic_offset()` instead."]
|
||||
pub fn has_dynamic_offset(&mut self, val: bool) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("hasDynamicOffset"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_has_dynamic_offset(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `minBindingSize` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBufferBindingLayout`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_min_binding_size()` instead."]
|
||||
pub fn min_binding_size(&mut self, val: f64) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("minBindingSize"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_min_binding_size(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `type` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBufferBindingLayout`, `GpuBufferBindingType`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_type()` instead."]
|
||||
pub fn type_(&mut self, val: GpuBufferBindingType) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_type(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,78 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuBufferDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBufferDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuBufferDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBufferDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuBufferDescriptor, val: &str);
|
||||
|
||||
#[doc = "Get the `mappedAtCreation` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBufferDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "mappedAtCreation")]
|
||||
pub fn get_mapped_at_creation(this: &GpuBufferDescriptor) -> Option<bool>;
|
||||
|
||||
#[doc = "Change the `mappedAtCreation` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBufferDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "mappedAtCreation")]
|
||||
pub fn set_mapped_at_creation(this: &GpuBufferDescriptor, val: bool);
|
||||
|
||||
#[doc = "Get the `size` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBufferDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "size")]
|
||||
pub fn get_size(this: &GpuBufferDescriptor) -> f64;
|
||||
|
||||
#[doc = "Change the `size` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBufferDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "size")]
|
||||
pub fn set_size(this: &GpuBufferDescriptor, val: f64);
|
||||
|
||||
#[doc = "Get the `usage` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBufferDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "usage")]
|
||||
pub fn get_usage(this: &GpuBufferDescriptor) -> u32;
|
||||
|
||||
#[doc = "Change the `usage` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBufferDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "usage")]
|
||||
pub fn set_usage(this: &GpuBufferDescriptor, val: u32);
|
||||
}
|
||||
|
||||
impl GpuBufferDescriptor {
|
||||
@ -47,80 +119,32 @@ impl GpuBufferDescriptor {
|
||||
pub fn new(size: f64, usage: u32) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.size(size);
|
||||
ret.usage(usage);
|
||||
ret.set_size(size);
|
||||
ret.set_usage(usage);
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBufferDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_label()` instead."]
|
||||
pub fn label(&mut self, val: &str) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_label(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `mappedAtCreation` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBufferDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_mapped_at_creation()` instead."]
|
||||
pub fn mapped_at_creation(&mut self, val: bool) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("mappedAtCreation"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_mapped_at_creation(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `size` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBufferDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_size()` instead."]
|
||||
pub fn size(&mut self, val: f64) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("size"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_size(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `usage` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBufferDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_usage()` instead."]
|
||||
pub fn usage(&mut self, val: u32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("usage"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_usage(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,114 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuCanvasConfiguration;
|
||||
|
||||
#[doc = "Get the `alphaMode` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCanvasAlphaMode`, `GpuCanvasConfiguration`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "alphaMode")]
|
||||
pub fn get_alpha_mode(this: &GpuCanvasConfiguration) -> Option<GpuCanvasAlphaMode>;
|
||||
|
||||
#[doc = "Change the `alphaMode` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCanvasAlphaMode`, `GpuCanvasConfiguration`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "alphaMode")]
|
||||
pub fn set_alpha_mode(this: &GpuCanvasConfiguration, val: GpuCanvasAlphaMode);
|
||||
|
||||
#[doc = "Get the `device` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCanvasConfiguration`, `GpuDevice`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "device")]
|
||||
pub fn get_device(this: &GpuCanvasConfiguration) -> GpuDevice;
|
||||
|
||||
#[doc = "Change the `device` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCanvasConfiguration`, `GpuDevice`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "device")]
|
||||
pub fn set_device(this: &GpuCanvasConfiguration, val: &GpuDevice);
|
||||
|
||||
#[doc = "Get the `format` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCanvasConfiguration`, `GpuTextureFormat`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "format")]
|
||||
pub fn get_format(this: &GpuCanvasConfiguration) -> GpuTextureFormat;
|
||||
|
||||
#[doc = "Change the `format` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCanvasConfiguration`, `GpuTextureFormat`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "format")]
|
||||
pub fn set_format(this: &GpuCanvasConfiguration, val: GpuTextureFormat);
|
||||
|
||||
#[doc = "Get the `toneMapping` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCanvasConfiguration`, `GpuCanvasToneMapping`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "toneMapping")]
|
||||
pub fn get_tone_mapping(this: &GpuCanvasConfiguration) -> Option<GpuCanvasToneMapping>;
|
||||
|
||||
#[doc = "Change the `toneMapping` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCanvasConfiguration`, `GpuCanvasToneMapping`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "toneMapping")]
|
||||
pub fn set_tone_mapping(this: &GpuCanvasConfiguration, val: &GpuCanvasToneMapping);
|
||||
|
||||
#[doc = "Get the `usage` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCanvasConfiguration`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "usage")]
|
||||
pub fn get_usage(this: &GpuCanvasConfiguration) -> Option<u32>;
|
||||
|
||||
#[doc = "Change the `usage` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCanvasConfiguration`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "usage")]
|
||||
pub fn set_usage(this: &GpuCanvasConfiguration, val: u32);
|
||||
|
||||
#[doc = "Get the `viewFormats` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCanvasConfiguration`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "viewFormats")]
|
||||
pub fn get_view_formats(this: &GpuCanvasConfiguration) -> Option<::js_sys::Array>;
|
||||
|
||||
#[doc = "Change the `viewFormats` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCanvasConfiguration`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "viewFormats")]
|
||||
pub fn set_view_formats(this: &GpuCanvasConfiguration, val: &::wasm_bindgen::JsValue);
|
||||
}
|
||||
|
||||
impl GpuCanvasConfiguration {
|
||||
@ -47,103 +155,44 @@ impl GpuCanvasConfiguration {
|
||||
pub fn new(device: &GpuDevice, format: GpuTextureFormat) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.device(device);
|
||||
ret.format(format);
|
||||
ret.set_device(device);
|
||||
ret.set_format(format);
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `alphaMode` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCanvasAlphaMode`, `GpuCanvasConfiguration`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_alpha_mode()` instead."]
|
||||
pub fn alpha_mode(&mut self, val: GpuCanvasAlphaMode) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("alphaMode"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_alpha_mode(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `device` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCanvasConfiguration`, `GpuDevice`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_device()` instead."]
|
||||
pub fn device(&mut self, val: &GpuDevice) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r =
|
||||
::js_sys::Reflect::set(self.as_ref(), &JsValue::from("device"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_device(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `format` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCanvasConfiguration`, `GpuTextureFormat`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_format()` instead."]
|
||||
pub fn format(&mut self, val: GpuTextureFormat) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r =
|
||||
::js_sys::Reflect::set(self.as_ref(), &JsValue::from("format"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_format(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `usage` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCanvasConfiguration`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_tone_mapping()` instead."]
|
||||
pub fn tone_mapping(&mut self, val: &GpuCanvasToneMapping) -> &mut Self {
|
||||
self.set_tone_mapping(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[deprecated = "Use `set_usage()` instead."]
|
||||
pub fn usage(&mut self, val: u32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("usage"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_usage(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `viewFormats` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCanvasConfiguration`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_view_formats()` instead."]
|
||||
pub fn view_formats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("viewFormats"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_view_formats(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -49,7 +49,7 @@ extern "C" {
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn canvas(this: &GpuCanvasContext) -> ::js_sys::Object;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUCanvasContext" , js_name = configure)]
|
||||
# [wasm_bindgen (catch , method , structural , js_class = "GPUCanvasContext" , js_name = configure)]
|
||||
#[doc = "The `configure()` method."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCanvasContext/configure)"]
|
||||
@ -58,9 +58,23 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn configure(this: &GpuCanvasContext, configuration: &GpuCanvasConfiguration);
|
||||
pub fn configure(
|
||||
this: &GpuCanvasContext,
|
||||
configuration: &GpuCanvasConfiguration,
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUCanvasContext" , js_name = getCurrentTexture)]
|
||||
# [wasm_bindgen (method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCanvasConfiguration`, `GpuCanvasContext`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn get_configuration(this: &GpuCanvasContext) -> Option<GpuCanvasConfiguration>;
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -69,7 +83,7 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn get_current_texture(this: &GpuCanvasContext) -> GpuTexture;
|
||||
pub fn get_current_texture(this: &GpuCanvasContext) -> Result<GpuTexture, JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUCanvasContext" , js_name = unconfigure)]
|
||||
#[doc = "The `unconfigure()` method."]
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -26,21 +26,39 @@ use wasm_bindgen::prelude::*;
|
||||
|
||||
#[wasm_bindgen]
|
||||
extern "C" {
|
||||
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUImageDataLayout)]
|
||||
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCanvasToneMapping)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
#[doc = "The `GpuImageDataLayout` dictionary."]
|
||||
#[doc = "The `GpuCanvasToneMapping` dictionary."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuImageDataLayout`*"]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCanvasToneMapping`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuImageDataLayout;
|
||||
pub type GpuCanvasToneMapping;
|
||||
|
||||
#[doc = "Get the `mode` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCanvasToneMapping`, `GpuCanvasToneMappingMode`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "mode")]
|
||||
pub fn get_mode(this: &GpuCanvasToneMapping) -> Option<GpuCanvasToneMappingMode>;
|
||||
|
||||
#[doc = "Change the `mode` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCanvasToneMapping`, `GpuCanvasToneMappingMode`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "mode")]
|
||||
pub fn set_mode(this: &GpuCanvasToneMapping, val: GpuCanvasToneMappingMode);
|
||||
}
|
||||
|
||||
impl GpuImageDataLayout {
|
||||
#[doc = "Construct a new `GpuImageDataLayout`."]
|
||||
impl GpuCanvasToneMapping {
|
||||
#[doc = "Construct a new `GpuCanvasToneMapping`."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuImageDataLayout`*"]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCanvasToneMapping`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
@ -50,68 +68,14 @@ impl GpuImageDataLayout {
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `bytesPerRow` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuImageDataLayout`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn bytes_per_row(&mut self, val: u32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("bytesPerRow"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `offset` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuImageDataLayout`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn offset(&mut self, val: f64) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r =
|
||||
::js_sys::Reflect::set(self.as_ref(), &JsValue::from("offset"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `rowsPerImage` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuImageDataLayout`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn rows_per_image(&mut self, val: u32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("rowsPerImage"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
#[deprecated = "Use `set_mode()` instead."]
|
||||
pub fn mode(&mut self, val: GpuCanvasToneMappingMode) -> &mut Self {
|
||||
self.set_mode(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for GpuImageDataLayout {
|
||||
impl Default for GpuCanvasToneMapping {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
37
wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCanvasToneMappingMode.rs
generated
Normal file
37
wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCanvasToneMappingMode.rs
generated
Normal file
@ -0,0 +1,37 @@
|
||||
// DO NOT EDIT THIS FILE!
|
||||
//
|
||||
// This module part of a subset of web-sys that is used by wgpu's webgpu backend.
|
||||
//
|
||||
// These bindings are vendored into wgpu for the sole purpose of letting
|
||||
// us pin the WebGPU backend to a specific version of the bindings, not
|
||||
// to enable local changes. There are no provisions to preserve changes
|
||||
// you make here the next time we re-vendor the bindings.
|
||||
//
|
||||
// The `web-sys` crate does not treat breaking changes to the WebGPU API
|
||||
// as semver breaking changes, as WebGPU is "unstable". This means Cargo
|
||||
// will not let us mix versions of `web-sys`, pinning WebGPU bindings to
|
||||
// a specific version, while letting other bindings like WebGL get
|
||||
// updated. Vendoring WebGPU was the workaround we chose.
|
||||
//
|
||||
// Vendoring also allows us to avoid building `web-sys` with
|
||||
// `--cfg=web_sys_unstable_apis`, needed to get the WebGPU bindings.
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
#[wasm_bindgen]
|
||||
#[doc = "The `GpuCanvasToneMappingMode` enum."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCanvasToneMappingMode`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum GpuCanvasToneMappingMode {
|
||||
Standard = "standard",
|
||||
Extended = "extended",
|
||||
}
|
||||
142
wgpu/src/backend/webgpu/webgpu_sys/gen_GpuColorDict.rs
generated
142
wgpu/src/backend/webgpu/webgpu_sys/gen_GpuColorDict.rs
generated
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,78 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuColorDict;
|
||||
|
||||
#[doc = "Get the `a` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuColorDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "a")]
|
||||
pub fn get_a(this: &GpuColorDict) -> f64;
|
||||
|
||||
#[doc = "Change the `a` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuColorDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "a")]
|
||||
pub fn set_a(this: &GpuColorDict, val: f64);
|
||||
|
||||
#[doc = "Get the `b` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuColorDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "b")]
|
||||
pub fn get_b(this: &GpuColorDict) -> f64;
|
||||
|
||||
#[doc = "Change the `b` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuColorDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "b")]
|
||||
pub fn set_b(this: &GpuColorDict, val: f64);
|
||||
|
||||
#[doc = "Get the `g` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuColorDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "g")]
|
||||
pub fn get_g(this: &GpuColorDict) -> f64;
|
||||
|
||||
#[doc = "Change the `g` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuColorDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "g")]
|
||||
pub fn set_g(this: &GpuColorDict, val: f64);
|
||||
|
||||
#[doc = "Get the `r` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuColorDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "r")]
|
||||
pub fn get_r(this: &GpuColorDict) -> f64;
|
||||
|
||||
#[doc = "Change the `r` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuColorDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "r")]
|
||||
pub fn set_r(this: &GpuColorDict, val: f64);
|
||||
}
|
||||
|
||||
impl GpuColorDict {
|
||||
@ -47,78 +119,34 @@ impl GpuColorDict {
|
||||
pub fn new(a: f64, b: f64, g: f64, r: f64) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.a(a);
|
||||
ret.b(b);
|
||||
ret.g(g);
|
||||
ret.r(r);
|
||||
ret.set_a(a);
|
||||
ret.set_b(b);
|
||||
ret.set_g(g);
|
||||
ret.set_r(r);
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `a` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuColorDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_a()` instead."]
|
||||
pub fn a(&mut self, val: f64) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("a"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_a(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `b` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuColorDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_b()` instead."]
|
||||
pub fn b(&mut self, val: f64) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("b"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_b(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `g` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuColorDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_g()` instead."]
|
||||
pub fn g(&mut self, val: f64) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("g"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_g(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `r` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuColorDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_r()` instead."]
|
||||
pub fn r(&mut self, val: f64) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("r"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_r(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,60 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuColorTargetState;
|
||||
|
||||
#[doc = "Get the `blend` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBlendState`, `GpuColorTargetState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "blend")]
|
||||
pub fn get_blend(this: &GpuColorTargetState) -> Option<GpuBlendState>;
|
||||
|
||||
#[doc = "Change the `blend` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBlendState`, `GpuColorTargetState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "blend")]
|
||||
pub fn set_blend(this: &GpuColorTargetState, val: &GpuBlendState);
|
||||
|
||||
#[doc = "Get the `format` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuColorTargetState`, `GpuTextureFormat`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "format")]
|
||||
pub fn get_format(this: &GpuColorTargetState) -> GpuTextureFormat;
|
||||
|
||||
#[doc = "Change the `format` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuColorTargetState`, `GpuTextureFormat`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "format")]
|
||||
pub fn set_format(this: &GpuColorTargetState, val: GpuTextureFormat);
|
||||
|
||||
#[doc = "Get the `writeMask` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuColorTargetState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "writeMask")]
|
||||
pub fn get_write_mask(this: &GpuColorTargetState) -> Option<u32>;
|
||||
|
||||
#[doc = "Change the `writeMask` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuColorTargetState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "writeMask")]
|
||||
pub fn set_write_mask(this: &GpuColorTargetState, val: u32);
|
||||
}
|
||||
|
||||
impl GpuColorTargetState {
|
||||
@ -47,63 +101,25 @@ impl GpuColorTargetState {
|
||||
pub fn new(format: GpuTextureFormat) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.format(format);
|
||||
ret.set_format(format);
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `blend` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBlendState`, `GpuColorTargetState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_blend()` instead."]
|
||||
pub fn blend(&mut self, val: &GpuBlendState) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("blend"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_blend(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `format` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuColorTargetState`, `GpuTextureFormat`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_format()` instead."]
|
||||
pub fn format(&mut self, val: GpuTextureFormat) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r =
|
||||
::js_sys::Reflect::set(self.as_ref(), &JsValue::from("format"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_format(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `writeMask` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuColorTargetState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_write_mask()` instead."]
|
||||
pub fn write_mask(&mut self, val: u32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("writeMask"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_write_mask(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -47,7 +47,7 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuCommandBuffer) -> String;
|
||||
pub fn label(this: &GpuCommandBuffer) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPUCommandBuffer" , js_name = label)]
|
||||
#[doc = "Setter for the `label` field of this object."]
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,24 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuCommandBufferDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandBufferDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuCommandBufferDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandBufferDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuCommandBufferDescriptor, val: &str);
|
||||
}
|
||||
|
||||
impl GpuCommandBufferDescriptor {
|
||||
@ -50,20 +68,9 @@ impl GpuCommandBufferDescriptor {
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandBufferDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_label()` instead."]
|
||||
pub fn label(&mut self, val: &str) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_label(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -47,7 +47,7 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuCommandEncoder) -> String;
|
||||
pub fn label(this: &GpuCommandEncoder) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPUCommandEncoder" , js_name = label)]
|
||||
#[doc = "Setter for the `label` field of this object."]
|
||||
@ -85,7 +85,7 @@ extern "C" {
|
||||
descriptor: &GpuComputePassDescriptor,
|
||||
) -> GpuComputePassEncoder;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = beginRenderPass)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -97,7 +97,7 @@ extern "C" {
|
||||
pub fn begin_render_pass(
|
||||
this: &GpuCommandEncoder,
|
||||
descriptor: &GpuRenderPassDescriptor,
|
||||
) -> GpuRenderPassEncoder;
|
||||
) -> Result<GpuRenderPassEncoder, JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = clearBuffer)]
|
||||
#[doc = "The `clearBuffer()` method."]
|
||||
@ -196,7 +196,7 @@ extern "C" {
|
||||
size: f64,
|
||||
);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -212,9 +212,9 @@ extern "C" {
|
||||
destination: &GpuBuffer,
|
||||
destination_offset: u32,
|
||||
size: u32,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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,9 +230,9 @@ extern "C" {
|
||||
destination: &GpuBuffer,
|
||||
destination_offset: u32,
|
||||
size: u32,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -248,9 +248,9 @@ extern "C" {
|
||||
destination: &GpuBuffer,
|
||||
destination_offset: f64,
|
||||
size: u32,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -266,9 +266,9 @@ extern "C" {
|
||||
destination: &GpuBuffer,
|
||||
destination_offset: f64,
|
||||
size: u32,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -284,9 +284,9 @@ extern "C" {
|
||||
destination: &GpuBuffer,
|
||||
destination_offset: u32,
|
||||
size: f64,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -302,9 +302,9 @@ extern "C" {
|
||||
destination: &GpuBuffer,
|
||||
destination_offset: u32,
|
||||
size: f64,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -320,9 +320,9 @@ extern "C" {
|
||||
destination: &GpuBuffer,
|
||||
destination_offset: f64,
|
||||
size: f64,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -338,103 +338,103 @@ extern "C" {
|
||||
destination: &GpuBuffer,
|
||||
destination_offset: f64,
|
||||
size: f64,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToTexture)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuImageCopyBuffer`, `GpuImageCopyTexture`*"]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuTexelCopyBufferInfo`, `GpuTexelCopyTextureInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_buffer_to_texture_with_u32_sequence(
|
||||
this: &GpuCommandEncoder,
|
||||
source: &GpuImageCopyBuffer,
|
||||
destination: &GpuImageCopyTexture,
|
||||
source: &GpuTexelCopyBufferInfo,
|
||||
destination: &GpuTexelCopyTextureInfo,
|
||||
copy_size: &::wasm_bindgen::JsValue,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToTexture)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuImageCopyBuffer`, `GpuImageCopyTexture`*"]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuTexelCopyBufferInfo`, `GpuTexelCopyTextureInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_buffer_to_texture_with_gpu_extent_3d_dict(
|
||||
this: &GpuCommandEncoder,
|
||||
source: &GpuImageCopyBuffer,
|
||||
destination: &GpuImageCopyTexture,
|
||||
source: &GpuTexelCopyBufferInfo,
|
||||
destination: &GpuTexelCopyTextureInfo,
|
||||
copy_size: &GpuExtent3dDict,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuImageCopyBuffer`, `GpuImageCopyTexture`*"]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuTexelCopyBufferInfo`, `GpuTexelCopyTextureInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_texture_to_buffer_with_u32_sequence(
|
||||
this: &GpuCommandEncoder,
|
||||
source: &GpuImageCopyTexture,
|
||||
destination: &GpuImageCopyBuffer,
|
||||
source: &GpuTexelCopyTextureInfo,
|
||||
destination: &GpuTexelCopyBufferInfo,
|
||||
copy_size: &::wasm_bindgen::JsValue,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuImageCopyBuffer`, `GpuImageCopyTexture`*"]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuTexelCopyBufferInfo`, `GpuTexelCopyTextureInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_texture_to_buffer_with_gpu_extent_3d_dict(
|
||||
this: &GpuCommandEncoder,
|
||||
source: &GpuImageCopyTexture,
|
||||
destination: &GpuImageCopyBuffer,
|
||||
source: &GpuTexelCopyTextureInfo,
|
||||
destination: &GpuTexelCopyBufferInfo,
|
||||
copy_size: &GpuExtent3dDict,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToTexture)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuImageCopyTexture`*"]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuTexelCopyTextureInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_texture_to_texture_with_u32_sequence(
|
||||
this: &GpuCommandEncoder,
|
||||
source: &GpuImageCopyTexture,
|
||||
destination: &GpuImageCopyTexture,
|
||||
source: &GpuTexelCopyTextureInfo,
|
||||
destination: &GpuTexelCopyTextureInfo,
|
||||
copy_size: &::wasm_bindgen::JsValue,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToTexture)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuImageCopyTexture`*"]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuTexelCopyTextureInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_texture_to_texture_with_gpu_extent_3d_dict(
|
||||
this: &GpuCommandEncoder,
|
||||
source: &GpuImageCopyTexture,
|
||||
destination: &GpuImageCopyTexture,
|
||||
source: &GpuTexelCopyTextureInfo,
|
||||
destination: &GpuTexelCopyTextureInfo,
|
||||
copy_size: &GpuExtent3dDict,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = finish)]
|
||||
#[doc = "The `finish()` method."]
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,24 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuCommandEncoderDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoderDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuCommandEncoderDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoderDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuCommandEncoderDescriptor, val: &str);
|
||||
}
|
||||
|
||||
impl GpuCommandEncoderDescriptor {
|
||||
@ -50,20 +68,9 @@ impl GpuCommandEncoderDescriptor {
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoderDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_label()` instead."]
|
||||
pub fn label(&mut self, val: &str) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_label(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -47,7 +47,7 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn message(this: &GpuCompilationMessage) -> String;
|
||||
pub fn message(this: &GpuCompilationMessage) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationMessage" , js_name = type)]
|
||||
#[doc = "Getter for the `type` field of this object."]
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,47 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuComputePassDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePassDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuComputePassDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePassDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuComputePassDescriptor, val: &str);
|
||||
|
||||
#[doc = "Get the `timestampWrites` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePassDescriptor`, `GpuComputePassTimestampWrites`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "timestampWrites")]
|
||||
pub fn get_timestamp_writes(
|
||||
this: &GpuComputePassDescriptor,
|
||||
) -> Option<GpuComputePassTimestampWrites>;
|
||||
|
||||
#[doc = "Change the `timestampWrites` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePassDescriptor`, `GpuComputePassTimestampWrites`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "timestampWrites")]
|
||||
pub fn set_timestamp_writes(
|
||||
this: &GpuComputePassDescriptor,
|
||||
val: &GpuComputePassTimestampWrites,
|
||||
);
|
||||
}
|
||||
|
||||
impl GpuComputePassDescriptor {
|
||||
@ -50,41 +91,15 @@ impl GpuComputePassDescriptor {
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePassDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_label()` instead."]
|
||||
pub fn label(&mut self, val: &str) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_label(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `timestampWrites` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePassDescriptor`, `GpuComputePassTimestampWrites`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_timestamp_writes()` instead."]
|
||||
pub fn timestamp_writes(&mut self, val: &GpuComputePassTimestampWrites) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("timestampWrites"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_timestamp_writes(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -47,7 +47,7 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuComputePassEncoder) -> String;
|
||||
pub fn label(this: &GpuComputePassEncoder) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPUComputePassEncoder" , js_name = label)]
|
||||
#[doc = "Setter for the `label` field of this object."]
|
||||
@ -185,7 +185,25 @@ extern "C" {
|
||||
dynamic_offsets: &::wasm_bindgen::JsValue,
|
||||
);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_bind_group_with_u32_slice_and_u32_and_dynamic_offsets_data_length(
|
||||
this: &GpuComputePassEncoder,
|
||||
index: u32,
|
||||
bind_group: Option<&GpuBindGroup>,
|
||||
dynamic_offsets_data: &[u32],
|
||||
dynamic_offsets_data_start: u32,
|
||||
dynamic_offsets_data_length: u32,
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -198,12 +216,30 @@ extern "C" {
|
||||
this: &GpuComputePassEncoder,
|
||||
index: u32,
|
||||
bind_group: Option<&GpuBindGroup>,
|
||||
dynamic_offsets_data: &[u32],
|
||||
dynamic_offsets_data: &::js_sys::Uint32Array,
|
||||
dynamic_offsets_data_start: u32,
|
||||
dynamic_offsets_data_length: u32,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_bind_group_with_u32_slice_and_f64_and_dynamic_offsets_data_length(
|
||||
this: &GpuComputePassEncoder,
|
||||
index: u32,
|
||||
bind_group: Option<&GpuBindGroup>,
|
||||
dynamic_offsets_data: &[u32],
|
||||
dynamic_offsets_data_start: f64,
|
||||
dynamic_offsets_data_length: u32,
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -216,10 +252,10 @@ extern "C" {
|
||||
this: &GpuComputePassEncoder,
|
||||
index: u32,
|
||||
bind_group: Option<&GpuBindGroup>,
|
||||
dynamic_offsets_data: &[u32],
|
||||
dynamic_offsets_data: &::js_sys::Uint32Array,
|
||||
dynamic_offsets_data_start: f64,
|
||||
dynamic_offsets_data_length: u32,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = insertDebugMarker)]
|
||||
#[doc = "The `insertDebugMarker()` method."]
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,60 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuComputePassTimestampWrites;
|
||||
|
||||
#[doc = "Get the `beginningOfPassWriteIndex` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePassTimestampWrites`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "beginningOfPassWriteIndex")]
|
||||
pub fn get_beginning_of_pass_write_index(this: &GpuComputePassTimestampWrites) -> Option<u32>;
|
||||
|
||||
#[doc = "Change the `beginningOfPassWriteIndex` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePassTimestampWrites`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "beginningOfPassWriteIndex")]
|
||||
pub fn set_beginning_of_pass_write_index(this: &GpuComputePassTimestampWrites, val: u32);
|
||||
|
||||
#[doc = "Get the `endOfPassWriteIndex` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePassTimestampWrites`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "endOfPassWriteIndex")]
|
||||
pub fn get_end_of_pass_write_index(this: &GpuComputePassTimestampWrites) -> Option<u32>;
|
||||
|
||||
#[doc = "Change the `endOfPassWriteIndex` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePassTimestampWrites`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "endOfPassWriteIndex")]
|
||||
pub fn set_end_of_pass_write_index(this: &GpuComputePassTimestampWrites, val: u32);
|
||||
|
||||
#[doc = "Get the `querySet` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePassTimestampWrites`, `GpuQuerySet`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "querySet")]
|
||||
pub fn get_query_set(this: &GpuComputePassTimestampWrites) -> GpuQuerySet;
|
||||
|
||||
#[doc = "Change the `querySet` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePassTimestampWrites`, `GpuQuerySet`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "querySet")]
|
||||
pub fn set_query_set(this: &GpuComputePassTimestampWrites, val: &GpuQuerySet);
|
||||
}
|
||||
|
||||
impl GpuComputePassTimestampWrites {
|
||||
@ -47,70 +101,25 @@ impl GpuComputePassTimestampWrites {
|
||||
pub fn new(query_set: &GpuQuerySet) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.query_set(query_set);
|
||||
ret.set_query_set(query_set);
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `beginningOfPassWriteIndex` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePassTimestampWrites`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_beginning_of_pass_write_index()` instead."]
|
||||
pub fn beginning_of_pass_write_index(&mut self, val: u32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("beginningOfPassWriteIndex"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_beginning_of_pass_write_index(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `endOfPassWriteIndex` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePassTimestampWrites`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_end_of_pass_write_index()` instead."]
|
||||
pub fn end_of_pass_write_index(&mut self, val: u32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("endOfPassWriteIndex"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_end_of_pass_write_index(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `querySet` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePassTimestampWrites`, `GpuQuerySet`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_query_set()` instead."]
|
||||
pub fn query_set(&mut self, val: &GpuQuerySet) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("querySet"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_query_set(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -47,7 +47,7 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuComputePipeline) -> String;
|
||||
pub fn label(this: &GpuComputePipeline) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPUComputePipeline" , js_name = label)]
|
||||
#[doc = "Setter for the `label` field of this object."]
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,60 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuComputePipelineDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePipelineDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuComputePipelineDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePipelineDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuComputePipelineDescriptor, val: &str);
|
||||
|
||||
#[doc = "Get the `layout` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePipelineDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "layout")]
|
||||
pub fn get_layout(this: &GpuComputePipelineDescriptor) -> ::wasm_bindgen::JsValue;
|
||||
|
||||
#[doc = "Change the `layout` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePipelineDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "layout")]
|
||||
pub fn set_layout(this: &GpuComputePipelineDescriptor, val: &::wasm_bindgen::JsValue);
|
||||
|
||||
#[doc = "Get the `compute` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePipelineDescriptor`, `GpuProgrammableStage`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "compute")]
|
||||
pub fn get_compute(this: &GpuComputePipelineDescriptor) -> GpuProgrammableStage;
|
||||
|
||||
#[doc = "Change the `compute` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePipelineDescriptor`, `GpuProgrammableStage`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "compute")]
|
||||
pub fn set_compute(this: &GpuComputePipelineDescriptor, val: &GpuProgrammableStage);
|
||||
}
|
||||
|
||||
impl GpuComputePipelineDescriptor {
|
||||
@ -47,64 +101,26 @@ impl GpuComputePipelineDescriptor {
|
||||
pub fn new(layout: &::wasm_bindgen::JsValue, compute: &GpuProgrammableStage) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.layout(layout);
|
||||
ret.compute(compute);
|
||||
ret.set_layout(layout);
|
||||
ret.set_compute(compute);
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePipelineDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_label()` instead."]
|
||||
pub fn label(&mut self, val: &str) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_label(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `layout` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePipelineDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_layout()` instead."]
|
||||
pub fn layout(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r =
|
||||
::js_sys::Reflect::set(self.as_ref(), &JsValue::from("layout"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_layout(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `compute` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePipelineDescriptor`, `GpuProgrammableStage`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_compute()` instead."]
|
||||
pub fn compute(&mut self, val: &GpuProgrammableStage) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("compute"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_compute(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
173
wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCopyExternalImageDestInfo.rs
generated
Normal file
173
wgpu/src/backend/webgpu/webgpu_sys/gen_GpuCopyExternalImageDestInfo.rs
generated
Normal file
@ -0,0 +1,173 @@
|
||||
// DO NOT EDIT THIS FILE!
|
||||
//
|
||||
// This module part of a subset of web-sys that is used by wgpu's webgpu backend.
|
||||
//
|
||||
// These bindings are vendored into wgpu for the sole purpose of letting
|
||||
// us pin the WebGPU backend to a specific version of the bindings, not
|
||||
// to enable local changes. There are no provisions to preserve changes
|
||||
// you make here the next time we re-vendor the bindings.
|
||||
//
|
||||
// The `web-sys` crate does not treat breaking changes to the WebGPU API
|
||||
// as semver breaking changes, as WebGPU is "unstable". This means Cargo
|
||||
// will not let us mix versions of `web-sys`, pinning WebGPU bindings to
|
||||
// a specific version, while letting other bindings like WebGL get
|
||||
// updated. Vendoring WebGPU was the workaround we chose.
|
||||
//
|
||||
// Vendoring also allows us to avoid building `web-sys` with
|
||||
// `--cfg=web_sys_unstable_apis`, needed to get the WebGPU bindings.
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
#[wasm_bindgen]
|
||||
extern "C" {
|
||||
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCopyExternalImageDestInfo)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
#[doc = "The `GpuCopyExternalImageDestInfo` dictionary."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuCopyExternalImageDestInfo;
|
||||
|
||||
#[doc = "Get the `aspect` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`, `GpuTextureAspect`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "aspect")]
|
||||
pub fn get_aspect(this: &GpuCopyExternalImageDestInfo) -> Option<GpuTextureAspect>;
|
||||
|
||||
#[doc = "Change the `aspect` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`, `GpuTextureAspect`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "aspect")]
|
||||
pub fn set_aspect(this: &GpuCopyExternalImageDestInfo, val: GpuTextureAspect);
|
||||
|
||||
#[doc = "Get the `mipLevel` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "mipLevel")]
|
||||
pub fn get_mip_level(this: &GpuCopyExternalImageDestInfo) -> Option<u32>;
|
||||
|
||||
#[doc = "Change the `mipLevel` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "mipLevel")]
|
||||
pub fn set_mip_level(this: &GpuCopyExternalImageDestInfo, val: u32);
|
||||
|
||||
#[doc = "Get the `origin` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "origin")]
|
||||
pub fn get_origin(this: &GpuCopyExternalImageDestInfo) -> ::wasm_bindgen::JsValue;
|
||||
|
||||
#[doc = "Change the `origin` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "origin")]
|
||||
pub fn set_origin(this: &GpuCopyExternalImageDestInfo, val: &::wasm_bindgen::JsValue);
|
||||
|
||||
#[doc = "Get the `texture` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`, `GpuTexture`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "texture")]
|
||||
pub fn get_texture(this: &GpuCopyExternalImageDestInfo) -> GpuTexture;
|
||||
|
||||
#[doc = "Change the `texture` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`, `GpuTexture`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "texture")]
|
||||
pub fn set_texture(this: &GpuCopyExternalImageDestInfo, val: &GpuTexture);
|
||||
|
||||
#[doc = "Get the `premultipliedAlpha` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "premultipliedAlpha")]
|
||||
pub fn get_premultiplied_alpha(this: &GpuCopyExternalImageDestInfo) -> Option<bool>;
|
||||
|
||||
#[doc = "Change the `premultipliedAlpha` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "premultipliedAlpha")]
|
||||
pub fn set_premultiplied_alpha(this: &GpuCopyExternalImageDestInfo, val: bool);
|
||||
}
|
||||
|
||||
impl GpuCopyExternalImageDestInfo {
|
||||
#[doc = "Construct a new `GpuCopyExternalImageDestInfo`."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`, `GpuTexture`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new(texture: &GpuTexture) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.set_texture(texture);
|
||||
ret
|
||||
}
|
||||
|
||||
#[deprecated = "Use `set_aspect()` instead."]
|
||||
pub fn aspect(&mut self, val: GpuTextureAspect) -> &mut Self {
|
||||
self.set_aspect(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[deprecated = "Use `set_mip_level()` instead."]
|
||||
pub fn mip_level(&mut self, val: u32) -> &mut Self {
|
||||
self.set_mip_level(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[deprecated = "Use `set_origin()` instead."]
|
||||
pub fn origin(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
|
||||
self.set_origin(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[deprecated = "Use `set_texture()` instead."]
|
||||
pub fn texture(&mut self, val: &GpuTexture) -> &mut Self {
|
||||
self.set_texture(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[deprecated = "Use `set_premultiplied_alpha()` instead."]
|
||||
pub fn premultiplied_alpha(&mut self, val: bool) -> &mut Self {
|
||||
self.set_premultiplied_alpha(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -26,127 +26,100 @@ use wasm_bindgen::prelude::*;
|
||||
|
||||
#[wasm_bindgen]
|
||||
extern "C" {
|
||||
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUImageCopyTextureTagged)]
|
||||
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCopyExternalImageSourceInfo)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
#[doc = "The `GpuImageCopyTextureTagged` dictionary."]
|
||||
#[doc = "The `GpuCopyExternalImageSourceInfo` dictionary."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTextureTagged`*"]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageSourceInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuImageCopyTextureTagged;
|
||||
}
|
||||
pub type GpuCopyExternalImageSourceInfo;
|
||||
|
||||
impl GpuImageCopyTextureTagged {
|
||||
#[doc = "Construct a new `GpuImageCopyTextureTagged`."]
|
||||
#[doc = "Get the `flipY` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTextureTagged`, `GpuTexture`*"]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageSourceInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new(texture: &GpuTexture) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.texture(texture);
|
||||
ret
|
||||
}
|
||||
#[wasm_bindgen(method, getter = "flipY")]
|
||||
pub fn get_flip_y(this: &GpuCopyExternalImageSourceInfo) -> Option<bool>;
|
||||
|
||||
#[doc = "Change the `aspect` field of this object."]
|
||||
#[doc = "Change the `flipY` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTextureTagged`, `GpuTextureAspect`*"]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageSourceInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn aspect(&mut self, val: GpuTextureAspect) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r =
|
||||
::js_sys::Reflect::set(self.as_ref(), &JsValue::from("aspect"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self
|
||||
}
|
||||
#[wasm_bindgen(method, setter = "flipY")]
|
||||
pub fn set_flip_y(this: &GpuCopyExternalImageSourceInfo, val: bool);
|
||||
|
||||
#[doc = "Change the `mipLevel` field of this object."]
|
||||
#[doc = "Get the `origin` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTextureTagged`*"]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageSourceInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn mip_level(&mut self, val: u32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("mipLevel"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self
|
||||
}
|
||||
#[wasm_bindgen(method, getter = "origin")]
|
||||
pub fn get_origin(this: &GpuCopyExternalImageSourceInfo) -> ::wasm_bindgen::JsValue;
|
||||
|
||||
#[doc = "Change the `origin` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTextureTagged`*"]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageSourceInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "origin")]
|
||||
pub fn set_origin(this: &GpuCopyExternalImageSourceInfo, val: &::wasm_bindgen::JsValue);
|
||||
|
||||
#[doc = "Get the `source` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageSourceInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "source")]
|
||||
pub fn get_source(this: &GpuCopyExternalImageSourceInfo) -> ::js_sys::Object;
|
||||
|
||||
#[doc = "Change the `source` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageSourceInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "source")]
|
||||
pub fn set_source(this: &GpuCopyExternalImageSourceInfo, val: &::js_sys::Object);
|
||||
}
|
||||
|
||||
impl GpuCopyExternalImageSourceInfo {
|
||||
#[doc = "Construct a new `GpuCopyExternalImageSourceInfo`."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageSourceInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new(source: &::js_sys::Object) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.set_source(source);
|
||||
ret
|
||||
}
|
||||
|
||||
#[deprecated = "Use `set_flip_y()` instead."]
|
||||
pub fn flip_y(&mut self, val: bool) -> &mut Self {
|
||||
self.set_flip_y(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[deprecated = "Use `set_origin()` instead."]
|
||||
pub fn origin(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r =
|
||||
::js_sys::Reflect::set(self.as_ref(), &JsValue::from("origin"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_origin(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `texture` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTextureTagged`, `GpuTexture`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn texture(&mut self, val: &GpuTexture) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("texture"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `premultipliedAlpha` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTextureTagged`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn premultiplied_alpha(&mut self, val: bool) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("premultipliedAlpha"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
#[deprecated = "Use `set_source()` instead."]
|
||||
pub fn source(&mut self, val: &::js_sys::Object) -> &mut Self {
|
||||
self.set_source(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,186 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuDepthStencilState;
|
||||
|
||||
#[doc = "Get the `depthBias` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthBias")]
|
||||
pub fn get_depth_bias(this: &GpuDepthStencilState) -> Option<i32>;
|
||||
|
||||
#[doc = "Change the `depthBias` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthBias")]
|
||||
pub fn set_depth_bias(this: &GpuDepthStencilState, val: i32);
|
||||
|
||||
#[doc = "Get the `depthBiasClamp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthBiasClamp")]
|
||||
pub fn get_depth_bias_clamp(this: &GpuDepthStencilState) -> Option<f32>;
|
||||
|
||||
#[doc = "Change the `depthBiasClamp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthBiasClamp")]
|
||||
pub fn set_depth_bias_clamp(this: &GpuDepthStencilState, val: f32);
|
||||
|
||||
#[doc = "Get the `depthBiasSlopeScale` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthBiasSlopeScale")]
|
||||
pub fn get_depth_bias_slope_scale(this: &GpuDepthStencilState) -> Option<f32>;
|
||||
|
||||
#[doc = "Change the `depthBiasSlopeScale` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthBiasSlopeScale")]
|
||||
pub fn set_depth_bias_slope_scale(this: &GpuDepthStencilState, val: f32);
|
||||
|
||||
#[doc = "Get the `depthCompare` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCompareFunction`, `GpuDepthStencilState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthCompare")]
|
||||
pub fn get_depth_compare(this: &GpuDepthStencilState) -> Option<GpuCompareFunction>;
|
||||
|
||||
#[doc = "Change the `depthCompare` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCompareFunction`, `GpuDepthStencilState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthCompare")]
|
||||
pub fn set_depth_compare(this: &GpuDepthStencilState, val: GpuCompareFunction);
|
||||
|
||||
#[doc = "Get the `depthWriteEnabled` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthWriteEnabled")]
|
||||
pub fn get_depth_write_enabled(this: &GpuDepthStencilState) -> Option<bool>;
|
||||
|
||||
#[doc = "Change the `depthWriteEnabled` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthWriteEnabled")]
|
||||
pub fn set_depth_write_enabled(this: &GpuDepthStencilState, val: bool);
|
||||
|
||||
#[doc = "Get the `format` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`, `GpuTextureFormat`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "format")]
|
||||
pub fn get_format(this: &GpuDepthStencilState) -> GpuTextureFormat;
|
||||
|
||||
#[doc = "Change the `format` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`, `GpuTextureFormat`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "format")]
|
||||
pub fn set_format(this: &GpuDepthStencilState, val: GpuTextureFormat);
|
||||
|
||||
#[doc = "Get the `stencilBack` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`, `GpuStencilFaceState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "stencilBack")]
|
||||
pub fn get_stencil_back(this: &GpuDepthStencilState) -> Option<GpuStencilFaceState>;
|
||||
|
||||
#[doc = "Change the `stencilBack` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`, `GpuStencilFaceState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "stencilBack")]
|
||||
pub fn set_stencil_back(this: &GpuDepthStencilState, val: &GpuStencilFaceState);
|
||||
|
||||
#[doc = "Get the `stencilFront` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`, `GpuStencilFaceState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "stencilFront")]
|
||||
pub fn get_stencil_front(this: &GpuDepthStencilState) -> Option<GpuStencilFaceState>;
|
||||
|
||||
#[doc = "Change the `stencilFront` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`, `GpuStencilFaceState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "stencilFront")]
|
||||
pub fn set_stencil_front(this: &GpuDepthStencilState, val: &GpuStencilFaceState);
|
||||
|
||||
#[doc = "Get the `stencilReadMask` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "stencilReadMask")]
|
||||
pub fn get_stencil_read_mask(this: &GpuDepthStencilState) -> Option<u32>;
|
||||
|
||||
#[doc = "Change the `stencilReadMask` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "stencilReadMask")]
|
||||
pub fn set_stencil_read_mask(this: &GpuDepthStencilState, val: u32);
|
||||
|
||||
#[doc = "Get the `stencilWriteMask` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "stencilWriteMask")]
|
||||
pub fn get_stencil_write_mask(this: &GpuDepthStencilState) -> Option<u32>;
|
||||
|
||||
#[doc = "Change the `stencilWriteMask` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "stencilWriteMask")]
|
||||
pub fn set_stencil_write_mask(this: &GpuDepthStencilState, val: u32);
|
||||
}
|
||||
|
||||
impl GpuDepthStencilState {
|
||||
@ -47,214 +227,67 @@ impl GpuDepthStencilState {
|
||||
pub fn new(format: GpuTextureFormat) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.format(format);
|
||||
ret.set_format(format);
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `depthBias` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_depth_bias()` instead."]
|
||||
pub fn depth_bias(&mut self, val: i32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("depthBias"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_depth_bias(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `depthBiasClamp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_depth_bias_clamp()` instead."]
|
||||
pub fn depth_bias_clamp(&mut self, val: f32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("depthBiasClamp"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_depth_bias_clamp(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `depthBiasSlopeScale` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_depth_bias_slope_scale()` instead."]
|
||||
pub fn depth_bias_slope_scale(&mut self, val: f32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("depthBiasSlopeScale"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_depth_bias_slope_scale(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `depthCompare` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCompareFunction`, `GpuDepthStencilState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_depth_compare()` instead."]
|
||||
pub fn depth_compare(&mut self, val: GpuCompareFunction) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("depthCompare"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_depth_compare(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `depthWriteEnabled` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_depth_write_enabled()` instead."]
|
||||
pub fn depth_write_enabled(&mut self, val: bool) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("depthWriteEnabled"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_depth_write_enabled(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `format` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`, `GpuTextureFormat`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_format()` instead."]
|
||||
pub fn format(&mut self, val: GpuTextureFormat) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r =
|
||||
::js_sys::Reflect::set(self.as_ref(), &JsValue::from("format"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_format(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `stencilBack` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`, `GpuStencilFaceState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_stencil_back()` instead."]
|
||||
pub fn stencil_back(&mut self, val: &GpuStencilFaceState) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("stencilBack"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_stencil_back(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `stencilFront` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`, `GpuStencilFaceState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_stencil_front()` instead."]
|
||||
pub fn stencil_front(&mut self, val: &GpuStencilFaceState) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("stencilFront"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_stencil_front(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `stencilReadMask` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_stencil_read_mask()` instead."]
|
||||
pub fn stencil_read_mask(&mut self, val: u32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("stencilReadMask"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_stencil_read_mask(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `stencilWriteMask` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_stencil_write_mask()` instead."]
|
||||
pub fn stencil_write_mask(&mut self, val: u32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("stencilWriteMask"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_stencil_write_mask(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
52
wgpu/src/backend/webgpu/webgpu_sys/gen_GpuDevice.rs
generated
52
wgpu/src/backend/webgpu/webgpu_sys/gen_GpuDevice.rs
generated
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -60,6 +60,17 @@ extern "C" {
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn limits(this: &GpuDevice) -> GpuSupportedLimits;
|
||||
|
||||
# [wasm_bindgen (structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuAdapterInfo`, `GpuDevice`*"]
|
||||
#[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://rustwasm.github.io/docs/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)]
|
||||
#[doc = "Getter for the `queue` field of this object."]
|
||||
#[doc = ""]
|
||||
@ -113,7 +124,7 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuDevice) -> String;
|
||||
pub fn label(this: &GpuDevice) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPUDevice" , js_name = label)]
|
||||
#[doc = "Setter for the `label` field of this object."]
|
||||
@ -138,7 +149,7 @@ extern "C" {
|
||||
pub fn create_bind_group(this: &GpuDevice, descriptor: &GpuBindGroupDescriptor)
|
||||
-> GpuBindGroup;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createBindGroupLayout)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -150,9 +161,9 @@ extern "C" {
|
||||
pub fn create_bind_group_layout(
|
||||
this: &GpuDevice,
|
||||
descriptor: &GpuBindGroupLayoutDescriptor,
|
||||
) -> GpuBindGroupLayout;
|
||||
) -> Result<GpuBindGroupLayout, JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -161,7 +172,10 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn create_buffer(this: &GpuDevice, descriptor: &GpuBufferDescriptor) -> GpuBuffer;
|
||||
pub fn create_buffer(
|
||||
this: &GpuDevice,
|
||||
descriptor: &GpuBufferDescriptor,
|
||||
) -> Result<GpuBuffer, JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createCommandEncoder)]
|
||||
#[doc = "The `createCommandEncoder()` method."]
|
||||
@ -230,7 +244,7 @@ extern "C" {
|
||||
descriptor: &GpuPipelineLayoutDescriptor,
|
||||
) -> GpuPipelineLayout;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createQuerySet)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -239,9 +253,12 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn create_query_set(this: &GpuDevice, descriptor: &GpuQuerySetDescriptor) -> GpuQuerySet;
|
||||
pub fn create_query_set(
|
||||
this: &GpuDevice,
|
||||
descriptor: &GpuQuerySetDescriptor,
|
||||
) -> Result<GpuQuerySet, JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createRenderBundleEncoder)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -253,9 +270,9 @@ extern "C" {
|
||||
pub fn create_render_bundle_encoder(
|
||||
this: &GpuDevice,
|
||||
descriptor: &GpuRenderBundleEncoderDescriptor,
|
||||
) -> GpuRenderBundleEncoder;
|
||||
) -> Result<GpuRenderBundleEncoder, JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createRenderPipeline)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -267,7 +284,7 @@ extern "C" {
|
||||
pub fn create_render_pipeline(
|
||||
this: &GpuDevice,
|
||||
descriptor: &GpuRenderPipelineDescriptor,
|
||||
) -> GpuRenderPipeline;
|
||||
) -> Result<GpuRenderPipeline, JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createRenderPipelineAsync)]
|
||||
#[doc = "The `createRenderPipelineAsync()` method."]
|
||||
@ -322,7 +339,7 @@ extern "C" {
|
||||
descriptor: &GpuShaderModuleDescriptor,
|
||||
) -> GpuShaderModule;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createTexture)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -331,7 +348,10 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn create_texture(this: &GpuDevice, descriptor: &GpuTextureDescriptor) -> GpuTexture;
|
||||
pub fn create_texture(
|
||||
this: &GpuDevice,
|
||||
descriptor: &GpuTextureDescriptor,
|
||||
) -> Result<GpuTexture, JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = destroy)]
|
||||
#[doc = "The `destroy()` method."]
|
||||
@ -344,7 +364,7 @@ extern "C" {
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn destroy(this: &GpuDevice);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = importExternalTexture)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -356,7 +376,7 @@ extern "C" {
|
||||
pub fn import_external_texture(
|
||||
this: &GpuDevice,
|
||||
descriptor: &GpuExternalTextureDescriptor,
|
||||
) -> GpuExternalTexture;
|
||||
) -> Result<GpuExternalTexture, JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = popErrorScope)]
|
||||
#[doc = "The `popErrorScope()` method."]
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,78 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuDeviceDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDeviceDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuDeviceDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDeviceDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuDeviceDescriptor, val: &str);
|
||||
|
||||
#[doc = "Get the `defaultQueue` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDeviceDescriptor`, `GpuQueueDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "defaultQueue")]
|
||||
pub fn get_default_queue(this: &GpuDeviceDescriptor) -> Option<GpuQueueDescriptor>;
|
||||
|
||||
#[doc = "Change the `defaultQueue` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDeviceDescriptor`, `GpuQueueDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "defaultQueue")]
|
||||
pub fn set_default_queue(this: &GpuDeviceDescriptor, val: &GpuQueueDescriptor);
|
||||
|
||||
#[doc = "Get the `requiredFeatures` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDeviceDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "requiredFeatures")]
|
||||
pub fn get_required_features(this: &GpuDeviceDescriptor) -> Option<::js_sys::Array>;
|
||||
|
||||
#[doc = "Change the `requiredFeatures` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDeviceDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "requiredFeatures")]
|
||||
pub fn set_required_features(this: &GpuDeviceDescriptor, val: &::wasm_bindgen::JsValue);
|
||||
|
||||
#[doc = "Get the `requiredLimits` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDeviceDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "requiredLimits")]
|
||||
pub fn get_required_limits(this: &GpuDeviceDescriptor) -> Option<::js_sys::Object>;
|
||||
|
||||
#[doc = "Change the `requiredLimits` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDeviceDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "requiredLimits")]
|
||||
pub fn set_required_limits(this: &GpuDeviceDescriptor, val: &::js_sys::Object);
|
||||
}
|
||||
|
||||
impl GpuDeviceDescriptor {
|
||||
@ -50,62 +122,27 @@ impl GpuDeviceDescriptor {
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDeviceDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_label()` instead."]
|
||||
pub fn label(&mut self, val: &str) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_label(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `defaultQueue` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDeviceDescriptor`, `GpuQueueDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_default_queue()` instead."]
|
||||
pub fn default_queue(&mut self, val: &GpuQueueDescriptor) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("defaultQueue"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_default_queue(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `requiredFeatures` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDeviceDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_required_features()` instead."]
|
||||
pub fn required_features(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("requiredFeatures"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_required_features(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[deprecated = "Use `set_required_limits()` instead."]
|
||||
pub fn required_limits(&mut self, val: &::js_sys::Object) -> &mut Self {
|
||||
self.set_required_limits(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -58,5 +58,5 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn message(this: &GpuDeviceLostInfo) -> String;
|
||||
pub fn message(this: &GpuDeviceLostInfo) -> ::alloc::string::String;
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -47,5 +47,5 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn message(this: &GpuError) -> String;
|
||||
pub fn message(this: &GpuError) -> ::alloc::string::String;
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,60 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuExtent3dDict;
|
||||
|
||||
#[doc = "Get the `depthOrArrayLayers` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthOrArrayLayers")]
|
||||
pub fn get_depth_or_array_layers(this: &GpuExtent3dDict) -> Option<u32>;
|
||||
|
||||
#[doc = "Change the `depthOrArrayLayers` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthOrArrayLayers")]
|
||||
pub fn set_depth_or_array_layers(this: &GpuExtent3dDict, val: u32);
|
||||
|
||||
#[doc = "Get the `height` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "height")]
|
||||
pub fn get_height(this: &GpuExtent3dDict) -> Option<u32>;
|
||||
|
||||
#[doc = "Change the `height` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "height")]
|
||||
pub fn set_height(this: &GpuExtent3dDict, val: u32);
|
||||
|
||||
#[doc = "Get the `width` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "width")]
|
||||
pub fn get_width(this: &GpuExtent3dDict) -> u32;
|
||||
|
||||
#[doc = "Change the `width` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "width")]
|
||||
pub fn set_width(this: &GpuExtent3dDict, val: u32);
|
||||
}
|
||||
|
||||
impl GpuExtent3dDict {
|
||||
@ -47,63 +101,25 @@ impl GpuExtent3dDict {
|
||||
pub fn new(width: u32) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.width(width);
|
||||
ret.set_width(width);
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `depthOrArrayLayers` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_depth_or_array_layers()` instead."]
|
||||
pub fn depth_or_array_layers(&mut self, val: u32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("depthOrArrayLayers"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_depth_or_array_layers(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `height` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_height()` instead."]
|
||||
pub fn height(&mut self, val: u32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r =
|
||||
::js_sys::Reflect::set(self.as_ref(), &JsValue::from("height"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_height(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `width` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_width()` instead."]
|
||||
pub fn width(&mut self, val: u32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("width"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_width(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -47,7 +47,7 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuExternalTexture) -> String;
|
||||
pub fn label(this: &GpuExternalTexture) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPUExternalTexture" , js_name = label)]
|
||||
#[doc = "Setter for the `label` field of this object."]
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,42 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuExternalTextureDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuExternalTextureDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuExternalTextureDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuExternalTextureDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuExternalTextureDescriptor, val: &str);
|
||||
|
||||
#[doc = "Get the `source` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuExternalTextureDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "source")]
|
||||
pub fn get_source(this: &GpuExternalTextureDescriptor) -> ::js_sys::Object;
|
||||
|
||||
#[doc = "Change the `source` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuExternalTextureDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "source")]
|
||||
pub fn set_source(this: &GpuExternalTextureDescriptor, val: &::js_sys::Object);
|
||||
}
|
||||
|
||||
impl GpuExternalTextureDescriptor {
|
||||
@ -47,42 +83,19 @@ impl GpuExternalTextureDescriptor {
|
||||
pub fn new(source: &::js_sys::Object) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.source(source);
|
||||
ret.set_source(source);
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuExternalTextureDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_label()` instead."]
|
||||
pub fn label(&mut self, val: &str) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_label(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `source` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuExternalTextureDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_source()` instead."]
|
||||
pub fn source(&mut self, val: &::js_sys::Object) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r =
|
||||
::js_sys::Reflect::set(self.as_ref(), &JsValue::from("source"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_source(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
@ -38,10 +38,14 @@ pub enum GpuFeatureName {
|
||||
TextureCompressionBcSliced3d = "texture-compression-bc-sliced-3d",
|
||||
TextureCompressionEtc2 = "texture-compression-etc2",
|
||||
TextureCompressionAstc = "texture-compression-astc",
|
||||
TextureCompressionAstcSliced3d = "texture-compression-astc-sliced-3d",
|
||||
TimestampQuery = "timestamp-query",
|
||||
IndirectFirstInstance = "indirect-first-instance",
|
||||
ShaderF16 = "shader-f16",
|
||||
Rg11b10ufloatRenderable = "rg11b10ufloat-renderable",
|
||||
Bgra8unormStorage = "bgra8unorm-storage",
|
||||
Float32Filterable = "float32-filterable",
|
||||
Float32Blendable = "float32-blendable",
|
||||
ClipDistances = "clip-distances",
|
||||
DualSourceBlending = "dual-source-blending",
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,78 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuFragmentState;
|
||||
|
||||
#[doc = "Get the `constants` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuFragmentState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "constants")]
|
||||
pub fn get_constants(this: &GpuFragmentState) -> Option<::js_sys::Object>;
|
||||
|
||||
#[doc = "Change the `constants` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuFragmentState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "constants")]
|
||||
pub fn set_constants(this: &GpuFragmentState, val: &::js_sys::Object);
|
||||
|
||||
#[doc = "Get the `entryPoint` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuFragmentState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "entryPoint")]
|
||||
pub fn get_entry_point(this: &GpuFragmentState) -> Option<::alloc::string::String>;
|
||||
|
||||
#[doc = "Change the `entryPoint` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuFragmentState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "entryPoint")]
|
||||
pub fn set_entry_point(this: &GpuFragmentState, val: &str);
|
||||
|
||||
#[doc = "Get the `module` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuFragmentState`, `GpuShaderModule`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "module")]
|
||||
pub fn get_module(this: &GpuFragmentState) -> GpuShaderModule;
|
||||
|
||||
#[doc = "Change the `module` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuFragmentState`, `GpuShaderModule`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "module")]
|
||||
pub fn set_module(this: &GpuFragmentState, val: &GpuShaderModule);
|
||||
|
||||
#[doc = "Get the `targets` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuFragmentState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "targets")]
|
||||
pub fn get_targets(this: &GpuFragmentState) -> ::js_sys::Array;
|
||||
|
||||
#[doc = "Change the `targets` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuFragmentState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "targets")]
|
||||
pub fn set_targets(this: &GpuFragmentState, val: &::wasm_bindgen::JsValue);
|
||||
}
|
||||
|
||||
impl GpuFragmentState {
|
||||
@ -47,68 +119,32 @@ impl GpuFragmentState {
|
||||
pub fn new(module: &GpuShaderModule, targets: &::wasm_bindgen::JsValue) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.module(module);
|
||||
ret.targets(targets);
|
||||
ret.set_module(module);
|
||||
ret.set_targets(targets);
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `entryPoint` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuFragmentState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_constants()` instead."]
|
||||
pub fn constants(&mut self, val: &::js_sys::Object) -> &mut Self {
|
||||
self.set_constants(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[deprecated = "Use `set_entry_point()` instead."]
|
||||
pub fn entry_point(&mut self, val: &str) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("entryPoint"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_entry_point(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `module` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuFragmentState`, `GpuShaderModule`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_module()` instead."]
|
||||
pub fn module(&mut self, val: &GpuShaderModule) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r =
|
||||
::js_sys::Reflect::set(self.as_ref(), &JsValue::from("module"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_module(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `targets` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuFragmentState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_targets()` instead."]
|
||||
pub fn targets(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("targets"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_targets(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,60 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuMultisampleState;
|
||||
|
||||
#[doc = "Get the `alphaToCoverageEnabled` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuMultisampleState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "alphaToCoverageEnabled")]
|
||||
pub fn get_alpha_to_coverage_enabled(this: &GpuMultisampleState) -> Option<bool>;
|
||||
|
||||
#[doc = "Change the `alphaToCoverageEnabled` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuMultisampleState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "alphaToCoverageEnabled")]
|
||||
pub fn set_alpha_to_coverage_enabled(this: &GpuMultisampleState, val: bool);
|
||||
|
||||
#[doc = "Get the `count` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuMultisampleState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "count")]
|
||||
pub fn get_count(this: &GpuMultisampleState) -> Option<u32>;
|
||||
|
||||
#[doc = "Change the `count` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuMultisampleState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "count")]
|
||||
pub fn set_count(this: &GpuMultisampleState, val: u32);
|
||||
|
||||
#[doc = "Get the `mask` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuMultisampleState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "mask")]
|
||||
pub fn get_mask(this: &GpuMultisampleState) -> Option<u32>;
|
||||
|
||||
#[doc = "Change the `mask` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuMultisampleState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "mask")]
|
||||
pub fn set_mask(this: &GpuMultisampleState, val: u32);
|
||||
}
|
||||
|
||||
impl GpuMultisampleState {
|
||||
@ -50,58 +104,21 @@ impl GpuMultisampleState {
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `alphaToCoverageEnabled` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuMultisampleState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_alpha_to_coverage_enabled()` instead."]
|
||||
pub fn alpha_to_coverage_enabled(&mut self, val: bool) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("alphaToCoverageEnabled"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_alpha_to_coverage_enabled(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `count` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuMultisampleState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_count()` instead."]
|
||||
pub fn count(&mut self, val: u32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("count"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_count(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `mask` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuMultisampleState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_mask()` instead."]
|
||||
pub fn mask(&mut self, val: u32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("mask"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_mask(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,24 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuObjectDescriptorBase;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuObjectDescriptorBase`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuObjectDescriptorBase) -> Option<::alloc::string::String>;
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuObjectDescriptorBase`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuObjectDescriptorBase, val: &str);
|
||||
}
|
||||
|
||||
impl GpuObjectDescriptorBase {
|
||||
@ -50,20 +68,9 @@ impl GpuObjectDescriptorBase {
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuObjectDescriptorBase`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_label()` instead."]
|
||||
pub fn label(&mut self, val: &str) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_label(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,42 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuOrigin2dDict;
|
||||
|
||||
#[doc = "Get the `x` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuOrigin2dDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "x")]
|
||||
pub fn get_x(this: &GpuOrigin2dDict) -> Option<u32>;
|
||||
|
||||
#[doc = "Change the `x` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuOrigin2dDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "x")]
|
||||
pub fn set_x(this: &GpuOrigin2dDict, val: u32);
|
||||
|
||||
#[doc = "Get the `y` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuOrigin2dDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "y")]
|
||||
pub fn get_y(this: &GpuOrigin2dDict) -> Option<u32>;
|
||||
|
||||
#[doc = "Change the `y` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuOrigin2dDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "y")]
|
||||
pub fn set_y(this: &GpuOrigin2dDict, val: u32);
|
||||
}
|
||||
|
||||
impl GpuOrigin2dDict {
|
||||
@ -50,37 +86,15 @@ impl GpuOrigin2dDict {
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `x` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuOrigin2dDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_x()` instead."]
|
||||
pub fn x(&mut self, val: u32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("x"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_x(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `y` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuOrigin2dDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_y()` instead."]
|
||||
pub fn y(&mut self, val: u32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("y"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_y(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,60 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuOrigin3dDict;
|
||||
|
||||
#[doc = "Get the `x` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuOrigin3dDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "x")]
|
||||
pub fn get_x(this: &GpuOrigin3dDict) -> Option<u32>;
|
||||
|
||||
#[doc = "Change the `x` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuOrigin3dDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "x")]
|
||||
pub fn set_x(this: &GpuOrigin3dDict, val: u32);
|
||||
|
||||
#[doc = "Get the `y` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuOrigin3dDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "y")]
|
||||
pub fn get_y(this: &GpuOrigin3dDict) -> Option<u32>;
|
||||
|
||||
#[doc = "Change the `y` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuOrigin3dDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "y")]
|
||||
pub fn set_y(this: &GpuOrigin3dDict, val: u32);
|
||||
|
||||
#[doc = "Get the `z` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuOrigin3dDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "z")]
|
||||
pub fn get_z(this: &GpuOrigin3dDict) -> Option<u32>;
|
||||
|
||||
#[doc = "Change the `z` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuOrigin3dDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "z")]
|
||||
pub fn set_z(this: &GpuOrigin3dDict, val: u32);
|
||||
}
|
||||
|
||||
impl GpuOrigin3dDict {
|
||||
@ -50,54 +104,21 @@ impl GpuOrigin3dDict {
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `x` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuOrigin3dDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_x()` instead."]
|
||||
pub fn x(&mut self, val: u32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("x"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_x(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `y` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuOrigin3dDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_y()` instead."]
|
||||
pub fn y(&mut self, val: u32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("y"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_y(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `z` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuOrigin3dDict`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_z()` instead."]
|
||||
pub fn z(&mut self, val: u32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("z"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_z(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,42 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuPipelineDescriptorBase;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuPipelineDescriptorBase`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuPipelineDescriptorBase) -> Option<::alloc::string::String>;
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuPipelineDescriptorBase`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuPipelineDescriptorBase, val: &str);
|
||||
|
||||
#[doc = "Get the `layout` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuPipelineDescriptorBase`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "layout")]
|
||||
pub fn get_layout(this: &GpuPipelineDescriptorBase) -> ::wasm_bindgen::JsValue;
|
||||
|
||||
#[doc = "Change the `layout` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuPipelineDescriptorBase`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "layout")]
|
||||
pub fn set_layout(this: &GpuPipelineDescriptorBase, val: &::wasm_bindgen::JsValue);
|
||||
}
|
||||
|
||||
impl GpuPipelineDescriptorBase {
|
||||
@ -47,42 +83,19 @@ impl GpuPipelineDescriptorBase {
|
||||
pub fn new(layout: &::wasm_bindgen::JsValue) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.layout(layout);
|
||||
ret.set_layout(layout);
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuPipelineDescriptorBase`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_label()` instead."]
|
||||
pub fn label(&mut self, val: &str) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_label(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `layout` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuPipelineDescriptorBase`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_layout()` instead."]
|
||||
pub fn layout(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r =
|
||||
::js_sys::Reflect::set(self.as_ref(), &JsValue::from("layout"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_layout(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -47,7 +47,7 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuPipelineLayout) -> String;
|
||||
pub fn label(this: &GpuPipelineLayout) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPUPipelineLayout" , js_name = label)]
|
||||
#[doc = "Setter for the `label` field of this object."]
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,45 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuPipelineLayoutDescriptor;
|
||||
|
||||
#[doc = "Get the `label` 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuPipelineLayoutDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
#[doc = "Change the `label` 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuPipelineLayoutDescriptor, val: &str);
|
||||
|
||||
#[doc = "Get the `bindGroupLayouts` 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "bindGroupLayouts")]
|
||||
pub fn get_bind_group_layouts(this: &GpuPipelineLayoutDescriptor) -> ::js_sys::Array;
|
||||
|
||||
#[doc = "Change the `bindGroupLayouts` 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "bindGroupLayouts")]
|
||||
pub fn set_bind_group_layouts(
|
||||
this: &GpuPipelineLayoutDescriptor,
|
||||
val: &::wasm_bindgen::JsValue,
|
||||
);
|
||||
}
|
||||
|
||||
impl GpuPipelineLayoutDescriptor {
|
||||
@ -47,45 +86,19 @@ impl GpuPipelineLayoutDescriptor {
|
||||
pub fn new(bind_group_layouts: &::wasm_bindgen::JsValue) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.bind_group_layouts(bind_group_layouts);
|
||||
ret.set_bind_group_layouts(bind_group_layouts);
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `label` 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_label()` instead."]
|
||||
pub fn label(&mut self, val: &str) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_label(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `bindGroupLayouts` 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_bind_group_layouts()` instead."]
|
||||
pub fn bind_group_layouts(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("bindGroupLayouts"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_bind_group_layouts(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,96 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuPrimitiveState;
|
||||
|
||||
#[doc = "Get the `cullMode` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCullMode`, `GpuPrimitiveState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "cullMode")]
|
||||
pub fn get_cull_mode(this: &GpuPrimitiveState) -> Option<GpuCullMode>;
|
||||
|
||||
#[doc = "Change the `cullMode` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCullMode`, `GpuPrimitiveState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "cullMode")]
|
||||
pub fn set_cull_mode(this: &GpuPrimitiveState, val: GpuCullMode);
|
||||
|
||||
#[doc = "Get the `frontFace` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuFrontFace`, `GpuPrimitiveState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "frontFace")]
|
||||
pub fn get_front_face(this: &GpuPrimitiveState) -> Option<GpuFrontFace>;
|
||||
|
||||
#[doc = "Change the `frontFace` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuFrontFace`, `GpuPrimitiveState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "frontFace")]
|
||||
pub fn set_front_face(this: &GpuPrimitiveState, val: GpuFrontFace);
|
||||
|
||||
#[doc = "Get the `stripIndexFormat` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuIndexFormat`, `GpuPrimitiveState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "stripIndexFormat")]
|
||||
pub fn get_strip_index_format(this: &GpuPrimitiveState) -> Option<GpuIndexFormat>;
|
||||
|
||||
#[doc = "Change the `stripIndexFormat` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuIndexFormat`, `GpuPrimitiveState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "stripIndexFormat")]
|
||||
pub fn set_strip_index_format(this: &GpuPrimitiveState, val: GpuIndexFormat);
|
||||
|
||||
#[doc = "Get the `topology` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuPrimitiveState`, `GpuPrimitiveTopology`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "topology")]
|
||||
pub fn get_topology(this: &GpuPrimitiveState) -> Option<GpuPrimitiveTopology>;
|
||||
|
||||
#[doc = "Change the `topology` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuPrimitiveState`, `GpuPrimitiveTopology`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "topology")]
|
||||
pub fn set_topology(this: &GpuPrimitiveState, val: GpuPrimitiveTopology);
|
||||
|
||||
#[doc = "Get the `unclippedDepth` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuPrimitiveState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "unclippedDepth")]
|
||||
pub fn get_unclipped_depth(this: &GpuPrimitiveState) -> Option<bool>;
|
||||
|
||||
#[doc = "Change the `unclippedDepth` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuPrimitiveState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "unclippedDepth")]
|
||||
pub fn set_unclipped_depth(this: &GpuPrimitiveState, val: bool);
|
||||
}
|
||||
|
||||
impl GpuPrimitiveState {
|
||||
@ -50,108 +140,33 @@ impl GpuPrimitiveState {
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `cullMode` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCullMode`, `GpuPrimitiveState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_cull_mode()` instead."]
|
||||
pub fn cull_mode(&mut self, val: GpuCullMode) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("cullMode"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_cull_mode(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `frontFace` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuFrontFace`, `GpuPrimitiveState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_front_face()` instead."]
|
||||
pub fn front_face(&mut self, val: GpuFrontFace) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("frontFace"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_front_face(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `stripIndexFormat` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuIndexFormat`, `GpuPrimitiveState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_strip_index_format()` instead."]
|
||||
pub fn strip_index_format(&mut self, val: GpuIndexFormat) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("stripIndexFormat"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_strip_index_format(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `topology` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuPrimitiveState`, `GpuPrimitiveTopology`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_topology()` instead."]
|
||||
pub fn topology(&mut self, val: GpuPrimitiveTopology) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("topology"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_topology(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `unclippedDepth` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuPrimitiveState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_unclipped_depth()` instead."]
|
||||
pub fn unclipped_depth(&mut self, val: bool) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("unclippedDepth"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_unclipped_depth(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,60 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuProgrammableStage;
|
||||
|
||||
#[doc = "Get the `constants` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuProgrammableStage`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "constants")]
|
||||
pub fn get_constants(this: &GpuProgrammableStage) -> Option<::js_sys::Object>;
|
||||
|
||||
#[doc = "Change the `constants` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuProgrammableStage`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "constants")]
|
||||
pub fn set_constants(this: &GpuProgrammableStage, val: &::js_sys::Object);
|
||||
|
||||
#[doc = "Get the `entryPoint` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuProgrammableStage`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "entryPoint")]
|
||||
pub fn get_entry_point(this: &GpuProgrammableStage) -> Option<::alloc::string::String>;
|
||||
|
||||
#[doc = "Change the `entryPoint` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuProgrammableStage`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "entryPoint")]
|
||||
pub fn set_entry_point(this: &GpuProgrammableStage, val: &str);
|
||||
|
||||
#[doc = "Get the `module` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuProgrammableStage`, `GpuShaderModule`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "module")]
|
||||
pub fn get_module(this: &GpuProgrammableStage) -> GpuShaderModule;
|
||||
|
||||
#[doc = "Change the `module` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuProgrammableStage`, `GpuShaderModule`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "module")]
|
||||
pub fn set_module(this: &GpuProgrammableStage, val: &GpuShaderModule);
|
||||
}
|
||||
|
||||
impl GpuProgrammableStage {
|
||||
@ -47,46 +101,25 @@ impl GpuProgrammableStage {
|
||||
pub fn new(module: &GpuShaderModule) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.module(module);
|
||||
ret.set_module(module);
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `entryPoint` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuProgrammableStage`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn entry_point(&mut self, val: &str) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("entryPoint"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
#[deprecated = "Use `set_constants()` instead."]
|
||||
pub fn constants(&mut self, val: &::js_sys::Object) -> &mut Self {
|
||||
self.set_constants(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `module` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuProgrammableStage`, `GpuShaderModule`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_entry_point()` instead."]
|
||||
pub fn entry_point(&mut self, val: &str) -> &mut Self {
|
||||
self.set_entry_point(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[deprecated = "Use `set_module()` instead."]
|
||||
pub fn module(&mut self, val: &GpuShaderModule) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r =
|
||||
::js_sys::Reflect::set(self.as_ref(), &JsValue::from("module"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_module(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -69,7 +69,7 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuQuerySet) -> String;
|
||||
pub fn label(this: &GpuQuerySet) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPUQuerySet" , js_name = label)]
|
||||
#[doc = "Setter for the `label` field of this object."]
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,60 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuQuerySetDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuQuerySetDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuQuerySetDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuQuerySetDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuQuerySetDescriptor, val: &str);
|
||||
|
||||
#[doc = "Get the `count` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuQuerySetDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "count")]
|
||||
pub fn get_count(this: &GpuQuerySetDescriptor) -> u32;
|
||||
|
||||
#[doc = "Change the `count` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuQuerySetDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "count")]
|
||||
pub fn set_count(this: &GpuQuerySetDescriptor, val: u32);
|
||||
|
||||
#[doc = "Get the `type` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuQuerySetDescriptor`, `GpuQueryType`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "type")]
|
||||
pub fn get_type(this: &GpuQuerySetDescriptor) -> GpuQueryType;
|
||||
|
||||
#[doc = "Change the `type` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuQuerySetDescriptor`, `GpuQueryType`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "type")]
|
||||
pub fn set_type(this: &GpuQuerySetDescriptor, val: GpuQueryType);
|
||||
}
|
||||
|
||||
impl GpuQuerySetDescriptor {
|
||||
@ -47,59 +101,26 @@ impl GpuQuerySetDescriptor {
|
||||
pub fn new(count: u32, type_: GpuQueryType) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.count(count);
|
||||
ret.type_(type_);
|
||||
ret.set_count(count);
|
||||
ret.set_type(type_);
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuQuerySetDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_label()` instead."]
|
||||
pub fn label(&mut self, val: &str) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_label(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `count` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuQuerySetDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_count()` instead."]
|
||||
pub fn count(&mut self, val: u32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("count"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_count(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `type` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuQuerySetDescriptor`, `GpuQueryType`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_type()` instead."]
|
||||
pub fn type_(&mut self, val: GpuQueryType) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_type(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
486
wgpu/src/backend/webgpu/webgpu_sys/gen_GpuQueue.rs
generated
486
wgpu/src/backend/webgpu/webgpu_sys/gen_GpuQueue.rs
generated
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -47,7 +47,7 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuQueue) -> String;
|
||||
pub fn label(this: &GpuQueue) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPUQueue" , js_name = label)]
|
||||
#[doc = "Setter for the `label` field of this object."]
|
||||
@ -60,37 +60,37 @@ extern "C" {
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_label(this: &GpuQueue, value: &str);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = copyExternalImageToTexture)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuImageCopyExternalImage`, `GpuImageCopyTextureTagged`, `GpuQueue`*"]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`, `GpuCopyExternalImageSourceInfo`, `GpuQueue`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_external_image_to_texture_with_u32_sequence(
|
||||
this: &GpuQueue,
|
||||
source: &GpuImageCopyExternalImage,
|
||||
destination: &GpuImageCopyTextureTagged,
|
||||
source: &GpuCopyExternalImageSourceInfo,
|
||||
destination: &GpuCopyExternalImageDestInfo,
|
||||
copy_size: &::wasm_bindgen::JsValue,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = copyExternalImageToTexture)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`, `GpuImageCopyExternalImage`, `GpuImageCopyTextureTagged`, `GpuQueue`*"]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`, `GpuCopyExternalImageSourceInfo`, `GpuExtent3dDict`, `GpuQueue`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_external_image_to_texture_with_gpu_extent_3d_dict(
|
||||
this: &GpuQueue,
|
||||
source: &GpuImageCopyExternalImage,
|
||||
destination: &GpuImageCopyTextureTagged,
|
||||
source: &GpuCopyExternalImageSourceInfo,
|
||||
destination: &GpuCopyExternalImageDestInfo,
|
||||
copy_size: &GpuExtent3dDict,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = onSubmittedWorkDone)]
|
||||
#[doc = "The `onSubmittedWorkDone()` method."]
|
||||
@ -114,7 +114,7 @@ extern "C" {
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn submit(this: &GpuQueue, command_buffers: &::wasm_bindgen::JsValue);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -128,9 +128,9 @@ extern "C" {
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: u32,
|
||||
data: &::js_sys::Object,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -144,9 +144,41 @@ extern "C" {
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: f64,
|
||||
data: &::js_sys::Object,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_u32_and_u8_slice(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: u32,
|
||||
data: &[u8],
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_f64_and_u8_slice(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: f64,
|
||||
data: &[u8],
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -159,10 +191,10 @@ extern "C" {
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: u32,
|
||||
data: &[u8],
|
||||
);
|
||||
data: &::js_sys::Uint8Array,
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -175,10 +207,10 @@ extern "C" {
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: f64,
|
||||
data: &[u8],
|
||||
);
|
||||
data: &::js_sys::Uint8Array,
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -193,9 +225,9 @@ extern "C" {
|
||||
buffer_offset: u32,
|
||||
data: &::js_sys::Object,
|
||||
data_offset: u32,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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,9 +242,43 @@ extern "C" {
|
||||
buffer_offset: f64,
|
||||
data: &::js_sys::Object,
|
||||
data_offset: u32,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_u32_and_u8_slice_and_u32(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: u32,
|
||||
data: &[u8],
|
||||
data_offset: u32,
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_f64_and_u8_slice_and_u32(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: f64,
|
||||
data: &[u8],
|
||||
data_offset: u32,
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -225,11 +291,11 @@ extern "C" {
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: u32,
|
||||
data: &[u8],
|
||||
data: &::js_sys::Uint8Array,
|
||||
data_offset: u32,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -242,11 +308,11 @@ extern "C" {
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: f64,
|
||||
data: &[u8],
|
||||
data: &::js_sys::Uint8Array,
|
||||
data_offset: u32,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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,9 +327,9 @@ extern "C" {
|
||||
buffer_offset: u32,
|
||||
data: &::js_sys::Object,
|
||||
data_offset: f64,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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,9 +344,43 @@ extern "C" {
|
||||
buffer_offset: f64,
|
||||
data: &::js_sys::Object,
|
||||
data_offset: f64,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_u32_and_u8_slice_and_f64(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: u32,
|
||||
data: &[u8],
|
||||
data_offset: f64,
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_f64_and_u8_slice_and_f64(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: f64,
|
||||
data: &[u8],
|
||||
data_offset: f64,
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -293,11 +393,11 @@ extern "C" {
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: u32,
|
||||
data: &[u8],
|
||||
data: &::js_sys::Uint8Array,
|
||||
data_offset: f64,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -310,11 +410,11 @@ extern "C" {
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: f64,
|
||||
data: &[u8],
|
||||
data: &::js_sys::Uint8Array,
|
||||
data_offset: f64,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -330,9 +430,9 @@ extern "C" {
|
||||
data: &::js_sys::Object,
|
||||
data_offset: u32,
|
||||
size: u32,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -348,9 +448,45 @@ extern "C" {
|
||||
data: &::js_sys::Object,
|
||||
data_offset: u32,
|
||||
size: u32,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_u32_and_u8_slice_and_u32_and_u32(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: u32,
|
||||
data: &[u8],
|
||||
data_offset: u32,
|
||||
size: u32,
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_f64_and_u8_slice_and_u32_and_u32(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: f64,
|
||||
data: &[u8],
|
||||
data_offset: u32,
|
||||
size: u32,
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , 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,12 +499,12 @@ extern "C" {
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: u32,
|
||||
data: &[u8],
|
||||
data: &::js_sys::Uint8Array,
|
||||
data_offset: u32,
|
||||
size: u32,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -381,12 +517,12 @@ extern "C" {
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: f64,
|
||||
data: &[u8],
|
||||
data: &::js_sys::Uint8Array,
|
||||
data_offset: u32,
|
||||
size: u32,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -402,9 +538,9 @@ extern "C" {
|
||||
data: &::js_sys::Object,
|
||||
data_offset: f64,
|
||||
size: u32,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -420,9 +556,45 @@ extern "C" {
|
||||
data: &::js_sys::Object,
|
||||
data_offset: f64,
|
||||
size: u32,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_u32_and_u8_slice_and_f64_and_u32(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: u32,
|
||||
data: &[u8],
|
||||
data_offset: f64,
|
||||
size: u32,
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_f64_and_u8_slice_and_f64_and_u32(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: f64,
|
||||
data: &[u8],
|
||||
data_offset: f64,
|
||||
size: u32,
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -435,12 +607,12 @@ extern "C" {
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: u32,
|
||||
data: &[u8],
|
||||
data: &::js_sys::Uint8Array,
|
||||
data_offset: f64,
|
||||
size: u32,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -453,12 +625,12 @@ extern "C" {
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: f64,
|
||||
data: &[u8],
|
||||
data: &::js_sys::Uint8Array,
|
||||
data_offset: f64,
|
||||
size: u32,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -474,9 +646,9 @@ extern "C" {
|
||||
data: &::js_sys::Object,
|
||||
data_offset: u32,
|
||||
size: f64,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -492,9 +664,45 @@ extern "C" {
|
||||
data: &::js_sys::Object,
|
||||
data_offset: u32,
|
||||
size: f64,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_u32_and_u8_slice_and_u32_and_f64(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: u32,
|
||||
data: &[u8],
|
||||
data_offset: u32,
|
||||
size: f64,
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_f64_and_u8_slice_and_u32_and_f64(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: f64,
|
||||
data: &[u8],
|
||||
data_offset: u32,
|
||||
size: f64,
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -507,12 +715,12 @@ extern "C" {
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: u32,
|
||||
data: &[u8],
|
||||
data: &::js_sys::Uint8Array,
|
||||
data_offset: u32,
|
||||
size: f64,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -525,12 +733,12 @@ extern "C" {
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: f64,
|
||||
data: &[u8],
|
||||
data: &::js_sys::Uint8Array,
|
||||
data_offset: u32,
|
||||
size: f64,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -546,9 +754,9 @@ extern "C" {
|
||||
data: &::js_sys::Object,
|
||||
data_offset: f64,
|
||||
size: f64,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -564,9 +772,45 @@ extern "C" {
|
||||
data: &::js_sys::Object,
|
||||
data_offset: f64,
|
||||
size: f64,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_u32_and_u8_slice_and_f64_and_f64(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: u32,
|
||||
data: &[u8],
|
||||
data_offset: f64,
|
||||
size: f64,
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_f64_and_u8_slice_and_f64_and_f64(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: f64,
|
||||
data: &[u8],
|
||||
data_offset: f64,
|
||||
size: f64,
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -579,12 +823,12 @@ extern "C" {
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: u32,
|
||||
data: &[u8],
|
||||
data: &::js_sys::Uint8Array,
|
||||
data_offset: f64,
|
||||
size: f64,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -597,76 +841,110 @@ extern "C" {
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
buffer_offset: f64,
|
||||
data: &[u8],
|
||||
data: &::js_sys::Uint8Array,
|
||||
data_offset: f64,
|
||||
size: f64,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeTexture)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTexture`, `GpuImageDataLayout`, `GpuQueue`*"]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuQueue`, `GpuTexelCopyBufferLayout`, `GpuTexelCopyTextureInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_texture_with_buffer_source_and_u32_sequence(
|
||||
this: &GpuQueue,
|
||||
destination: &GpuImageCopyTexture,
|
||||
destination: &GpuTexelCopyTextureInfo,
|
||||
data: &::js_sys::Object,
|
||||
data_layout: &GpuImageDataLayout,
|
||||
data_layout: &GpuTexelCopyBufferLayout,
|
||||
size: &::wasm_bindgen::JsValue,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeTexture)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTexture`, `GpuImageDataLayout`, `GpuQueue`*"]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuQueue`, `GpuTexelCopyBufferLayout`, `GpuTexelCopyTextureInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_texture_with_u8_slice_and_u32_sequence(
|
||||
this: &GpuQueue,
|
||||
destination: &GpuTexelCopyTextureInfo,
|
||||
data: &[u8],
|
||||
data_layout: &GpuTexelCopyBufferLayout,
|
||||
size: &::wasm_bindgen::JsValue,
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuQueue`, `GpuTexelCopyBufferLayout`, `GpuTexelCopyTextureInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_texture_with_u8_array_and_u32_sequence(
|
||||
this: &GpuQueue,
|
||||
destination: &GpuImageCopyTexture,
|
||||
data: &[u8],
|
||||
data_layout: &GpuImageDataLayout,
|
||||
destination: &GpuTexelCopyTextureInfo,
|
||||
data: &::js_sys::Uint8Array,
|
||||
data_layout: &GpuTexelCopyBufferLayout,
|
||||
size: &::wasm_bindgen::JsValue,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeTexture)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`, `GpuImageCopyTexture`, `GpuImageDataLayout`, `GpuQueue`*"]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`, `GpuQueue`, `GpuTexelCopyBufferLayout`, `GpuTexelCopyTextureInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_texture_with_buffer_source_and_gpu_extent_3d_dict(
|
||||
this: &GpuQueue,
|
||||
destination: &GpuImageCopyTexture,
|
||||
destination: &GpuTexelCopyTextureInfo,
|
||||
data: &::js_sys::Object,
|
||||
data_layout: &GpuImageDataLayout,
|
||||
data_layout: &GpuTexelCopyBufferLayout,
|
||||
size: &GpuExtent3dDict,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeTexture)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`, `GpuImageCopyTexture`, `GpuImageDataLayout`, `GpuQueue`*"]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`, `GpuQueue`, `GpuTexelCopyBufferLayout`, `GpuTexelCopyTextureInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_texture_with_u8_slice_and_gpu_extent_3d_dict(
|
||||
this: &GpuQueue,
|
||||
destination: &GpuTexelCopyTextureInfo,
|
||||
data: &[u8],
|
||||
data_layout: &GpuTexelCopyBufferLayout,
|
||||
size: &GpuExtent3dDict,
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`, `GpuQueue`, `GpuTexelCopyBufferLayout`, `GpuTexelCopyTextureInfo`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_texture_with_u8_array_and_gpu_extent_3d_dict(
|
||||
this: &GpuQueue,
|
||||
destination: &GpuImageCopyTexture,
|
||||
data: &[u8],
|
||||
data_layout: &GpuImageDataLayout,
|
||||
destination: &GpuTexelCopyTextureInfo,
|
||||
data: &::js_sys::Uint8Array,
|
||||
data_layout: &GpuTexelCopyBufferLayout,
|
||||
size: &GpuExtent3dDict,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,24 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuQueueDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuQueueDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuQueueDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuQueueDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuQueueDescriptor, val: &str);
|
||||
}
|
||||
|
||||
impl GpuQueueDescriptor {
|
||||
@ -50,20 +68,9 @@ impl GpuQueueDescriptor {
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuQueueDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_label()` instead."]
|
||||
pub fn label(&mut self, val: &str) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_label(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -47,7 +47,7 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuRenderBundle) -> String;
|
||||
pub fn label(this: &GpuRenderBundle) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPURenderBundle" , js_name = label)]
|
||||
#[doc = "Setter for the `label` field of this object."]
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,24 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuRenderBundleDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuRenderBundleDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuRenderBundleDescriptor, val: &str);
|
||||
}
|
||||
|
||||
impl GpuRenderBundleDescriptor {
|
||||
@ -50,20 +68,9 @@ impl GpuRenderBundleDescriptor {
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_label()` instead."]
|
||||
pub fn label(&mut self, val: &str) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_label(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -47,7 +47,7 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuRenderBundleEncoder) -> String;
|
||||
pub fn label(this: &GpuRenderBundleEncoder) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPURenderBundleEncoder" , js_name = label)]
|
||||
#[doc = "Setter for the `label` field of this object."]
|
||||
@ -116,7 +116,25 @@ extern "C" {
|
||||
dynamic_offsets: &::wasm_bindgen::JsValue,
|
||||
);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setBindGroup)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_bind_group_with_u32_slice_and_u32_and_dynamic_offsets_data_length(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
index: u32,
|
||||
bind_group: Option<&GpuBindGroup>,
|
||||
dynamic_offsets_data: &[u32],
|
||||
dynamic_offsets_data_start: u32,
|
||||
dynamic_offsets_data_length: u32,
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -129,12 +147,30 @@ extern "C" {
|
||||
this: &GpuRenderBundleEncoder,
|
||||
index: u32,
|
||||
bind_group: Option<&GpuBindGroup>,
|
||||
dynamic_offsets_data: &[u32],
|
||||
dynamic_offsets_data: &::js_sys::Uint32Array,
|
||||
dynamic_offsets_data_start: u32,
|
||||
dynamic_offsets_data_length: u32,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setBindGroup)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_bind_group_with_u32_slice_and_f64_and_dynamic_offsets_data_length(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
index: u32,
|
||||
bind_group: Option<&GpuBindGroup>,
|
||||
dynamic_offsets_data: &[u32],
|
||||
dynamic_offsets_data_start: f64,
|
||||
dynamic_offsets_data_length: u32,
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -147,10 +183,10 @@ extern "C" {
|
||||
this: &GpuRenderBundleEncoder,
|
||||
index: u32,
|
||||
bind_group: Option<&GpuBindGroup>,
|
||||
dynamic_offsets_data: &[u32],
|
||||
dynamic_offsets_data: &::js_sys::Uint32Array,
|
||||
dynamic_offsets_data_start: f64,
|
||||
dynamic_offsets_data_length: u32,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = insertDebugMarker)]
|
||||
#[doc = "The `insertDebugMarker()` method."]
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,119 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuRenderBundleEncoderDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuRenderBundleEncoderDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuRenderBundleEncoderDescriptor, val: &str);
|
||||
|
||||
#[doc = "Get the `colorFormats` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "colorFormats")]
|
||||
pub fn get_color_formats(this: &GpuRenderBundleEncoderDescriptor) -> ::js_sys::Array;
|
||||
|
||||
#[doc = "Change the `colorFormats` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "colorFormats")]
|
||||
pub fn set_color_formats(
|
||||
this: &GpuRenderBundleEncoderDescriptor,
|
||||
val: &::wasm_bindgen::JsValue,
|
||||
);
|
||||
|
||||
#[doc = "Get the `depthStencilFormat` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoderDescriptor`, `GpuTextureFormat`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthStencilFormat")]
|
||||
pub fn get_depth_stencil_format(
|
||||
this: &GpuRenderBundleEncoderDescriptor,
|
||||
) -> Option<GpuTextureFormat>;
|
||||
|
||||
#[doc = "Change the `depthStencilFormat` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoderDescriptor`, `GpuTextureFormat`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthStencilFormat")]
|
||||
pub fn set_depth_stencil_format(this: &GpuRenderBundleEncoderDescriptor, val: GpuTextureFormat);
|
||||
|
||||
#[doc = "Get the `sampleCount` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "sampleCount")]
|
||||
pub fn get_sample_count(this: &GpuRenderBundleEncoderDescriptor) -> Option<u32>;
|
||||
|
||||
#[doc = "Change the `sampleCount` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "sampleCount")]
|
||||
pub fn set_sample_count(this: &GpuRenderBundleEncoderDescriptor, val: u32);
|
||||
|
||||
#[doc = "Get the `depthReadOnly` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthReadOnly")]
|
||||
pub fn get_depth_read_only(this: &GpuRenderBundleEncoderDescriptor) -> Option<bool>;
|
||||
|
||||
#[doc = "Change the `depthReadOnly` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthReadOnly")]
|
||||
pub fn set_depth_read_only(this: &GpuRenderBundleEncoderDescriptor, val: bool);
|
||||
|
||||
#[doc = "Get the `stencilReadOnly` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "stencilReadOnly")]
|
||||
pub fn get_stencil_read_only(this: &GpuRenderBundleEncoderDescriptor) -> Option<bool>;
|
||||
|
||||
#[doc = "Change the `stencilReadOnly` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "stencilReadOnly")]
|
||||
pub fn set_stencil_read_only(this: &GpuRenderBundleEncoderDescriptor, val: bool);
|
||||
}
|
||||
|
||||
impl GpuRenderBundleEncoderDescriptor {
|
||||
@ -47,129 +160,43 @@ impl GpuRenderBundleEncoderDescriptor {
|
||||
pub fn new(color_formats: &::wasm_bindgen::JsValue) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.color_formats(color_formats);
|
||||
ret.set_color_formats(color_formats);
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_label()` instead."]
|
||||
pub fn label(&mut self, val: &str) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_label(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `colorFormats` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_color_formats()` instead."]
|
||||
pub fn color_formats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("colorFormats"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_color_formats(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `depthStencilFormat` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoderDescriptor`, `GpuTextureFormat`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_depth_stencil_format()` instead."]
|
||||
pub fn depth_stencil_format(&mut self, val: GpuTextureFormat) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("depthStencilFormat"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_depth_stencil_format(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `sampleCount` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_sample_count()` instead."]
|
||||
pub fn sample_count(&mut self, val: u32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("sampleCount"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_sample_count(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `depthReadOnly` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_depth_read_only()` instead."]
|
||||
pub fn depth_read_only(&mut self, val: bool) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("depthReadOnly"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_depth_read_only(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `stencilReadOnly` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_stencil_read_only()` instead."]
|
||||
pub fn stencil_read_only(&mut self, val: bool) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("stencilReadOnly"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_stencil_read_only(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,114 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuRenderPassColorAttachment;
|
||||
|
||||
#[doc = "Get the `clearValue` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachment`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "clearValue")]
|
||||
pub fn get_clear_value(this: &GpuRenderPassColorAttachment) -> ::wasm_bindgen::JsValue;
|
||||
|
||||
#[doc = "Change the `clearValue` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachment`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "clearValue")]
|
||||
pub fn set_clear_value(this: &GpuRenderPassColorAttachment, val: &::wasm_bindgen::JsValue);
|
||||
|
||||
#[doc = "Get the `depthSlice` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachment`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthSlice")]
|
||||
pub fn get_depth_slice(this: &GpuRenderPassColorAttachment) -> Option<u32>;
|
||||
|
||||
#[doc = "Change the `depthSlice` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachment`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthSlice")]
|
||||
pub fn set_depth_slice(this: &GpuRenderPassColorAttachment, val: u32);
|
||||
|
||||
#[doc = "Get the `loadOp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuLoadOp`, `GpuRenderPassColorAttachment`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "loadOp")]
|
||||
pub fn get_load_op(this: &GpuRenderPassColorAttachment) -> GpuLoadOp;
|
||||
|
||||
#[doc = "Change the `loadOp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuLoadOp`, `GpuRenderPassColorAttachment`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "loadOp")]
|
||||
pub fn set_load_op(this: &GpuRenderPassColorAttachment, val: GpuLoadOp);
|
||||
|
||||
#[doc = "Get the `resolveTarget` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachment`, `GpuTextureView`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "resolveTarget")]
|
||||
pub fn get_resolve_target(this: &GpuRenderPassColorAttachment) -> Option<GpuTextureView>;
|
||||
|
||||
#[doc = "Change the `resolveTarget` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachment`, `GpuTextureView`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "resolveTarget")]
|
||||
pub fn set_resolve_target(this: &GpuRenderPassColorAttachment, val: &GpuTextureView);
|
||||
|
||||
#[doc = "Get the `storeOp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachment`, `GpuStoreOp`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "storeOp")]
|
||||
pub fn get_store_op(this: &GpuRenderPassColorAttachment) -> GpuStoreOp;
|
||||
|
||||
#[doc = "Change the `storeOp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachment`, `GpuStoreOp`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "storeOp")]
|
||||
pub fn set_store_op(this: &GpuRenderPassColorAttachment, val: GpuStoreOp);
|
||||
|
||||
#[doc = "Get the `view` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachment`, `GpuTextureView`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "view")]
|
||||
pub fn get_view(this: &GpuRenderPassColorAttachment) -> GpuTextureView;
|
||||
|
||||
#[doc = "Change the `view` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachment`, `GpuTextureView`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "view")]
|
||||
pub fn set_view(this: &GpuRenderPassColorAttachment, val: &GpuTextureView);
|
||||
}
|
||||
|
||||
impl GpuRenderPassColorAttachment {
|
||||
@ -47,128 +155,45 @@ impl GpuRenderPassColorAttachment {
|
||||
pub fn new(load_op: GpuLoadOp, store_op: GpuStoreOp, view: &GpuTextureView) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.load_op(load_op);
|
||||
ret.store_op(store_op);
|
||||
ret.view(view);
|
||||
ret.set_load_op(load_op);
|
||||
ret.set_store_op(store_op);
|
||||
ret.set_view(view);
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `clearValue` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachment`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_clear_value()` instead."]
|
||||
pub fn clear_value(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("clearValue"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_clear_value(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `depthSlice` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachment`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_depth_slice()` instead."]
|
||||
pub fn depth_slice(&mut self, val: u32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("depthSlice"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_depth_slice(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `loadOp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuLoadOp`, `GpuRenderPassColorAttachment`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_load_op()` instead."]
|
||||
pub fn load_op(&mut self, val: GpuLoadOp) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r =
|
||||
::js_sys::Reflect::set(self.as_ref(), &JsValue::from("loadOp"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_load_op(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `resolveTarget` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachment`, `GpuTextureView`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_resolve_target()` instead."]
|
||||
pub fn resolve_target(&mut self, val: &GpuTextureView) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("resolveTarget"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_resolve_target(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `storeOp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachment`, `GpuStoreOp`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_store_op()` instead."]
|
||||
pub fn store_op(&mut self, val: GpuStoreOp) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("storeOp"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_store_op(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `view` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachment`, `GpuTextureView`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_view()` instead."]
|
||||
pub fn view(&mut self, val: &GpuTextureView) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("view"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_view(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,168 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuRenderPassDepthStencilAttachment;
|
||||
|
||||
#[doc = "Get the `depthClearValue` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthClearValue")]
|
||||
pub fn get_depth_clear_value(this: &GpuRenderPassDepthStencilAttachment) -> Option<f32>;
|
||||
|
||||
#[doc = "Change the `depthClearValue` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthClearValue")]
|
||||
pub fn set_depth_clear_value(this: &GpuRenderPassDepthStencilAttachment, val: f32);
|
||||
|
||||
#[doc = "Get the `depthLoadOp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuLoadOp`, `GpuRenderPassDepthStencilAttachment`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthLoadOp")]
|
||||
pub fn get_depth_load_op(this: &GpuRenderPassDepthStencilAttachment) -> Option<GpuLoadOp>;
|
||||
|
||||
#[doc = "Change the `depthLoadOp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuLoadOp`, `GpuRenderPassDepthStencilAttachment`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthLoadOp")]
|
||||
pub fn set_depth_load_op(this: &GpuRenderPassDepthStencilAttachment, val: GpuLoadOp);
|
||||
|
||||
#[doc = "Get the `depthReadOnly` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthReadOnly")]
|
||||
pub fn get_depth_read_only(this: &GpuRenderPassDepthStencilAttachment) -> Option<bool>;
|
||||
|
||||
#[doc = "Change the `depthReadOnly` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthReadOnly")]
|
||||
pub fn set_depth_read_only(this: &GpuRenderPassDepthStencilAttachment, val: bool);
|
||||
|
||||
#[doc = "Get the `depthStoreOp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`, `GpuStoreOp`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthStoreOp")]
|
||||
pub fn get_depth_store_op(this: &GpuRenderPassDepthStencilAttachment) -> Option<GpuStoreOp>;
|
||||
|
||||
#[doc = "Change the `depthStoreOp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`, `GpuStoreOp`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthStoreOp")]
|
||||
pub fn set_depth_store_op(this: &GpuRenderPassDepthStencilAttachment, val: GpuStoreOp);
|
||||
|
||||
#[doc = "Get the `stencilClearValue` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "stencilClearValue")]
|
||||
pub fn get_stencil_clear_value(this: &GpuRenderPassDepthStencilAttachment) -> Option<u32>;
|
||||
|
||||
#[doc = "Change the `stencilClearValue` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "stencilClearValue")]
|
||||
pub fn set_stencil_clear_value(this: &GpuRenderPassDepthStencilAttachment, val: u32);
|
||||
|
||||
#[doc = "Get the `stencilLoadOp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuLoadOp`, `GpuRenderPassDepthStencilAttachment`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "stencilLoadOp")]
|
||||
pub fn get_stencil_load_op(this: &GpuRenderPassDepthStencilAttachment) -> Option<GpuLoadOp>;
|
||||
|
||||
#[doc = "Change the `stencilLoadOp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuLoadOp`, `GpuRenderPassDepthStencilAttachment`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "stencilLoadOp")]
|
||||
pub fn set_stencil_load_op(this: &GpuRenderPassDepthStencilAttachment, val: GpuLoadOp);
|
||||
|
||||
#[doc = "Get the `stencilReadOnly` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "stencilReadOnly")]
|
||||
pub fn get_stencil_read_only(this: &GpuRenderPassDepthStencilAttachment) -> Option<bool>;
|
||||
|
||||
#[doc = "Change the `stencilReadOnly` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "stencilReadOnly")]
|
||||
pub fn set_stencil_read_only(this: &GpuRenderPassDepthStencilAttachment, val: bool);
|
||||
|
||||
#[doc = "Get the `stencilStoreOp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`, `GpuStoreOp`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "stencilStoreOp")]
|
||||
pub fn get_stencil_store_op(this: &GpuRenderPassDepthStencilAttachment) -> Option<GpuStoreOp>;
|
||||
|
||||
#[doc = "Change the `stencilStoreOp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`, `GpuStoreOp`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "stencilStoreOp")]
|
||||
pub fn set_stencil_store_op(this: &GpuRenderPassDepthStencilAttachment, val: GpuStoreOp);
|
||||
|
||||
#[doc = "Get the `view` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`, `GpuTextureView`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "view")]
|
||||
pub fn get_view(this: &GpuRenderPassDepthStencilAttachment) -> GpuTextureView;
|
||||
|
||||
#[doc = "Change the `view` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`, `GpuTextureView`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "view")]
|
||||
pub fn set_view(this: &GpuRenderPassDepthStencilAttachment, val: &GpuTextureView);
|
||||
}
|
||||
|
||||
impl GpuRenderPassDepthStencilAttachment {
|
||||
@ -47,192 +209,61 @@ impl GpuRenderPassDepthStencilAttachment {
|
||||
pub fn new(view: &GpuTextureView) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.view(view);
|
||||
ret.set_view(view);
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `depthClearValue` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_depth_clear_value()` instead."]
|
||||
pub fn depth_clear_value(&mut self, val: f32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("depthClearValue"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_depth_clear_value(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `depthLoadOp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuLoadOp`, `GpuRenderPassDepthStencilAttachment`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_depth_load_op()` instead."]
|
||||
pub fn depth_load_op(&mut self, val: GpuLoadOp) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("depthLoadOp"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_depth_load_op(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `depthReadOnly` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_depth_read_only()` instead."]
|
||||
pub fn depth_read_only(&mut self, val: bool) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("depthReadOnly"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_depth_read_only(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `depthStoreOp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`, `GpuStoreOp`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_depth_store_op()` instead."]
|
||||
pub fn depth_store_op(&mut self, val: GpuStoreOp) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("depthStoreOp"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_depth_store_op(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `stencilClearValue` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_stencil_clear_value()` instead."]
|
||||
pub fn stencil_clear_value(&mut self, val: u32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("stencilClearValue"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_stencil_clear_value(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `stencilLoadOp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuLoadOp`, `GpuRenderPassDepthStencilAttachment`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_stencil_load_op()` instead."]
|
||||
pub fn stencil_load_op(&mut self, val: GpuLoadOp) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("stencilLoadOp"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_stencil_load_op(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `stencilReadOnly` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_stencil_read_only()` instead."]
|
||||
pub fn stencil_read_only(&mut self, val: bool) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("stencilReadOnly"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_stencil_read_only(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `stencilStoreOp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`, `GpuStoreOp`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_stencil_store_op()` instead."]
|
||||
pub fn stencil_store_op(&mut self, val: GpuStoreOp) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("stencilStoreOp"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_stencil_store_op(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `view` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`, `GpuTextureView`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_view()` instead."]
|
||||
pub fn view(&mut self, val: &GpuTextureView) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("view"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_view(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,121 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuRenderPassDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuRenderPassDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuRenderPassDescriptor, val: &str);
|
||||
|
||||
#[doc = "Get the `colorAttachments` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "colorAttachments")]
|
||||
pub fn get_color_attachments(this: &GpuRenderPassDescriptor) -> ::js_sys::Array;
|
||||
|
||||
#[doc = "Change the `colorAttachments` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "colorAttachments")]
|
||||
pub fn set_color_attachments(this: &GpuRenderPassDescriptor, val: &::wasm_bindgen::JsValue);
|
||||
|
||||
#[doc = "Get the `depthStencilAttachment` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`, `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthStencilAttachment")]
|
||||
pub fn get_depth_stencil_attachment(
|
||||
this: &GpuRenderPassDescriptor,
|
||||
) -> Option<GpuRenderPassDepthStencilAttachment>;
|
||||
|
||||
#[doc = "Change the `depthStencilAttachment` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`, `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthStencilAttachment")]
|
||||
pub fn set_depth_stencil_attachment(
|
||||
this: &GpuRenderPassDescriptor,
|
||||
val: &GpuRenderPassDepthStencilAttachment,
|
||||
);
|
||||
|
||||
#[doc = "Get the `maxDrawCount` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "maxDrawCount")]
|
||||
pub fn get_max_draw_count(this: &GpuRenderPassDescriptor) -> Option<f64>;
|
||||
|
||||
#[doc = "Change the `maxDrawCount` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "maxDrawCount")]
|
||||
pub fn set_max_draw_count(this: &GpuRenderPassDescriptor, val: f64);
|
||||
|
||||
#[doc = "Get the `occlusionQuerySet` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`, `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "occlusionQuerySet")]
|
||||
pub fn get_occlusion_query_set(this: &GpuRenderPassDescriptor) -> Option<GpuQuerySet>;
|
||||
|
||||
#[doc = "Change the `occlusionQuerySet` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`, `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "occlusionQuerySet")]
|
||||
pub fn set_occlusion_query_set(this: &GpuRenderPassDescriptor, val: &GpuQuerySet);
|
||||
|
||||
#[doc = "Get the `timestampWrites` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDescriptor`, `GpuRenderPassTimestampWrites`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "timestampWrites")]
|
||||
pub fn get_timestamp_writes(
|
||||
this: &GpuRenderPassDescriptor,
|
||||
) -> Option<GpuRenderPassTimestampWrites>;
|
||||
|
||||
#[doc = "Change the `timestampWrites` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDescriptor`, `GpuRenderPassTimestampWrites`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "timestampWrites")]
|
||||
pub fn set_timestamp_writes(this: &GpuRenderPassDescriptor, val: &GpuRenderPassTimestampWrites);
|
||||
}
|
||||
|
||||
impl GpuRenderPassDescriptor {
|
||||
@ -47,132 +162,46 @@ impl GpuRenderPassDescriptor {
|
||||
pub fn new(color_attachments: &::wasm_bindgen::JsValue) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.color_attachments(color_attachments);
|
||||
ret.set_color_attachments(color_attachments);
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_label()` instead."]
|
||||
pub fn label(&mut self, val: &str) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_label(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `colorAttachments` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_color_attachments()` instead."]
|
||||
pub fn color_attachments(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("colorAttachments"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_color_attachments(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `depthStencilAttachment` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`, `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_depth_stencil_attachment()` instead."]
|
||||
pub fn depth_stencil_attachment(
|
||||
&mut self,
|
||||
val: &GpuRenderPassDepthStencilAttachment,
|
||||
) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("depthStencilAttachment"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_depth_stencil_attachment(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `maxDrawCount` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_max_draw_count()` instead."]
|
||||
pub fn max_draw_count(&mut self, val: f64) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("maxDrawCount"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_max_draw_count(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `occlusionQuerySet` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`, `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_occlusion_query_set()` instead."]
|
||||
pub fn occlusion_query_set(&mut self, val: &GpuQuerySet) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("occlusionQuerySet"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_occlusion_query_set(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `timestampWrites` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDescriptor`, `GpuRenderPassTimestampWrites`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_timestamp_writes()` instead."]
|
||||
pub fn timestamp_writes(&mut self, val: &GpuRenderPassTimestampWrites) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("timestampWrites"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_timestamp_writes(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -47,7 +47,7 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuRenderPassEncoder) -> String;
|
||||
pub fn label(this: &GpuRenderPassEncoder) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPURenderPassEncoder" , js_name = label)]
|
||||
#[doc = "Setter for the `label` field of this object."]
|
||||
@ -104,7 +104,7 @@ extern "C" {
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn execute_bundles(this: &GpuRenderPassEncoder, bundles: &::wasm_bindgen::JsValue);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setBlendConstant)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -116,9 +116,9 @@ extern "C" {
|
||||
pub fn set_blend_constant_with_f64_sequence(
|
||||
this: &GpuRenderPassEncoder,
|
||||
color: &::wasm_bindgen::JsValue,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setBlendConstant)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -130,7 +130,7 @@ extern "C" {
|
||||
pub fn set_blend_constant_with_gpu_color_dict(
|
||||
this: &GpuRenderPassEncoder,
|
||||
color: &GpuColorDict,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setScissorRect)]
|
||||
#[doc = "The `setScissorRect()` method."]
|
||||
@ -204,7 +204,25 @@ extern "C" {
|
||||
dynamic_offsets: &::wasm_bindgen::JsValue,
|
||||
);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_bind_group_with_u32_slice_and_u32_and_dynamic_offsets_data_length(
|
||||
this: &GpuRenderPassEncoder,
|
||||
index: u32,
|
||||
bind_group: Option<&GpuBindGroup>,
|
||||
dynamic_offsets_data: &[u32],
|
||||
dynamic_offsets_data_start: u32,
|
||||
dynamic_offsets_data_length: u32,
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -217,12 +235,30 @@ extern "C" {
|
||||
this: &GpuRenderPassEncoder,
|
||||
index: u32,
|
||||
bind_group: Option<&GpuBindGroup>,
|
||||
dynamic_offsets_data: &[u32],
|
||||
dynamic_offsets_data: &::js_sys::Uint32Array,
|
||||
dynamic_offsets_data_start: u32,
|
||||
dynamic_offsets_data_length: u32,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup)]
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_bind_group_with_u32_slice_and_f64_and_dynamic_offsets_data_length(
|
||||
this: &GpuRenderPassEncoder,
|
||||
index: u32,
|
||||
bind_group: Option<&GpuBindGroup>,
|
||||
dynamic_offsets_data: &[u32],
|
||||
dynamic_offsets_data_start: f64,
|
||||
dynamic_offsets_data_length: u32,
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , 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)"]
|
||||
@ -235,10 +271,10 @@ extern "C" {
|
||||
this: &GpuRenderPassEncoder,
|
||||
index: u32,
|
||||
bind_group: Option<&GpuBindGroup>,
|
||||
dynamic_offsets_data: &[u32],
|
||||
dynamic_offsets_data: &::js_sys::Uint32Array,
|
||||
dynamic_offsets_data_start: f64,
|
||||
dynamic_offsets_data_length: u32,
|
||||
);
|
||||
) -> Result<(), JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = insertDebugMarker)]
|
||||
#[doc = "The `insertDebugMarker()` method."]
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,60 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuRenderPassTimestampWrites;
|
||||
|
||||
#[doc = "Get the `beginningOfPassWriteIndex` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassTimestampWrites`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "beginningOfPassWriteIndex")]
|
||||
pub fn get_beginning_of_pass_write_index(this: &GpuRenderPassTimestampWrites) -> Option<u32>;
|
||||
|
||||
#[doc = "Change the `beginningOfPassWriteIndex` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassTimestampWrites`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "beginningOfPassWriteIndex")]
|
||||
pub fn set_beginning_of_pass_write_index(this: &GpuRenderPassTimestampWrites, val: u32);
|
||||
|
||||
#[doc = "Get the `endOfPassWriteIndex` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassTimestampWrites`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "endOfPassWriteIndex")]
|
||||
pub fn get_end_of_pass_write_index(this: &GpuRenderPassTimestampWrites) -> Option<u32>;
|
||||
|
||||
#[doc = "Change the `endOfPassWriteIndex` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassTimestampWrites`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "endOfPassWriteIndex")]
|
||||
pub fn set_end_of_pass_write_index(this: &GpuRenderPassTimestampWrites, val: u32);
|
||||
|
||||
#[doc = "Get the `querySet` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`, `GpuRenderPassTimestampWrites`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "querySet")]
|
||||
pub fn get_query_set(this: &GpuRenderPassTimestampWrites) -> GpuQuerySet;
|
||||
|
||||
#[doc = "Change the `querySet` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`, `GpuRenderPassTimestampWrites`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "querySet")]
|
||||
pub fn set_query_set(this: &GpuRenderPassTimestampWrites, val: &GpuQuerySet);
|
||||
}
|
||||
|
||||
impl GpuRenderPassTimestampWrites {
|
||||
@ -47,70 +101,25 @@ impl GpuRenderPassTimestampWrites {
|
||||
pub fn new(query_set: &GpuQuerySet) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.query_set(query_set);
|
||||
ret.set_query_set(query_set);
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `beginningOfPassWriteIndex` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassTimestampWrites`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_beginning_of_pass_write_index()` instead."]
|
||||
pub fn beginning_of_pass_write_index(&mut self, val: u32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("beginningOfPassWriteIndex"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_beginning_of_pass_write_index(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `endOfPassWriteIndex` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassTimestampWrites`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_end_of_pass_write_index()` instead."]
|
||||
pub fn end_of_pass_write_index(&mut self, val: u32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("endOfPassWriteIndex"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_end_of_pass_write_index(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `querySet` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`, `GpuRenderPassTimestampWrites`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_query_set()` instead."]
|
||||
pub fn query_set(&mut self, val: &GpuQuerySet) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("querySet"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_query_set(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -47,7 +47,7 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuRenderPipeline) -> String;
|
||||
pub fn label(this: &GpuRenderPipeline) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPURenderPipeline" , js_name = label)]
|
||||
#[doc = "Setter for the `label` field of this object."]
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,132 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuRenderPipelineDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPipelineDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuRenderPipelineDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPipelineDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuRenderPipelineDescriptor, val: &str);
|
||||
|
||||
#[doc = "Get the `layout` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPipelineDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "layout")]
|
||||
pub fn get_layout(this: &GpuRenderPipelineDescriptor) -> ::wasm_bindgen::JsValue;
|
||||
|
||||
#[doc = "Change the `layout` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPipelineDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "layout")]
|
||||
pub fn set_layout(this: &GpuRenderPipelineDescriptor, val: &::wasm_bindgen::JsValue);
|
||||
|
||||
#[doc = "Get the `depthStencil` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`, `GpuRenderPipelineDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthStencil")]
|
||||
pub fn get_depth_stencil(this: &GpuRenderPipelineDescriptor) -> Option<GpuDepthStencilState>;
|
||||
|
||||
#[doc = "Change the `depthStencil` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`, `GpuRenderPipelineDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthStencil")]
|
||||
pub fn set_depth_stencil(this: &GpuRenderPipelineDescriptor, val: &GpuDepthStencilState);
|
||||
|
||||
#[doc = "Get the `fragment` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuFragmentState`, `GpuRenderPipelineDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "fragment")]
|
||||
pub fn get_fragment(this: &GpuRenderPipelineDescriptor) -> Option<GpuFragmentState>;
|
||||
|
||||
#[doc = "Change the `fragment` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuFragmentState`, `GpuRenderPipelineDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "fragment")]
|
||||
pub fn set_fragment(this: &GpuRenderPipelineDescriptor, val: &GpuFragmentState);
|
||||
|
||||
#[doc = "Get the `multisample` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuMultisampleState`, `GpuRenderPipelineDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "multisample")]
|
||||
pub fn get_multisample(this: &GpuRenderPipelineDescriptor) -> Option<GpuMultisampleState>;
|
||||
|
||||
#[doc = "Change the `multisample` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuMultisampleState`, `GpuRenderPipelineDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "multisample")]
|
||||
pub fn set_multisample(this: &GpuRenderPipelineDescriptor, val: &GpuMultisampleState);
|
||||
|
||||
#[doc = "Get the `primitive` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuPrimitiveState`, `GpuRenderPipelineDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "primitive")]
|
||||
pub fn get_primitive(this: &GpuRenderPipelineDescriptor) -> Option<GpuPrimitiveState>;
|
||||
|
||||
#[doc = "Change the `primitive` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuPrimitiveState`, `GpuRenderPipelineDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "primitive")]
|
||||
pub fn set_primitive(this: &GpuRenderPipelineDescriptor, val: &GpuPrimitiveState);
|
||||
|
||||
#[doc = "Get the `vertex` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPipelineDescriptor`, `GpuVertexState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "vertex")]
|
||||
pub fn get_vertex(this: &GpuRenderPipelineDescriptor) -> GpuVertexState;
|
||||
|
||||
#[doc = "Change the `vertex` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPipelineDescriptor`, `GpuVertexState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "vertex")]
|
||||
pub fn set_vertex(this: &GpuRenderPipelineDescriptor, val: &GpuVertexState);
|
||||
}
|
||||
|
||||
impl GpuRenderPipelineDescriptor {
|
||||
@ -47,145 +173,50 @@ impl GpuRenderPipelineDescriptor {
|
||||
pub fn new(layout: &::wasm_bindgen::JsValue, vertex: &GpuVertexState) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.layout(layout);
|
||||
ret.vertex(vertex);
|
||||
ret.set_layout(layout);
|
||||
ret.set_vertex(vertex);
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPipelineDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_label()` instead."]
|
||||
pub fn label(&mut self, val: &str) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_label(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `layout` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPipelineDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_layout()` instead."]
|
||||
pub fn layout(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r =
|
||||
::js_sys::Reflect::set(self.as_ref(), &JsValue::from("layout"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_layout(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `depthStencil` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`, `GpuRenderPipelineDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_depth_stencil()` instead."]
|
||||
pub fn depth_stencil(&mut self, val: &GpuDepthStencilState) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("depthStencil"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_depth_stencil(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `fragment` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuFragmentState`, `GpuRenderPipelineDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_fragment()` instead."]
|
||||
pub fn fragment(&mut self, val: &GpuFragmentState) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("fragment"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_fragment(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `multisample` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuMultisampleState`, `GpuRenderPipelineDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_multisample()` instead."]
|
||||
pub fn multisample(&mut self, val: &GpuMultisampleState) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("multisample"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_multisample(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `primitive` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuPrimitiveState`, `GpuRenderPipelineDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_primitive()` instead."]
|
||||
pub fn primitive(&mut self, val: &GpuPrimitiveState) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("primitive"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_primitive(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `vertex` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPipelineDescriptor`, `GpuVertexState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_vertex()` instead."]
|
||||
pub fn vertex(&mut self, val: &GpuVertexState) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r =
|
||||
::js_sys::Reflect::set(self.as_ref(), &JsValue::from("vertex"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_vertex(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,78 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuRequestAdapterOptions;
|
||||
|
||||
#[doc = "Get the `featureLevel` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRequestAdapterOptions`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "featureLevel")]
|
||||
pub fn get_feature_level(this: &GpuRequestAdapterOptions) -> Option<::alloc::string::String>;
|
||||
|
||||
#[doc = "Change the `featureLevel` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRequestAdapterOptions`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "featureLevel")]
|
||||
pub fn set_feature_level(this: &GpuRequestAdapterOptions, val: &str);
|
||||
|
||||
#[doc = "Get the `forceFallbackAdapter` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRequestAdapterOptions`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "forceFallbackAdapter")]
|
||||
pub fn get_force_fallback_adapter(this: &GpuRequestAdapterOptions) -> Option<bool>;
|
||||
|
||||
#[doc = "Change the `forceFallbackAdapter` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRequestAdapterOptions`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "forceFallbackAdapter")]
|
||||
pub fn set_force_fallback_adapter(this: &GpuRequestAdapterOptions, val: bool);
|
||||
|
||||
#[doc = "Get the `powerPreference` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuPowerPreference`, `GpuRequestAdapterOptions`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "powerPreference")]
|
||||
pub fn get_power_preference(this: &GpuRequestAdapterOptions) -> Option<GpuPowerPreference>;
|
||||
|
||||
#[doc = "Change the `powerPreference` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuPowerPreference`, `GpuRequestAdapterOptions`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "powerPreference")]
|
||||
pub fn set_power_preference(this: &GpuRequestAdapterOptions, val: GpuPowerPreference);
|
||||
|
||||
#[doc = "Get the `xrCompatible` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRequestAdapterOptions`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "xrCompatible")]
|
||||
pub fn get_xr_compatible(this: &GpuRequestAdapterOptions) -> Option<bool>;
|
||||
|
||||
#[doc = "Change the `xrCompatible` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRequestAdapterOptions`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "xrCompatible")]
|
||||
pub fn set_xr_compatible(this: &GpuRequestAdapterOptions, val: bool);
|
||||
}
|
||||
|
||||
impl GpuRequestAdapterOptions {
|
||||
@ -50,45 +122,27 @@ impl GpuRequestAdapterOptions {
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `forceFallbackAdapter` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRequestAdapterOptions`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn force_fallback_adapter(&mut self, val: bool) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("forceFallbackAdapter"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
#[deprecated = "Use `set_feature_level()` instead."]
|
||||
pub fn feature_level(&mut self, val: &str) -> &mut Self {
|
||||
self.set_feature_level(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `powerPreference` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuPowerPreference`, `GpuRequestAdapterOptions`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_force_fallback_adapter()` instead."]
|
||||
pub fn force_fallback_adapter(&mut self, val: bool) -> &mut Self {
|
||||
self.set_force_fallback_adapter(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[deprecated = "Use `set_power_preference()` instead."]
|
||||
pub fn power_preference(&mut self, val: GpuPowerPreference) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("powerPreference"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_power_preference(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[deprecated = "Use `set_xr_compatible()` instead."]
|
||||
pub fn xr_compatible(&mut self, val: bool) -> &mut Self {
|
||||
self.set_xr_compatible(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -47,7 +47,7 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuSampler) -> String;
|
||||
pub fn label(this: &GpuSampler) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPUSampler" , js_name = label)]
|
||||
#[doc = "Setter for the `label` field of this object."]
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,24 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuSamplerBindingLayout;
|
||||
|
||||
#[doc = "Get the `type` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuSamplerBindingLayout`, `GpuSamplerBindingType`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "type")]
|
||||
pub fn get_type(this: &GpuSamplerBindingLayout) -> Option<GpuSamplerBindingType>;
|
||||
|
||||
#[doc = "Change the `type` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuSamplerBindingLayout`, `GpuSamplerBindingType`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "type")]
|
||||
pub fn set_type(this: &GpuSamplerBindingLayout, val: GpuSamplerBindingType);
|
||||
}
|
||||
|
||||
impl GpuSamplerBindingLayout {
|
||||
@ -50,20 +68,9 @@ impl GpuSamplerBindingLayout {
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `type` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuSamplerBindingLayout`, `GpuSamplerBindingType`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_type()` instead."]
|
||||
pub fn type_(&mut self, val: GpuSamplerBindingType) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_type(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,204 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuSamplerDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuSamplerDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuSamplerDescriptor, val: &str);
|
||||
|
||||
#[doc = "Get the `addressModeU` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuAddressMode`, `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "addressModeU")]
|
||||
pub fn get_address_mode_u(this: &GpuSamplerDescriptor) -> Option<GpuAddressMode>;
|
||||
|
||||
#[doc = "Change the `addressModeU` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuAddressMode`, `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "addressModeU")]
|
||||
pub fn set_address_mode_u(this: &GpuSamplerDescriptor, val: GpuAddressMode);
|
||||
|
||||
#[doc = "Get the `addressModeV` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuAddressMode`, `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "addressModeV")]
|
||||
pub fn get_address_mode_v(this: &GpuSamplerDescriptor) -> Option<GpuAddressMode>;
|
||||
|
||||
#[doc = "Change the `addressModeV` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuAddressMode`, `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "addressModeV")]
|
||||
pub fn set_address_mode_v(this: &GpuSamplerDescriptor, val: GpuAddressMode);
|
||||
|
||||
#[doc = "Get the `addressModeW` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuAddressMode`, `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "addressModeW")]
|
||||
pub fn get_address_mode_w(this: &GpuSamplerDescriptor) -> Option<GpuAddressMode>;
|
||||
|
||||
#[doc = "Change the `addressModeW` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuAddressMode`, `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "addressModeW")]
|
||||
pub fn set_address_mode_w(this: &GpuSamplerDescriptor, val: GpuAddressMode);
|
||||
|
||||
#[doc = "Get the `compare` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCompareFunction`, `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "compare")]
|
||||
pub fn get_compare(this: &GpuSamplerDescriptor) -> Option<GpuCompareFunction>;
|
||||
|
||||
#[doc = "Change the `compare` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCompareFunction`, `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "compare")]
|
||||
pub fn set_compare(this: &GpuSamplerDescriptor, val: GpuCompareFunction);
|
||||
|
||||
#[doc = "Get the `lodMaxClamp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "lodMaxClamp")]
|
||||
pub fn get_lod_max_clamp(this: &GpuSamplerDescriptor) -> Option<f32>;
|
||||
|
||||
#[doc = "Change the `lodMaxClamp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "lodMaxClamp")]
|
||||
pub fn set_lod_max_clamp(this: &GpuSamplerDescriptor, val: f32);
|
||||
|
||||
#[doc = "Get the `lodMinClamp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "lodMinClamp")]
|
||||
pub fn get_lod_min_clamp(this: &GpuSamplerDescriptor) -> Option<f32>;
|
||||
|
||||
#[doc = "Change the `lodMinClamp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "lodMinClamp")]
|
||||
pub fn set_lod_min_clamp(this: &GpuSamplerDescriptor, val: f32);
|
||||
|
||||
#[doc = "Get the `magFilter` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuFilterMode`, `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "magFilter")]
|
||||
pub fn get_mag_filter(this: &GpuSamplerDescriptor) -> Option<GpuFilterMode>;
|
||||
|
||||
#[doc = "Change the `magFilter` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuFilterMode`, `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "magFilter")]
|
||||
pub fn set_mag_filter(this: &GpuSamplerDescriptor, val: GpuFilterMode);
|
||||
|
||||
#[doc = "Get the `maxAnisotropy` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "maxAnisotropy")]
|
||||
pub fn get_max_anisotropy(this: &GpuSamplerDescriptor) -> Option<u16>;
|
||||
|
||||
#[doc = "Change the `maxAnisotropy` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "maxAnisotropy")]
|
||||
pub fn set_max_anisotropy(this: &GpuSamplerDescriptor, val: u16);
|
||||
|
||||
#[doc = "Get the `minFilter` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuFilterMode`, `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "minFilter")]
|
||||
pub fn get_min_filter(this: &GpuSamplerDescriptor) -> Option<GpuFilterMode>;
|
||||
|
||||
#[doc = "Change the `minFilter` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuFilterMode`, `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "minFilter")]
|
||||
pub fn set_min_filter(this: &GpuSamplerDescriptor, val: GpuFilterMode);
|
||||
|
||||
#[doc = "Get the `mipmapFilter` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuMipmapFilterMode`, `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "mipmapFilter")]
|
||||
pub fn get_mipmap_filter(this: &GpuSamplerDescriptor) -> Option<GpuMipmapFilterMode>;
|
||||
|
||||
#[doc = "Change the `mipmapFilter` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuMipmapFilterMode`, `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "mipmapFilter")]
|
||||
pub fn set_mipmap_filter(this: &GpuSamplerDescriptor, val: GpuMipmapFilterMode);
|
||||
}
|
||||
|
||||
impl GpuSamplerDescriptor {
|
||||
@ -50,230 +248,69 @@ impl GpuSamplerDescriptor {
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_label()` instead."]
|
||||
pub fn label(&mut self, val: &str) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_label(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `addressModeU` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuAddressMode`, `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_address_mode_u()` instead."]
|
||||
pub fn address_mode_u(&mut self, val: GpuAddressMode) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("addressModeU"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_address_mode_u(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `addressModeV` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuAddressMode`, `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_address_mode_v()` instead."]
|
||||
pub fn address_mode_v(&mut self, val: GpuAddressMode) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("addressModeV"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_address_mode_v(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `addressModeW` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuAddressMode`, `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_address_mode_w()` instead."]
|
||||
pub fn address_mode_w(&mut self, val: GpuAddressMode) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("addressModeW"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_address_mode_w(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `compare` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCompareFunction`, `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_compare()` instead."]
|
||||
pub fn compare(&mut self, val: GpuCompareFunction) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("compare"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_compare(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `lodMaxClamp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_lod_max_clamp()` instead."]
|
||||
pub fn lod_max_clamp(&mut self, val: f32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("lodMaxClamp"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_lod_max_clamp(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `lodMinClamp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_lod_min_clamp()` instead."]
|
||||
pub fn lod_min_clamp(&mut self, val: f32) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("lodMinClamp"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_lod_min_clamp(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `magFilter` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuFilterMode`, `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_mag_filter()` instead."]
|
||||
pub fn mag_filter(&mut self, val: GpuFilterMode) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("magFilter"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_mag_filter(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `maxAnisotropy` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_max_anisotropy()` instead."]
|
||||
pub fn max_anisotropy(&mut self, val: u16) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("maxAnisotropy"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_max_anisotropy(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `minFilter` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuFilterMode`, `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_min_filter()` instead."]
|
||||
pub fn min_filter(&mut self, val: GpuFilterMode) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("minFilter"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_min_filter(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `mipmapFilter` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuMipmapFilterMode`, `GpuSamplerDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_mipmap_filter()` instead."]
|
||||
pub fn mipmap_filter(&mut self, val: GpuMipmapFilterMode) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("mipmapFilter"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_mipmap_filter(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -47,7 +47,7 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuShaderModule) -> String;
|
||||
pub fn label(this: &GpuShaderModule) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPUShaderModule" , js_name = label)]
|
||||
#[doc = "Setter for the `label` field of this object."]
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,60 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuShaderModuleDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuShaderModuleDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuShaderModuleDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuShaderModuleDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuShaderModuleDescriptor, val: &str);
|
||||
|
||||
#[doc = "Get the `code` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuShaderModuleDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "code")]
|
||||
pub fn get_code(this: &GpuShaderModuleDescriptor) -> ::alloc::string::String;
|
||||
|
||||
#[doc = "Change the `code` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuShaderModuleDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "code")]
|
||||
pub fn set_code(this: &GpuShaderModuleDescriptor, val: &str);
|
||||
|
||||
#[doc = "Get the `compilationHints` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuShaderModuleDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "compilationHints")]
|
||||
pub fn get_compilation_hints(this: &GpuShaderModuleDescriptor) -> Option<::js_sys::Array>;
|
||||
|
||||
#[doc = "Change the `compilationHints` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuShaderModuleDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "compilationHints")]
|
||||
pub fn set_compilation_hints(this: &GpuShaderModuleDescriptor, val: &::wasm_bindgen::JsValue);
|
||||
}
|
||||
|
||||
impl GpuShaderModuleDescriptor {
|
||||
@ -47,83 +101,25 @@ impl GpuShaderModuleDescriptor {
|
||||
pub fn new(code: &str) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
ret.code(code);
|
||||
ret.set_code(code);
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `label` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuShaderModuleDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_label()` instead."]
|
||||
pub fn label(&mut self, val: &str) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_label(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `code` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuShaderModuleDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_code()` instead."]
|
||||
pub fn code(&mut self, val: &str) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("code"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_code(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `compilationHints` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuShaderModuleDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_compilation_hints()` instead."]
|
||||
pub fn compilation_hints(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("compilationHints"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `sourceMap` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuShaderModuleDescriptor`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn source_map(&mut self, val: &::js_sys::Object) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("sourceMap"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_compilation_hints(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,6 +35,78 @@ 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuStencilFaceState;
|
||||
|
||||
#[doc = "Get the `compare` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCompareFunction`, `GpuStencilFaceState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "compare")]
|
||||
pub fn get_compare(this: &GpuStencilFaceState) -> Option<GpuCompareFunction>;
|
||||
|
||||
#[doc = "Change the `compare` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCompareFunction`, `GpuStencilFaceState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "compare")]
|
||||
pub fn set_compare(this: &GpuStencilFaceState, val: GpuCompareFunction);
|
||||
|
||||
#[doc = "Get the `depthFailOp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuStencilFaceState`, `GpuStencilOperation`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthFailOp")]
|
||||
pub fn get_depth_fail_op(this: &GpuStencilFaceState) -> Option<GpuStencilOperation>;
|
||||
|
||||
#[doc = "Change the `depthFailOp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuStencilFaceState`, `GpuStencilOperation`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthFailOp")]
|
||||
pub fn set_depth_fail_op(this: &GpuStencilFaceState, val: GpuStencilOperation);
|
||||
|
||||
#[doc = "Get the `failOp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuStencilFaceState`, `GpuStencilOperation`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "failOp")]
|
||||
pub fn get_fail_op(this: &GpuStencilFaceState) -> Option<GpuStencilOperation>;
|
||||
|
||||
#[doc = "Change the `failOp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuStencilFaceState`, `GpuStencilOperation`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "failOp")]
|
||||
pub fn set_fail_op(this: &GpuStencilFaceState, val: GpuStencilOperation);
|
||||
|
||||
#[doc = "Get the `passOp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuStencilFaceState`, `GpuStencilOperation`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "passOp")]
|
||||
pub fn get_pass_op(this: &GpuStencilFaceState) -> Option<GpuStencilOperation>;
|
||||
|
||||
#[doc = "Change the `passOp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuStencilFaceState`, `GpuStencilOperation`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "passOp")]
|
||||
pub fn set_pass_op(this: &GpuStencilFaceState, val: GpuStencilOperation);
|
||||
}
|
||||
|
||||
impl GpuStencilFaceState {
|
||||
@ -50,81 +122,27 @@ impl GpuStencilFaceState {
|
||||
ret
|
||||
}
|
||||
|
||||
#[doc = "Change the `compare` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCompareFunction`, `GpuStencilFaceState`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_compare()` instead."]
|
||||
pub fn compare(&mut self, val: GpuCompareFunction) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("compare"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_compare(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `depthFailOp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuStencilFaceState`, `GpuStencilOperation`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_depth_fail_op()` instead."]
|
||||
pub fn depth_fail_op(&mut self, val: GpuStencilOperation) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r = ::js_sys::Reflect::set(
|
||||
self.as_ref(),
|
||||
&JsValue::from("depthFailOp"),
|
||||
&JsValue::from(val),
|
||||
);
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_depth_fail_op(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `failOp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuStencilFaceState`, `GpuStencilOperation`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_fail_op()` instead."]
|
||||
pub fn fail_op(&mut self, val: GpuStencilOperation) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r =
|
||||
::js_sys::Reflect::set(self.as_ref(), &JsValue::from("failOp"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_fail_op(val);
|
||||
self
|
||||
}
|
||||
|
||||
#[doc = "Change the `passOp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuStencilFaceState`, `GpuStencilOperation`*"]
|
||||
#[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[deprecated = "Use `set_pass_op()` instead."]
|
||||
pub fn pass_op(&mut self, val: GpuStencilOperation) -> &mut Self {
|
||||
use wasm_bindgen::JsValue;
|
||||
let r =
|
||||
::js_sys::Reflect::set(self.as_ref(), &JsValue::from("passOp"), &JsValue::from(val));
|
||||
debug_assert!(
|
||||
r.is_ok(),
|
||||
"setting properties should never fail on our dictionary objects"
|
||||
);
|
||||
let _ = r;
|
||||
self.set_pass_op(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
//
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/rustwasm/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.91` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version 0.2.97` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user