aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/CodeGen
diff options
context:
space:
mode:
authorIsaac Marovitz <42140194+IsaacMarovitz@users.noreply.github.com>2022-12-10 15:21:13 -0500
committerGitHub <noreply@github.com>2022-12-10 21:21:13 +0100
commit851d81d24ab437bbe552a085cdd3caad6f4a1867 (patch)
treef86c541e454757fafdd67a6fcca9ec5234ecfdff /Ryujinx.Graphics.Shader/CodeGen
parent459c4caebac0bc16c04467d9dcd2ef7a9fc0bd92 (diff)
Fix Redundant Qualifer Warnings (#4091)
* Fix Redundant Qualifer Warnings * Remove unnecessary using
Diffstat (limited to 'Ryujinx.Graphics.Shader/CodeGen')
-rw-r--r--Ryujinx.Graphics.Shader/CodeGen/Spirv/Declarations.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/Ryujinx.Graphics.Shader/CodeGen/Spirv/Declarations.cs b/Ryujinx.Graphics.Shader/CodeGen/Spirv/Declarations.cs
index 54b00708..819ece41 100644
--- a/Ryujinx.Graphics.Shader/CodeGen/Spirv/Declarations.cs
+++ b/Ryujinx.Graphics.Shader/CodeGen/Spirv/Declarations.cs
@@ -10,8 +10,6 @@ using static Spv.Specification;
namespace Ryujinx.Graphics.Shader.CodeGen.Spirv
{
- using SpvInstruction = Spv.Generator.Instruction;
-
static class Declarations
{
// At least 16 attributes are guaranteed by the spec.
@@ -60,7 +58,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Spirv
for (int funcIndex = 0; funcIndex < functions.Count; funcIndex++)
{
StructuredFunction function = functions[funcIndex];
- SpvInstruction[] locals = new SpvInstruction[function.InArguments.Length];
+ Instruction[] locals = new Instruction[function.InArguments.Length];
for (int i = 0; i < function.InArguments.Length; i++)
{
@@ -122,7 +120,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Spirv
context.SharedMemory = DeclareMemory(context, StorageClass.Workgroup, size);
}
- private static SpvInstruction DeclareMemory(CodeGenContext context, StorageClass storage, int size)
+ private static Instruction DeclareMemory(CodeGenContext context, StorageClass storage, int size)
{
var arrayType = context.TypeArray(context.TypeU32(), context.Constant(context.TypeU32(), size));
var pointerType = context.TypePointer(storage, arrayType);