mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-09-28 13:57:58 +02:00
misc: chore: Use collection expressions
This commit is contained in:
@@ -69,7 +69,7 @@ namespace Ryujinx.Graphics.Shader.StructuredIr
|
||||
AggregateType[] inArguments,
|
||||
AggregateType[] outArguments)
|
||||
{
|
||||
_loopTails = new HashSet<BasicBlock>();
|
||||
_loopTails = [];
|
||||
|
||||
_blockStack = new Stack<(AstBlock, int, int)>();
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace Ryujinx.Graphics.Shader.StructuredIr
|
||||
|
||||
_gotoTempAsgs = new Dictionary<int, AstAssignment>();
|
||||
|
||||
_gotos = new List<GotoStatement>();
|
||||
_gotos = [];
|
||||
|
||||
_currBlock = new AstBlock(AstBlockType.Main);
|
||||
|
||||
@@ -313,13 +313,13 @@ namespace Ryujinx.Graphics.Shader.StructuredIr
|
||||
|
||||
ResourceManager.SetUsedConstantBufferBinding(binding);
|
||||
|
||||
IAstNode[] sources = new IAstNode[]
|
||||
{
|
||||
IAstNode[] sources =
|
||||
[
|
||||
new AstOperand(OperandType.Constant, binding),
|
||||
new AstOperand(OperandType.Constant, 0),
|
||||
new AstOperand(OperandType.Constant, vecIndex),
|
||||
new AstOperand(OperandType.Constant, elemIndex),
|
||||
};
|
||||
new AstOperand(OperandType.Constant, elemIndex)
|
||||
];
|
||||
|
||||
return new AstOperation(Instruction.Load, StorageKind.ConstantBuffer, false, sources, sources.Length);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user