From 9bd6b233b38f8ae0de72f41939be0cb2879b9919 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 21 Mar 2024 14:21:36 -0700 Subject: Fix `TriangleStream` lowering. (#3809) --- source/slang/slang-ir-glsl-legalize.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source') 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(ii->getOperand(a)->getDataType())) + auto argType = ii->getOperand(a)->getDataType(); + if (auto ptrTypeBase = as(argType)) + argType = ptrTypeBase->getValueType(); + if (as(argType)) { if (workListSet.add(callee)) workList.add(as(callee)); -- cgit v1.2.3