File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -1506,8 +1506,7 @@ void WGSLSourceEmitter::emitIntrinsicCallExprImpl(
1506
1506
inOuterPrec);
1507
1507
}
1508
1508
1509
- void WGSLSourceEmitter::_maybeEmitInterpolationAttribute (
1510
- IRInterpolationMode mode)
1509
+ void WGSLSourceEmitter::_maybeEmitInterpolationAttribute (IRInterpolationMode mode)
1511
1510
{
1512
1511
bool interpolationTypeEmitted = true ;
1513
1512
switch (mode)
@@ -1535,12 +1534,11 @@ void WGSLSourceEmitter::_maybeEmitInterpolationAttribute(
1535
1534
m_writer->emit (" , centroid" );
1536
1535
break ;
1537
1536
default :
1538
- break ;
1537
+ break ;
1539
1538
}
1540
1539
1541
1540
m_writer->emit (" ) " );
1542
- }
1543
-
1541
+ }
1544
1542
}
1545
1543
1546
1544
void WGSLSourceEmitter::emitInterpolationModifiersImpl (
@@ -1555,7 +1553,7 @@ void WGSLSourceEmitter::emitInterpolationModifiersImpl(
1555
1553
continue ;
1556
1554
auto decoration = (IRInterpolationModeDecoration*)dd;
1557
1555
_maybeEmitInterpolationAttribute (decoration->getMode ());
1558
- }
1556
+ }
1559
1557
1560
1558
// TODO: Check the following:
1561
1559
// "User-defined vertex outputs and fragment inputs of scalar or vector
Original file line number Diff line number Diff line change @@ -675,7 +675,8 @@ struct LegalizeWGSLEntryPointContext
675
675
auto newKey = builder.createStructKey ();
676
676
copyNameHintAndDebugDecorations (newKey, oldKey);
677
677
678
- if (auto interpolationModeDecoration = oldKey->findDecoration <IRInterpolationModeDecoration>())
678
+ if (auto interpolationModeDecoration =
679
+ oldKey->findDecoration <IRInterpolationModeDecoration>())
679
680
{
680
681
interpolationModeDecoration->removeFromParent ();
681
682
interpolationModeDecoration->insertAtStart (newKey);
You can’t perform that action at this time.
0 commit comments