@@ -1323,8 +1323,8 @@ SemaHLSL::TakeLocForHLSLAttribute(const HLSLAttributedResourceType *RT) {
1323
1323
1324
1324
// Walks though the global variable declaration, collects all resource binding
1325
1325
// requirements and adds them to Bindings
1326
- void SemaHLSL::collectResourcesOnUserRecordDecl (const VarDecl *VD,
1327
- const RecordType *RT) {
1326
+ void SemaHLSL::collectResourceBindingsOnUserRecordDecl (const VarDecl *VD,
1327
+ const RecordType *RT) {
1328
1328
const RecordDecl *RD = RT->getDecl ();
1329
1329
for (FieldDecl *FD : RD->fields ()) {
1330
1330
const Type *Ty = FD->getType ()->getUnqualifiedDesugaredType ();
@@ -1354,15 +1354,15 @@ void SemaHLSL::collectResourcesOnUserRecordDecl(const VarDecl *VD,
1354
1354
// binding, which is something we are probably going to need to do later
1355
1355
// on. Hopefully nesting of structs in structs too many levels is
1356
1356
// unlikely.
1357
- collectResourcesOnUserRecordDecl (VD, RT);
1357
+ collectResourceBindingsOnUserRecordDecl (VD, RT);
1358
1358
}
1359
1359
}
1360
1360
}
1361
1361
1362
1362
// Diagnore localized register binding errors for a single binding; does not
1363
1363
// diagnose resource binding on user record types, that will be done later
1364
1364
// in processResourceBindingOnDecl based on the information collected in
1365
- // collectResourcesOnVarDecl .
1365
+ // collectResourceBindingsOnVarDecl .
1366
1366
// Returns false if the register binding is not valid.
1367
1367
static bool DiagnoseLocalRegisterBinding (Sema &S, SourceLocation &ArgLoc,
1368
1368
Decl *D, RegisterType RegType,
@@ -2835,7 +2835,7 @@ void SemaHLSL::ActOnVariableDeclarator(VarDecl *VD) {
2835
2835
2836
2836
// find all resources on decl
2837
2837
if (VD->getType ()->isHLSLIntangibleType ())
2838
- collectResourcesOnVarDecl (VD);
2838
+ collectResourceBindingsOnVarDecl (VD);
2839
2839
2840
2840
// process explicit bindings
2841
2841
processExplicitBindingsOnDecl (VD);
@@ -2844,7 +2844,7 @@ void SemaHLSL::ActOnVariableDeclarator(VarDecl *VD) {
2844
2844
2845
2845
// Walks though the global variable declaration, collects all resource binding
2846
2846
// requirements and adds them to Bindings
2847
- void SemaHLSL::collectResourcesOnVarDecl (VarDecl *VD) {
2847
+ void SemaHLSL::collectResourceBindingsOnVarDecl (VarDecl *VD) {
2848
2848
assert (VD->hasGlobalStorage () && VD->getType ()->isHLSLIntangibleType () &&
2849
2849
" expected global variable that contains HLSL resource" );
2850
2850
@@ -2873,7 +2873,7 @@ void SemaHLSL::collectResourcesOnVarDecl(VarDecl *VD) {
2873
2873
2874
2874
// User defined record type
2875
2875
if (const RecordType *RT = dyn_cast<RecordType>(Ty))
2876
- collectResourcesOnUserRecordDecl (VD, RT);
2876
+ collectResourceBindingsOnUserRecordDecl (VD, RT);
2877
2877
}
2878
2878
2879
2879
// Walks though the explicit resource binding attributes on the declaration,
0 commit comments