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-12-31 23:09:49 +01:00
|
|
|
public CachedShader[] Shaders { get; }
|
2019-11-14 19:26:40 +01:00
|
|
|
|
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()
|
|
|
|
{
|
2020-01-01 16:39:09 +01:00
|
|
|
Shaders = new CachedShader[Constants.ShaderStages];
|
2019-11-14 19:26:40 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|