2020-11-08 12:10:00 +01:00
|
|
|
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; }
|
|
|
|
|
2021-08-11 21:33:43 +02:00
|
|
|
public TranslationCounts()
|
|
|
|
{
|
|
|
|
// The first binding is reserved for the support buffer.
|
|
|
|
UniformBuffersCount = 1;
|
|
|
|
}
|
|
|
|
|
2020-11-08 12:10:00 +01:00
|
|
|
internal int IncrementUniformBuffersCount()
|
|
|
|
{
|
|
|
|
return UniformBuffersCount++;
|
|
|
|
}
|
|
|
|
|
|
|
|
internal int IncrementStorageBuffersCount()
|
|
|
|
{
|
|
|
|
return StorageBuffersCount++;
|
|
|
|
}
|
|
|
|
|
|
|
|
internal int IncrementTexturesCount()
|
|
|
|
{
|
|
|
|
return TexturesCount++;
|
|
|
|
}
|
|
|
|
|
|
|
|
internal int IncrementImagesCount()
|
|
|
|
{
|
|
|
|
return ImagesCount++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|