ShaderInfo.cs
1 namespace Ryujinx.Graphics.GAL 2 { 3 public struct ShaderInfo 4 { 5 public int FragmentOutputMap { get; } 6 public ResourceLayout ResourceLayout { get; } 7 public ProgramPipelineState? State { get; } 8 public bool FromCache { get; set; } 9 10 public ShaderInfo(int fragmentOutputMap, ResourceLayout resourceLayout, ProgramPipelineState state, bool fromCache = false) 11 { 12 FragmentOutputMap = fragmentOutputMap; 13 ResourceLayout = resourceLayout; 14 State = state; 15 FromCache = fromCache; 16 } 17 18 public ShaderInfo(int fragmentOutputMap, ResourceLayout resourceLayout, bool fromCache = false) 19 { 20 FragmentOutputMap = fragmentOutputMap; 21 ResourceLayout = resourceLayout; 22 State = null; 23 FromCache = fromCache; 24 } 25 } 26 }