some initial metal commits cherry-picked

This commit is contained in:
Evan Husted
2024-12-23 20:35:49 -06:00
parent 278fe9d4f0
commit cbad43b003
27 changed files with 2821 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
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 MaxUniformBuffersPerStage = 18;
public const int MaxStorageBuffersPerStage = 16;
public const int MaxTexturesPerStage = 64;
public const int MaxCommandBuffersPerQueue = 16;
public const int MaxTextureBindings = MaxTexturesPerStage * MaxShaderStages;
}
}