mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-02-16 08:53:20 +00:00
gate fns behind either serde
or replay
since Firefox needs those
This commit is contained in:
parent
b61be30e53
commit
69b44c6a32
@ -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,
|
||||
|
@ -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],
|
||||
|
@ -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,
|
||||
|
@ -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],
|
||||
|
Loading…
Reference in New Issue
Block a user