diff options
Diffstat (limited to 'vendor/web-sys/src/features/gen_GpuRenderBundleEncoder.rs')
-rw-r--r-- | vendor/web-sys/src/features/gen_GpuRenderBundleEncoder.rs | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/vendor/web-sys/src/features/gen_GpuRenderBundleEncoder.rs b/vendor/web-sys/src/features/gen_GpuRenderBundleEncoder.rs index 7c3728cc3..9aaecf3d4 100644 --- a/vendor/web-sys/src/features/gen_GpuRenderBundleEncoder.rs +++ b/vendor/web-sys/src/features/gen_GpuRenderBundleEncoder.rs @@ -76,7 +76,11 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn set_bind_group(this: &GpuRenderBundleEncoder, index: u32, bind_group: &GpuBindGroup); + pub fn set_bind_group( + this: &GpuRenderBundleEncoder, + index: u32, + bind_group: Option<&GpuBindGroup>, + ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setBindGroup)] @@ -91,7 +95,7 @@ extern "C" { pub fn set_bind_group_with_u32_sequence( this: &GpuRenderBundleEncoder, index: u32, - bind_group: &GpuBindGroup, + bind_group: Option<&GpuBindGroup>, dynamic_offsets: &::wasm_bindgen::JsValue, ); #[cfg(web_sys_unstable_apis)] @@ -108,7 +112,7 @@ extern "C" { pub fn set_bind_group_with_u32_array_and_u32_and_dynamic_offsets_data_length( this: &GpuRenderBundleEncoder, index: u32, - bind_group: &GpuBindGroup, + bind_group: Option<&GpuBindGroup>, dynamic_offsets_data: &[u32], dynamic_offsets_data_start: u32, dynamic_offsets_data_length: u32, @@ -127,7 +131,7 @@ extern "C" { pub fn set_bind_group_with_u32_array_and_f64_and_dynamic_offsets_data_length( this: &GpuRenderBundleEncoder, index: u32, - bind_group: &GpuBindGroup, + bind_group: Option<&GpuBindGroup>, dynamic_offsets_data: &[u32], dynamic_offsets_data_start: f64, dynamic_offsets_data_length: u32, @@ -510,7 +514,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn set_vertex_buffer(this: &GpuRenderBundleEncoder, slot: u32, buffer: &GpuBuffer); + pub fn set_vertex_buffer(this: &GpuRenderBundleEncoder, slot: u32, buffer: Option<&GpuBuffer>); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer)] @@ -525,7 +529,7 @@ extern "C" { pub fn set_vertex_buffer_with_u32( this: &GpuRenderBundleEncoder, slot: u32, - buffer: &GpuBuffer, + buffer: Option<&GpuBuffer>, offset: u32, ); #[cfg(web_sys_unstable_apis)] @@ -542,7 +546,7 @@ extern "C" { pub fn set_vertex_buffer_with_f64( this: &GpuRenderBundleEncoder, slot: u32, - buffer: &GpuBuffer, + buffer: Option<&GpuBuffer>, offset: f64, ); #[cfg(web_sys_unstable_apis)] @@ -559,7 +563,7 @@ extern "C" { pub fn set_vertex_buffer_with_u32_and_u32( this: &GpuRenderBundleEncoder, slot: u32, - buffer: &GpuBuffer, + buffer: Option<&GpuBuffer>, offset: u32, size: u32, ); @@ -577,7 +581,7 @@ extern "C" { pub fn set_vertex_buffer_with_f64_and_u32( this: &GpuRenderBundleEncoder, slot: u32, - buffer: &GpuBuffer, + buffer: Option<&GpuBuffer>, offset: f64, size: u32, ); @@ -595,7 +599,7 @@ extern "C" { pub fn set_vertex_buffer_with_u32_and_f64( this: &GpuRenderBundleEncoder, slot: u32, - buffer: &GpuBuffer, + buffer: Option<&GpuBuffer>, offset: u32, size: f64, ); @@ -613,7 +617,7 @@ extern "C" { pub fn set_vertex_buffer_with_f64_and_f64( this: &GpuRenderBundleEncoder, slot: u32, - buffer: &GpuBuffer, + buffer: Option<&GpuBuffer>, offset: f64, size: f64, ); |