Skip to content

Commit

Permalink
temp29 - document track/mod.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
cwfitzgerald committed May 17, 2022
1 parent 6519241 commit 0b8ce17
Show file tree
Hide file tree
Showing 5 changed files with 149 additions and 33 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 @@ -272,7 +272,7 @@ impl<A: HalApi> State<A> {

for id in self.binder.list_active() {
unsafe {
base_trackers.extend_from_bind_group(
base_trackers.change_states_from_bind_group(
texture_guard,
&mut self.scope,
&bind_group_guard[id].used,
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 @@ -1932,7 +1932,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
.map_pass_err(scope)?;
cmd_buf
.trackers
.extend_from_render_bundle(&bundle.used)
.change_state_from_render_bundle(&bundle.used)
.map_pass_err(scope)?;
};
state.reset_bundle();
Expand Down
4 changes: 0 additions & 4 deletions wgpu-core/src/track/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ impl ResourceUses for BufferUses {
fn any_exclusive(self) -> bool {
self.intersects(Self::EXCLUSIVE)
}

fn uninit(self) -> bool {
false
}
}

pub(crate) struct BufferBindGroupState<A: hub::HalApi> {
Expand Down
Loading

0 comments on commit 0b8ce17

Please sign in to comment.