From 6b8395152b8e0c7ddd714e195e4e92d464b8147c Mon Sep 17 00:00:00 2001 From: tcmal Date: Sun, 25 Aug 2024 17:44:24 +0100 Subject: refactor(skeleton): move LevelError to render --- stockton-render/Cargo.toml | 1 + stockton-render/src/level.rs | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'stockton-render') diff --git a/stockton-render/Cargo.toml b/stockton-render/Cargo.toml index e6ac094..1329443 100644 --- a/stockton-render/Cargo.toml +++ b/stockton-render/Cargo.toml @@ -20,3 +20,4 @@ legion = { version = "^0.3" } log = "0.4.0" winit = "^0.21" nalgebra-glm = "^0.6" +thiserror = "1.0.25" diff --git a/stockton-render/src/level.rs b/stockton-render/src/level.rs index 0c88a0b..c9a8155 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::{LevelError, LockPoisoned}, + error::LockPoisoned, mem::{DataPool, DepthBufferPool, StagingPool, TexturesPool}, queue_negotiator::QueueNegotiator, texture::{resolver::TextureResolver, TexLoadQueue, TextureLoadConfig, TextureRepo}, @@ -49,6 +49,7 @@ use hal::{ }; use legion::{Entity, IntoQuery}; use shaderc::ShaderKind; +use thiserror::Error; /// The Vertexes that go to the shader #[derive(Debug, Clone, Copy)] @@ -468,3 +469,10 @@ where ]) } } + +/// Indicates an issue with the level object being used +#[derive(Debug, Error)] +pub enum LevelError { + #[error("Referential Integrity broken")] + BadReference, +} -- cgit v1.2.3