Skip to content

Commit

Permalink
resolve render/compute command is now behind replay feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Jun 29, 2024
1 parent 9437311 commit d10100d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions wgpu-core/src/command/compute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ impl Global {
}

#[doc(hidden)]
#[cfg(feature = "replay")]
pub fn compute_pass_end_with_unresolved_commands<A: HalApi>(
&self,
encoder_id: id::CommandEncoderId,
Expand Down
4 changes: 1 addition & 3 deletions wgpu-core/src/command/compute_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<A: HalApi>(
hub: &crate::hub::Hub<A>,
commands: &[ComputeCommand],
Expand Down
1 change: 1 addition & 0 deletions wgpu-core/src/command/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1496,6 +1496,7 @@ impl Global {
}

#[doc(hidden)]
#[cfg(feature = "replay")]
pub fn render_pass_end_with_unresolved_commands<A: HalApi>(
&self,
encoder_id: id::CommandEncoderId,
Expand Down
4 changes: 1 addition & 3 deletions wgpu-core/src/command/render_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<A: HalApi>(
hub: &crate::hub::Hub<A>,
commands: &[RenderCommand],
Expand Down

0 comments on commit d10100d

Please sign in to comment.