summaryrefslogtreecommitdiffstats
path: root/source/slang/check.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/check.cpp')
-rw-r--r--source/slang/check.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/slang/check.cpp b/source/slang/check.cpp
index 1fa7f9b01..3c7bcaf84 100644
--- a/source/slang/check.cpp
+++ b/source/slang/check.cpp
@@ -1894,6 +1894,15 @@ namespace Slang
numThreadsAttr->y = (int32_t) yVal->value;
numThreadsAttr->z = (int32_t) zVal->value;
}
+ else if (auto bindingAttr = attr.As<GLSLBindingAttribute>())
+ {
+ SLANG_ASSERT(attr->args.Count() == 2);
+ auto binding = checkConstantIntVal(attr->args[0]);
+ auto set = checkConstantIntVal(attr->args[1]);
+
+ bindingAttr->binding = int32_t(binding->value);
+ bindingAttr->set = int32_t(set->value);
+ }
else if (auto maxVertexCountAttr = attr.As<MaxVertexCountAttribute>())
{
SLANG_ASSERT(attr->args.Count() == 1);