mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-10 02:21:44 +00:00
ece36b274d
* GAL: Send all buffer assignments at once rather than individually The `(int first, BufferRange[] ranges)` method call has very significant performance implications when the bindings are spread out, which they generally always are in Vulkan. This change makes it so that these methods are only called a maximum of one time per draw. Significantly improves GPU thread performance in Pokemon Scarlet/Violet. * Address Feedback Removed SetUniformBuffers(int first, ReadOnlySpan<BufferRange> buffers)
14 lines
No EOL
307 B
C#
14 lines
No EOL
307 B
C#
namespace Ryujinx.Graphics.GAL
|
|
{
|
|
public struct BufferAssignment
|
|
{
|
|
public readonly int Binding;
|
|
public readonly BufferRange Range;
|
|
|
|
public BufferAssignment(int binding, BufferRange range)
|
|
{
|
|
Binding = binding;
|
|
Range = range;
|
|
}
|
|
}
|
|
} |