aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.GAL/ShaderBindings.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.GAL/ShaderBindings.cs')
-rw-r--r--Ryujinx.Graphics.GAL/ShaderBindings.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.GAL/ShaderBindings.cs b/Ryujinx.Graphics.GAL/ShaderBindings.cs
new file mode 100644
index 00000000..ea8e1749
--- /dev/null
+++ b/Ryujinx.Graphics.GAL/ShaderBindings.cs
@@ -0,0 +1,24 @@
+using System.Collections.Generic;
+
+namespace Ryujinx.Graphics.GAL
+{
+ public struct ShaderBindings
+ {
+ public IReadOnlyCollection<int> UniformBufferBindings { get; }
+ public IReadOnlyCollection<int> StorageBufferBindings { get; }
+ public IReadOnlyCollection<int> TextureBindings { get; }
+ public IReadOnlyCollection<int> ImageBindings { get; }
+
+ public ShaderBindings(
+ IReadOnlyCollection<int> uniformBufferBindings,
+ IReadOnlyCollection<int> storageBufferBindings,
+ IReadOnlyCollection<int> textureBindings,
+ IReadOnlyCollection<int> imageBindings)
+ {
+ UniformBufferBindings = uniformBufferBindings;
+ StorageBufferBindings = storageBufferBindings;
+ TextureBindings = textureBindings;
+ ImageBindings = imageBindings;
+ }
+ }
+}