summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_GpuComputePassDescriptor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/web-sys/src/features/gen_GpuComputePassDescriptor.rs')
-rw-r--r--vendor/web-sys/src/features/gen_GpuComputePassDescriptor.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/vendor/web-sys/src/features/gen_GpuComputePassDescriptor.rs b/vendor/web-sys/src/features/gen_GpuComputePassDescriptor.rs
index 475c0acbf..18b414291 100644
--- a/vendor/web-sys/src/features/gen_GpuComputePassDescriptor.rs
+++ b/vendor/web-sys/src/features/gen_GpuComputePassDescriptor.rs
@@ -46,13 +46,14 @@ impl GpuComputePassDescriptor {
self
}
#[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "GpuComputePassTimestampWrites")]
#[doc = "Change the `timestampWrites` field of this object."]
#[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `GpuComputePassDescriptor`*"]
+ #[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)*"]
- pub fn timestamp_writes(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
+ pub fn timestamp_writes(&mut self, val: &GpuComputePassTimestampWrites) -> &mut Self {
use wasm_bindgen::JsValue;
let r = ::js_sys::Reflect::set(
self.as_ref(),