From 0ddc1e39dc24cff636defbbbab974967bb5301b8 Mon Sep 17 00:00:00 2001 From: tcmal Date: Sun, 25 Aug 2024 17:44:24 +0100 Subject: fix(queues): fix validation errors & docs --- stockton-render/src/level.rs | 8 ++++---- stockton-render/src/ui.rs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'stockton-render') diff --git a/stockton-render/src/level.rs b/stockton-render/src/level.rs index ceb361b..fc5111e 100644 --- a/stockton-render/src/level.rs +++ b/stockton-render/src/level.rs @@ -15,7 +15,7 @@ use stockton_skeleton::{ }, context::RenderingContext, draw_passes::{util::TargetSpecificResources, DrawPass, IntoDrawPass, PassPosition}, - error::{EnvironmentError, LevelError, LockPoisoned}, + error::{LevelError, LockPoisoned}, mem::{DataPool, DepthBufferPool, StagingPool, TexturesPool}, queue_negotiator::QueueNegotiator, texture::{resolver::TextureResolver, TexLoadQueue, TextureLoadConfig, TextureRepo}, @@ -453,8 +453,8 @@ where ) -> Result)>> { queue_negotiator.find(adapter, &TexLoadQueue)?; - Ok(vec![queue_negotiator - .family_spec::(&adapter.queue_families, 1) - .ok_or(EnvironmentError::NoSuitableFamilies)?]) + Ok(vec![ + queue_negotiator.family_spec::(&adapter.queue_families, 1)? + ]) } } diff --git a/stockton-render/src/ui.rs b/stockton-render/src/ui.rs index 2c8818c..ad53d80 100644 --- a/stockton-render/src/ui.rs +++ b/stockton-render/src/ui.rs @@ -9,7 +9,7 @@ use stockton_skeleton::{ }, context::RenderingContext, draw_passes::{util::TargetSpecificResources, DrawPass, IntoDrawPass, PassPosition}, - error::{EnvironmentError, LockPoisoned}, + error::LockPoisoned, mem::{DataPool, StagingPool, TexturesPool}, queue_negotiator::QueueNegotiator, texture::{ @@ -331,9 +331,9 @@ impl<'a, P: PassPosition> IntoDrawPass, P> for () { ) -> Result)>> { queue_negotiator.find(adapter, &TexLoadQueue)?; - Ok(vec![queue_negotiator - .family_spec::(&adapter.queue_families, 1) - .ok_or(EnvironmentError::NoSuitableFamilies)?]) + Ok(vec![ + queue_negotiator.family_spec::(&adapter.queue_families, 1)? + ]) } } -- cgit v1.2.3