TranslationCounts.cs 921 B

123456789101112131415161718192021222324252627282930313233343536
  1. namespace Ryujinx.Graphics.Shader.Translation
  2. {
  3. public class TranslationCounts
  4. {
  5. public int UniformBuffersCount { get; private set; }
  6. public int StorageBuffersCount { get; private set; }
  7. public int TexturesCount { get; private set; }
  8. public int ImagesCount { get; private set; }
  9. public TranslationCounts()
  10. {
  11. // The first binding is reserved for the support buffer.
  12. UniformBuffersCount = 1;
  13. }
  14. internal int IncrementUniformBuffersCount()
  15. {
  16. return UniformBuffersCount++;
  17. }
  18. internal int IncrementStorageBuffersCount()
  19. {
  20. return StorageBuffersCount++;
  21. }
  22. internal int IncrementTexturesCount()
  23. {
  24. return TexturesCount++;
  25. }
  26. internal int IncrementImagesCount()
  27. {
  28. return ImagesCount++;
  29. }
  30. }
  31. }