diff options
author | gdkchan <gab.dark.100@gmail.com> | 2022-11-10 13:38:38 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-10 13:38:38 -0300 |
commit | a6a67a2b7add9a9dc8c4f0bab730957b8ebaf6e8 (patch) | |
tree | 55bf091161239e653d7c5b0eea03d4201835911d /Ryujinx.Graphics.Vulkan/PipelineUid.cs | |
parent | c6d05301aae7509ea6a1ec29d39a72bac94d80b0 (diff) |
Minor improvement to Vulkan pipeline state and bindings management (#3829)1.1.340
* Minor improvement to Vulkan pipeline state and bindings management
* Clean up buffer textures too
* Use glBindTextureUnit
Diffstat (limited to 'Ryujinx.Graphics.Vulkan/PipelineUid.cs')
-rw-r--r-- | Ryujinx.Graphics.Vulkan/PipelineUid.cs | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/Ryujinx.Graphics.Vulkan/PipelineUid.cs b/Ryujinx.Graphics.Vulkan/PipelineUid.cs index 8ea52e20..78d6e9f7 100644 --- a/Ryujinx.Graphics.Vulkan/PipelineUid.cs +++ b/Ryujinx.Graphics.Vulkan/PipelineUid.cs @@ -21,15 +21,13 @@ namespace Ryujinx.Graphics.Vulkan public ulong Id8; public ulong Id9; - public ulong Id10; - public ulong Id11; - private uint VertexAttributeDescriptionsCount => (byte)((Id8 >> 38) & 0xFF); - private uint VertexBindingDescriptionsCount => (byte)((Id8 >> 46) & 0xFF); - private uint ViewportsCount => (byte)((Id8 >> 54) & 0xFF); - private uint ScissorsCount => (byte)((Id9 >> 0) & 0xFF); - private uint ColorBlendAttachmentStateCount => (byte)((Id9 >> 8) & 0xFF); - private bool HasDepthStencil => ((Id9 >> 63) & 0x1) != 0UL; + private uint VertexAttributeDescriptionsCount => (byte)((Id6 >> 38) & 0xFF); + private uint VertexBindingDescriptionsCount => (byte)((Id6 >> 46) & 0xFF); + private uint ViewportsCount => (byte)((Id6 >> 54) & 0xFF); + private uint ScissorsCount => (byte)((Id7 >> 0) & 0xFF); + private uint ColorBlendAttachmentStateCount => (byte)((Id7 >> 8) & 0xFF); + private bool HasDepthStencil => ((Id7 >> 63) & 0x1) != 0UL; public Array32<VertexInputAttributeDescription> VertexAttributeDescriptions; public Array33<VertexInputBindingDescription> VertexBindingDescriptions; @@ -47,7 +45,7 @@ namespace Ryujinx.Graphics.Vulkan { if (!Unsafe.As<ulong, Vector256<byte>>(ref Id0).Equals(Unsafe.As<ulong, Vector256<byte>>(ref other.Id0)) || !Unsafe.As<ulong, Vector256<byte>>(ref Id4).Equals(Unsafe.As<ulong, Vector256<byte>>(ref other.Id4)) || - !Unsafe.As<ulong, Vector256<byte>>(ref Id8).Equals(Unsafe.As<ulong, Vector256<byte>>(ref other.Id8))) + !Unsafe.As<ulong, Vector128<byte>>(ref Id8).Equals(Unsafe.As<ulong, Vector128<byte>>(ref other.Id8))) { return false; } @@ -91,9 +89,7 @@ namespace Ryujinx.Graphics.Vulkan Id6 * 23 ^ Id7 * 23 ^ Id8 * 23 ^ - Id9 * 23 ^ - Id10 * 23 ^ - Id11 * 23; + Id9 * 23; for (int i = 0; i < (int)VertexAttributeDescriptionsCount; i++) { |