using Ryujinx.Graphics.GAL;
using Ryujinx.Graphics.Shader;
namespace Ryujinx.Graphics.Gpu.Shader
{
///
/// Cached shader code for a single shader stage.
///
class ShaderCodeHolder
{
///
/// Shader program containing translated code.
///
public ShaderProgram Program { get; }
///
/// Host shader object.
///
public IShader HostShader { get; set; }
///
/// Maxwell binary shader code.
///
public byte[] Code { get; }
///
/// Optional maxwell binary shader code for "Vertex A" shader.
///
public byte[] Code2 { get; }
///
/// Creates a new instace of the shader code holder.
///
/// Shader program
/// Maxwell binary shader code
/// Optional binary shader code of the "Vertex A" shader, when combined with "Vertex B"
public ShaderCodeHolder(ShaderProgram program, byte[] code, byte[] code2 = null)
{
Program = program;
Code = code;
Code2 = code2;
}
}
}