using Ryujinx.Graphics.GAL;
using Ryujinx.Graphics.Shader;
namespace Ryujinx.Graphics.Gpu.Shader
{
/// <summary>
/// Cached shader code for a single shader stage.
/// </summary>
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.
/// <param name="program">Shader program</param>
/// <param name="code">Maxwell binary shader code</param>
/// <param name="code2">Optional binary shader code of the "Vertex A" shader, when combined with "Vertex B"</param>
public ShaderCodeHolder(ShaderProgram program, byte[] code, byte[] code2 = null)
Program = program;
Code = code;
Code2 = code2;
}