diff options
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)); |
