Skip to content

Commit c2ce125

Browse files
authored
Merge pull request #7 from slangbot/format-6435-bugfix/gh-5121_1
Format code for PR shader-slang#6435
2 parents ef9a937 + 35c35fd commit c2ce125

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

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

+7-11
Original file line numberDiff line numberDiff line change
@@ -2354,9 +2354,7 @@ void handleSingleParam(
23542354
builder->addDependsOnDecoration(func, globalParam);
23552355
}
23562356

2357-
static void consolidateParameters(
2358-
GLSLLegalizationContext* context,
2359-
List<IRParam*>& params)
2357+
static void consolidateParameters(GLSLLegalizationContext* context, List<IRParam*>& params)
23602358
{
23612359
auto builder = context->getBuilder();
23622360

@@ -2435,9 +2433,7 @@ static void consolidateParameters(
24352433
}
24362434

24372435
// Consolidate ray tracing parameters for an entry point function
2438-
void consolidateRayTracingParameters(
2439-
GLSLLegalizationContext* context,
2440-
IRFunc* func)
2436+
void consolidateRayTracingParameters(GLSLLegalizationContext* context, IRFunc* func)
24412437
{
24422438
auto builder = context->getBuilder();
24432439
auto firstBlock = func->getFirstBlock();
@@ -2466,9 +2462,9 @@ void consolidateRayTracingParameters(
24662462
{
24672463
// We have one out/inout param, so add it as part of otherParams so we can
24682464
// just do one pass of handleSingleParam().
2469-
if (outParams.getCount() == 1)
2470-
{
2471-
otherParams.add(outParams[0]);
2465+
if (outParams.getCount() == 1)
2466+
{
2467+
otherParams.add(outParams[0]);
24722468
}
24732469
for (auto param : otherParams)
24742470
{
@@ -3918,7 +3914,7 @@ void legalizeEntryPointForGLSL(
39183914
default:
39193915
break;
39203916
}
3921-
3917+
39223918
// Next we will walk through any parameters of the entry-point function,
39233919
// and turn them into global variables.
39243920
if (auto firstBlock = func->getFirstBlock())
@@ -3944,7 +3940,7 @@ void legalizeEntryPointForGLSL(
39443940

39453941
legalizeEntryPointParameterForGLSL(&context, codeGenContext, func, pp, paramLayout);
39463942
}
3947-
3943+
39483944
// At this point we should have eliminated all uses of the
39493945
// parameters of the entry block. Also, our control-flow
39503946
// rules mean that the entry block cannot be the target

0 commit comments

Comments
 (0)