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