aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Gpu/Shader/CachedShaderStage.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.Graphics.Gpu/Shader/CachedShaderStage.cs')
-rw-r--r--src/Ryujinx.Graphics.Gpu/Shader/CachedShaderStage.cs38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/Ryujinx.Graphics.Gpu/Shader/CachedShaderStage.cs b/src/Ryujinx.Graphics.Gpu/Shader/CachedShaderStage.cs
new file mode 100644
index 00000000..22b08dd5
--- /dev/null
+++ b/src/Ryujinx.Graphics.Gpu/Shader/CachedShaderStage.cs
@@ -0,0 +1,38 @@
+using Ryujinx.Graphics.Shader;
+
+namespace Ryujinx.Graphics.Gpu.Shader
+{
+ /// <summary>
+ /// Cached shader code for a single shader stage.
+ /// </summary>
+ class CachedShaderStage
+ {
+ /// <summary>
+ /// Shader program information.
+ /// </summary>
+ public ShaderProgramInfo Info { get; }
+
+ /// <summary>
+ /// Maxwell binary shader code.
+ /// </summary>
+ public byte[] Code { get; }
+
+ /// <summary>
+ /// Constant buffer 1 data accessed by the shader.
+ /// </summary>
+ public byte[] Cb1Data { get; }
+
+ /// <summary>
+ /// Creates a new instance of the shader code holder.
+ /// </summary>
+ /// <param name="info">Shader program information</param>
+ /// <param name="code">Maxwell binary shader code</param>
+ /// <param name="cb1Data">Constant buffer 1 data accessed by the shader</param>
+ public CachedShaderStage(ShaderProgramInfo info, byte[] code, byte[] cb1Data)
+ {
+ Info = info;
+ Code = code;
+ Cb1Data = cb1Data;
+ }
+ }
+} \ No newline at end of file