aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/Translation/TranslationCounts.cs
blob: 6751d7ea6ac5123ced394485891ad844f4705a39 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
namespace Ryujinx.Graphics.Shader.Translation
{
    public class TranslationCounts
    {
        public int UniformBuffersCount { get; private set; }
        public int StorageBuffersCount { get; private set; }
        public int TexturesCount { get; private set; }
        public int ImagesCount { get; private set; }

        public TranslationCounts()
        {
            // The first binding is reserved for the support buffer.
            UniformBuffersCount = 1;
        }

        internal int IncrementUniformBuffersCount()
        {
            return UniformBuffersCount++;
        }

        internal int IncrementStorageBuffersCount()
        {
            return StorageBuffersCount++;
        }

        internal int IncrementTexturesCount()
        {
            return TexturesCount++;
        }

        internal int IncrementImagesCount()
        {
            return ImagesCount++;
        }
    }
}