From 5e6396ed225be9a9991705de10174b3cf085f8f0 Mon Sep 17 00:00:00 2001 From: tcmal Date: Sun, 25 Aug 2024 17:44:24 +0100 Subject: refactor(skeleton): type phases of queue negotiation --- stockton-render/src/level.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'stockton-render/src/level.rs') diff --git a/stockton-render/src/level.rs b/stockton-render/src/level.rs index e288617..3851cee 100644 --- a/stockton-render/src/level.rs +++ b/stockton-render/src/level.rs @@ -17,7 +17,7 @@ use stockton_skeleton::{ draw_passes::{util::TargetSpecificResources, DrawPass, IntoDrawPass, PassPosition}, error::LockPoisoned, mem::{DataPool, DepthBufferPool, StagingPool, TexturesPool}, - queue_negotiator::QueueNegotiator, + queue_negotiator::QueueFamilyNegotiator, texture::{resolver::TextureResolver, TexLoadQueue, TextureLoadConfig, TextureRepo}, types::*, }; @@ -459,13 +459,11 @@ where fn find_aux_queues<'c>( adapter: &'c Adapter, - queue_negotiator: &mut QueueNegotiator, - ) -> Result)>> { - queue_negotiator.find(adapter, &TexLoadQueue)?; + queue_negotiator: &mut QueueFamilyNegotiator, + ) -> Result<()> { + queue_negotiator.find(adapter, &TexLoadQueue, 1)?; - Ok(vec![ - queue_negotiator.family_spec::(&adapter.queue_families, 1)? - ]) + Ok(()) } } -- cgit v1.2.3