using Ryujinx.Graphics.GAL.Multithreading.Model; using Ryujinx.Graphics.GAL.Multithreading.Resources; using System; namespace Ryujinx.Graphics.GAL.Multithreading.Commands.Texture { struct TextureGetDataCommand : IGALCommand, IGALCommand { public CommandType CommandType => CommandType.TextureGetData; private TableRef _texture; private TableRef>> _result; public void Set(TableRef texture, TableRef>> result) { _texture = texture; _result = result; } public static void Run(ref TextureGetDataCommand command, ThreadedRenderer threaded, IRenderer renderer) { PinnedSpan result = command._texture.Get(threaded).Base.GetData(); command._result.Get(threaded).Result = result; } } }