mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-25 02:05:47 +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();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|