mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 06:44:14 +00:00
add comments in BindGroupStates.optimize
This commit is contained in:
parent
4e777bd0e7
commit
7b4cbc2619
@ -441,7 +441,11 @@ impl<A: HalApi> BindGroupStates<A> {
|
|||||||
/// accesses will be in a constant ascending order.
|
/// accesses will be in a constant ascending order.
|
||||||
pub fn optimize(&mut self) {
|
pub fn optimize(&mut self) {
|
||||||
self.buffers.optimize();
|
self.buffers.optimize();
|
||||||
|
// Views are stateless, however, `TextureViewBindGroupState`
|
||||||
|
// is special as it will be merged with other texture trackers.
|
||||||
self.views.optimize();
|
self.views.optimize();
|
||||||
|
// Samplers are stateless and don't need to be optimized
|
||||||
|
// since the tracker is never merged with any other tracker.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user