Ryujinx/Ryujinx.Graphics.GAL/ShaderInfo.cs

23 lines
658 B
C#
Raw Normal View History

namespace Ryujinx.Graphics.GAL
{
public struct ShaderInfo
{
public int FragmentOutputMap { get; }
2022-02-22 18:47:46 +00:00
public ProgramPipelineState? State { get; }
public bool FromCache { get; set; }
2022-02-22 18:47:46 +00:00
public ShaderInfo(int fragmentOutputMap, ProgramPipelineState state, bool fromCache = false)
2022-02-22 18:47:46 +00:00
{
FragmentOutputMap = fragmentOutputMap;
State = state;
FromCache = fromCache;
2022-02-22 18:47:46 +00:00
}
public ShaderInfo(int fragmentOutputMap, bool fromCache = false)
{
FragmentOutputMap = fragmentOutputMap;
2022-02-22 18:47:46 +00:00
State = null;
FromCache = fromCache;
}
}
}