From c0f2491eaee7eb1088605f5bda8055b941a14f99 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sun, 2 Jun 2024 22:40:28 -0300 Subject: Vulkan separate descriptor set fixes (#6895) * Ensure descriptor sets are only re-used when all command buffers using it have completed * Fix some SPIR-V capabilities * Set update after bind flag if we exceed limits * Simpler fix for Intel * Format whitespace * Make struct readonly * Add barriers for extra set arrays too --- .../TextureArraySetTexturesCommand.cs | 27 ---------------------- 1 file changed, 27 deletions(-) delete mode 100644 src/Ryujinx.Graphics.GAL/Multithreading/Commands/TextureAndSamplerArray/TextureArraySetTexturesCommand.cs (limited to 'src/Ryujinx.Graphics.GAL/Multithreading/Commands/TextureAndSamplerArray/TextureArraySetTexturesCommand.cs') diff --git a/src/Ryujinx.Graphics.GAL/Multithreading/Commands/TextureAndSamplerArray/TextureArraySetTexturesCommand.cs b/src/Ryujinx.Graphics.GAL/Multithreading/Commands/TextureAndSamplerArray/TextureArraySetTexturesCommand.cs deleted file mode 100644 index cc94d1b6..00000000 --- a/src/Ryujinx.Graphics.GAL/Multithreading/Commands/TextureAndSamplerArray/TextureArraySetTexturesCommand.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Ryujinx.Graphics.GAL.Multithreading.Model; -using Ryujinx.Graphics.GAL.Multithreading.Resources; -using System.Linq; - -namespace Ryujinx.Graphics.GAL.Multithreading.Commands.TextureArray -{ - struct TextureArraySetTexturesCommand : IGALCommand, IGALCommand - { - public readonly CommandType CommandType => CommandType.TextureArraySetTextures; - private TableRef _textureArray; - private int _index; - private TableRef _textures; - - public void Set(TableRef textureArray, int index, TableRef textures) - { - _textureArray = textureArray; - _index = index; - _textures = textures; - } - - public static void Run(ref TextureArraySetTexturesCommand command, ThreadedRenderer threaded, IRenderer renderer) - { - ThreadedTextureArray textureArray = command._textureArray.Get(threaded); - textureArray.Base.SetTextures(command._index, command._textures.Get(threaded).Select(texture => ((ThreadedTexture)texture)?.Base).ToArray()); - } - } -} -- cgit v1.2.3