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