mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-08-30 07:25:05 +00:00
* Stuff * More arg buffer stuff * Fixes * Rebase * Pass storage buffers to inline functions * Fix binding * Fix typo + Fix a couple shaders * Enforce ids * Dispose * Mark used buffers as resident * Update depth clear shader * Fix non-contiguous struct defs * Update ChangeBufferStride * Fix StorageBuffer assignments * Fix odyssey crash * Retain buffer bindings * Pad Std140 * Set texture data with safe buffers * Clone buffers * Always declare vert in * Stop clears from breaking OpenGL games * Fix depth clear * Use invariant position * Horribly inefficient texture & sampler arg buffers * Fix missing struct access * Minimise rebinds as much as possible * Build arg buffers on staging buffer
26 lines
1,022 B
C#
26 lines
1,022 B
C#
namespace Ryujinx.Graphics.Metal
|
|
{
|
|
static class Constants
|
|
{
|
|
// TODO: Check these values, these were largely copied from Vulkan
|
|
public const int MaxShaderStages = 5;
|
|
public const int MaxVertexBuffers = 16;
|
|
public const int MaxUniformBuffersPerStage = 18;
|
|
public const int MaxStorageBuffersPerStage = 16;
|
|
public const int MaxTexturesPerStage = 64;
|
|
public const int MaxTextureBindings = MaxTexturesPerStage * MaxShaderStages;
|
|
public const int MaxColorAttachments = 8;
|
|
// TODO: Check this value
|
|
public const int MaxVertexAttributes = 31;
|
|
// TODO: Check this value
|
|
public const int MaxVertexLayouts = 31;
|
|
|
|
public const int MinResourceAlignment = 16;
|
|
|
|
// Must match constants set in shader generation
|
|
public const uint ConstantBuffersIndex = 20;
|
|
public const uint StorageBuffersIndex = 21;
|
|
public const uint ZeroBufferIndex = 18;
|
|
public const uint TexturesIndex = 22;
|
|
}
|
|
}
|