mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-07-01 11:20:46 -07:00
Replace BGRA and scale uniforms with a uniform block (#2496)
* 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
This commit is contained in:
@ -7,6 +7,12 @@ namespace Ryujinx.Graphics.Shader.Translation
|
||||
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++;
|
||||
|
Reference in New Issue
Block a user