1df6c07f78
* Pass MultiRange to BufferManager * Implement support for multi-range buffers using Vulkan sparse mappings * Use multi-range for remaining buffers, delete old methods * Assume that more buffers are contiguous * Dispose multi-range buffers after they are removed from the list * Properly init BufferBounds for constant and storage buffers * Do not try reading zero bytes data from an unmapped address on the shader cache + PR feedback * Fix misaligned sparse buffer offsets * Null check can be simplified * PR feedback
22 lines
1,006 B
C#
22 lines
1,006 B
C#
namespace Ryujinx.Graphics.Vulkan
|
|
{
|
|
static class Constants
|
|
{
|
|
public const int MaxVertexAttributes = 32;
|
|
public const int MaxVertexBuffers = 32;
|
|
public const int MaxTransformFeedbackBuffers = 4;
|
|
public const int MaxRenderTargets = 8;
|
|
public const int MaxViewports = 16;
|
|
public const int MaxShaderStages = 5;
|
|
public const int MaxUniformBuffersPerStage = 18;
|
|
public const int MaxStorageBuffersPerStage = 16;
|
|
public const int MaxTexturesPerStage = 64;
|
|
public const int MaxImagesPerStage = 16;
|
|
public const int MaxUniformBufferBindings = MaxUniformBuffersPerStage * MaxShaderStages;
|
|
public const int MaxStorageBufferBindings = MaxStorageBuffersPerStage * MaxShaderStages;
|
|
public const int MaxTextureBindings = MaxTexturesPerStage * MaxShaderStages;
|
|
public const int MaxImageBindings = MaxImagesPerStage * MaxShaderStages;
|
|
|
|
public const ulong SparseBufferAlignment = 0x10000;
|
|
}
|
|
}
|