Skip to content

Commit

Permalink
gate fns behind either serde or replay since Firefox needs those
Browse files Browse the repository at this point in the history
  • Loading branch information
teoxoy committed Jul 2, 2024
1 parent b61be30 commit 69b44c6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion wgpu-core/src/command/compute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion wgpu-core/src/command/compute_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
2 changes: 1 addition & 1 deletion wgpu-core/src/command/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion wgpu-core/src/command/render_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 69b44c6

Please sign in to comment.