R/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 22:09:49 +00:00
public CachedShader[] Shaders { get; }
/// <summary>
/// Creates a new instance of cached graphics shader.
/// </summary>
public GraphicsShader()
{
2020-01-01 15:39:09 +00:00
Shaders = new CachedShader[Constants.ShaderStages];
}
}
}