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