mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-15 02:36:40 +00:00
23 lines
695 B
C#
23 lines
695 B
C#
|
using Ryujinx.Graphics.GAL.Multithreading.Model;
|
|||
|
using Ryujinx.Graphics.GAL.Multithreading.Resources;
|
|||
|
|
|||
|
namespace Ryujinx.Graphics.GAL.Multithreading.Commands.Renderer
|
|||
|
{
|
|||
|
struct CompileShaderCommand : IGALCommand
|
|||
|
{
|
|||
|
public CommandType CommandType => CommandType.CompileShader;
|
|||
|
private TableRef<ThreadedShader> _shader;
|
|||
|
|
|||
|
public void Set(TableRef<ThreadedShader> shader)
|
|||
|
{
|
|||
|
_shader = shader;
|
|||
|
}
|
|||
|
|
|||
|
public static void Run(ref CompileShaderCommand command, ThreadedRenderer threaded, IRenderer renderer)
|
|||
|
{
|
|||
|
ThreadedShader shader = command._shader.Get(threaded);
|
|||
|
shader.EnsureCreated();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|