summaryrefslogtreecommitdiff
path: root/engine/src/shader.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-05-20 22:14:01 +0200
committerHampusM <hampus@hampusmat.com>2026-05-20 22:14:01 +0200
commit5c4776e7ea4c147e46e9ad91cccd372636977717 (patch)
tree71232725f60db3df9f42dd82cab2a4c4339c7fa2 /engine/src/shader.rs
parent568883f987415fe989271d61a1309548d6013877 (diff)
feat(engine): add support for more shader scalar types
Diffstat (limited to 'engine/src/shader.rs')
-rw-r--r--engine/src/shader.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/engine/src/shader.rs b/engine/src/shader.rs
index 7038ab7..1b368fb 100644
--- a/engine/src/shader.rs
+++ b/engine/src/shader.rs
@@ -549,6 +549,9 @@ pub enum ScalarType
Uint16,
Intptr,
Uintptr,
+ Bfloat16,
+ FloatE4m3,
+ FloatE5m2,
}
impl ScalarType
@@ -572,6 +575,9 @@ impl ScalarType
SlangScalarType::Uint16 => Self::Uint16,
SlangScalarType::Intptr => Self::Intptr,
SlangScalarType::Uintptr => Self::Uintptr,
+ SlangScalarType::Bfloat16 => Self::Bfloat16,
+ SlangScalarType::FloatE4m3 => Self::FloatE4m3,
+ SlangScalarType::FloatE5m2 => Self::FloatE5m2,
#[allow(unreachable_patterns)]
_ => unimplemented!("conversion from slang scalar type"),
}