summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-rw-r--r--sc/sc.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/sc.cpp b/sc/sc.cpp
index d7e9038..d801a68 100644
--- a/sc/sc.cpp
+++ b/sc/sc.cpp
@@ -289,6 +289,8 @@ struct Desc {
t.stage |= 1 << stage_from_string(sstage);
t.dimension =
sdem && string_equal(sdem, "cube")? -6:
+ sdem && string_equal(sdem, "array")? -20:
+ sdem && string_equal(sdem, "shadowArray")? -21:
find_int_default(desc, "dimension", 2);
}
cfg_Object* read_struct(cfg_Object* desc) {
@@ -495,6 +497,10 @@ struct Desc {
ss << "uniform sampler";
if (texture.dimension == -6)
ss << "Cube ";
+ else if (texture.dimension == -20)
+ ss << "2DArray ";
+ else if (texture.dimension == -21)
+ ss << "2DArrayShadow ";
else
ss << texture.dimension << "D ";
ss << it.first << ";\n";