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