aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Vulkan/Constants.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.Vulkan/Constants.cs')
-rw-r--r--Ryujinx.Graphics.Vulkan/Constants.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Vulkan/Constants.cs b/Ryujinx.Graphics.Vulkan/Constants.cs
new file mode 100644
index 00000000..f43d815a
--- /dev/null
+++ b/Ryujinx.Graphics.Vulkan/Constants.cs
@@ -0,0 +1,20 @@
+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;
+ }
+}