using Ryujinx.Graphics.GAL.Multithreading.Model; using System; namespace Ryujinx.Graphics.GAL.Multithreading.Commands { struct SetVertexAttribsCommand : IGALCommand, IGALCommand { public CommandType CommandType => CommandType.SetVertexAttribs; private SpanRef _vertexAttribs; public void Set(SpanRef vertexAttribs) { _vertexAttribs = vertexAttribs; } public static void Run(ref SetVertexAttribsCommand command, ThreadedRenderer threaded, IRenderer renderer) { ReadOnlySpan vertexAttribs = command._vertexAttribs.Get(threaded); renderer.Pipeline.SetVertexAttribs(vertexAttribs); command._vertexAttribs.Dispose(threaded); } } }