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.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/source/slang/parameter-binding.cpp b/source/slang/parameter-binding.cpp
index 1a1fa4335..0756eb68c 100644
--- a/source/slang/parameter-binding.cpp
+++ b/source/slang/parameter-binding.cpp
@@ -262,10 +262,10 @@ static bool findLayoutArg(
template<typename T>
static bool findLayoutArg(
- DeclRef declRef,
+ DeclRef<Decl> declRef,
int* outVal)
{
- return findLayoutArg<T>(declRef.GetDecl(), outVal);
+ return findLayoutArg<T>(declRef.getDecl(), outVal);
}
//
@@ -437,7 +437,7 @@ static void collectGlobalScopeParameter(
// Now create a variable layout that we can use
RefPtr<VarLayout> varLayout = new VarLayout();
varLayout->typeLayout = typeLayout;
- varLayout->varDecl = DeclRef(varDecl.Ptr(), nullptr).As<VarDeclBaseRef>();
+ varLayout->varDecl = DeclRef<Decl>(varDecl.Ptr(), nullptr).As<VarDeclBase>();
// This declaration may represent the same logical parameter
// as a declaration that came from a different translation unit.
@@ -528,7 +528,7 @@ static void addExplicitParameterBindings_HLSL(
// here is where we want to extract and apply them...
// Look for HLSL `register` or `packoffset` semantics.
- for (auto semantic : varDecl.GetDecl()->GetModifiersOfType<HLSLLayoutSemantic>())
+ for (auto semantic : varDecl.getDecl()->GetModifiersOfType<HLSLLayoutSemantic>())
{
// Need to extract the information encoded in the semantic
LayoutSemanticInfo semanticInfo = ExtractLayoutSemanticInfo(context, semantic);
@@ -916,15 +916,15 @@ static void processEntryPointParameter(
{
auto declRef = declRefType->declRef;
- if (auto structDeclRef = declRef.As<StructDeclRef>())
+ if (auto structDeclRef = declRef.As<StructSyntaxNode>())
{
// Need to recursively walk the fields of the structure now...
- for( auto field : structDeclRef.GetFields() )
+ for( auto field : GetFields(structDeclRef) )
{
processEntryPointParameterWithPossibleSemantic(
context,
- field.GetDecl(),
- field.GetType(),
+ field.getDecl(),
+ GetType(field),
state);
}
}
@@ -1223,7 +1223,7 @@ void GenerateParameterBindings(
for( auto& varLayout : parameterInfo->varLayouts )
{
- globalScopeStructLayout->mapVarToLayout.Add(varLayout->varDecl.GetDecl(), varLayout);
+ globalScopeStructLayout->mapVarToLayout.Add(varLayout->varDecl.getDecl(), varLayout);
}
}
globalScopeRules->EndStructLayout(&structLayoutInfo);