using Ryujinx.Graphics.Shader;
namespace Ryujinx.Graphics.Gpu.Shader
{
///
/// Cached shader code for a single shader stage.
///
class CachedShaderStage
{
///
/// Shader program information.
///
public ShaderProgramInfo Info { get; }
///
/// Maxwell binary shader code.
///
public byte[] Code { get; }
///
/// Constant buffer 1 data accessed by the shader.
///
public byte[] Cb1Data { get; }
///
/// Creates a new instance of the shader code holder.
///
/// Shader program information
/// Maxwell binary shader code
/// Constant buffer 1 data accessed by the shader
public CachedShaderStage(ShaderProgramInfo info, byte[] code, byte[] cb1Data)
{
Info = info;
Code = code;
Cb1Data = cb1Data;
}
}
}