ShaderInfo.cs 658 B

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