StructuredProgramInfo.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System.Collections.Generic;
  2. namespace Ryujinx.Graphics.Shader.StructuredIr
  3. {
  4. class StructuredProgramInfo
  5. {
  6. public AstBlock MainBlock { get; }
  7. public HashSet<AstOperand> Locals { get; }
  8. public HashSet<int> CBuffers { get; }
  9. public HashSet<int> SBuffers { get; }
  10. public HashSet<int> IAttributes { get; }
  11. public HashSet<int> OAttributes { get; }
  12. public bool UsesInstanceId { get; set; }
  13. public bool UsesCbIndexing { get; set; }
  14. public HelperFunctionsMask HelperFunctionsMask { get; set; }
  15. public HashSet<AstTextureOperation> Samplers { get; }
  16. public HashSet<AstTextureOperation> Images { get; }
  17. public StructuredProgramInfo(AstBlock mainBlock)
  18. {
  19. MainBlock = mainBlock;
  20. Locals = new HashSet<AstOperand>();
  21. CBuffers = new HashSet<int>();
  22. SBuffers = new HashSet<int>();
  23. IAttributes = new HashSet<int>();
  24. OAttributes = new HashSet<int>();
  25. Samplers = new HashSet<AstTextureOperation>();
  26. Images = new HashSet<AstTextureOperation>();
  27. }
  28. }
  29. }