From ddb64938968db5aa2a973604cf761f44c99d1c3d Mon Sep 17 00:00:00 2001 From: gdkchan Date: Tue, 5 Sep 2023 17:59:21 -0300 Subject: Delete ResourceAccess (#5626) * Delete ResourceAccess * Set write flag for vertex/geometry as compute output buffers --- src/Ryujinx.Graphics.GAL/ResourceLayout.cs | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'src/Ryujinx.Graphics.GAL') diff --git a/src/Ryujinx.Graphics.GAL/ResourceLayout.cs b/src/Ryujinx.Graphics.GAL/ResourceLayout.cs index 200292ee..84bca5b4 100644 --- a/src/Ryujinx.Graphics.GAL/ResourceLayout.cs +++ b/src/Ryujinx.Graphics.GAL/ResourceLayout.cs @@ -15,14 +15,6 @@ namespace Ryujinx.Graphics.GAL BufferImage, } - public enum ResourceAccess : byte - { - None = 0, - Read = 1, - Write = 2, - ReadWrite = Read | Write, - } - [Flags] public enum ResourceStages : byte { @@ -81,19 +73,17 @@ namespace Ryujinx.Graphics.GAL public int Binding { get; } public ResourceType Type { get; } public ResourceStages Stages { get; } - public ResourceAccess Access { get; } - public ResourceUsage(int binding, ResourceType type, ResourceStages stages, ResourceAccess access) + public ResourceUsage(int binding, ResourceType type, ResourceStages stages) { Binding = binding; Type = type; Stages = stages; - Access = access; } public override int GetHashCode() { - return HashCode.Combine(Binding, Type, Stages, Access); + return HashCode.Combine(Binding, Type, Stages); } public override bool Equals(object obj) @@ -103,7 +93,7 @@ namespace Ryujinx.Graphics.GAL public bool Equals(ResourceUsage other) { - return Binding == other.Binding && Type == other.Type && Stages == other.Stages && Access == other.Access; + return Binding == other.Binding && Type == other.Type && Stages == other.Stages; } public static bool operator ==(ResourceUsage left, ResourceUsage right) -- cgit v1.2.3