Skip to content

Commit

Permalink
Separate out ComputeCommand id->arc resolve (a step towards no lifeti…
Browse files Browse the repository at this point in the history
…mes on `wgpu::ComputePass`) (#5432)

* move out compute command to separate module

* introduce ArcComputeCommand

* stateless tracker now returns reference to arc upon insertion

* add insert_merge_single to buffer tracker

* compute pass execution now works internally with an ArcComputeCommand

* compute pass execution now translates Command to ArcCommand ahead of time

* don't clone commands in compute pass execution

* remove doc hiding

* use option insert

* clippy fix

* fix private doc issue

* remove unnecessary copied over doc hide
  • Loading branch information
Wumpf committed Apr 23, 2024
1 parent b3c5a6f commit edf1a86
Show file tree
Hide file tree
Showing 7 changed files with 442 additions and 139 deletions.
2 changes: 1 addition & 1 deletion player/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ impl GlobalPlay for wgc::global::Global {
base,
timestamp_writes,
} => {
self.command_encoder_run_compute_pass_impl::<A>(
self.command_encoder_run_compute_pass_with_unresolved_commands::<A>(
encoder,
base.as_ref(),
timestamp_writes.as_ref(),
Expand Down

0 comments on commit edf1a86

Please sign in to comment.