diff options
Diffstat (limited to 'source/slang/slang-parameter-binding.cpp')
| -rw-r--r-- | source/slang/slang-parameter-binding.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-parameter-binding.cpp b/source/slang/slang-parameter-binding.cpp index 4b91056fc..b79f96022 100644 --- a/source/slang/slang-parameter-binding.cpp +++ b/source/slang/slang-parameter-binding.cpp @@ -2420,7 +2420,7 @@ static RefPtr<TypeLayout> processEntryPointVaryingParameter( if (auto structDeclRef = declRef.as<StructDecl>()) { RefPtr<StructTypeLayout> structLayout = new StructTypeLayout(); - structLayout->type = type; + structLayout->type = declRefType; // We will recursively walk the fields of a `struct` type // to compute layouts for those fields. |
