summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-05-20 22:10:51 +0200
committerHampusM <hampus@hampusmat.com>2026-05-20 22:10:51 +0200
commit88281a99598cb1affeb5361c253781bacd490b5b (patch)
treec73e16e1311f7b59ad8f5996c296e41c179106a4 /engine
parent2aae9cbbf094d689ffbe498839613697b9f03112 (diff)
refactor(engine): panic on unknown slang shader scalar types
Diffstat (limited to 'engine')
-rw-r--r--engine/src/shader.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/engine/src/shader.rs b/engine/src/shader.rs
index c4bd709..7038ab7 100644
--- a/engine/src/shader.rs
+++ b/engine/src/shader.rs
@@ -572,6 +572,8 @@ impl ScalarType
SlangScalarType::Uint16 => Self::Uint16,
SlangScalarType::Intptr => Self::Intptr,
SlangScalarType::Uintptr => Self::Uintptr,
+ #[allow(unreachable_patterns)]
+ _ => unimplemented!("conversion from slang scalar type"),
}
}
}