ryujinx/src/Ryujinx.Graphics.Gpu/Shader/ResourceCounts.cs
gdkchan eb0bb36bbf
Implement transform feedback emulation for hardware without native support (#5080)
* Implement transform feedback emulation for hardware without native support

* Stop doing some useless buffer updates and account for non-zero base instance

* Reduce redundant updates even more

* Update descriptor init logic to account for ResourceLayout

* Fix transform feedback and storage buffers not being updated in some cases

* Shader cache version bump

* PR feedback

* SetInstancedDrawVertexCount must be always called after UpdateState

* Minor typo
2023-06-10 18:31:38 -03:00

28 lines
No EOL
717 B
C#

namespace Ryujinx.Graphics.Gpu.Shader
{
/// <summary>
/// Holds counts for the resources used by a shader.
/// </summary>
class ResourceCounts
{
/// <summary>
/// Total of uniform buffers used by the shaders.
/// </summary>
public int UniformBuffersCount;
/// <summary>
/// Total of storage buffers used by the shaders.
/// </summary>
public int StorageBuffersCount;
/// <summary>
/// Total of textures used by the shaders.
/// </summary>
public int TexturesCount;
/// <summary>
/// Total of images used by the shaders.
/// </summary>
public int ImagesCount;
}
}