mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-23 02:25:12 +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();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|