mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-26 03:57:11 +02:00
Structural and Memory Safety Improvements, Analyzer Cleanup (ryubing/ryujinx!47)
See merge request ryubing/ryujinx!47
This commit is contained in:
parent
d03ae9c164
commit
ea027d65a7
309 changed files with 1018 additions and 1247 deletions
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace Ryujinx.Graphics.Shader.Translation
|
||||
{
|
||||
|
|
|
@ -103,7 +103,7 @@ namespace Ryujinx.Graphics.Shader.Translation
|
|||
|
||||
this.BranchIfFalse(lblVertexInBounds, isVertexOob);
|
||||
this.Return();
|
||||
this.MarkLabel(lblVertexInBounds);
|
||||
MarkLabel(lblVertexInBounds);
|
||||
|
||||
Operand outputInstanceOffset = this.Load(StorageKind.Input, IoVariable.GlobalId, Const(1));
|
||||
Operand instanceCount = this.Load(StorageKind.ConstantBuffer, vertexInfoCbBinding, Const((int)VertexInfoBufferField.VertexCounts), Const(1));
|
||||
|
@ -116,7 +116,7 @@ namespace Ryujinx.Graphics.Shader.Translation
|
|||
|
||||
this.BranchIfFalse(lblInstanceInBounds, isInstanceOob);
|
||||
this.Return();
|
||||
this.MarkLabel(lblInstanceInBounds);
|
||||
MarkLabel(lblInstanceInBounds);
|
||||
|
||||
if (TranslatorContext.Stage == ShaderStage.Vertex)
|
||||
{
|
||||
|
@ -469,7 +469,7 @@ namespace Ryujinx.Graphics.Shader.Translation
|
|||
|
||||
this.BranchIfTrue(alphaPassLabel, alphaPass);
|
||||
this.Discard();
|
||||
this.MarkLabel(alphaPassLabel);
|
||||
MarkLabel(alphaPassLabel);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -556,7 +556,7 @@ namespace Ryujinx.Graphics.Shader.Translation
|
|||
Operand lblLoopHead = Label();
|
||||
Operand lblExit = Label();
|
||||
|
||||
this.MarkLabel(lblLoopHead);
|
||||
MarkLabel(lblLoopHead);
|
||||
|
||||
Operand writtenIndices = this.Load(StorageKind.LocalMemory, ResourceManager.LocalGeometryOutputIndexCountMemoryId);
|
||||
|
||||
|
@ -581,7 +581,7 @@ namespace Ryujinx.Graphics.Shader.Translation
|
|||
|
||||
this.Branch(lblLoopHead);
|
||||
|
||||
this.MarkLabel(lblExit);
|
||||
MarkLabel(lblExit);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -617,7 +617,7 @@ namespace Ryujinx.Graphics.Shader.Translation
|
|||
|
||||
this.BranchIfTrue(a2cDitherEndLabel, opaque);
|
||||
this.Discard();
|
||||
this.MarkLabel(a2cDitherEndLabel);
|
||||
MarkLabel(a2cDitherEndLabel);
|
||||
}
|
||||
|
||||
public Operation[] GetOperations()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue