StructuredProgramInfo.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 HelperFunctionsMask HelperFunctionsMask { get; set; }
  14. public HashSet<AstTextureOperation> Samplers { get; }
  15. public HashSet<AstTextureOperation> Images { get; }
  16. public StructuredProgramInfo(AstBlock mainBlock)
  17. {
  18. MainBlock = mainBlock;
  19. Locals = new HashSet<AstOperand>();
  20. CBuffers = new HashSet<int>();
  21. SBuffers = new HashSet<int>();
  22. IAttributes = new HashSet<int>();
  23. OAttributes = new HashSet<int>();
  24. Samplers = new HashSet<AstTextureOperation>();
  25. Images = new HashSet<AstTextureOperation>();
  26. }
  27. }
  28. }