aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.GAL/ShaderInfo.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.Graphics.GAL/ShaderInfo.cs')
-rw-r--r--src/Ryujinx.Graphics.GAL/ShaderInfo.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/Ryujinx.Graphics.GAL/ShaderInfo.cs b/src/Ryujinx.Graphics.GAL/ShaderInfo.cs
new file mode 100644
index 00000000..b4c87117
--- /dev/null
+++ b/src/Ryujinx.Graphics.GAL/ShaderInfo.cs
@@ -0,0 +1,23 @@
+namespace Ryujinx.Graphics.GAL
+{
+ public struct ShaderInfo
+ {
+ public int FragmentOutputMap { get; }
+ public ProgramPipelineState? State { get; }
+ public bool FromCache { get; set; }
+
+ public ShaderInfo(int fragmentOutputMap, ProgramPipelineState state, bool fromCache = false)
+ {
+ FragmentOutputMap = fragmentOutputMap;
+ State = state;
+ FromCache = fromCache;
+ }
+
+ public ShaderInfo(int fragmentOutputMap, bool fromCache = false)
+ {
+ FragmentOutputMap = fragmentOutputMap;
+ State = null;
+ FromCache = fromCache;
+ }
+ }
+} \ No newline at end of file