summaryrefslogtreecommitdiffstats
path: root/graphics/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/src/error.rs')
-rw-r--r--graphics/src/error.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/graphics/src/error.rs b/graphics/src/error.rs
new file mode 100644
index 00000000..c86e326a
--- /dev/null
+++ b/graphics/src/error.rs
@@ -0,0 +1,7 @@
+/// A graphical error that occurred while running an application.
+#[derive(Debug, thiserror::Error)]
+pub enum Error {
+ /// A suitable graphics adapter or device could not be found
+ #[error("a suitable graphics adapter or device could not be found")]
+ AdapterNotFound,
+}