aboutsummaryrefslogtreecommitdiff
path: root/stockton-skeleton/src/error.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-25 17:44:24 +0100
committertcmal <me@aria.rip>2024-08-25 17:44:24 +0100
commitb86e97f67a07368877bd18501aebcbe80cf93118 (patch)
tree97b72b4339da6400b481170eab11fd89ab5dfa80 /stockton-skeleton/src/error.rs
parente1cc0e9a9d191bcd3a634be46fd3555d430b07a8 (diff)
feat(skeleton): add memory pools
added stock memory pools behind a feature gate refactored buffers to use them and to have better APIs. moved some util code out of builders::pipeline updated stockton-render for the changes deactivation is a WIP breaks UI drawing, fix WIP
Diffstat (limited to 'stockton-skeleton/src/error.rs')
-rw-r--r--stockton-skeleton/src/error.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/stockton-skeleton/src/error.rs b/stockton-skeleton/src/error.rs
index 1f57892..6d7e7ad 100644
--- a/stockton-skeleton/src/error.rs
+++ b/stockton-skeleton/src/error.rs
@@ -15,6 +15,9 @@ pub enum LockPoisoned {
#[error("Other lock poisoned")]
Other,
+
+ #[error("Memory pool lock poisoned")]
+ MemoryPool,
}
/// Indicates the given property has no acceptable values
@@ -43,6 +46,15 @@ pub enum EnvironmentError {
#[error("No suitable queues")]
NoQueues,
+
+ #[error("Memory pool missing")]
+ MemoryPoolMissing,
+}
+
+#[derive(Debug, Error)]
+pub enum UsageError {
+ #[error("Attempt to create mappable memory block from non-mappable memory")]
+ NonMappableMemory,
}
/// Indicates an issue with the level object being used