mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
Vendor web-sys
This commit is contained in:
parent
7816390566
commit
605f40d866
14
wgpu/src/backend/webgpu/webgpu_sys/gen_Gpu.rs
generated
14
wgpu/src/backend/webgpu/webgpu_sys/gen_Gpu.rs
generated
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,7 +35,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `Gpu`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type Gpu;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPU" , js_name = wgslLanguageFeatures)]
|
||||
@ -46,7 +46,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `Gpu`, `WgslLanguageFeatures`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn wgsl_language_features(this: &Gpu) -> WgslLanguageFeatures;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPU" , js_name = getPreferredCanvasFormat)]
|
||||
@ -57,7 +57,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `Gpu`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn get_preferred_canvas_format(this: &Gpu) -> GpuTextureFormat;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPU" , js_name = requestAdapter)]
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `Gpu`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn request_adapter(this: &Gpu) -> ::js_sys::Promise;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPU" , js_name = requestAdapter)]
|
||||
@ -79,7 +79,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `Gpu`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn request_adapter_with_options(
|
||||
this: &Gpu,
|
||||
options: &GpuRequestAdapterOptions,
|
||||
|
||||
18
wgpu/src/backend/webgpu/webgpu_sys/gen_GpuAdapter.rs
generated
18
wgpu/src/backend/webgpu/webgpu_sys/gen_GpuAdapter.rs
generated
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,7 +35,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuAdapter;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapter" , js_name = features)]
|
||||
@ -46,7 +46,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuAdapter`, `GpuSupportedFeatures`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn features(this: &GpuAdapter) -> GpuSupportedFeatures;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapter" , js_name = limits)]
|
||||
@ -57,7 +57,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuAdapter`, `GpuSupportedLimits`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn limits(this: &GpuAdapter) -> GpuSupportedLimits;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapter" , js_name = info)]
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn info(this: &GpuAdapter) -> GpuAdapterInfo;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapter" , js_name = isFallbackAdapter)]
|
||||
@ -79,7 +79,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn is_fallback_adapter(this: &GpuAdapter) -> bool;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUAdapter" , js_name = requestDevice)]
|
||||
@ -90,7 +90,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn request_device(this: &GpuAdapter) -> ::js_sys::Promise;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUAdapter" , js_name = requestDevice)]
|
||||
@ -101,7 +101,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuAdapter`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn request_device_with_descriptor(
|
||||
this: &GpuAdapter,
|
||||
descriptor: &GpuDeviceDescriptor,
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,7 +35,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuAdapterInfo;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterInfo" , js_name = vendor)]
|
||||
@ -46,7 +46,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn vendor(this: &GpuAdapterInfo) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterInfo" , js_name = architecture)]
|
||||
@ -57,7 +57,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn architecture(this: &GpuAdapterInfo) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterInfo" , js_name = device)]
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn device(this: &GpuAdapterInfo) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterInfo" , js_name = description)]
|
||||
@ -79,6 +79,6 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn description(this: &GpuAdapterInfo) -> ::alloc::string::String;
|
||||
}
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
@ -29,7 +29,7 @@ use wasm_bindgen::prelude::*;
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuAddressMode`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum GpuAddressMode {
|
||||
ClampToEdge = "clamp-to-edge",
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
@ -29,7 +29,7 @@ use wasm_bindgen::prelude::*;
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuAutoLayoutMode`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum GpuAutoLayoutMode {
|
||||
Auto = "auto",
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,7 +35,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuBindGroup;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUBindGroup" , js_name = label)]
|
||||
@ -46,7 +46,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuBindGroup) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPUBindGroup" , js_name = label)]
|
||||
@ -57,6 +57,6 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_label(this: &GpuBindGroup, value: &str);
|
||||
}
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuBindGroupDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuBindGroupDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuBindGroupDescriptor, val: &str);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "entries")]
|
||||
pub fn get_entries(this: &GpuBindGroupDescriptor) -> ::js_sys::Array;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "entries")]
|
||||
pub fn set_entries(this: &GpuBindGroupDescriptor, val: &::wasm_bindgen::JsValue);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "layout")]
|
||||
pub fn get_layout(this: &GpuBindGroupDescriptor) -> GpuBindGroupLayout;
|
||||
|
||||
@ -86,7 +86,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "layout")]
|
||||
pub fn set_layout(this: &GpuBindGroupDescriptor, val: &GpuBindGroupLayout);
|
||||
}
|
||||
@ -97,7 +97,7 @@ impl GpuBindGroupDescriptor {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
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());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuBindGroupEntry;
|
||||
|
||||
#[doc = "Get the `binding` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "binding")]
|
||||
pub fn get_binding(this: &GpuBindGroupEntry) -> u32;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "binding")]
|
||||
pub fn set_binding(this: &GpuBindGroupEntry, val: u32);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "resource")]
|
||||
pub fn get_resource(this: &GpuBindGroupEntry) -> ::wasm_bindgen::JsValue;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "resource")]
|
||||
pub fn set_resource(this: &GpuBindGroupEntry, val: &::wasm_bindgen::JsValue);
|
||||
}
|
||||
@ -79,7 +79,7 @@ impl GpuBindGroupEntry {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
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());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,7 +35,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuBindGroupLayout;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUBindGroupLayout" , js_name = label)]
|
||||
@ -46,7 +46,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuBindGroupLayout) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPUBindGroupLayout" , js_name = label)]
|
||||
@ -57,6 +57,6 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_label(this: &GpuBindGroupLayout, value: &str);
|
||||
}
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuBindGroupLayoutDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuBindGroupLayoutDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuBindGroupLayoutDescriptor, val: &str);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "entries")]
|
||||
pub fn get_entries(this: &GpuBindGroupLayoutDescriptor) -> ::js_sys::Array;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "entries")]
|
||||
pub fn set_entries(this: &GpuBindGroupLayoutDescriptor, val: &::wasm_bindgen::JsValue);
|
||||
}
|
||||
@ -79,7 +79,7 @@ impl GpuBindGroupLayoutDescriptor {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new(entries: &::wasm_bindgen::JsValue) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuBindGroupLayoutEntry;
|
||||
|
||||
#[doc = "Get the `binding` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "binding")]
|
||||
pub fn get_binding(this: &GpuBindGroupLayoutEntry) -> u32;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "binding")]
|
||||
pub fn set_binding(this: &GpuBindGroupLayoutEntry, val: u32);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "buffer")]
|
||||
pub fn get_buffer(this: &GpuBindGroupLayoutEntry) -> Option<GpuBufferBindingLayout>;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "buffer")]
|
||||
pub fn set_buffer(this: &GpuBindGroupLayoutEntry, val: &GpuBufferBindingLayout);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "externalTexture")]
|
||||
pub fn get_external_texture(
|
||||
this: &GpuBindGroupLayoutEntry,
|
||||
@ -88,7 +88,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "externalTexture")]
|
||||
pub fn set_external_texture(
|
||||
this: &GpuBindGroupLayoutEntry,
|
||||
@ -100,7 +100,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "sampler")]
|
||||
pub fn get_sampler(this: &GpuBindGroupLayoutEntry) -> Option<GpuSamplerBindingLayout>;
|
||||
|
||||
@ -109,7 +109,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "sampler")]
|
||||
pub fn set_sampler(this: &GpuBindGroupLayoutEntry, val: &GpuSamplerBindingLayout);
|
||||
|
||||
@ -118,7 +118,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "storageTexture")]
|
||||
pub fn get_storage_texture(
|
||||
this: &GpuBindGroupLayoutEntry,
|
||||
@ -129,7 +129,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "storageTexture")]
|
||||
pub fn set_storage_texture(
|
||||
this: &GpuBindGroupLayoutEntry,
|
||||
@ -141,7 +141,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "texture")]
|
||||
pub fn get_texture(this: &GpuBindGroupLayoutEntry) -> Option<GpuTextureBindingLayout>;
|
||||
|
||||
@ -150,7 +150,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "texture")]
|
||||
pub fn set_texture(this: &GpuBindGroupLayoutEntry, val: &GpuTextureBindingLayout);
|
||||
|
||||
@ -159,7 +159,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "visibility")]
|
||||
pub fn get_visibility(this: &GpuBindGroupLayoutEntry) -> u32;
|
||||
|
||||
@ -168,7 +168,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "visibility")]
|
||||
pub fn set_visibility(this: &GpuBindGroupLayoutEntry, val: u32);
|
||||
}
|
||||
@ -179,7 +179,7 @@ impl GpuBindGroupLayoutEntry {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new(binding: u32, visibility: u32) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBlendComponent`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuBlendComponent;
|
||||
|
||||
#[doc = "Get the `dstFactor` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "dstFactor")]
|
||||
pub fn get_dst_factor(this: &GpuBlendComponent) -> Option<GpuBlendFactor>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "dstFactor")]
|
||||
pub fn set_dst_factor(this: &GpuBlendComponent, val: GpuBlendFactor);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "operation")]
|
||||
pub fn get_operation(this: &GpuBlendComponent) -> Option<GpuBlendOperation>;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "operation")]
|
||||
pub fn set_operation(this: &GpuBlendComponent, val: GpuBlendOperation);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "srcFactor")]
|
||||
pub fn get_src_factor(this: &GpuBlendComponent) -> Option<GpuBlendFactor>;
|
||||
|
||||
@ -86,7 +86,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "srcFactor")]
|
||||
pub fn set_src_factor(this: &GpuBlendComponent, val: GpuBlendFactor);
|
||||
}
|
||||
@ -97,7 +97,7 @@ impl GpuBlendComponent {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBlendComponent`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new() -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
@ -29,7 +29,7 @@ use wasm_bindgen::prelude::*;
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum GpuBlendFactor {
|
||||
Zero = "zero",
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
@ -29,7 +29,7 @@ use wasm_bindgen::prelude::*;
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum GpuBlendOperation {
|
||||
Add = "add",
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuBlendState;
|
||||
|
||||
#[doc = "Get the `alpha` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "alpha")]
|
||||
pub fn get_alpha(this: &GpuBlendState) -> GpuBlendComponent;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "alpha")]
|
||||
pub fn set_alpha(this: &GpuBlendState, val: &GpuBlendComponent);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "color")]
|
||||
pub fn get_color(this: &GpuBlendState) -> GpuBlendComponent;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "color")]
|
||||
pub fn set_color(this: &GpuBlendState, val: &GpuBlendComponent);
|
||||
}
|
||||
@ -79,7 +79,7 @@ impl GpuBlendState {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new(alpha: &GpuBlendComponent, color: &GpuBlendComponent) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
48
wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBuffer.rs
generated
48
wgpu/src/backend/webgpu/webgpu_sys/gen_GpuBuffer.rs
generated
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,7 +35,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuBuffer;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUBuffer" , js_name = size)]
|
||||
@ -46,7 +46,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn size(this: &GpuBuffer) -> f64;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUBuffer" , js_name = usage)]
|
||||
@ -57,7 +57,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn usage(this: &GpuBuffer) -> u32;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUBuffer" , js_name = mapState)]
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuBufferMapState`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn map_state(this: &GpuBuffer) -> GpuBufferMapState;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUBuffer" , js_name = label)]
|
||||
@ -79,7 +79,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuBuffer) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPUBuffer" , js_name = label)]
|
||||
@ -90,7 +90,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_label(this: &GpuBuffer, value: &str);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = destroy)]
|
||||
@ -101,7 +101,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn destroy(this: &GpuBuffer);
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)]
|
||||
@ -112,7 +112,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn get_mapped_range(this: &GpuBuffer) -> Result<::js_sys::ArrayBuffer, JsValue>;
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)]
|
||||
@ -123,7 +123,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn get_mapped_range_with_u32(
|
||||
this: &GpuBuffer,
|
||||
offset: u32,
|
||||
@ -137,7 +137,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn get_mapped_range_with_f64(
|
||||
this: &GpuBuffer,
|
||||
offset: f64,
|
||||
@ -151,7 +151,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn get_mapped_range_with_u32_and_u32(
|
||||
this: &GpuBuffer,
|
||||
offset: u32,
|
||||
@ -166,7 +166,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn get_mapped_range_with_f64_and_u32(
|
||||
this: &GpuBuffer,
|
||||
offset: f64,
|
||||
@ -181,7 +181,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn get_mapped_range_with_u32_and_f64(
|
||||
this: &GpuBuffer,
|
||||
offset: u32,
|
||||
@ -196,7 +196,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn get_mapped_range_with_f64_and_f64(
|
||||
this: &GpuBuffer,
|
||||
offset: f64,
|
||||
@ -211,7 +211,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn map_async(this: &GpuBuffer, mode: u32) -> ::js_sys::Promise;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = mapAsync)]
|
||||
@ -222,7 +222,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn map_async_with_u32(this: &GpuBuffer, mode: u32, offset: u32) -> ::js_sys::Promise;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = mapAsync)]
|
||||
@ -233,7 +233,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn map_async_with_f64(this: &GpuBuffer, mode: u32, offset: f64) -> ::js_sys::Promise;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = mapAsync)]
|
||||
@ -244,7 +244,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn map_async_with_u32_and_u32(
|
||||
this: &GpuBuffer,
|
||||
mode: u32,
|
||||
@ -260,7 +260,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn map_async_with_f64_and_u32(
|
||||
this: &GpuBuffer,
|
||||
mode: u32,
|
||||
@ -276,7 +276,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn map_async_with_u32_and_f64(
|
||||
this: &GpuBuffer,
|
||||
mode: u32,
|
||||
@ -292,7 +292,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn map_async_with_f64_and_f64(
|
||||
this: &GpuBuffer,
|
||||
mode: u32,
|
||||
@ -308,6 +308,6 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn unmap(this: &GpuBuffer);
|
||||
}
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuBufferBinding;
|
||||
|
||||
#[doc = "Get the `buffer` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "buffer")]
|
||||
pub fn get_buffer(this: &GpuBufferBinding) -> GpuBuffer;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "buffer")]
|
||||
pub fn set_buffer(this: &GpuBufferBinding, val: &GpuBuffer);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "offset")]
|
||||
pub fn get_offset(this: &GpuBufferBinding) -> Option<f64>;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "offset")]
|
||||
pub fn set_offset(this: &GpuBufferBinding, val: f64);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "size")]
|
||||
pub fn get_size(this: &GpuBufferBinding) -> Option<f64>;
|
||||
|
||||
@ -86,7 +86,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "size")]
|
||||
pub fn set_size(this: &GpuBufferBinding, val: f64);
|
||||
}
|
||||
@ -97,7 +97,7 @@ impl GpuBufferBinding {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new(buffer: &GpuBuffer) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuBufferBindingLayout;
|
||||
|
||||
#[doc = "Get the `hasDynamicOffset` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "hasDynamicOffset")]
|
||||
pub fn get_has_dynamic_offset(this: &GpuBufferBindingLayout) -> Option<bool>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "hasDynamicOffset")]
|
||||
pub fn set_has_dynamic_offset(this: &GpuBufferBindingLayout, val: bool);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "minBindingSize")]
|
||||
pub fn get_min_binding_size(this: &GpuBufferBindingLayout) -> Option<f64>;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "minBindingSize")]
|
||||
pub fn set_min_binding_size(this: &GpuBufferBindingLayout, val: f64);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "type")]
|
||||
pub fn get_type(this: &GpuBufferBindingLayout) -> Option<GpuBufferBindingType>;
|
||||
|
||||
@ -86,7 +86,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "type")]
|
||||
pub fn set_type(this: &GpuBufferBindingLayout, val: GpuBufferBindingType);
|
||||
}
|
||||
@ -97,7 +97,7 @@ impl GpuBufferBindingLayout {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new() -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
@ -29,7 +29,7 @@ use wasm_bindgen::prelude::*;
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum GpuBufferBindingType {
|
||||
Uniform = "uniform",
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuBufferDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuBufferDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuBufferDescriptor, val: &str);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "mappedAtCreation")]
|
||||
pub fn get_mapped_at_creation(this: &GpuBufferDescriptor) -> Option<bool>;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "mappedAtCreation")]
|
||||
pub fn set_mapped_at_creation(this: &GpuBufferDescriptor, val: bool);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "size")]
|
||||
pub fn get_size(this: &GpuBufferDescriptor) -> f64;
|
||||
|
||||
@ -86,7 +86,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "size")]
|
||||
pub fn set_size(this: &GpuBufferDescriptor, val: f64);
|
||||
|
||||
@ -95,7 +95,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "usage")]
|
||||
pub fn get_usage(this: &GpuBufferDescriptor) -> u32;
|
||||
|
||||
@ -104,7 +104,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "usage")]
|
||||
pub fn set_usage(this: &GpuBufferDescriptor, val: u32);
|
||||
}
|
||||
@ -115,7 +115,7 @@ impl GpuBufferDescriptor {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new(size: f64, usage: u32) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
@ -29,7 +29,7 @@ use wasm_bindgen::prelude::*;
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBufferMapState`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum GpuBufferMapState {
|
||||
Unmapped = "unmapped",
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
@ -29,7 +29,7 @@ use wasm_bindgen::prelude::*;
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCanvasAlphaMode`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum GpuCanvasAlphaMode {
|
||||
Opaque = "opaque",
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuCanvasConfiguration;
|
||||
|
||||
#[doc = "Get the `alphaMode` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "alphaMode")]
|
||||
pub fn get_alpha_mode(this: &GpuCanvasConfiguration) -> Option<GpuCanvasAlphaMode>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "alphaMode")]
|
||||
pub fn set_alpha_mode(this: &GpuCanvasConfiguration, val: GpuCanvasAlphaMode);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "device")]
|
||||
pub fn get_device(this: &GpuCanvasConfiguration) -> GpuDevice;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "device")]
|
||||
pub fn set_device(this: &GpuCanvasConfiguration, val: &GpuDevice);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "format")]
|
||||
pub fn get_format(this: &GpuCanvasConfiguration) -> GpuTextureFormat;
|
||||
|
||||
@ -86,7 +86,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "format")]
|
||||
pub fn set_format(this: &GpuCanvasConfiguration, val: GpuTextureFormat);
|
||||
|
||||
@ -95,7 +95,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "toneMapping")]
|
||||
pub fn get_tone_mapping(this: &GpuCanvasConfiguration) -> Option<GpuCanvasToneMapping>;
|
||||
|
||||
@ -104,7 +104,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "toneMapping")]
|
||||
pub fn set_tone_mapping(this: &GpuCanvasConfiguration, val: &GpuCanvasToneMapping);
|
||||
|
||||
@ -113,7 +113,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "usage")]
|
||||
pub fn get_usage(this: &GpuCanvasConfiguration) -> Option<u32>;
|
||||
|
||||
@ -122,7 +122,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "usage")]
|
||||
pub fn set_usage(this: &GpuCanvasConfiguration, val: u32);
|
||||
|
||||
@ -131,7 +131,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "viewFormats")]
|
||||
pub fn get_view_formats(this: &GpuCanvasConfiguration) -> Option<::js_sys::Array>;
|
||||
|
||||
@ -140,7 +140,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "viewFormats")]
|
||||
pub fn set_view_formats(this: &GpuCanvasConfiguration, val: &::wasm_bindgen::JsValue);
|
||||
}
|
||||
@ -151,7 +151,7 @@ impl GpuCanvasConfiguration {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCanvasConfiguration`, `GpuDevice`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new(device: &GpuDevice, format: GpuTextureFormat) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,7 +35,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuCanvasContext;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUCanvasContext" , js_name = canvas)]
|
||||
@ -46,7 +46,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn canvas(this: &GpuCanvasContext) -> ::js_sys::Object;
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , js_class = "GPUCanvasContext" , js_name = configure)]
|
||||
@ -57,7 +57,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn configure(
|
||||
this: &GpuCanvasContext,
|
||||
configuration: &GpuCanvasConfiguration,
|
||||
@ -71,7 +71,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn get_configuration(this: &GpuCanvasContext) -> Option<GpuCanvasConfiguration>;
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , js_class = "GPUCanvasContext" , js_name = getCurrentTexture)]
|
||||
@ -82,7 +82,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCanvasContext`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn get_current_texture(this: &GpuCanvasContext) -> Result<GpuTexture, JsValue>;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUCanvasContext" , js_name = unconfigure)]
|
||||
@ -93,6 +93,6 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn unconfigure(this: &GpuCanvasContext);
|
||||
}
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuCanvasToneMapping;
|
||||
|
||||
#[doc = "Get the `mode` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "mode")]
|
||||
pub fn get_mode(this: &GpuCanvasToneMapping) -> Option<GpuCanvasToneMappingMode>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "mode")]
|
||||
pub fn set_mode(this: &GpuCanvasToneMapping, val: GpuCanvasToneMappingMode);
|
||||
}
|
||||
@ -61,7 +61,7 @@ impl GpuCanvasToneMapping {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new() -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
@ -29,7 +29,7 @@ use wasm_bindgen::prelude::*;
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum GpuCanvasToneMappingMode {
|
||||
Standard = "standard",
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuColorDict;
|
||||
|
||||
#[doc = "Get the `a` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "a")]
|
||||
pub fn get_a(this: &GpuColorDict) -> f64;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "a")]
|
||||
pub fn set_a(this: &GpuColorDict, val: f64);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "b")]
|
||||
pub fn get_b(this: &GpuColorDict) -> f64;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "b")]
|
||||
pub fn set_b(this: &GpuColorDict, val: f64);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "g")]
|
||||
pub fn get_g(this: &GpuColorDict) -> f64;
|
||||
|
||||
@ -86,7 +86,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "g")]
|
||||
pub fn set_g(this: &GpuColorDict, val: f64);
|
||||
|
||||
@ -95,7 +95,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "r")]
|
||||
pub fn get_r(this: &GpuColorDict) -> f64;
|
||||
|
||||
@ -104,7 +104,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "r")]
|
||||
pub fn set_r(this: &GpuColorDict, val: f64);
|
||||
}
|
||||
@ -115,7 +115,7 @@ impl GpuColorDict {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
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());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuColorTargetState;
|
||||
|
||||
#[doc = "Get the `blend` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "blend")]
|
||||
pub fn get_blend(this: &GpuColorTargetState) -> Option<GpuBlendState>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "blend")]
|
||||
pub fn set_blend(this: &GpuColorTargetState, val: &GpuBlendState);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "format")]
|
||||
pub fn get_format(this: &GpuColorTargetState) -> GpuTextureFormat;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "format")]
|
||||
pub fn set_format(this: &GpuColorTargetState, val: GpuTextureFormat);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "writeMask")]
|
||||
pub fn get_write_mask(this: &GpuColorTargetState) -> Option<u32>;
|
||||
|
||||
@ -86,7 +86,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "writeMask")]
|
||||
pub fn set_write_mask(this: &GpuColorTargetState, val: u32);
|
||||
}
|
||||
@ -97,7 +97,7 @@ impl GpuColorTargetState {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new(format: GpuTextureFormat) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,7 +35,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandBuffer`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuCommandBuffer;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUCommandBuffer" , js_name = label)]
|
||||
@ -46,7 +46,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandBuffer`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuCommandBuffer) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPUCommandBuffer" , js_name = label)]
|
||||
@ -57,6 +57,6 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandBuffer`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_label(this: &GpuCommandBuffer, value: &str);
|
||||
}
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuCommandBufferDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuCommandBufferDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuCommandBufferDescriptor, val: &str);
|
||||
}
|
||||
@ -61,7 +61,7 @@ impl GpuCommandBufferDescriptor {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new() -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,7 +35,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuCommandEncoder;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUCommandEncoder" , js_name = label)]
|
||||
@ -46,7 +46,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuCommandEncoder) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPUCommandEncoder" , js_name = label)]
|
||||
@ -57,7 +57,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_label(this: &GpuCommandEncoder, value: &str);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = beginComputePass)]
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn begin_compute_pass(this: &GpuCommandEncoder) -> GpuComputePassEncoder;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = beginComputePass)]
|
||||
@ -79,7 +79,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuComputePassDescriptor`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn begin_compute_pass_with_descriptor(
|
||||
this: &GpuCommandEncoder,
|
||||
descriptor: &GpuComputePassDescriptor,
|
||||
@ -93,7 +93,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuRenderPassDescriptor`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn begin_render_pass(
|
||||
this: &GpuCommandEncoder,
|
||||
descriptor: &GpuRenderPassDescriptor,
|
||||
@ -107,7 +107,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn clear_buffer(this: &GpuCommandEncoder, buffer: &GpuBuffer);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = clearBuffer)]
|
||||
@ -118,7 +118,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn clear_buffer_with_u32(this: &GpuCommandEncoder, buffer: &GpuBuffer, offset: u32);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = clearBuffer)]
|
||||
@ -129,7 +129,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn clear_buffer_with_f64(this: &GpuCommandEncoder, buffer: &GpuBuffer, offset: f64);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = clearBuffer)]
|
||||
@ -140,7 +140,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn clear_buffer_with_u32_and_u32(
|
||||
this: &GpuCommandEncoder,
|
||||
buffer: &GpuBuffer,
|
||||
@ -156,7 +156,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn clear_buffer_with_f64_and_u32(
|
||||
this: &GpuCommandEncoder,
|
||||
buffer: &GpuBuffer,
|
||||
@ -172,7 +172,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn clear_buffer_with_u32_and_f64(
|
||||
this: &GpuCommandEncoder,
|
||||
buffer: &GpuBuffer,
|
||||
@ -188,7 +188,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn clear_buffer_with_f64_and_f64(
|
||||
this: &GpuCommandEncoder,
|
||||
buffer: &GpuBuffer,
|
||||
@ -204,7 +204,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_buffer_to_buffer_with_u32_and_u32(
|
||||
this: &GpuCommandEncoder,
|
||||
source: &GpuBuffer,
|
||||
@ -221,7 +221,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_buffer_to_buffer_with_f64_and_u32(
|
||||
this: &GpuCommandEncoder,
|
||||
source: &GpuBuffer,
|
||||
@ -238,7 +238,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_buffer_to_buffer_with_u32_and_f64(
|
||||
this: &GpuCommandEncoder,
|
||||
source: &GpuBuffer,
|
||||
@ -255,7 +255,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_buffer_to_buffer_with_f64_and_f64(
|
||||
this: &GpuCommandEncoder,
|
||||
source: &GpuBuffer,
|
||||
@ -272,7 +272,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_buffer_to_buffer_with_u32_and_u32_and_u32(
|
||||
this: &GpuCommandEncoder,
|
||||
source: &GpuBuffer,
|
||||
@ -290,7 +290,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_buffer_to_buffer_with_f64_and_u32_and_u32(
|
||||
this: &GpuCommandEncoder,
|
||||
source: &GpuBuffer,
|
||||
@ -308,7 +308,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_buffer_to_buffer_with_u32_and_f64_and_u32(
|
||||
this: &GpuCommandEncoder,
|
||||
source: &GpuBuffer,
|
||||
@ -326,7 +326,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_buffer_to_buffer_with_f64_and_f64_and_u32(
|
||||
this: &GpuCommandEncoder,
|
||||
source: &GpuBuffer,
|
||||
@ -344,7 +344,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_buffer_to_buffer_with_u32_and_u32_and_f64(
|
||||
this: &GpuCommandEncoder,
|
||||
source: &GpuBuffer,
|
||||
@ -362,7 +362,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_buffer_to_buffer_with_f64_and_u32_and_f64(
|
||||
this: &GpuCommandEncoder,
|
||||
source: &GpuBuffer,
|
||||
@ -380,7 +380,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_buffer_to_buffer_with_u32_and_f64_and_f64(
|
||||
this: &GpuCommandEncoder,
|
||||
source: &GpuBuffer,
|
||||
@ -398,7 +398,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_buffer_to_buffer_with_f64_and_f64_and_f64(
|
||||
this: &GpuCommandEncoder,
|
||||
source: &GpuBuffer,
|
||||
@ -416,7 +416,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_buffer_to_texture_with_u32_sequence(
|
||||
this: &GpuCommandEncoder,
|
||||
source: &GpuTexelCopyBufferInfo,
|
||||
@ -432,7 +432,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_buffer_to_texture_with_gpu_extent_3d_dict(
|
||||
this: &GpuCommandEncoder,
|
||||
source: &GpuTexelCopyBufferInfo,
|
||||
@ -448,7 +448,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_texture_to_buffer_with_u32_sequence(
|
||||
this: &GpuCommandEncoder,
|
||||
source: &GpuTexelCopyTextureInfo,
|
||||
@ -464,7 +464,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_texture_to_buffer_with_gpu_extent_3d_dict(
|
||||
this: &GpuCommandEncoder,
|
||||
source: &GpuTexelCopyTextureInfo,
|
||||
@ -480,7 +480,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_texture_to_texture_with_u32_sequence(
|
||||
this: &GpuCommandEncoder,
|
||||
source: &GpuTexelCopyTextureInfo,
|
||||
@ -496,7 +496,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_texture_to_texture_with_gpu_extent_3d_dict(
|
||||
this: &GpuCommandEncoder,
|
||||
source: &GpuTexelCopyTextureInfo,
|
||||
@ -512,7 +512,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandBuffer`, `GpuCommandEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn finish(this: &GpuCommandEncoder) -> GpuCommandBuffer;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = finish)]
|
||||
@ -523,7 +523,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandBuffer`, `GpuCommandBufferDescriptor`, `GpuCommandEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn finish_with_descriptor(
|
||||
this: &GpuCommandEncoder,
|
||||
descriptor: &GpuCommandBufferDescriptor,
|
||||
@ -537,7 +537,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn resolve_query_set_with_u32(
|
||||
this: &GpuCommandEncoder,
|
||||
query_set: &GpuQuerySet,
|
||||
@ -555,7 +555,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn resolve_query_set_with_f64(
|
||||
this: &GpuCommandEncoder,
|
||||
query_set: &GpuQuerySet,
|
||||
@ -573,7 +573,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn insert_debug_marker(this: &GpuCommandEncoder, marker_label: &str);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = popDebugGroup)]
|
||||
@ -584,7 +584,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn pop_debug_group(this: &GpuCommandEncoder);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = pushDebugGroup)]
|
||||
@ -595,6 +595,6 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn push_debug_group(this: &GpuCommandEncoder, group_label: &str);
|
||||
}
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuCommandEncoderDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuCommandEncoderDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuCommandEncoderDescriptor, val: &str);
|
||||
}
|
||||
@ -61,7 +61,7 @@ impl GpuCommandEncoderDescriptor {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new() -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
@ -29,7 +29,7 @@ use wasm_bindgen::prelude::*;
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCompareFunction`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum GpuCompareFunction {
|
||||
Never = "never",
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,7 +35,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCompilationInfo`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuCompilationInfo;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationInfo" , js_name = messages)]
|
||||
@ -46,6 +46,6 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCompilationInfo`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn messages(this: &GpuCompilationInfo) -> ::js_sys::Array;
|
||||
}
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,7 +35,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCompilationMessage`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuCompilationMessage;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationMessage" , js_name = message)]
|
||||
@ -46,7 +46,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCompilationMessage`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn message(this: &GpuCompilationMessage) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationMessage" , js_name = type)]
|
||||
@ -57,7 +57,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCompilationMessage`, `GpuCompilationMessageType`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn type_(this: &GpuCompilationMessage) -> GpuCompilationMessageType;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationMessage" , js_name = lineNum)]
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCompilationMessage`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn line_num(this: &GpuCompilationMessage) -> f64;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationMessage" , js_name = linePos)]
|
||||
@ -79,7 +79,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCompilationMessage`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn line_pos(this: &GpuCompilationMessage) -> f64;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationMessage" , js_name = offset)]
|
||||
@ -90,7 +90,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCompilationMessage`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn offset(this: &GpuCompilationMessage) -> f64;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationMessage" , js_name = length)]
|
||||
@ -101,6 +101,6 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCompilationMessage`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn length(this: &GpuCompilationMessage) -> f64;
|
||||
}
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
@ -29,7 +29,7 @@ use wasm_bindgen::prelude::*;
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCompilationMessageType`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum GpuCompilationMessageType {
|
||||
Error = "error",
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuComputePassDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuComputePassDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuComputePassDescriptor, val: &str);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "timestampWrites")]
|
||||
pub fn get_timestamp_writes(
|
||||
this: &GpuComputePassDescriptor,
|
||||
@ -70,7 +70,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "timestampWrites")]
|
||||
pub fn set_timestamp_writes(
|
||||
this: &GpuComputePassDescriptor,
|
||||
@ -84,7 +84,7 @@ impl GpuComputePassDescriptor {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new() -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,7 +35,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuComputePassEncoder;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUComputePassEncoder" , js_name = label)]
|
||||
@ -46,7 +46,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuComputePassEncoder) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPUComputePassEncoder" , js_name = label)]
|
||||
@ -57,7 +57,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_label(this: &GpuComputePassEncoder, value: &str);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatchWorkgroups)]
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn dispatch_workgroups(this: &GpuComputePassEncoder, workgroup_count_x: u32);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatchWorkgroups)]
|
||||
@ -79,7 +79,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn dispatch_workgroups_with_workgroup_count_y(
|
||||
this: &GpuComputePassEncoder,
|
||||
workgroup_count_x: u32,
|
||||
@ -94,7 +94,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn dispatch_workgroups_with_workgroup_count_y_and_workgroup_count_z(
|
||||
this: &GpuComputePassEncoder,
|
||||
workgroup_count_x: u32,
|
||||
@ -110,7 +110,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn dispatch_workgroups_indirect_with_u32(
|
||||
this: &GpuComputePassEncoder,
|
||||
indirect_buffer: &GpuBuffer,
|
||||
@ -125,7 +125,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn dispatch_workgroups_indirect_with_f64(
|
||||
this: &GpuComputePassEncoder,
|
||||
indirect_buffer: &GpuBuffer,
|
||||
@ -140,7 +140,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn end(this: &GpuComputePassEncoder);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = setPipeline)]
|
||||
@ -151,7 +151,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`, `GpuComputePipeline`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_pipeline(this: &GpuComputePassEncoder, pipeline: &GpuComputePipeline);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup)]
|
||||
@ -162,7 +162,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_bind_group(
|
||||
this: &GpuComputePassEncoder,
|
||||
index: u32,
|
||||
@ -177,7 +177,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_bind_group_with_u32_sequence(
|
||||
this: &GpuComputePassEncoder,
|
||||
index: u32,
|
||||
@ -193,7 +193,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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,
|
||||
@ -211,7 +211,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_bind_group_with_u32_array_and_u32_and_dynamic_offsets_data_length(
|
||||
this: &GpuComputePassEncoder,
|
||||
index: u32,
|
||||
@ -229,7 +229,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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,
|
||||
@ -247,7 +247,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_bind_group_with_u32_array_and_f64_and_dynamic_offsets_data_length(
|
||||
this: &GpuComputePassEncoder,
|
||||
index: u32,
|
||||
@ -265,7 +265,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn insert_debug_marker(this: &GpuComputePassEncoder, marker_label: &str);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = popDebugGroup)]
|
||||
@ -276,7 +276,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn pop_debug_group(this: &GpuComputePassEncoder);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = pushDebugGroup)]
|
||||
@ -287,6 +287,6 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn push_debug_group(this: &GpuComputePassEncoder, group_label: &str);
|
||||
}
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuComputePassTimestampWrites;
|
||||
|
||||
#[doc = "Get the `beginningOfPassWriteIndex` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "beginningOfPassWriteIndex")]
|
||||
pub fn get_beginning_of_pass_write_index(this: &GpuComputePassTimestampWrites) -> Option<u32>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "beginningOfPassWriteIndex")]
|
||||
pub fn set_beginning_of_pass_write_index(this: &GpuComputePassTimestampWrites, val: u32);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "endOfPassWriteIndex")]
|
||||
pub fn get_end_of_pass_write_index(this: &GpuComputePassTimestampWrites) -> Option<u32>;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "endOfPassWriteIndex")]
|
||||
pub fn set_end_of_pass_write_index(this: &GpuComputePassTimestampWrites, val: u32);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "querySet")]
|
||||
pub fn get_query_set(this: &GpuComputePassTimestampWrites) -> GpuQuerySet;
|
||||
|
||||
@ -86,7 +86,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "querySet")]
|
||||
pub fn set_query_set(this: &GpuComputePassTimestampWrites, val: &GpuQuerySet);
|
||||
}
|
||||
@ -97,7 +97,7 @@ impl GpuComputePassTimestampWrites {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new(query_set: &GpuQuerySet) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,7 +35,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePipeline`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuComputePipeline;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUComputePipeline" , js_name = label)]
|
||||
@ -46,7 +46,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePipeline`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuComputePipeline) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPUComputePipeline" , js_name = label)]
|
||||
@ -57,7 +57,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePipeline`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_label(this: &GpuComputePipeline, value: &str);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUComputePipeline" , js_name = getBindGroupLayout)]
|
||||
@ -68,6 +68,6 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayout`, `GpuComputePipeline`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn get_bind_group_layout(this: &GpuComputePipeline, index: u32) -> GpuBindGroupLayout;
|
||||
}
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuComputePipelineDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuComputePipelineDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuComputePipelineDescriptor, val: &str);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "layout")]
|
||||
pub fn get_layout(this: &GpuComputePipelineDescriptor) -> ::wasm_bindgen::JsValue;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "layout")]
|
||||
pub fn set_layout(this: &GpuComputePipelineDescriptor, val: &::wasm_bindgen::JsValue);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "compute")]
|
||||
pub fn get_compute(this: &GpuComputePipelineDescriptor) -> GpuProgrammableStage;
|
||||
|
||||
@ -86,7 +86,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "compute")]
|
||||
pub fn set_compute(this: &GpuComputePipelineDescriptor, val: &GpuProgrammableStage);
|
||||
}
|
||||
@ -97,7 +97,7 @@ impl GpuComputePipelineDescriptor {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
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());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuCopyExternalImageDestInfo;
|
||||
|
||||
#[doc = "Get the `aspect` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "aspect")]
|
||||
pub fn get_aspect(this: &GpuCopyExternalImageDestInfo) -> Option<GpuTextureAspect>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "aspect")]
|
||||
pub fn set_aspect(this: &GpuCopyExternalImageDestInfo, val: GpuTextureAspect);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "mipLevel")]
|
||||
pub fn get_mip_level(this: &GpuCopyExternalImageDestInfo) -> Option<u32>;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "mipLevel")]
|
||||
pub fn set_mip_level(this: &GpuCopyExternalImageDestInfo, val: u32);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "origin")]
|
||||
pub fn get_origin(this: &GpuCopyExternalImageDestInfo) -> ::wasm_bindgen::JsValue;
|
||||
|
||||
@ -86,7 +86,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "origin")]
|
||||
pub fn set_origin(this: &GpuCopyExternalImageDestInfo, val: &::wasm_bindgen::JsValue);
|
||||
|
||||
@ -95,7 +95,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "texture")]
|
||||
pub fn get_texture(this: &GpuCopyExternalImageDestInfo) -> GpuTexture;
|
||||
|
||||
@ -104,7 +104,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "texture")]
|
||||
pub fn set_texture(this: &GpuCopyExternalImageDestInfo, val: &GpuTexture);
|
||||
|
||||
@ -113,7 +113,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "premultipliedAlpha")]
|
||||
pub fn get_premultiplied_alpha(this: &GpuCopyExternalImageDestInfo) -> Option<bool>;
|
||||
|
||||
@ -122,7 +122,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "premultipliedAlpha")]
|
||||
pub fn set_premultiplied_alpha(this: &GpuCopyExternalImageDestInfo, val: bool);
|
||||
}
|
||||
@ -133,7 +133,7 @@ impl GpuCopyExternalImageDestInfo {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuCopyExternalImageSourceInfo;
|
||||
|
||||
#[doc = "Get the `flipY` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "flipY")]
|
||||
pub fn get_flip_y(this: &GpuCopyExternalImageSourceInfo) -> Option<bool>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "flipY")]
|
||||
pub fn set_flip_y(this: &GpuCopyExternalImageSourceInfo, val: bool);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "origin")]
|
||||
pub fn get_origin(this: &GpuCopyExternalImageSourceInfo) -> ::wasm_bindgen::JsValue;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "origin")]
|
||||
pub fn set_origin(this: &GpuCopyExternalImageSourceInfo, val: &::wasm_bindgen::JsValue);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "source")]
|
||||
pub fn get_source(this: &GpuCopyExternalImageSourceInfo) -> ::js_sys::Object;
|
||||
|
||||
@ -86,7 +86,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "source")]
|
||||
pub fn set_source(this: &GpuCopyExternalImageSourceInfo, val: &::js_sys::Object);
|
||||
}
|
||||
@ -97,7 +97,7 @@ impl GpuCopyExternalImageSourceInfo {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
@ -29,7 +29,7 @@ use wasm_bindgen::prelude::*;
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCullMode`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum GpuCullMode {
|
||||
None = "none",
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuDepthStencilState;
|
||||
|
||||
#[doc = "Get the `depthBias` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthBias")]
|
||||
pub fn get_depth_bias(this: &GpuDepthStencilState) -> Option<i32>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthBias")]
|
||||
pub fn set_depth_bias(this: &GpuDepthStencilState, val: i32);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthBiasClamp")]
|
||||
pub fn get_depth_bias_clamp(this: &GpuDepthStencilState) -> Option<f32>;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthBiasClamp")]
|
||||
pub fn set_depth_bias_clamp(this: &GpuDepthStencilState, val: f32);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthBiasSlopeScale")]
|
||||
pub fn get_depth_bias_slope_scale(this: &GpuDepthStencilState) -> Option<f32>;
|
||||
|
||||
@ -86,7 +86,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthBiasSlopeScale")]
|
||||
pub fn set_depth_bias_slope_scale(this: &GpuDepthStencilState, val: f32);
|
||||
|
||||
@ -95,7 +95,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthCompare")]
|
||||
pub fn get_depth_compare(this: &GpuDepthStencilState) -> Option<GpuCompareFunction>;
|
||||
|
||||
@ -104,7 +104,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthCompare")]
|
||||
pub fn set_depth_compare(this: &GpuDepthStencilState, val: GpuCompareFunction);
|
||||
|
||||
@ -113,7 +113,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthWriteEnabled")]
|
||||
pub fn get_depth_write_enabled(this: &GpuDepthStencilState) -> Option<bool>;
|
||||
|
||||
@ -122,7 +122,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthWriteEnabled")]
|
||||
pub fn set_depth_write_enabled(this: &GpuDepthStencilState, val: bool);
|
||||
|
||||
@ -131,7 +131,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "format")]
|
||||
pub fn get_format(this: &GpuDepthStencilState) -> GpuTextureFormat;
|
||||
|
||||
@ -140,7 +140,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "format")]
|
||||
pub fn set_format(this: &GpuDepthStencilState, val: GpuTextureFormat);
|
||||
|
||||
@ -149,7 +149,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "stencilBack")]
|
||||
pub fn get_stencil_back(this: &GpuDepthStencilState) -> Option<GpuStencilFaceState>;
|
||||
|
||||
@ -158,7 +158,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "stencilBack")]
|
||||
pub fn set_stencil_back(this: &GpuDepthStencilState, val: &GpuStencilFaceState);
|
||||
|
||||
@ -167,7 +167,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "stencilFront")]
|
||||
pub fn get_stencil_front(this: &GpuDepthStencilState) -> Option<GpuStencilFaceState>;
|
||||
|
||||
@ -176,7 +176,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "stencilFront")]
|
||||
pub fn set_stencil_front(this: &GpuDepthStencilState, val: &GpuStencilFaceState);
|
||||
|
||||
@ -185,7 +185,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "stencilReadMask")]
|
||||
pub fn get_stencil_read_mask(this: &GpuDepthStencilState) -> Option<u32>;
|
||||
|
||||
@ -194,7 +194,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "stencilReadMask")]
|
||||
pub fn set_stencil_read_mask(this: &GpuDepthStencilState, val: u32);
|
||||
|
||||
@ -203,7 +203,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "stencilWriteMask")]
|
||||
pub fn get_stencil_write_mask(this: &GpuDepthStencilState) -> Option<u32>;
|
||||
|
||||
@ -212,7 +212,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "stencilWriteMask")]
|
||||
pub fn set_stencil_write_mask(this: &GpuDepthStencilState, val: u32);
|
||||
}
|
||||
@ -223,7 +223,7 @@ impl GpuDepthStencilState {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new(format: GpuTextureFormat) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
64
wgpu/src/backend/webgpu/webgpu_sys/gen_GpuDevice.rs
generated
64
wgpu/src/backend/webgpu/webgpu_sys/gen_GpuDevice.rs
generated
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,7 +35,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuDevice;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = features)]
|
||||
@ -46,7 +46,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuSupportedFeatures`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn features(this: &GpuDevice) -> GpuSupportedFeatures;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = limits)]
|
||||
@ -57,7 +57,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuSupportedLimits`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn limits(this: &GpuDevice) -> GpuSupportedLimits;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = adapterInfo)]
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn adapter_info(this: &GpuDevice) -> GpuAdapterInfo;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = queue)]
|
||||
@ -79,7 +79,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn queue(this: &GpuDevice) -> GpuQueue;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = lost)]
|
||||
@ -90,7 +90,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn lost(this: &GpuDevice) -> ::js_sys::Promise;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = onuncapturederror)]
|
||||
@ -101,7 +101,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn onuncapturederror(this: &GpuDevice) -> Option<::js_sys::Function>;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPUDevice" , js_name = onuncapturederror)]
|
||||
@ -112,7 +112,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_onuncapturederror(this: &GpuDevice, value: Option<&::js_sys::Function>);
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = label)]
|
||||
@ -123,7 +123,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuDevice) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPUDevice" , js_name = label)]
|
||||
@ -134,7 +134,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_label(this: &GpuDevice, value: &str);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createBindGroup)]
|
||||
@ -145,7 +145,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuBindGroupDescriptor`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn create_bind_group(this: &GpuDevice, descriptor: &GpuBindGroupDescriptor)
|
||||
-> GpuBindGroup;
|
||||
|
||||
@ -157,7 +157,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayout`, `GpuBindGroupLayoutDescriptor`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn create_bind_group_layout(
|
||||
this: &GpuDevice,
|
||||
descriptor: &GpuBindGroupLayoutDescriptor,
|
||||
@ -171,7 +171,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuBufferDescriptor`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn create_buffer(
|
||||
this: &GpuDevice,
|
||||
descriptor: &GpuBufferDescriptor,
|
||||
@ -185,7 +185,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn create_command_encoder(this: &GpuDevice) -> GpuCommandEncoder;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createCommandEncoder)]
|
||||
@ -196,7 +196,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuCommandEncoderDescriptor`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn create_command_encoder_with_descriptor(
|
||||
this: &GpuDevice,
|
||||
descriptor: &GpuCommandEncoderDescriptor,
|
||||
@ -210,7 +210,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePipeline`, `GpuComputePipelineDescriptor`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn create_compute_pipeline(
|
||||
this: &GpuDevice,
|
||||
descriptor: &GpuComputePipelineDescriptor,
|
||||
@ -224,7 +224,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuComputePipelineDescriptor`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn create_compute_pipeline_async(
|
||||
this: &GpuDevice,
|
||||
descriptor: &GpuComputePipelineDescriptor,
|
||||
@ -238,7 +238,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuPipelineLayout`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn create_pipeline_layout(
|
||||
this: &GpuDevice,
|
||||
descriptor: &GpuPipelineLayoutDescriptor,
|
||||
@ -252,7 +252,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuQuerySet`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn create_query_set(
|
||||
this: &GpuDevice,
|
||||
descriptor: &GpuQuerySetDescriptor,
|
||||
@ -266,7 +266,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuRenderBundleEncoder`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn create_render_bundle_encoder(
|
||||
this: &GpuDevice,
|
||||
descriptor: &GpuRenderBundleEncoderDescriptor,
|
||||
@ -280,7 +280,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuRenderPipeline`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn create_render_pipeline(
|
||||
this: &GpuDevice,
|
||||
descriptor: &GpuRenderPipelineDescriptor,
|
||||
@ -294,7 +294,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn create_render_pipeline_async(
|
||||
this: &GpuDevice,
|
||||
descriptor: &GpuRenderPipelineDescriptor,
|
||||
@ -308,7 +308,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuSampler`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn create_sampler(this: &GpuDevice) -> GpuSampler;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createSampler)]
|
||||
@ -319,7 +319,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuSampler`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn create_sampler_with_descriptor(
|
||||
this: &GpuDevice,
|
||||
descriptor: &GpuSamplerDescriptor,
|
||||
@ -333,7 +333,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuShaderModule`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn create_shader_module(
|
||||
this: &GpuDevice,
|
||||
descriptor: &GpuShaderModuleDescriptor,
|
||||
@ -347,7 +347,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuTexture`, `GpuTextureDescriptor`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn create_texture(
|
||||
this: &GpuDevice,
|
||||
descriptor: &GpuTextureDescriptor,
|
||||
@ -361,7 +361,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn destroy(this: &GpuDevice);
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , js_class = "GPUDevice" , js_name = importExternalTexture)]
|
||||
@ -372,7 +372,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuExternalTexture`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn import_external_texture(
|
||||
this: &GpuDevice,
|
||||
descriptor: &GpuExternalTextureDescriptor,
|
||||
@ -386,7 +386,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn pop_error_scope(this: &GpuDevice) -> ::js_sys::Promise;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = pushErrorScope)]
|
||||
@ -397,6 +397,6 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuErrorFilter`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn push_error_scope(this: &GpuDevice, filter: GpuErrorFilter);
|
||||
}
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuDeviceDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuDeviceDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuDeviceDescriptor, val: &str);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "defaultQueue")]
|
||||
pub fn get_default_queue(this: &GpuDeviceDescriptor) -> Option<GpuQueueDescriptor>;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "defaultQueue")]
|
||||
pub fn set_default_queue(this: &GpuDeviceDescriptor, val: &GpuQueueDescriptor);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "requiredFeatures")]
|
||||
pub fn get_required_features(this: &GpuDeviceDescriptor) -> Option<::js_sys::Array>;
|
||||
|
||||
@ -86,7 +86,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "requiredFeatures")]
|
||||
pub fn set_required_features(this: &GpuDeviceDescriptor, val: &::wasm_bindgen::JsValue);
|
||||
|
||||
@ -95,7 +95,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "requiredLimits")]
|
||||
pub fn get_required_limits(this: &GpuDeviceDescriptor) -> Option<::js_sys::Object>;
|
||||
|
||||
@ -104,7 +104,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "requiredLimits")]
|
||||
pub fn set_required_limits(this: &GpuDeviceDescriptor, val: &::js_sys::Object);
|
||||
}
|
||||
@ -115,7 +115,7 @@ impl GpuDeviceDescriptor {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new() -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,7 +35,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDeviceLostInfo`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuDeviceLostInfo;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUDeviceLostInfo" , js_name = reason)]
|
||||
@ -46,7 +46,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDeviceLostInfo`, `GpuDeviceLostReason`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn reason(this: &GpuDeviceLostInfo) -> GpuDeviceLostReason;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUDeviceLostInfo" , js_name = message)]
|
||||
@ -57,6 +57,6 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDeviceLostInfo`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn message(this: &GpuDeviceLostInfo) -> ::alloc::string::String;
|
||||
}
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
@ -29,7 +29,7 @@ use wasm_bindgen::prelude::*;
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuDeviceLostReason`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum GpuDeviceLostReason {
|
||||
Unknown = "unknown",
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,7 +35,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuError`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuError;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUError" , js_name = message)]
|
||||
@ -46,6 +46,6 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuError`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn message(this: &GpuError) -> ::alloc::string::String;
|
||||
}
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
@ -29,7 +29,7 @@ use wasm_bindgen::prelude::*;
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuErrorFilter`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum GpuErrorFilter {
|
||||
Validation = "validation",
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuExtent3dDict;
|
||||
|
||||
#[doc = "Get the `depthOrArrayLayers` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthOrArrayLayers")]
|
||||
pub fn get_depth_or_array_layers(this: &GpuExtent3dDict) -> Option<u32>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthOrArrayLayers")]
|
||||
pub fn set_depth_or_array_layers(this: &GpuExtent3dDict, val: u32);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "height")]
|
||||
pub fn get_height(this: &GpuExtent3dDict) -> Option<u32>;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "height")]
|
||||
pub fn set_height(this: &GpuExtent3dDict, val: u32);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "width")]
|
||||
pub fn get_width(this: &GpuExtent3dDict) -> u32;
|
||||
|
||||
@ -86,7 +86,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "width")]
|
||||
pub fn set_width(this: &GpuExtent3dDict, val: u32);
|
||||
}
|
||||
@ -97,7 +97,7 @@ impl GpuExtent3dDict {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new(width: u32) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,7 +35,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuExternalTexture`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuExternalTexture;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUExternalTexture" , js_name = label)]
|
||||
@ -46,7 +46,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuExternalTexture`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuExternalTexture) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPUExternalTexture" , js_name = label)]
|
||||
@ -57,6 +57,6 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuExternalTexture`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_label(this: &GpuExternalTexture, value: &str);
|
||||
}
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuExternalTextureBindingLayout;
|
||||
}
|
||||
|
||||
@ -43,7 +43,7 @@ impl GpuExternalTextureBindingLayout {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new() -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuExternalTextureDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuExternalTextureDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuExternalTextureDescriptor, val: &str);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "source")]
|
||||
pub fn get_source(this: &GpuExternalTextureDescriptor) -> ::js_sys::Object;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "source")]
|
||||
pub fn set_source(this: &GpuExternalTextureDescriptor, val: &::js_sys::Object);
|
||||
}
|
||||
@ -79,7 +79,7 @@ impl GpuExternalTextureDescriptor {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
@ -29,7 +29,7 @@ use wasm_bindgen::prelude::*;
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuFeatureName`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum GpuFeatureName {
|
||||
DepthClipControl = "depth-clip-control",
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
@ -29,7 +29,7 @@ use wasm_bindgen::prelude::*;
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuFilterMode`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum GpuFilterMode {
|
||||
Nearest = "nearest",
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuFragmentState;
|
||||
|
||||
#[doc = "Get the `constants` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "constants")]
|
||||
pub fn get_constants(this: &GpuFragmentState) -> Option<::js_sys::Object>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "constants")]
|
||||
pub fn set_constants(this: &GpuFragmentState, val: &::js_sys::Object);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "entryPoint")]
|
||||
pub fn get_entry_point(this: &GpuFragmentState) -> Option<::alloc::string::String>;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "entryPoint")]
|
||||
pub fn set_entry_point(this: &GpuFragmentState, val: &str);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "module")]
|
||||
pub fn get_module(this: &GpuFragmentState) -> GpuShaderModule;
|
||||
|
||||
@ -86,7 +86,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "module")]
|
||||
pub fn set_module(this: &GpuFragmentState, val: &GpuShaderModule);
|
||||
|
||||
@ -95,7 +95,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "targets")]
|
||||
pub fn get_targets(this: &GpuFragmentState) -> ::js_sys::Array;
|
||||
|
||||
@ -104,7 +104,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "targets")]
|
||||
pub fn set_targets(this: &GpuFragmentState, val: &::wasm_bindgen::JsValue);
|
||||
}
|
||||
@ -115,7 +115,7 @@ impl GpuFragmentState {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new(module: &GpuShaderModule, targets: &::wasm_bindgen::JsValue) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
@ -29,7 +29,7 @@ use wasm_bindgen::prelude::*;
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuFrontFace`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum GpuFrontFace {
|
||||
Ccw = "ccw",
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
@ -29,7 +29,7 @@ use wasm_bindgen::prelude::*;
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuIndexFormat`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum GpuIndexFormat {
|
||||
Uint16 = "uint16",
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
@ -29,7 +29,7 @@ use wasm_bindgen::prelude::*;
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuLoadOp`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum GpuLoadOp {
|
||||
Load = "load",
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
@ -29,7 +29,7 @@ use wasm_bindgen::prelude::*;
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuMipmapFilterMode`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum GpuMipmapFilterMode {
|
||||
Nearest = "nearest",
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuMultisampleState;
|
||||
|
||||
#[doc = "Get the `alphaToCoverageEnabled` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "alphaToCoverageEnabled")]
|
||||
pub fn get_alpha_to_coverage_enabled(this: &GpuMultisampleState) -> Option<bool>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "alphaToCoverageEnabled")]
|
||||
pub fn set_alpha_to_coverage_enabled(this: &GpuMultisampleState, val: bool);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "count")]
|
||||
pub fn get_count(this: &GpuMultisampleState) -> Option<u32>;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "count")]
|
||||
pub fn set_count(this: &GpuMultisampleState, val: u32);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "mask")]
|
||||
pub fn get_mask(this: &GpuMultisampleState) -> Option<u32>;
|
||||
|
||||
@ -86,7 +86,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "mask")]
|
||||
pub fn set_mask(this: &GpuMultisampleState, val: u32);
|
||||
}
|
||||
@ -97,7 +97,7 @@ impl GpuMultisampleState {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new() -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuObjectDescriptorBase;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuObjectDescriptorBase) -> Option<::alloc::string::String>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuObjectDescriptorBase, val: &str);
|
||||
}
|
||||
@ -61,7 +61,7 @@ impl GpuObjectDescriptorBase {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new() -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuOrigin2dDict;
|
||||
|
||||
#[doc = "Get the `x` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "x")]
|
||||
pub fn get_x(this: &GpuOrigin2dDict) -> Option<u32>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "x")]
|
||||
pub fn set_x(this: &GpuOrigin2dDict, val: u32);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "y")]
|
||||
pub fn get_y(this: &GpuOrigin2dDict) -> Option<u32>;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "y")]
|
||||
pub fn set_y(this: &GpuOrigin2dDict, val: u32);
|
||||
}
|
||||
@ -79,7 +79,7 @@ impl GpuOrigin2dDict {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new() -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuOrigin3dDict;
|
||||
|
||||
#[doc = "Get the `x` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "x")]
|
||||
pub fn get_x(this: &GpuOrigin3dDict) -> Option<u32>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "x")]
|
||||
pub fn set_x(this: &GpuOrigin3dDict, val: u32);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "y")]
|
||||
pub fn get_y(this: &GpuOrigin3dDict) -> Option<u32>;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "y")]
|
||||
pub fn set_y(this: &GpuOrigin3dDict, val: u32);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "z")]
|
||||
pub fn get_z(this: &GpuOrigin3dDict) -> Option<u32>;
|
||||
|
||||
@ -86,7 +86,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "z")]
|
||||
pub fn set_z(this: &GpuOrigin3dDict, val: u32);
|
||||
}
|
||||
@ -97,7 +97,7 @@ impl GpuOrigin3dDict {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new() -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,7 +35,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuOutOfMemoryError`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuOutOfMemoryError;
|
||||
|
||||
#[wasm_bindgen(catch, constructor, js_class = "GPUOutOfMemoryError")]
|
||||
@ -46,6 +46,6 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuOutOfMemoryError`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new(message: &str) -> Result<GpuOutOfMemoryError, JsValue>;
|
||||
}
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuPipelineDescriptorBase;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuPipelineDescriptorBase) -> Option<::alloc::string::String>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuPipelineDescriptorBase, val: &str);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "layout")]
|
||||
pub fn get_layout(this: &GpuPipelineDescriptorBase) -> ::wasm_bindgen::JsValue;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "layout")]
|
||||
pub fn set_layout(this: &GpuPipelineDescriptorBase, val: &::wasm_bindgen::JsValue);
|
||||
}
|
||||
@ -79,7 +79,7 @@ impl GpuPipelineDescriptorBase {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new(layout: &::wasm_bindgen::JsValue) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,7 +35,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuPipelineLayout`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuPipelineLayout;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUPipelineLayout" , js_name = label)]
|
||||
@ -46,7 +46,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuPipelineLayout`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuPipelineLayout) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPUPipelineLayout" , js_name = label)]
|
||||
@ -57,6 +57,6 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuPipelineLayout`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_label(this: &GpuPipelineLayout, value: &str);
|
||||
}
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuPipelineLayoutDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuPipelineLayoutDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuPipelineLayoutDescriptor, val: &str);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "bindGroupLayouts")]
|
||||
pub fn get_bind_group_layouts(this: &GpuPipelineLayoutDescriptor) -> ::js_sys::Array;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "bindGroupLayouts")]
|
||||
pub fn set_bind_group_layouts(
|
||||
this: &GpuPipelineLayoutDescriptor,
|
||||
@ -82,7 +82,7 @@ impl GpuPipelineLayoutDescriptor {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new(bind_group_layouts: &::wasm_bindgen::JsValue) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
@ -29,7 +29,7 @@ use wasm_bindgen::prelude::*;
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuPowerPreference`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum GpuPowerPreference {
|
||||
LowPower = "low-power",
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuPrimitiveState;
|
||||
|
||||
#[doc = "Get the `cullMode` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "cullMode")]
|
||||
pub fn get_cull_mode(this: &GpuPrimitiveState) -> Option<GpuCullMode>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "cullMode")]
|
||||
pub fn set_cull_mode(this: &GpuPrimitiveState, val: GpuCullMode);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "frontFace")]
|
||||
pub fn get_front_face(this: &GpuPrimitiveState) -> Option<GpuFrontFace>;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "frontFace")]
|
||||
pub fn set_front_face(this: &GpuPrimitiveState, val: GpuFrontFace);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "stripIndexFormat")]
|
||||
pub fn get_strip_index_format(this: &GpuPrimitiveState) -> Option<GpuIndexFormat>;
|
||||
|
||||
@ -86,7 +86,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "stripIndexFormat")]
|
||||
pub fn set_strip_index_format(this: &GpuPrimitiveState, val: GpuIndexFormat);
|
||||
|
||||
@ -95,7 +95,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "topology")]
|
||||
pub fn get_topology(this: &GpuPrimitiveState) -> Option<GpuPrimitiveTopology>;
|
||||
|
||||
@ -104,7 +104,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "topology")]
|
||||
pub fn set_topology(this: &GpuPrimitiveState, val: GpuPrimitiveTopology);
|
||||
|
||||
@ -113,7 +113,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "unclippedDepth")]
|
||||
pub fn get_unclipped_depth(this: &GpuPrimitiveState) -> Option<bool>;
|
||||
|
||||
@ -122,7 +122,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "unclippedDepth")]
|
||||
pub fn set_unclipped_depth(this: &GpuPrimitiveState, val: bool);
|
||||
}
|
||||
@ -133,7 +133,7 @@ impl GpuPrimitiveState {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new() -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
@ -29,7 +29,7 @@ use wasm_bindgen::prelude::*;
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum GpuPrimitiveTopology {
|
||||
PointList = "point-list",
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuProgrammableStage;
|
||||
|
||||
#[doc = "Get the `constants` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "constants")]
|
||||
pub fn get_constants(this: &GpuProgrammableStage) -> Option<::js_sys::Object>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "constants")]
|
||||
pub fn set_constants(this: &GpuProgrammableStage, val: &::js_sys::Object);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "entryPoint")]
|
||||
pub fn get_entry_point(this: &GpuProgrammableStage) -> Option<::alloc::string::String>;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "entryPoint")]
|
||||
pub fn set_entry_point(this: &GpuProgrammableStage, val: &str);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "module")]
|
||||
pub fn get_module(this: &GpuProgrammableStage) -> GpuShaderModule;
|
||||
|
||||
@ -86,7 +86,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "module")]
|
||||
pub fn set_module(this: &GpuProgrammableStage, val: &GpuShaderModule);
|
||||
}
|
||||
@ -97,7 +97,7 @@ impl GpuProgrammableStage {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new(module: &GpuShaderModule) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,7 +35,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuQuerySet;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUQuerySet" , js_name = type)]
|
||||
@ -46,7 +46,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn type_(this: &GpuQuerySet) -> GpuQueryType;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUQuerySet" , js_name = count)]
|
||||
@ -57,7 +57,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn count(this: &GpuQuerySet) -> u32;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUQuerySet" , js_name = label)]
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuQuerySet) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPUQuerySet" , js_name = label)]
|
||||
@ -79,7 +79,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_label(this: &GpuQuerySet, value: &str);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQuerySet" , js_name = destroy)]
|
||||
@ -90,6 +90,6 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn destroy(this: &GpuQuerySet);
|
||||
}
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuQuerySetDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuQuerySetDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuQuerySetDescriptor, val: &str);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "count")]
|
||||
pub fn get_count(this: &GpuQuerySetDescriptor) -> u32;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "count")]
|
||||
pub fn set_count(this: &GpuQuerySetDescriptor, val: u32);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "type")]
|
||||
pub fn get_type(this: &GpuQuerySetDescriptor) -> GpuQueryType;
|
||||
|
||||
@ -86,7 +86,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "type")]
|
||||
pub fn set_type(this: &GpuQuerySetDescriptor, val: GpuQueryType);
|
||||
}
|
||||
@ -97,7 +97,7 @@ impl GpuQuerySetDescriptor {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new(count: u32, type_: GpuQueryType) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
@ -29,7 +29,7 @@ use wasm_bindgen::prelude::*;
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum GpuQueryType {
|
||||
Occlusion = "occlusion",
|
||||
|
||||
114
wgpu/src/backend/webgpu/webgpu_sys/gen_GpuQueue.rs
generated
114
wgpu/src/backend/webgpu/webgpu_sys/gen_GpuQueue.rs
generated
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,7 +35,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuQueue;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUQueue" , js_name = label)]
|
||||
@ -46,7 +46,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuQueue) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPUQueue" , js_name = label)]
|
||||
@ -57,7 +57,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_label(this: &GpuQueue, value: &str);
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = copyExternalImageToTexture)]
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_external_image_to_texture_with_u32_sequence(
|
||||
this: &GpuQueue,
|
||||
source: &GpuCopyExternalImageSourceInfo,
|
||||
@ -84,7 +84,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_external_image_to_texture_with_gpu_extent_3d_dict(
|
||||
this: &GpuQueue,
|
||||
source: &GpuCopyExternalImageSourceInfo,
|
||||
@ -100,7 +100,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn on_submitted_work_done(this: &GpuQueue) -> ::js_sys::Promise;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = submit)]
|
||||
@ -111,7 +111,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn submit(this: &GpuQueue, command_buffers: &::wasm_bindgen::JsValue);
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
|
||||
@ -122,7 +122,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_u32_and_buffer_source(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -138,7 +138,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_f64_and_buffer_source(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -154,7 +154,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_u32_and_u8_slice(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -170,7 +170,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_f64_and_u8_slice(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -186,7 +186,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_u32_and_u8_array(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -202,7 +202,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_f64_and_u8_array(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -218,7 +218,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_u32_and_buffer_source_and_u32(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -235,7 +235,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_f64_and_buffer_source_and_u32(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -252,7 +252,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_u32_and_u8_slice_and_u32(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -269,7 +269,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_f64_and_u8_slice_and_u32(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -286,7 +286,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_u32_and_u8_array_and_u32(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -303,7 +303,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_f64_and_u8_array_and_u32(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -320,7 +320,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_u32_and_buffer_source_and_f64(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -337,7 +337,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_f64_and_buffer_source_and_f64(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -354,7 +354,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_u32_and_u8_slice_and_f64(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -371,7 +371,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_f64_and_u8_slice_and_f64(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -388,7 +388,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_u32_and_u8_array_and_f64(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -405,7 +405,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_f64_and_u8_array_and_f64(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -422,7 +422,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_u32_and_buffer_source_and_u32_and_u32(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -440,7 +440,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_f64_and_buffer_source_and_u32_and_u32(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -458,7 +458,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_u32_and_u8_slice_and_u32_and_u32(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -476,7 +476,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_f64_and_u8_slice_and_u32_and_u32(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -494,7 +494,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_u32_and_u8_array_and_u32_and_u32(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -512,7 +512,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_f64_and_u8_array_and_u32_and_u32(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -530,7 +530,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_u32_and_buffer_source_and_f64_and_u32(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -548,7 +548,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_f64_and_buffer_source_and_f64_and_u32(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -566,7 +566,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_u32_and_u8_slice_and_f64_and_u32(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -584,7 +584,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_f64_and_u8_slice_and_f64_and_u32(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -602,7 +602,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_u32_and_u8_array_and_f64_and_u32(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -620,7 +620,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_f64_and_u8_array_and_f64_and_u32(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -638,7 +638,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_u32_and_buffer_source_and_u32_and_f64(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -656,7 +656,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_f64_and_buffer_source_and_u32_and_f64(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -674,7 +674,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_u32_and_u8_slice_and_u32_and_f64(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -692,7 +692,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_f64_and_u8_slice_and_u32_and_f64(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -710,7 +710,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_u32_and_u8_array_and_u32_and_f64(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -728,7 +728,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_f64_and_u8_array_and_u32_and_f64(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -746,7 +746,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_u32_and_buffer_source_and_f64_and_f64(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -764,7 +764,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_f64_and_buffer_source_and_f64_and_f64(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -782,7 +782,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_u32_and_u8_slice_and_f64_and_f64(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -800,7 +800,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_f64_and_u8_slice_and_f64_and_f64(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -818,7 +818,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_u32_and_u8_array_and_f64_and_f64(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -836,7 +836,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_buffer_with_f64_and_u8_array_and_f64_and_f64(
|
||||
this: &GpuQueue,
|
||||
buffer: &GpuBuffer,
|
||||
@ -854,7 +854,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_texture_with_buffer_source_and_u32_sequence(
|
||||
this: &GpuQueue,
|
||||
destination: &GpuTexelCopyTextureInfo,
|
||||
@ -871,7 +871,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_texture_with_u8_slice_and_u32_sequence(
|
||||
this: &GpuQueue,
|
||||
destination: &GpuTexelCopyTextureInfo,
|
||||
@ -888,7 +888,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_texture_with_u8_array_and_u32_sequence(
|
||||
this: &GpuQueue,
|
||||
destination: &GpuTexelCopyTextureInfo,
|
||||
@ -905,7 +905,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_texture_with_buffer_source_and_gpu_extent_3d_dict(
|
||||
this: &GpuQueue,
|
||||
destination: &GpuTexelCopyTextureInfo,
|
||||
@ -922,7 +922,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_texture_with_u8_slice_and_gpu_extent_3d_dict(
|
||||
this: &GpuQueue,
|
||||
destination: &GpuTexelCopyTextureInfo,
|
||||
@ -939,7 +939,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn write_texture_with_u8_array_and_gpu_extent_3d_dict(
|
||||
this: &GpuQueue,
|
||||
destination: &GpuTexelCopyTextureInfo,
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuQueueDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuQueueDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuQueueDescriptor, val: &str);
|
||||
}
|
||||
@ -61,7 +61,7 @@ impl GpuQueueDescriptor {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new() -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,7 +35,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderBundle`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuRenderBundle;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPURenderBundle" , js_name = label)]
|
||||
@ -46,7 +46,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderBundle`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuRenderBundle) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPURenderBundle" , js_name = label)]
|
||||
@ -57,6 +57,6 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderBundle`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_label(this: &GpuRenderBundle, value: &str);
|
||||
}
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuRenderBundleDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuRenderBundleDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuRenderBundleDescriptor, val: &str);
|
||||
}
|
||||
@ -61,7 +61,7 @@ impl GpuRenderBundleDescriptor {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new() -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,7 +35,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuRenderBundleEncoder;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPURenderBundleEncoder" , js_name = label)]
|
||||
@ -46,7 +46,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuRenderBundleEncoder) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPURenderBundleEncoder" , js_name = label)]
|
||||
@ -57,7 +57,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_label(this: &GpuRenderBundleEncoder, value: &str);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = finish)]
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderBundle`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn finish(this: &GpuRenderBundleEncoder) -> GpuRenderBundle;
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = finish)]
|
||||
@ -79,7 +79,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderBundle`, `GpuRenderBundleDescriptor`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn finish_with_descriptor(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
descriptor: &GpuRenderBundleDescriptor,
|
||||
@ -93,7 +93,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_bind_group(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
index: u32,
|
||||
@ -108,7 +108,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_bind_group_with_u32_sequence(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
index: u32,
|
||||
@ -124,7 +124,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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,
|
||||
@ -142,7 +142,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_bind_group_with_u32_array_and_u32_and_dynamic_offsets_data_length(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
index: u32,
|
||||
@ -160,7 +160,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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,
|
||||
@ -178,7 +178,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_bind_group_with_u32_array_and_f64_and_dynamic_offsets_data_length(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
index: u32,
|
||||
@ -196,7 +196,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn insert_debug_marker(this: &GpuRenderBundleEncoder, marker_label: &str);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = popDebugGroup)]
|
||||
@ -207,7 +207,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn pop_debug_group(this: &GpuRenderBundleEncoder);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = pushDebugGroup)]
|
||||
@ -218,7 +218,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn push_debug_group(this: &GpuRenderBundleEncoder, group_label: &str);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = draw)]
|
||||
@ -229,7 +229,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn draw(this: &GpuRenderBundleEncoder, vertex_count: u32);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = draw)]
|
||||
@ -240,7 +240,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn draw_with_instance_count(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
vertex_count: u32,
|
||||
@ -255,7 +255,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn draw_with_instance_count_and_first_vertex(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
vertex_count: u32,
|
||||
@ -271,7 +271,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn draw_with_instance_count_and_first_vertex_and_first_instance(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
vertex_count: u32,
|
||||
@ -288,7 +288,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn draw_indexed(this: &GpuRenderBundleEncoder, index_count: u32);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndexed)]
|
||||
@ -299,7 +299,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn draw_indexed_with_instance_count(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
index_count: u32,
|
||||
@ -314,7 +314,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn draw_indexed_with_instance_count_and_first_index(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
index_count: u32,
|
||||
@ -330,7 +330,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn draw_indexed_with_instance_count_and_first_index_and_base_vertex(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
index_count: u32,
|
||||
@ -347,7 +347,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn draw_indexed_with_instance_count_and_first_index_and_base_vertex_and_first_instance(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
index_count: u32,
|
||||
@ -365,7 +365,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn draw_indexed_indirect_with_u32(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
indirect_buffer: &GpuBuffer,
|
||||
@ -380,7 +380,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn draw_indexed_indirect_with_f64(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
indirect_buffer: &GpuBuffer,
|
||||
@ -395,7 +395,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn draw_indirect_with_u32(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
indirect_buffer: &GpuBuffer,
|
||||
@ -410,7 +410,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn draw_indirect_with_f64(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
indirect_buffer: &GpuBuffer,
|
||||
@ -425,7 +425,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_index_buffer(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
buffer: &GpuBuffer,
|
||||
@ -440,7 +440,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_index_buffer_with_u32(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
buffer: &GpuBuffer,
|
||||
@ -456,7 +456,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_index_buffer_with_f64(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
buffer: &GpuBuffer,
|
||||
@ -472,7 +472,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_index_buffer_with_u32_and_u32(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
buffer: &GpuBuffer,
|
||||
@ -489,7 +489,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_index_buffer_with_f64_and_u32(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
buffer: &GpuBuffer,
|
||||
@ -506,7 +506,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_index_buffer_with_u32_and_f64(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
buffer: &GpuBuffer,
|
||||
@ -523,7 +523,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_index_buffer_with_f64_and_f64(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
buffer: &GpuBuffer,
|
||||
@ -540,7 +540,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`, `GpuRenderPipeline`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_pipeline(this: &GpuRenderBundleEncoder, pipeline: &GpuRenderPipeline);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer)]
|
||||
@ -551,7 +551,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_vertex_buffer(this: &GpuRenderBundleEncoder, slot: u32, buffer: Option<&GpuBuffer>);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer)]
|
||||
@ -562,7 +562,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_vertex_buffer_with_u32(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
slot: u32,
|
||||
@ -578,7 +578,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_vertex_buffer_with_f64(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
slot: u32,
|
||||
@ -594,7 +594,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_vertex_buffer_with_u32_and_u32(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
slot: u32,
|
||||
@ -611,7 +611,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_vertex_buffer_with_f64_and_u32(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
slot: u32,
|
||||
@ -628,7 +628,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_vertex_buffer_with_u32_and_f64(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
slot: u32,
|
||||
@ -645,7 +645,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_vertex_buffer_with_f64_and_f64(
|
||||
this: &GpuRenderBundleEncoder,
|
||||
slot: u32,
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuRenderBundleEncoderDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuRenderBundleEncoderDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuRenderBundleEncoderDescriptor, val: &str);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "colorFormats")]
|
||||
pub fn get_color_formats(this: &GpuRenderBundleEncoderDescriptor) -> ::js_sys::Array;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "colorFormats")]
|
||||
pub fn set_color_formats(
|
||||
this: &GpuRenderBundleEncoderDescriptor,
|
||||
@ -80,7 +80,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthStencilFormat")]
|
||||
pub fn get_depth_stencil_format(
|
||||
this: &GpuRenderBundleEncoderDescriptor,
|
||||
@ -91,7 +91,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthStencilFormat")]
|
||||
pub fn set_depth_stencil_format(this: &GpuRenderBundleEncoderDescriptor, val: GpuTextureFormat);
|
||||
|
||||
@ -100,7 +100,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "sampleCount")]
|
||||
pub fn get_sample_count(this: &GpuRenderBundleEncoderDescriptor) -> Option<u32>;
|
||||
|
||||
@ -109,7 +109,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "sampleCount")]
|
||||
pub fn set_sample_count(this: &GpuRenderBundleEncoderDescriptor, val: u32);
|
||||
|
||||
@ -118,7 +118,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthReadOnly")]
|
||||
pub fn get_depth_read_only(this: &GpuRenderBundleEncoderDescriptor) -> Option<bool>;
|
||||
|
||||
@ -127,7 +127,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthReadOnly")]
|
||||
pub fn set_depth_read_only(this: &GpuRenderBundleEncoderDescriptor, val: bool);
|
||||
|
||||
@ -136,7 +136,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "stencilReadOnly")]
|
||||
pub fn get_stencil_read_only(this: &GpuRenderBundleEncoderDescriptor) -> Option<bool>;
|
||||
|
||||
@ -145,7 +145,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "stencilReadOnly")]
|
||||
pub fn set_stencil_read_only(this: &GpuRenderBundleEncoderDescriptor, val: bool);
|
||||
}
|
||||
@ -156,7 +156,7 @@ impl GpuRenderBundleEncoderDescriptor {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
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());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuRenderPassColorAttachment;
|
||||
|
||||
#[doc = "Get the `clearValue` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "clearValue")]
|
||||
pub fn get_clear_value(this: &GpuRenderPassColorAttachment) -> ::wasm_bindgen::JsValue;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "clearValue")]
|
||||
pub fn set_clear_value(this: &GpuRenderPassColorAttachment, val: &::wasm_bindgen::JsValue);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthSlice")]
|
||||
pub fn get_depth_slice(this: &GpuRenderPassColorAttachment) -> Option<u32>;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthSlice")]
|
||||
pub fn set_depth_slice(this: &GpuRenderPassColorAttachment, val: u32);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "loadOp")]
|
||||
pub fn get_load_op(this: &GpuRenderPassColorAttachment) -> GpuLoadOp;
|
||||
|
||||
@ -86,7 +86,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "loadOp")]
|
||||
pub fn set_load_op(this: &GpuRenderPassColorAttachment, val: GpuLoadOp);
|
||||
|
||||
@ -95,7 +95,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "resolveTarget")]
|
||||
pub fn get_resolve_target(this: &GpuRenderPassColorAttachment) -> Option<GpuTextureView>;
|
||||
|
||||
@ -104,7 +104,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "resolveTarget")]
|
||||
pub fn set_resolve_target(this: &GpuRenderPassColorAttachment, val: &GpuTextureView);
|
||||
|
||||
@ -113,7 +113,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "storeOp")]
|
||||
pub fn get_store_op(this: &GpuRenderPassColorAttachment) -> GpuStoreOp;
|
||||
|
||||
@ -122,7 +122,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "storeOp")]
|
||||
pub fn set_store_op(this: &GpuRenderPassColorAttachment, val: GpuStoreOp);
|
||||
|
||||
@ -131,7 +131,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "view")]
|
||||
pub fn get_view(this: &GpuRenderPassColorAttachment) -> GpuTextureView;
|
||||
|
||||
@ -140,7 +140,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "view")]
|
||||
pub fn set_view(this: &GpuRenderPassColorAttachment, val: &GpuTextureView);
|
||||
}
|
||||
@ -151,7 +151,7 @@ impl GpuRenderPassColorAttachment {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuLoadOp`, `GpuRenderPassColorAttachment`, `GpuStoreOp`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
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());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuRenderPassDepthStencilAttachment;
|
||||
|
||||
#[doc = "Get the `depthClearValue` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthClearValue")]
|
||||
pub fn get_depth_clear_value(this: &GpuRenderPassDepthStencilAttachment) -> Option<f32>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthClearValue")]
|
||||
pub fn set_depth_clear_value(this: &GpuRenderPassDepthStencilAttachment, val: f32);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthLoadOp")]
|
||||
pub fn get_depth_load_op(this: &GpuRenderPassDepthStencilAttachment) -> Option<GpuLoadOp>;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthLoadOp")]
|
||||
pub fn set_depth_load_op(this: &GpuRenderPassDepthStencilAttachment, val: GpuLoadOp);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthReadOnly")]
|
||||
pub fn get_depth_read_only(this: &GpuRenderPassDepthStencilAttachment) -> Option<bool>;
|
||||
|
||||
@ -86,7 +86,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthReadOnly")]
|
||||
pub fn set_depth_read_only(this: &GpuRenderPassDepthStencilAttachment, val: bool);
|
||||
|
||||
@ -95,7 +95,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthStoreOp")]
|
||||
pub fn get_depth_store_op(this: &GpuRenderPassDepthStencilAttachment) -> Option<GpuStoreOp>;
|
||||
|
||||
@ -104,7 +104,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthStoreOp")]
|
||||
pub fn set_depth_store_op(this: &GpuRenderPassDepthStencilAttachment, val: GpuStoreOp);
|
||||
|
||||
@ -113,7 +113,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "stencilClearValue")]
|
||||
pub fn get_stencil_clear_value(this: &GpuRenderPassDepthStencilAttachment) -> Option<u32>;
|
||||
|
||||
@ -122,7 +122,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "stencilClearValue")]
|
||||
pub fn set_stencil_clear_value(this: &GpuRenderPassDepthStencilAttachment, val: u32);
|
||||
|
||||
@ -131,7 +131,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "stencilLoadOp")]
|
||||
pub fn get_stencil_load_op(this: &GpuRenderPassDepthStencilAttachment) -> Option<GpuLoadOp>;
|
||||
|
||||
@ -140,7 +140,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "stencilLoadOp")]
|
||||
pub fn set_stencil_load_op(this: &GpuRenderPassDepthStencilAttachment, val: GpuLoadOp);
|
||||
|
||||
@ -149,7 +149,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "stencilReadOnly")]
|
||||
pub fn get_stencil_read_only(this: &GpuRenderPassDepthStencilAttachment) -> Option<bool>;
|
||||
|
||||
@ -158,7 +158,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "stencilReadOnly")]
|
||||
pub fn set_stencil_read_only(this: &GpuRenderPassDepthStencilAttachment, val: bool);
|
||||
|
||||
@ -167,7 +167,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "stencilStoreOp")]
|
||||
pub fn get_stencil_store_op(this: &GpuRenderPassDepthStencilAttachment) -> Option<GpuStoreOp>;
|
||||
|
||||
@ -176,7 +176,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "stencilStoreOp")]
|
||||
pub fn set_stencil_store_op(this: &GpuRenderPassDepthStencilAttachment, val: GpuStoreOp);
|
||||
|
||||
@ -185,7 +185,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "view")]
|
||||
pub fn get_view(this: &GpuRenderPassDepthStencilAttachment) -> GpuTextureView;
|
||||
|
||||
@ -194,7 +194,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "view")]
|
||||
pub fn set_view(this: &GpuRenderPassDepthStencilAttachment, val: &GpuTextureView);
|
||||
}
|
||||
@ -205,7 +205,7 @@ impl GpuRenderPassDepthStencilAttachment {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new(view: &GpuTextureView) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuRenderPassDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuRenderPassDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuRenderPassDescriptor, val: &str);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "colorAttachments")]
|
||||
pub fn get_color_attachments(this: &GpuRenderPassDescriptor) -> ::js_sys::Array;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "colorAttachments")]
|
||||
pub fn set_color_attachments(this: &GpuRenderPassDescriptor, val: &::wasm_bindgen::JsValue);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthStencilAttachment")]
|
||||
pub fn get_depth_stencil_attachment(
|
||||
this: &GpuRenderPassDescriptor,
|
||||
@ -88,7 +88,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthStencilAttachment")]
|
||||
pub fn set_depth_stencil_attachment(
|
||||
this: &GpuRenderPassDescriptor,
|
||||
@ -100,7 +100,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "maxDrawCount")]
|
||||
pub fn get_max_draw_count(this: &GpuRenderPassDescriptor) -> Option<f64>;
|
||||
|
||||
@ -109,7 +109,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "maxDrawCount")]
|
||||
pub fn set_max_draw_count(this: &GpuRenderPassDescriptor, val: f64);
|
||||
|
||||
@ -118,7 +118,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "occlusionQuerySet")]
|
||||
pub fn get_occlusion_query_set(this: &GpuRenderPassDescriptor) -> Option<GpuQuerySet>;
|
||||
|
||||
@ -127,7 +127,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "occlusionQuerySet")]
|
||||
pub fn set_occlusion_query_set(this: &GpuRenderPassDescriptor, val: &GpuQuerySet);
|
||||
|
||||
@ -136,7 +136,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "timestampWrites")]
|
||||
pub fn get_timestamp_writes(
|
||||
this: &GpuRenderPassDescriptor,
|
||||
@ -147,7 +147,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "timestampWrites")]
|
||||
pub fn set_timestamp_writes(this: &GpuRenderPassDescriptor, val: &GpuRenderPassTimestampWrites);
|
||||
}
|
||||
@ -158,7 +158,7 @@ impl GpuRenderPassDescriptor {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
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());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,7 +35,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuRenderPassEncoder;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPURenderPassEncoder" , js_name = label)]
|
||||
@ -46,7 +46,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuRenderPassEncoder) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPURenderPassEncoder" , js_name = label)]
|
||||
@ -57,7 +57,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_label(this: &GpuRenderPassEncoder, value: &str);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = beginOcclusionQuery)]
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn begin_occlusion_query(this: &GpuRenderPassEncoder, query_index: u32);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = end)]
|
||||
@ -79,7 +79,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn end(this: &GpuRenderPassEncoder);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = endOcclusionQuery)]
|
||||
@ -90,7 +90,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn end_occlusion_query(this: &GpuRenderPassEncoder);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = executeBundles)]
|
||||
@ -101,7 +101,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn execute_bundles(this: &GpuRenderPassEncoder, bundles: &::wasm_bindgen::JsValue);
|
||||
|
||||
# [wasm_bindgen (catch , method , structural , js_class = "GPURenderPassEncoder" , js_name = setBlendConstant)]
|
||||
@ -112,7 +112,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_blend_constant_with_f64_sequence(
|
||||
this: &GpuRenderPassEncoder,
|
||||
color: &::wasm_bindgen::JsValue,
|
||||
@ -126,7 +126,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuColorDict`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_blend_constant_with_gpu_color_dict(
|
||||
this: &GpuRenderPassEncoder,
|
||||
color: &GpuColorDict,
|
||||
@ -140,7 +140,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_scissor_rect(this: &GpuRenderPassEncoder, x: u32, y: u32, width: u32, height: u32);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setStencilReference)]
|
||||
@ -151,7 +151,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_stencil_reference(this: &GpuRenderPassEncoder, reference: u32);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setViewport)]
|
||||
@ -162,7 +162,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_viewport(
|
||||
this: &GpuRenderPassEncoder,
|
||||
x: f32,
|
||||
@ -181,7 +181,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_bind_group(
|
||||
this: &GpuRenderPassEncoder,
|
||||
index: u32,
|
||||
@ -196,7 +196,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_bind_group_with_u32_sequence(
|
||||
this: &GpuRenderPassEncoder,
|
||||
index: u32,
|
||||
@ -212,7 +212,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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,
|
||||
@ -230,7 +230,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_bind_group_with_u32_array_and_u32_and_dynamic_offsets_data_length(
|
||||
this: &GpuRenderPassEncoder,
|
||||
index: u32,
|
||||
@ -248,7 +248,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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,
|
||||
@ -266,7 +266,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_bind_group_with_u32_array_and_f64_and_dynamic_offsets_data_length(
|
||||
this: &GpuRenderPassEncoder,
|
||||
index: u32,
|
||||
@ -284,7 +284,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn insert_debug_marker(this: &GpuRenderPassEncoder, marker_label: &str);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = popDebugGroup)]
|
||||
@ -295,7 +295,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn pop_debug_group(this: &GpuRenderPassEncoder);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = pushDebugGroup)]
|
||||
@ -306,7 +306,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn push_debug_group(this: &GpuRenderPassEncoder, group_label: &str);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = draw)]
|
||||
@ -317,7 +317,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn draw(this: &GpuRenderPassEncoder, vertex_count: u32);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = draw)]
|
||||
@ -328,7 +328,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn draw_with_instance_count(
|
||||
this: &GpuRenderPassEncoder,
|
||||
vertex_count: u32,
|
||||
@ -343,7 +343,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn draw_with_instance_count_and_first_vertex(
|
||||
this: &GpuRenderPassEncoder,
|
||||
vertex_count: u32,
|
||||
@ -359,7 +359,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn draw_with_instance_count_and_first_vertex_and_first_instance(
|
||||
this: &GpuRenderPassEncoder,
|
||||
vertex_count: u32,
|
||||
@ -376,7 +376,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn draw_indexed(this: &GpuRenderPassEncoder, index_count: u32);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexed)]
|
||||
@ -387,7 +387,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn draw_indexed_with_instance_count(
|
||||
this: &GpuRenderPassEncoder,
|
||||
index_count: u32,
|
||||
@ -402,7 +402,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn draw_indexed_with_instance_count_and_first_index(
|
||||
this: &GpuRenderPassEncoder,
|
||||
index_count: u32,
|
||||
@ -418,7 +418,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn draw_indexed_with_instance_count_and_first_index_and_base_vertex(
|
||||
this: &GpuRenderPassEncoder,
|
||||
index_count: u32,
|
||||
@ -435,7 +435,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn draw_indexed_with_instance_count_and_first_index_and_base_vertex_and_first_instance(
|
||||
this: &GpuRenderPassEncoder,
|
||||
index_count: u32,
|
||||
@ -453,7 +453,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn draw_indexed_indirect_with_u32(
|
||||
this: &GpuRenderPassEncoder,
|
||||
indirect_buffer: &GpuBuffer,
|
||||
@ -468,7 +468,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn draw_indexed_indirect_with_f64(
|
||||
this: &GpuRenderPassEncoder,
|
||||
indirect_buffer: &GpuBuffer,
|
||||
@ -483,7 +483,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn draw_indirect_with_u32(
|
||||
this: &GpuRenderPassEncoder,
|
||||
indirect_buffer: &GpuBuffer,
|
||||
@ -498,7 +498,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn draw_indirect_with_f64(
|
||||
this: &GpuRenderPassEncoder,
|
||||
indirect_buffer: &GpuBuffer,
|
||||
@ -513,7 +513,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_index_buffer(
|
||||
this: &GpuRenderPassEncoder,
|
||||
buffer: &GpuBuffer,
|
||||
@ -528,7 +528,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_index_buffer_with_u32(
|
||||
this: &GpuRenderPassEncoder,
|
||||
buffer: &GpuBuffer,
|
||||
@ -544,7 +544,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_index_buffer_with_f64(
|
||||
this: &GpuRenderPassEncoder,
|
||||
buffer: &GpuBuffer,
|
||||
@ -560,7 +560,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_index_buffer_with_u32_and_u32(
|
||||
this: &GpuRenderPassEncoder,
|
||||
buffer: &GpuBuffer,
|
||||
@ -577,7 +577,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_index_buffer_with_f64_and_u32(
|
||||
this: &GpuRenderPassEncoder,
|
||||
buffer: &GpuBuffer,
|
||||
@ -594,7 +594,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_index_buffer_with_u32_and_f64(
|
||||
this: &GpuRenderPassEncoder,
|
||||
buffer: &GpuBuffer,
|
||||
@ -611,7 +611,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_index_buffer_with_f64_and_f64(
|
||||
this: &GpuRenderPassEncoder,
|
||||
buffer: &GpuBuffer,
|
||||
@ -628,7 +628,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`, `GpuRenderPipeline`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_pipeline(this: &GpuRenderPassEncoder, pipeline: &GpuRenderPipeline);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)]
|
||||
@ -639,7 +639,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_vertex_buffer(this: &GpuRenderPassEncoder, slot: u32, buffer: Option<&GpuBuffer>);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)]
|
||||
@ -650,7 +650,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_vertex_buffer_with_u32(
|
||||
this: &GpuRenderPassEncoder,
|
||||
slot: u32,
|
||||
@ -666,7 +666,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_vertex_buffer_with_f64(
|
||||
this: &GpuRenderPassEncoder,
|
||||
slot: u32,
|
||||
@ -682,7 +682,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_vertex_buffer_with_u32_and_u32(
|
||||
this: &GpuRenderPassEncoder,
|
||||
slot: u32,
|
||||
@ -699,7 +699,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_vertex_buffer_with_f64_and_u32(
|
||||
this: &GpuRenderPassEncoder,
|
||||
slot: u32,
|
||||
@ -716,7 +716,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_vertex_buffer_with_u32_and_f64(
|
||||
this: &GpuRenderPassEncoder,
|
||||
slot: u32,
|
||||
@ -733,7 +733,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_vertex_buffer_with_f64_and_f64(
|
||||
this: &GpuRenderPassEncoder,
|
||||
slot: u32,
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuRenderPassTimestampWrites;
|
||||
|
||||
#[doc = "Get the `beginningOfPassWriteIndex` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "beginningOfPassWriteIndex")]
|
||||
pub fn get_beginning_of_pass_write_index(this: &GpuRenderPassTimestampWrites) -> Option<u32>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "beginningOfPassWriteIndex")]
|
||||
pub fn set_beginning_of_pass_write_index(this: &GpuRenderPassTimestampWrites, val: u32);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "endOfPassWriteIndex")]
|
||||
pub fn get_end_of_pass_write_index(this: &GpuRenderPassTimestampWrites) -> Option<u32>;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "endOfPassWriteIndex")]
|
||||
pub fn set_end_of_pass_write_index(this: &GpuRenderPassTimestampWrites, val: u32);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "querySet")]
|
||||
pub fn get_query_set(this: &GpuRenderPassTimestampWrites) -> GpuQuerySet;
|
||||
|
||||
@ -86,7 +86,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "querySet")]
|
||||
pub fn set_query_set(this: &GpuRenderPassTimestampWrites, val: &GpuQuerySet);
|
||||
}
|
||||
@ -97,7 +97,7 @@ impl GpuRenderPassTimestampWrites {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new(query_set: &GpuQuerySet) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,7 +35,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPipeline`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuRenderPipeline;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPURenderPipeline" , js_name = label)]
|
||||
@ -46,7 +46,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPipeline`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuRenderPipeline) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPURenderPipeline" , js_name = label)]
|
||||
@ -57,7 +57,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuRenderPipeline`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_label(this: &GpuRenderPipeline, value: &str);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPURenderPipeline" , js_name = getBindGroupLayout)]
|
||||
@ -68,6 +68,6 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayout`, `GpuRenderPipeline`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn get_bind_group_layout(this: &GpuRenderPipeline, index: u32) -> GpuBindGroupLayout;
|
||||
}
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuRenderPipelineDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuRenderPipelineDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuRenderPipelineDescriptor, val: &str);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "layout")]
|
||||
pub fn get_layout(this: &GpuRenderPipelineDescriptor) -> ::wasm_bindgen::JsValue;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "layout")]
|
||||
pub fn set_layout(this: &GpuRenderPipelineDescriptor, val: &::wasm_bindgen::JsValue);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthStencil")]
|
||||
pub fn get_depth_stencil(this: &GpuRenderPipelineDescriptor) -> Option<GpuDepthStencilState>;
|
||||
|
||||
@ -86,7 +86,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthStencil")]
|
||||
pub fn set_depth_stencil(this: &GpuRenderPipelineDescriptor, val: &GpuDepthStencilState);
|
||||
|
||||
@ -95,7 +95,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "fragment")]
|
||||
pub fn get_fragment(this: &GpuRenderPipelineDescriptor) -> Option<GpuFragmentState>;
|
||||
|
||||
@ -104,7 +104,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "fragment")]
|
||||
pub fn set_fragment(this: &GpuRenderPipelineDescriptor, val: &GpuFragmentState);
|
||||
|
||||
@ -113,7 +113,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "multisample")]
|
||||
pub fn get_multisample(this: &GpuRenderPipelineDescriptor) -> Option<GpuMultisampleState>;
|
||||
|
||||
@ -122,7 +122,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "multisample")]
|
||||
pub fn set_multisample(this: &GpuRenderPipelineDescriptor, val: &GpuMultisampleState);
|
||||
|
||||
@ -131,7 +131,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "primitive")]
|
||||
pub fn get_primitive(this: &GpuRenderPipelineDescriptor) -> Option<GpuPrimitiveState>;
|
||||
|
||||
@ -140,7 +140,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "primitive")]
|
||||
pub fn set_primitive(this: &GpuRenderPipelineDescriptor, val: &GpuPrimitiveState);
|
||||
|
||||
@ -149,7 +149,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "vertex")]
|
||||
pub fn get_vertex(this: &GpuRenderPipelineDescriptor) -> GpuVertexState;
|
||||
|
||||
@ -158,7 +158,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "vertex")]
|
||||
pub fn set_vertex(this: &GpuRenderPipelineDescriptor, val: &GpuVertexState);
|
||||
}
|
||||
@ -169,7 +169,7 @@ impl GpuRenderPipelineDescriptor {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
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());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuRequestAdapterOptions;
|
||||
|
||||
#[doc = "Get the `featureLevel` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "featureLevel")]
|
||||
pub fn get_feature_level(this: &GpuRequestAdapterOptions) -> Option<::alloc::string::String>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "featureLevel")]
|
||||
pub fn set_feature_level(this: &GpuRequestAdapterOptions, val: &str);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "forceFallbackAdapter")]
|
||||
pub fn get_force_fallback_adapter(this: &GpuRequestAdapterOptions) -> Option<bool>;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "forceFallbackAdapter")]
|
||||
pub fn set_force_fallback_adapter(this: &GpuRequestAdapterOptions, val: bool);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "powerPreference")]
|
||||
pub fn get_power_preference(this: &GpuRequestAdapterOptions) -> Option<GpuPowerPreference>;
|
||||
|
||||
@ -86,7 +86,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "powerPreference")]
|
||||
pub fn set_power_preference(this: &GpuRequestAdapterOptions, val: GpuPowerPreference);
|
||||
|
||||
@ -95,7 +95,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "xrCompatible")]
|
||||
pub fn get_xr_compatible(this: &GpuRequestAdapterOptions) -> Option<bool>;
|
||||
|
||||
@ -104,7 +104,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "xrCompatible")]
|
||||
pub fn set_xr_compatible(this: &GpuRequestAdapterOptions, val: bool);
|
||||
}
|
||||
@ -115,7 +115,7 @@ impl GpuRequestAdapterOptions {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new() -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
10
wgpu/src/backend/webgpu/webgpu_sys/gen_GpuSampler.rs
generated
10
wgpu/src/backend/webgpu/webgpu_sys/gen_GpuSampler.rs
generated
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,7 +35,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuSampler`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuSampler;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUSampler" , js_name = label)]
|
||||
@ -46,7 +46,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuSampler`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuSampler) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPUSampler" , js_name = label)]
|
||||
@ -57,6 +57,6 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuSampler`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_label(this: &GpuSampler, value: &str);
|
||||
}
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuSamplerBindingLayout;
|
||||
|
||||
#[doc = "Get the `type` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "type")]
|
||||
pub fn get_type(this: &GpuSamplerBindingLayout) -> Option<GpuSamplerBindingType>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "type")]
|
||||
pub fn set_type(this: &GpuSamplerBindingLayout, val: GpuSamplerBindingType);
|
||||
}
|
||||
@ -61,7 +61,7 @@ impl GpuSamplerBindingLayout {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new() -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
@ -29,7 +29,7 @@ use wasm_bindgen::prelude::*;
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum GpuSamplerBindingType {
|
||||
Filtering = "filtering",
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuSamplerDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuSamplerDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuSamplerDescriptor, val: &str);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "addressModeU")]
|
||||
pub fn get_address_mode_u(this: &GpuSamplerDescriptor) -> Option<GpuAddressMode>;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "addressModeU")]
|
||||
pub fn set_address_mode_u(this: &GpuSamplerDescriptor, val: GpuAddressMode);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "addressModeV")]
|
||||
pub fn get_address_mode_v(this: &GpuSamplerDescriptor) -> Option<GpuAddressMode>;
|
||||
|
||||
@ -86,7 +86,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "addressModeV")]
|
||||
pub fn set_address_mode_v(this: &GpuSamplerDescriptor, val: GpuAddressMode);
|
||||
|
||||
@ -95,7 +95,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "addressModeW")]
|
||||
pub fn get_address_mode_w(this: &GpuSamplerDescriptor) -> Option<GpuAddressMode>;
|
||||
|
||||
@ -104,7 +104,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "addressModeW")]
|
||||
pub fn set_address_mode_w(this: &GpuSamplerDescriptor, val: GpuAddressMode);
|
||||
|
||||
@ -113,7 +113,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "compare")]
|
||||
pub fn get_compare(this: &GpuSamplerDescriptor) -> Option<GpuCompareFunction>;
|
||||
|
||||
@ -122,7 +122,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "compare")]
|
||||
pub fn set_compare(this: &GpuSamplerDescriptor, val: GpuCompareFunction);
|
||||
|
||||
@ -131,7 +131,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "lodMaxClamp")]
|
||||
pub fn get_lod_max_clamp(this: &GpuSamplerDescriptor) -> Option<f32>;
|
||||
|
||||
@ -140,7 +140,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "lodMaxClamp")]
|
||||
pub fn set_lod_max_clamp(this: &GpuSamplerDescriptor, val: f32);
|
||||
|
||||
@ -149,7 +149,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "lodMinClamp")]
|
||||
pub fn get_lod_min_clamp(this: &GpuSamplerDescriptor) -> Option<f32>;
|
||||
|
||||
@ -158,7 +158,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "lodMinClamp")]
|
||||
pub fn set_lod_min_clamp(this: &GpuSamplerDescriptor, val: f32);
|
||||
|
||||
@ -167,7 +167,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "magFilter")]
|
||||
pub fn get_mag_filter(this: &GpuSamplerDescriptor) -> Option<GpuFilterMode>;
|
||||
|
||||
@ -176,7 +176,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "magFilter")]
|
||||
pub fn set_mag_filter(this: &GpuSamplerDescriptor, val: GpuFilterMode);
|
||||
|
||||
@ -185,7 +185,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "maxAnisotropy")]
|
||||
pub fn get_max_anisotropy(this: &GpuSamplerDescriptor) -> Option<u16>;
|
||||
|
||||
@ -194,7 +194,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "maxAnisotropy")]
|
||||
pub fn set_max_anisotropy(this: &GpuSamplerDescriptor, val: u16);
|
||||
|
||||
@ -203,7 +203,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "minFilter")]
|
||||
pub fn get_min_filter(this: &GpuSamplerDescriptor) -> Option<GpuFilterMode>;
|
||||
|
||||
@ -212,7 +212,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "minFilter")]
|
||||
pub fn set_min_filter(this: &GpuSamplerDescriptor, val: GpuFilterMode);
|
||||
|
||||
@ -221,7 +221,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "mipmapFilter")]
|
||||
pub fn get_mipmap_filter(this: &GpuSamplerDescriptor) -> Option<GpuMipmapFilterMode>;
|
||||
|
||||
@ -230,7 +230,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "mipmapFilter")]
|
||||
pub fn set_mipmap_filter(this: &GpuSamplerDescriptor, val: GpuMipmapFilterMode);
|
||||
}
|
||||
@ -241,7 +241,7 @@ impl GpuSamplerDescriptor {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new() -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -35,7 +35,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuShaderModule;
|
||||
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "GPUShaderModule" , js_name = label)]
|
||||
@ -46,7 +46,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn label(this: &GpuShaderModule) -> ::alloc::string::String;
|
||||
|
||||
# [wasm_bindgen (structural , method , setter , js_class = "GPUShaderModule" , js_name = label)]
|
||||
@ -57,7 +57,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn set_label(this: &GpuShaderModule, value: &str);
|
||||
|
||||
# [wasm_bindgen (method , structural , js_class = "GPUShaderModule" , js_name = getCompilationInfo)]
|
||||
@ -68,6 +68,6 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn get_compilation_info(this: &GpuShaderModule) -> ::js_sys::Promise;
|
||||
}
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuShaderModuleDescriptor;
|
||||
|
||||
#[doc = "Get the `label` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "label")]
|
||||
pub fn get_label(this: &GpuShaderModuleDescriptor) -> Option<::alloc::string::String>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "label")]
|
||||
pub fn set_label(this: &GpuShaderModuleDescriptor, val: &str);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "code")]
|
||||
pub fn get_code(this: &GpuShaderModuleDescriptor) -> ::alloc::string::String;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "code")]
|
||||
pub fn set_code(this: &GpuShaderModuleDescriptor, val: &str);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "compilationHints")]
|
||||
pub fn get_compilation_hints(this: &GpuShaderModuleDescriptor) -> Option<::js_sys::Array>;
|
||||
|
||||
@ -86,7 +86,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "compilationHints")]
|
||||
pub fn set_compilation_hints(this: &GpuShaderModuleDescriptor, val: &::wasm_bindgen::JsValue);
|
||||
}
|
||||
@ -97,7 +97,7 @@ impl GpuShaderModuleDescriptor {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new(code: &str) -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use super::*;
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type GpuStencilFaceState;
|
||||
|
||||
#[doc = "Get the `compare` field of this object."]
|
||||
@ -41,7 +41,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "compare")]
|
||||
pub fn get_compare(this: &GpuStencilFaceState) -> Option<GpuCompareFunction>;
|
||||
|
||||
@ -50,7 +50,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "compare")]
|
||||
pub fn set_compare(this: &GpuStencilFaceState, val: GpuCompareFunction);
|
||||
|
||||
@ -59,7 +59,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "depthFailOp")]
|
||||
pub fn get_depth_fail_op(this: &GpuStencilFaceState) -> Option<GpuStencilOperation>;
|
||||
|
||||
@ -68,7 +68,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "depthFailOp")]
|
||||
pub fn set_depth_fail_op(this: &GpuStencilFaceState, val: GpuStencilOperation);
|
||||
|
||||
@ -77,7 +77,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "failOp")]
|
||||
pub fn get_fail_op(this: &GpuStencilFaceState) -> Option<GpuStencilOperation>;
|
||||
|
||||
@ -86,7 +86,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "failOp")]
|
||||
pub fn set_fail_op(this: &GpuStencilFaceState, val: GpuStencilOperation);
|
||||
|
||||
@ -95,7 +95,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, getter = "passOp")]
|
||||
pub fn get_pass_op(this: &GpuStencilFaceState) -> Option<GpuStencilOperation>;
|
||||
|
||||
@ -104,7 +104,7 @@ extern "C" {
|
||||
#[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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[wasm_bindgen(method, setter = "passOp")]
|
||||
pub fn set_pass_op(this: &GpuStencilFaceState, val: GpuStencilOperation);
|
||||
}
|
||||
@ -115,7 +115,7 @@ impl GpuStencilFaceState {
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new() -> Self {
|
||||
#[allow(unused_mut)]
|
||||
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
@ -29,7 +29,7 @@ use wasm_bindgen::prelude::*;
|
||||
#[doc = "*This API requires the following crate features to be activated: `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)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum GpuStencilOperation {
|
||||
Keep = "keep",
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// 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.
|
||||
// If you want to improve the generated code, please submit a PR to the https://github.com/wasm-bindgen/wasm-bindgen repository.
|
||||
//
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version buf-to-buf-copy-size --git-url https://github.com/andyleiserson/wasm-bindgen.git` command.
|
||||
// This file was generated by the `cargo xtask vendor-web-sys --version f7e0467c4b4d88303eb79fba485320cfb4dfdd58` command.
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::all)]
|
||||
use wasm_bindgen::prelude::*;
|
||||
@ -29,7 +29,7 @@ use wasm_bindgen::prelude::*;
|
||||
#[doc = "*This API requires the following crate features to be activated: `GpuStorageTextureAccess`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum GpuStorageTextureAccess {
|
||||
WriteOnly = "write-only",
|
||||
|
||||
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