mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-28 22:23:23 +01:00
0f6ec446ea
* Replace BGRA and scale uniforms with a uniform block * Setting the data again on program change is no longer needed * Optimize and resolve some warnings * Avoid redundant support buffer updates * Some optimizations to BindBuffers (now inlined) * Unify render scale arrays
36 lines
921 B
C#
36 lines
921 B
C#
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++;
|
|
}
|
|
}
|
|
}
|