summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-type-layout.cpp
diff options
context:
space:
mode:
authorDarren Wihandi <65404740+fairywreath@users.noreply.github.com>2024-12-27 02:52:49 -0500
committerGitHub <noreply@github.com>2024-12-26 23:52:49 -0800
commit7cecc518e753a90d9b638e8dd1140730ab010ca7 (patch)
tree2d8769853421ffda8671e7d10b79e53f2e9c25f9 /source/slang/slang-type-layout.cpp
parent2ad1f8138771cef32b710f8c47d4c7beb3f4eab5 (diff)
Add packed 8bit builtin types (#5939)
* Add packed bytes builtin type * fix test
Diffstat (limited to 'source/slang/slang-type-layout.cpp')
-rw-r--r--source/slang/slang-type-layout.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/slang/slang-type-layout.cpp b/source/slang/slang-type-layout.cpp
index 17f1ae677..c6acf5250 100644
--- a/source/slang/slang-type-layout.cpp
+++ b/source/slang/slang-type-layout.cpp
@@ -110,6 +110,10 @@ struct DefaultLayoutRulesImpl : SimpleLayoutRulesImpl
sizeof(intptr_t),
sizeof(intptr_t));
+ case BaseType::Int8x4Packed:
+ case BaseType::UInt8x4Packed:
+ return SimpleLayoutInfo(LayoutResourceKind::Uniform, 4, 4);
+
case BaseType::Half:
return SimpleLayoutInfo(LayoutResourceKind::Uniform, 2, 2);
case BaseType::Float: