aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/ShaderProgram.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.Shader/ShaderProgram.cs')
-rw-r--r--Ryujinx.Graphics.Shader/ShaderProgram.cs13
1 files changed, 8 insertions, 5 deletions
diff --git a/Ryujinx.Graphics.Shader/ShaderProgram.cs b/Ryujinx.Graphics.Shader/ShaderProgram.cs
index dd87b67d..29fff21e 100644
--- a/Ryujinx.Graphics.Shader/ShaderProgram.cs
+++ b/Ryujinx.Graphics.Shader/ShaderProgram.cs
@@ -1,25 +1,28 @@
+using Ryujinx.Graphics.Shader.Translation;
using System;
namespace Ryujinx.Graphics.Shader
{
public class ShaderProgram
{
- public ShaderStage Stage { get; }
+ public ShaderProgramInfo Info { get; }
+ public TargetLanguage Language { get; }
public string Code { get; private set; }
public byte[] BinaryCode { get; }
- private ShaderProgram(ShaderStage stage)
+ private ShaderProgram(ShaderProgramInfo info, TargetLanguage language)
{
- Stage = stage;
+ Info = info;
+ Language = language;
}
- public ShaderProgram(ShaderStage stage, string code) : this(stage)
+ public ShaderProgram(ShaderProgramInfo info, TargetLanguage language, string code) : this(info, language)
{
Code = code;
}
- public ShaderProgram(ShaderStage stage, byte[] binaryCode) : this(stage)
+ public ShaderProgram(ShaderProgramInfo info, TargetLanguage language, byte[] binaryCode) : this(info, language)
{
BinaryCode = binaryCode;
}