2019-11-14 13:26:40 -05:00
|
|
|
using Ryujinx.Graphics.GAL;
|
|
|
|
|
|
|
|
namespace Ryujinx.Graphics.Gpu.Shader
|
|
|
|
{
|
2019-12-30 23:46:57 -05:00
|
|
|
/// <summary>
|
|
|
|
/// Cached graphics shader code for all stages.
|
|
|
|
/// </summary>
|
2019-11-14 13:26:40 -05:00
|
|
|
class GraphicsShader
|
|
|
|
{
|
2019-12-30 23:46:57 -05:00
|
|
|
/// <summary>
|
|
|
|
/// Host shader program object.
|
|
|
|
/// </summary>
|
2019-11-14 13:26:40 -05:00
|
|
|
public IProgram HostProgram { get; set; }
|
|
|
|
|
2019-12-30 23:46:57 -05:00
|
|
|
/// <summary>
|
|
|
|
/// Compiled shader for each shader stage.
|
|
|
|
/// </summary>
|
2019-12-31 17:09:49 -05:00
|
|
|
public CachedShader[] Shaders { get; }
|
2019-11-14 13:26:40 -05:00
|
|
|
|
2019-12-30 23:46:57 -05:00
|
|
|
/// <summary>
|
|
|
|
/// Creates a new instance of cached graphics shader.
|
|
|
|
/// </summary>
|
2019-11-14 13:26:40 -05:00
|
|
|
public GraphicsShader()
|
|
|
|
{
|
2019-12-31 17:09:49 -05:00
|
|
|
Shaders = new CachedShader[5];
|
2019-11-14 13:26:40 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|