diff options
Diffstat (limited to 'source/slang/slang-parameter-binding.cpp')
| -rw-r--r-- | source/slang/slang-parameter-binding.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/slang/slang-parameter-binding.cpp b/source/slang/slang-parameter-binding.cpp index ebaa58adb..5d7aaa651 100644 --- a/source/slang/slang-parameter-binding.cpp +++ b/source/slang/slang-parameter-binding.cpp @@ -2278,6 +2278,13 @@ static RefPtr<TypeLayout> computeEntryPointParameterTypeLayout( state.directionMask |= kEntryPointParameterDirection_Output; } + // For the purposes of type layout, mesh shader outputs are always + // treated as output only, despite missing an 'out' modifier + if(as<MeshOutputType>(paramDeclRef.getDecl()->getType())) + { + state.directionMask = kEntryPointParameterDirection_Output; + } + return processEntryPointVaryingParameterDecl( context, paramDeclRef.getDecl(), |
