Skip to content

Commit b53d261

Browse files
committed
code review feedback - add comment
1 parent ce719b2 commit b53d261

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/Sema/SemaHLSL.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3847,6 +3847,9 @@ bool SemaHLSL::initGlobalResourceDecl(VarDecl *VD) {
38473847
}
38483848

38493849
if (!CreateMethod)
3850+
// This can happen if someone creates a struct that looks like an HLSL
3851+
// resource record but does not have the required static create method.
3852+
// No binding will be generated for it.
38503853
return false;
38513854

38523855
IntegerLiteral *Space =

0 commit comments

Comments
 (0)