/ src / Ryujinx.Graphics.GAL / Multithreading / Commands / TextureArray / TextureArrayDisposeCommand.cs
TextureArrayDisposeCommand.cs
 1  using Ryujinx.Graphics.GAL.Multithreading.Model;
 2  using Ryujinx.Graphics.GAL.Multithreading.Resources;
 3  
 4  namespace Ryujinx.Graphics.GAL.Multithreading.Commands.TextureArray
 5  {
 6      struct TextureArrayDisposeCommand : IGALCommand, IGALCommand<TextureArrayDisposeCommand>
 7      {
 8          public readonly CommandType CommandType => CommandType.TextureArrayDispose;
 9          private TableRef<ThreadedTextureArray> _textureArray;
10  
11          public void Set(TableRef<ThreadedTextureArray> textureArray)
12          {
13              _textureArray = textureArray;
14          }
15  
16          public static void Run(ref TextureArrayDisposeCommand command, ThreadedRenderer threaded, IRenderer renderer)
17          {
18              command._textureArray.Get(threaded).Base.Dispose();
19          }
20      }
21  }