using Ryujinx.Graphics.GAL.Multithreading.Model; using Ryujinx.Graphics.GAL.Multithreading.Resources; namespace Ryujinx.Graphics.GAL.Multithreading.Commands.TextureArray { struct TextureArrayDisposeCommand : IGALCommand, IGALCommand { public readonly CommandType CommandType => CommandType.TextureArrayDispose; private TableRef _textureArray; public void Set(TableRef textureArray) { _textureArray = textureArray; } public static void Run(ref TextureArrayDisposeCommand command, ThreadedRenderer threaded, IRenderer renderer) { command._textureArray.Get(threaded).Base.Dispose(); } } }