summaryrefslogtreecommitdiffstats
path: root/source/slang/parameter-binding.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/parameter-binding.cpp')
-rw-r--r--source/slang/parameter-binding.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/slang/parameter-binding.cpp b/source/slang/parameter-binding.cpp
index 3f5c01d09..6bb8749dd 100644
--- a/source/slang/parameter-binding.cpp
+++ b/source/slang/parameter-binding.cpp
@@ -658,10 +658,10 @@ static void diagnoseTypeFieldsMismatch(
}
static void collectFields(
- DeclRef<AggTypeDecl> declRef,
- List<DeclRef<StructField>>& outFields)
+ DeclRef<AggTypeDecl> declRef,
+ List<DeclRef<VarDecl>>& outFields)
{
- for( auto fieldDeclRef : getMembersOfType<StructField>(declRef) )
+ for( auto fieldDeclRef : getMembersOfType<VarDecl>(declRef) )
{
if(fieldDeclRef.getDecl()->HasModifier<HLSLStaticModifier>())
continue;
@@ -883,8 +883,8 @@ static bool validateTypesMatch(
{
if( auto rightStructDeclRef = rightDeclRef.As<AggTypeDecl>() )
{
- List<DeclRef<StructField>> leftFields;
- List<DeclRef<StructField>> rightFields;
+ List<DeclRef<VarDecl>> leftFields;
+ List<DeclRef<VarDecl>> rightFields;
collectFields(leftStructDeclRef, leftFields);
collectFields(rightStructDeclRef, rightFields);