aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Shader/GraphicsShader.cs
blob: e348f304f38beb4d3b0010b0098e317f5811a425 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using Ryujinx.Graphics.GAL;

namespace Ryujinx.Graphics.Gpu.Shader
{
    /// <summary>
    /// Cached graphics shader code for all stages.
    /// </summary>
    class GraphicsShader
    {
        /// <summary>
        /// Host shader program object.
        /// </summary>
        public IProgram HostProgram { get; set; }

        /// <summary>
        /// Compiled shader for each shader stage.
        /// </summary>
        public CachedShader[] Shaders { get; }

        /// <summary>
        /// Creates a new instance of cached graphics shader.
        /// </summary>
        public GraphicsShader()
        {
            Shaders = new CachedShader[Constants.ShaderStages];
        }
    }
}