aboutsummaryrefslogtreecommitdiff
path: root/clang/include/clang/AST/HLSLResource.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/include/clang/AST/HLSLResource.h')
-rw-r--r--clang/include/clang/AST/HLSLResource.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/include/clang/AST/HLSLResource.h b/clang/include/clang/AST/HLSLResource.h
index 9cdd81b..7440050 100644
--- a/clang/include/clang/AST/HLSLResource.h
+++ b/clang/include/clang/AST/HLSLResource.h
@@ -69,6 +69,11 @@ struct ResourceBindingAttrs {
assert(hasImplicitOrderID());
return RegBinding->getImplicitBindingOrderID();
}
+
+ void setImplicitOrderID(unsigned Value) const {
+ assert(hasBinding() && !isExplicit() && !hasImplicitOrderID());
+ RegBinding->setImplicitBindingOrderID(Value);
+ }
};
} // namespace hlsl