summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ir-specialize-resources.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-03-20 15:47:36 -0700
committerGitHub <noreply@github.com>2024-03-20 15:47:36 -0700
commit45c7d33fe87e1628de7991f46ca68f8ddd2f7e4c (patch)
treeb493c79d4ef42b32ccd197112befd1c47995cbd6 /source/slang/slang-ir-specialize-resources.cpp
parentc371cceaab3f08e134b3cb005b46e5ee95f6df54 (diff)
Fix spirv generation for using output stream in a function. (#3806)
* Fix spirv generation for using output stream in a function. * polish.
Diffstat (limited to 'source/slang/slang-ir-specialize-resources.cpp')
-rw-r--r--source/slang/slang-ir-specialize-resources.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/slang-ir-specialize-resources.cpp b/source/slang/slang-ir-specialize-resources.cpp
index af7f41207..a2bf14f4d 100644
--- a/source/slang/slang-ir-specialize-resources.cpp
+++ b/source/slang/slang-ir-specialize-resources.cpp
@@ -1236,6 +1236,8 @@ bool isIllegalGLSLParameterType(IRType* type)
}
if (as<IRMeshOutputType>(type))
return true;
+ if (as<IRHLSLStreamOutputType>(type))
+ return true;
return false;
}