diff options
Diffstat (limited to 'vendor/web-sys/src/features/gen_GpuComputePassEncoder.rs')
-rw-r--r-- | vendor/web-sys/src/features/gen_GpuComputePassEncoder.rs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/vendor/web-sys/src/features/gen_GpuComputePassEncoder.rs b/vendor/web-sys/src/features/gen_GpuComputePassEncoder.rs index 631411690..527442433 100644 --- a/vendor/web-sys/src/features/gen_GpuComputePassEncoder.rs +++ b/vendor/web-sys/src/features/gen_GpuComputePassEncoder.rs @@ -146,7 +146,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: &GpuComputePassEncoder, index: u32, bind_group: &GpuBindGroup); + pub fn set_bind_group( + this: &GpuComputePassEncoder, + index: u32, + bind_group: Option<&GpuBindGroup>, + ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup)] @@ -161,7 +165,7 @@ extern "C" { pub fn set_bind_group_with_u32_sequence( this: &GpuComputePassEncoder, index: u32, - bind_group: &GpuBindGroup, + bind_group: Option<&GpuBindGroup>, dynamic_offsets: &::wasm_bindgen::JsValue, ); #[cfg(web_sys_unstable_apis)] @@ -178,7 +182,7 @@ extern "C" { pub fn set_bind_group_with_u32_array_and_u32_and_dynamic_offsets_data_length( this: &GpuComputePassEncoder, index: u32, - bind_group: &GpuBindGroup, + bind_group: Option<&GpuBindGroup>, dynamic_offsets_data: &[u32], dynamic_offsets_data_start: u32, dynamic_offsets_data_length: u32, @@ -197,7 +201,7 @@ extern "C" { pub fn set_bind_group_with_u32_array_and_f64_and_dynamic_offsets_data_length( this: &GpuComputePassEncoder, index: u32, - bind_group: &GpuBindGroup, + bind_group: Option<&GpuBindGroup>, dynamic_offsets_data: &[u32], dynamic_offsets_data_start: f64, dynamic_offsets_data_length: u32, |