Skip to content

Commit ea00eff

Browse files
committed
format code
1 parent 45068f0 commit ea00eff

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -2922,7 +2922,7 @@ void tryReplaceUsesOfStageInput(
29222922
{
29232923
fieldVal = element.val;
29242924
break;
2925-
}
2925+
}
29262926
if (auto tupleValType =
29272927
as<ScalarizedTupleValImpl>(element.val.impl))
29282928
{

source/slang/slang-ir-translate-glsl-global-var.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ struct GlobalVarTranslationContext
8989
bool hasExistingLayout = false;
9090
if (auto existingLayoutDecoration = input->findDecoration<IRLayoutDecoration>())
9191
{
92-
if (auto existingVarLayout = as<IRVarLayout>(existingLayoutDecoration->getLayout()))
92+
if (auto existingVarLayout =
93+
as<IRVarLayout>(existingLayoutDecoration->getLayout()))
9394
{
9495
fieldTypeLayout = existingVarLayout->getTypeLayout();
9596
hasExistingLayout = true;
@@ -100,7 +101,7 @@ struct GlobalVarTranslationContext
100101
{
101102
fieldTypeLayout = fieldTypeLayoutBuilder.build();
102103
}
103-
104+
104105
IRVarLayout::Builder varLayoutBuilder(&builder, fieldTypeLayout);
105106
varLayoutBuilder.setStage(entryPointDecor->getProfile().getStage());
106107
if (auto semanticDecor = input->findDecoration<IRSemanticDecoration>())
@@ -116,7 +117,7 @@ struct GlobalVarTranslationContext
116117
fieldTypeLayoutBuilder.addResourceUsage(
117118
LayoutResourceKind::VaryingInput,
118119
LayoutSize(1));
119-
}
120+
}
120121
if (auto layoutDecor = findVarLayout(input))
121122
{
122123
if (auto offsetAttr =

0 commit comments

Comments
 (0)