diff options
| author | Yong He <yonghe@outlook.com> | 2024-03-21 14:21:36 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-21 14:21:36 -0700 |
| commit | 9bd6b233b38f8ae0de72f41939be0cb2879b9919 (patch) | |
| tree | 640c6474801b2f731ff0dbf3bd3669c5b0429c8c /source | |
| parent | 45c7d33fe87e1628de7991f46ca68f8ddd2f7e4c (diff) | |
Fix `TriangleStream` lowering. (#3809)
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/slang-ir-glsl-legalize.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/slang/slang-ir-glsl-legalize.cpp b/source/slang/slang-ir-glsl-legalize.cpp index 68bd4920f..3c6592164 100644 --- a/source/slang/slang-ir-glsl-legalize.cpp +++ b/source/slang/slang-ir-glsl-legalize.cpp @@ -2526,7 +2526,10 @@ void legalizeEntryPointParameterForGLSL( // we need to add it to the work list to be processed. for (UInt a = 1; a < ii->getOperandCount(); a++) { - if (as<IRHLSLStreamOutputType>(ii->getOperand(a)->getDataType())) + auto argType = ii->getOperand(a)->getDataType(); + if (auto ptrTypeBase = as<IRPtrTypeBase>(argType)) + argType = ptrTypeBase->getValueType(); + if (as<IRHLSLStreamOutputType>(argType)) { if (workListSet.add(callee)) workList.add(as<IRFunc>(callee)); |
