Ryujinx/Ryujinx.Graphics.GAL/ShaderInfo.cs
riperiperi 088ea4545c Fix and enable background compute shader compilation
Also disables warnings from shader cache pipeline misses.
2022-06-17 22:47:05 +01:00

23 lines
No EOL
658 B
C#

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;
}
}
}