diff --git a/wgpu-core/src/command/compute.rs b/wgpu-core/src/command/compute.rs index 36b2413e683..7bc8d834c7d 100644 --- a/wgpu-core/src/command/compute.rs +++ b/wgpu-core/src/command/compute.rs @@ -405,6 +405,7 @@ impl Global { } #[doc(hidden)] + #[cfg(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 eb8ce9fa34e..4f4ff4d8fd7 100644 --- a/wgpu-core/src/command/compute_command.rs +++ b/wgpu-core/src/command/compute_command.rs @@ -72,9 +72,7 @@ pub enum ComputeCommand { impl ComputeCommand { /// Resolves all ids in a list of commands into the corresponding resource Arc. - // - // TODO: Once resolving is done on-the-fly during recording, this function should be only needed with the replay feature: - // #[cfg(feature = "replay")] + #[cfg(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 206602141d5..f3c0713d885 100644 --- a/wgpu-core/src/command/render.rs +++ b/wgpu-core/src/command/render.rs @@ -1496,6 +1496,7 @@ impl Global { } #[doc(hidden)] + #[cfg(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 3140b78e68c..7533f6ab22e 100644 --- a/wgpu-core/src/command/render_command.rs +++ b/wgpu-core/src/command/render_command.rs @@ -128,9 +128,7 @@ pub enum RenderCommand { impl RenderCommand { /// Resolves all ids in a list of commands into the corresponding resource Arc. - // - // TODO: Once resolving is done on-the-fly during recording, this function should be only needed with the replay feature: - // #[cfg(feature = "replay")] + #[cfg(feature = "replay")] pub fn resolve_render_command_ids( hub: &crate::hub::Hub, commands: &[RenderCommand],