diff --git a/crates/metal2vulkan-runtime/src/render.rs b/crates/metal2vulkan-runtime/src/render.rs index 868a157f2..44f7f6246 100644 --- a/crates/metal2vulkan-runtime/src/render.rs +++ b/crates/metal2vulkan-runtime/src/render.rs @@ -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)>>, } @@ -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
{ + fn later_cell(&self, class: vk::PrimitiveTopology, raster: Raster) -> Arc
{ 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),