From c3d105aff7cb42220a7bac54c7040ef0060481c0 Mon Sep 17 00:00:00 2001 From: teoxoy <28601907+teoxoy@users.noreply.github.com> Date: Tue, 2 Jul 2024 12:29:26 +0200 Subject: [PATCH] gate fns behind either `serde` or `replay` since Firefox needs those --- wgpu-core/src/command/compute.rs | 2 +- wgpu-core/src/command/compute_command.rs | 2 +- wgpu-core/src/command/render.rs | 2 +- wgpu-core/src/command/render_command.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wgpu-core/src/command/compute.rs b/wgpu-core/src/command/compute.rs index 28d2663f1dd..b1dae2b49c4 100644 --- a/wgpu-core/src/command/compute.rs +++ b/wgpu-core/src/command/compute.rs @@ -368,7 +368,7 @@ impl Global { } #[doc(hidden)] - #[cfg(feature = "replay")] + #[cfg(any(feature = "serde", feature = "replay"))] pub fn compute_pass_end_with_unresolved_commands( &self, encoder_id: id::CommandEncoderId, diff --git a/wgpu-core/src/command/compute_command.rs b/wgpu-core/src/command/compute_command.rs index 2e762de14a4..761827b85ac 100644 --- a/wgpu-core/src/command/compute_command.rs +++ b/wgpu-core/src/command/compute_command.rs @@ -70,7 +70,7 @@ pub enum ComputeCommand { impl ComputeCommand { /// Resolves all ids in a list of commands into the corresponding resource Arc. - #[cfg(feature = "replay")] + #[cfg(any(feature = "serde", feature = "replay"))] pub fn resolve_compute_command_ids( hub: &crate::hub::Hub, commands: &[ComputeCommand], diff --git a/wgpu-core/src/command/render.rs b/wgpu-core/src/command/render.rs index 7c6b8cca208..65f5acb40f8 100644 --- a/wgpu-core/src/command/render.rs +++ b/wgpu-core/src/command/render.rs @@ -1456,7 +1456,7 @@ impl Global { } #[doc(hidden)] - #[cfg(feature = "replay")] + #[cfg(any(feature = "serde", feature = "replay"))] pub fn render_pass_end_with_unresolved_commands( &self, encoder_id: id::CommandEncoderId, diff --git a/wgpu-core/src/command/render_command.rs b/wgpu-core/src/command/render_command.rs index 66b3a68eec1..9050039cb2d 100644 --- a/wgpu-core/src/command/render_command.rs +++ b/wgpu-core/src/command/render_command.rs @@ -125,7 +125,7 @@ pub enum RenderCommand { impl RenderCommand { /// Resolves all ids in a list of commands into the corresponding resource Arc. - #[cfg(feature = "replay")] + #[cfg(any(feature = "serde", feature = "replay"))] pub fn resolve_render_command_ids( hub: &crate::hub::Hub, commands: &[RenderCommand],