TextureReleaseCommand.cs
1 using Ryujinx.Graphics.GAL.Multithreading.Model; 2 using Ryujinx.Graphics.GAL.Multithreading.Resources; 3 4 namespace Ryujinx.Graphics.GAL.Multithreading.Commands.Texture 5 { 6 struct TextureReleaseCommand : IGALCommand, IGALCommand<TextureReleaseCommand> 7 { 8 public readonly CommandType CommandType => CommandType.TextureRelease; 9 private TableRef<ThreadedTexture> _texture; 10 11 public void Set(TableRef<ThreadedTexture> texture) 12 { 13 _texture = texture; 14 } 15 16 public static void Run(ref TextureReleaseCommand command, ThreadedRenderer threaded, IRenderer renderer) 17 { 18 command._texture.Get(threaded).Base.Release(); 19 } 20 } 21 }