mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-30 09:39:56 -06:00
Use explicit buffer and texture bindings on shaders (#1666)
* Use explicit buffer and texture bindings on shaders * More XML docs and other nits
This commit is contained in:
30
Ryujinx.Graphics.Shader/Translation/TranslationCounts.cs
Normal file
30
Ryujinx.Graphics.Shader/Translation/TranslationCounts.cs
Normal file
@ -0,0 +1,30 @@
|
||||
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; }
|
||||
|
||||
internal int IncrementUniformBuffersCount()
|
||||
{
|
||||
return UniformBuffersCount++;
|
||||
}
|
||||
|
||||
internal int IncrementStorageBuffersCount()
|
||||
{
|
||||
return StorageBuffersCount++;
|
||||
}
|
||||
|
||||
internal int IncrementTexturesCount()
|
||||
{
|
||||
return TexturesCount++;
|
||||
}
|
||||
|
||||
internal int IncrementImagesCount()
|
||||
{
|
||||
return ImagesCount++;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user