mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-21 04:52:00 +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();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|