mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-09 20:18:35 +00:00
38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
|
using Ryujinx.Graphics.Shader;
|
||
|
|
||
|
namespace Ryujinx.Graphics.Gpu.Shader
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Cached shader code for a single shader stage.
|
||
|
/// </summary>
|
||
|
class CachedShaderStage
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Shader program information.
|
||
|
/// </summary>
|
||
|
public ShaderProgramInfo Info { get; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Maxwell binary shader code.
|
||
|
/// </summary>
|
||
|
public byte[] Code { get; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Constant buffer 1 data accessed by the shader.
|
||
|
/// </summary>
|
||
|
public byte[] Cb1Data { get; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Creates a new instance of the shader code holder.
|
||
|
/// </summary>
|
||
|
/// <param name="info">Shader program information</param>
|
||
|
/// <param name="code">Maxwell binary shader code</param>
|
||
|
/// <param name="cb1Data">Constant buffer 1 data accessed by the shader</param>
|
||
|
public CachedShaderStage(ShaderProgramInfo info, byte[] code, byte[] cb1Data)
|
||
|
{
|
||
|
Info = info;
|
||
|
Code = code;
|
||
|
Cb1Data = cb1Data;
|
||
|
}
|
||
|
}
|
||
|
}
|