@@ -2354,9 +2354,7 @@ void handleSingleParam(
2354
2354
builder->addDependsOnDecoration (func, globalParam);
2355
2355
}
2356
2356
2357
- static void consolidateParameters (
2358
- GLSLLegalizationContext* context,
2359
- List<IRParam*>& params)
2357
+ static void consolidateParameters (GLSLLegalizationContext* context, List<IRParam*>& params)
2360
2358
{
2361
2359
auto builder = context->getBuilder ();
2362
2360
@@ -2435,9 +2433,7 @@ static void consolidateParameters(
2435
2433
}
2436
2434
2437
2435
// 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)
2441
2437
{
2442
2438
auto builder = context->getBuilder ();
2443
2439
auto firstBlock = func->getFirstBlock ();
@@ -2466,9 +2462,9 @@ void consolidateRayTracingParameters(
2466
2462
{
2467
2463
// We have one out/inout param, so add it as part of otherParams so we can
2468
2464
// 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 ]);
2472
2468
}
2473
2469
for (auto param : otherParams)
2474
2470
{
@@ -3918,7 +3914,7 @@ void legalizeEntryPointForGLSL(
3918
3914
default :
3919
3915
break ;
3920
3916
}
3921
-
3917
+
3922
3918
// Next we will walk through any parameters of the entry-point function,
3923
3919
// and turn them into global variables.
3924
3920
if (auto firstBlock = func->getFirstBlock ())
@@ -3944,7 +3940,7 @@ void legalizeEntryPointForGLSL(
3944
3940
3945
3941
legalizeEntryPointParameterForGLSL (&context, codeGenContext, func, pp, paramLayout);
3946
3942
}
3947
-
3943
+
3948
3944
// At this point we should have eliminated all uses of the
3949
3945
// parameters of the entry block. Also, our control-flow
3950
3946
// rules mean that the entry block cannot be the target
0 commit comments