gate fns behind either serde or replay since Firefox needs those

This commit is contained in:
teoxoy 2024-07-02 12:29:26 +02:00 committed by Teodor Tanasoaia
parent b61be30e53
commit 69b44c6a32
4 changed files with 4 additions and 4 deletions

View File

@ -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<A: HalApi>(
&self,
encoder_id: id::CommandEncoderId,

View File

@ -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<A: HalApi>(
hub: &crate::hub::Hub<A>,
commands: &[ComputeCommand],

View File

@ -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<A: HalApi>(
&self,
encoder_id: id::CommandEncoderId,

View File

@ -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<A: HalApi>(
hub: &crate::hub::Hub<A>,
commands: &[RenderCommand],