diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2023-09-05 17:59:21 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-05 22:59:21 +0200 |
| commit | ddb64938968db5aa2a973604cf761f44c99d1c3d (patch) | |
| tree | 711f131d99e56b1a09e259ed30e120ab67a24d36 /src/Ryujinx.Graphics.GAL/ResourceLayout.cs | |
| parent | f631933e6050c8db965c0d63b6dbea5971c3d685 (diff) | |
Delete ResourceAccess (#5626)
* Delete ResourceAccess
* Set write flag for vertex/geometry as compute output buffers
Diffstat (limited to 'src/Ryujinx.Graphics.GAL/ResourceLayout.cs')
| -rw-r--r-- | src/Ryujinx.Graphics.GAL/ResourceLayout.cs | 16 |
1 files changed, 3 insertions, 13 deletions
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) |
