Skip to content

Commit 00c2ae8

Browse files
authored
Merge pull request #5 from slangbot/format-6435-bugfix/gh-5121_1
Format code for PR #6435
2 parents 652e28b + 32a1dff commit 00c2ae8

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

source/slang/slang-ir-glsl-legalize.cpp

+4-9
Original file line numberDiff line numberDiff line change
@@ -2397,24 +2397,19 @@ static void consolidateParameters(
23972397
fieldPtrType = builder->getPtrType(kIROp_InOutType, fieldType);
23982398
}
23992399

2400-
auto fieldAddr = builder->emitFieldAddress(
2401-
fieldPtrType,
2402-
consolidatedVar,
2403-
targetField->getKey());
2400+
auto fieldAddr =
2401+
builder->emitFieldAddress(fieldPtrType, consolidatedVar, targetField->getKey());
24042402

24052403
// Replace parameter uses with field address
24062404
_param->replaceUsesWith(fieldAddr);
24072405
}
24082406
}
24092407

2410-
static void handleMultipleParams(
2411-
GLSLLegalizationContext* context,
2412-
IRFunc* func,
2413-
IRParam* pp)
2408+
static void handleMultipleParams(GLSLLegalizationContext* context, IRFunc* func, IRParam* pp)
24142409
{
24152410
auto firstBlock = func->getFirstBlock();
24162411

2417-
// Now we run the consolidation step, but if we've already
2412+
// Now we run the consolidation step, but if we've already
24182413
// processed this parameter, skip it.
24192414
List<IRParam*>* processedParams = nullptr;
24202415
if (auto foundList = context->rayTracingProcessedParams.tryGetValue(func))

0 commit comments

Comments
 (0)