mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-08 01:28:34 +00:00
22 lines
498 B
C#
22 lines
498 B
C#
|
namespace Ryujinx.Graphics.GAL.Multithreading.Resources.Programs
|
|||
|
{
|
|||
|
class BinaryProgramRequest : IProgramRequest
|
|||
|
{
|
|||
|
public ThreadedProgram Threaded { get; set; }
|
|||
|
|
|||
|
private byte[] _data;
|
|||
|
|
|||
|
public BinaryProgramRequest(ThreadedProgram program, byte[] data)
|
|||
|
{
|
|||
|
Threaded = program;
|
|||
|
|
|||
|
_data = data;
|
|||
|
}
|
|||
|
|
|||
|
public IProgram Create(IRenderer renderer)
|
|||
|
{
|
|||
|
return renderer.LoadProgramBinary(_data);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|