Runtime: a content's later cell lookup is later_cell, apart from its field
`Cells` had a field and a method both named `later`, so an intra-doc link to `Cells::later` named either. The method that finds or enters a key's cell is now `later_cell`; `Cells::later` names the map alone. No behaviour change; verified by the merge check's build, clippy and private-doc steps at this commit.
This commit is contained in:
1 parent
6789748f41
commit
08848fd8a5
1 file changed
+6
-4
@@ -662,7 +662,7 @@ struct Cells {
|
||||
/// default raster state where the descriptor names neither, and those under other raster
|
||||
/// states. At most 15: the triangle or patch class's seven other raster states, and four of
|
||||
/// each other class. The lock is held to find or enter a cell, never across a make
|
||||
/// ([`Cells::later`]).
|
||||
/// ([`Cells::later_cell`]).
|
||||
later: Mutex<Vec<(vk::PrimitiveTopology, Raster, Arc<Main>)>>,
|
||||
}
|
||||
|
||||
@@ -680,7 +680,7 @@ impl Cells {
|
||||
/// none. The map's lock is held only to find or enter it: a draw that makes one cell's
|
||||
/// `VkPipeline` holds no draw that takes another's, and a draw that takes the same meets the
|
||||
/// make in flight and waits for it ([`Main::pipeline`]).
|
||||
fn later(&self, class: vk::PrimitiveTopology, raster: Raster) -> Arc<Main> {
|
||||
fn later_cell(&self, class: vk::PrimitiveTopology, raster: Raster) -> Arc<Main> {
|
||||
let mut later = lock(&self.later);
|
||||
if let Some((.., cell)) = (later.iter()).find(|&&(c, r, _)| (c, r) == (class, raster)) {
|
||||
return Arc::clone(cell);
|
||||
@@ -2263,7 +2263,9 @@ impl RenderCompiled {
|
||||
(T::POINT_LIST, true) => FirstUse::Points,
|
||||
_ => FirstUse::Raster,
|
||||
};
|
||||
cells.later(class, raster).pipeline(counters, site, make)
|
||||
cells
|
||||
.later_cell(class, raster)
|
||||
.pipeline(counters, site, make)
|
||||
}
|
||||
|
||||
/// For the device tests: [`pipeline`](Self::pipeline) for a draw of `topology` at the default
|
||||
@@ -2317,7 +2319,7 @@ impl RenderCompiled {
|
||||
cells.primary.make_ahead(make).map(drop)
|
||||
}
|
||||
(class, true) if self.named == Some(class) => cells.named.make_ahead(make).map(drop),
|
||||
_ => cells.later(class, raster).make_ahead(make).map(drop),
|
||||
_ => cells.later_cell(class, raster).make_ahead(make).map(drop),
|
||||
};
|
||||
match made {
|
||||
Ok(()) => Ok(plain),
|
||||
|
||||
Reference in new issue
Block a user