Ryujinx/Ryujinx.Graphics.Gpu/Shader/GraphicsShader.cs

28 lines
699 B
C#
Raw Normal View History

using Ryujinx.Graphics.GAL;
namespace Ryujinx.Graphics.Gpu.Shader
{
/// <summary>
/// Cached graphics shader code for all stages.
/// </summary>
class GraphicsShader
{
/// <summary>
/// Host shader program object.
/// </summary>
public IProgram HostProgram { get; set; }
/// <summary>
/// Compiled shader for each shader stage.
/// </summary>
2019-12-31 14:09:49 -08:00
public CachedShader[] Shaders { get; }
/// <summary>
/// Creates a new instance of cached graphics shader.
/// </summary>
public GraphicsShader()
{
2020-01-01 07:39:09 -08:00
Shaders = new CachedShader[Constants.ShaderStages];
}
}
}