StructuredProgramInfo.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 InterpolationQualifier[] InterpolationQualifiers { get; }
  13. public bool UsesInstanceId { 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. InterpolationQualifiers = new InterpolationQualifier[32];
  26. Samplers = new HashSet<AstTextureOperation>();
  27. Images = new HashSet<AstTextureOperation>();
  28. }
  29. }
  30. }