aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.GAL/ShaderInfo.cs
blob: b4c87117899924825b047d3fdd4a2a85a25035a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
namespace Ryujinx.Graphics.GAL
{
    public struct ShaderInfo
    {
        public int FragmentOutputMap { get; }
        public ProgramPipelineState? State { get; }
        public bool FromCache { get; set; }

        public ShaderInfo(int fragmentOutputMap, ProgramPipelineState state, bool fromCache = false)
        {
            FragmentOutputMap = fragmentOutputMap;
            State = state;
            FromCache = fromCache;
        }

        public ShaderInfo(int fragmentOutputMap, bool fromCache = false)
        {
            FragmentOutputMap = fragmentOutputMap;
            State = null;
            FromCache = fromCache;
        }
    }
}