summaryrefslogtreecommitdiff
path: root/source/slang/slang-check-decl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check-decl.cpp')
-rw-r--r--source/slang/slang-check-decl.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/slang/slang-check-decl.cpp b/source/slang/slang-check-decl.cpp
index 88a707ed8..093e2599f 100644
--- a/source/slang/slang-check-decl.cpp
+++ b/source/slang/slang-check-decl.cpp
@@ -7032,7 +7032,9 @@ namespace Slang
{
return;
}
- if(!varDecl->findModifier<OutModifier>())
+ // HLSL requires an 'out' modifier here, but since we don't operate
+ // under such strict compatability we can just not warn here.
+ if(!varDecl->findModifier<OutModifier>() && modifier)
{
getSink()->diagnose(varDecl, Diagnostics::meshOutputMustBeOut);
}