diff options
Diffstat (limited to 'sc/sc.cpp')
-rw-r--r-- | sc/sc.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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"; |