summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-reflection-api.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-reflection-api.cpp')
-rw-r--r--source/slang/slang-reflection-api.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/slang/slang-reflection-api.cpp b/source/slang/slang-reflection-api.cpp
index 07857c293..7a79e9fcd 100644
--- a/source/slang/slang-reflection-api.cpp
+++ b/source/slang/slang-reflection-api.cpp
@@ -433,7 +433,7 @@ SLANG_API unsigned int spReflectionType_GetFieldCount(SlangReflectionType* inTyp
if( auto structDeclRef = declRef.as<StructDecl>())
{
return (unsigned int)getFields(
- getModule(declRef.decl)->getLinkage()->getASTBuilder(),
+ getModule(declRef.getDecl())->getLinkage()->getASTBuilder(),
structDeclRef,
MemberFilterStyle::Instance)
.getCount();
@@ -456,7 +456,7 @@ SLANG_API SlangReflectionVariable* spReflectionType_GetFieldByIndex(SlangReflect
if( auto structDeclRef = declRef.as<StructDecl>())
{
auto fields = getFields(
- getModule(declRef)->getLinkage()->getASTBuilder(), structDeclRef, MemberFilterStyle::Instance);
+ getModule(declRef.getDecl())->getLinkage()->getASTBuilder(), structDeclRef, MemberFilterStyle::Instance);
auto fieldDeclRef = fields[index];
return (SlangReflectionVariable*) fieldDeclRef.getDecl();
}
@@ -924,7 +924,7 @@ SLANG_API SlangInt spReflectionTypeLayout_findFieldIndexByName(SlangReflectionTy
for(Index f = 0; f < fieldCount; ++f)
{
auto field = structTypeLayout->fields[f];
- if(getReflectionName(field->varDecl)->text.getUnownedSlice() == name)
+ if(getReflectionName(field->varDecl.getDecl())->text.getUnownedSlice() == name)
return f;
}
}