aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/ShaderProgramInfo.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2023-02-25 07:39:51 -0300
committerGitHub <noreply@github.com>2023-02-25 10:39:51 +0000
commitcedd2007451c046a1276556bacb4e19333b11557 (patch)
treeea755d325fc23e0dca26e6138609a24429b37ce9 /Ryujinx.Graphics.Shader/ShaderProgramInfo.cs
parent58207685c0dcda07d18f5f538629c775e2a714b8 (diff)
Move gl_Layer to vertex shader if geometry is not supported (#4368)1.1.639
* Set gl_Layer on vertex shader if it's set on the geometry shader and it does nothing else * Shader cache version bump * PR feedback * Fix typo
Diffstat (limited to 'Ryujinx.Graphics.Shader/ShaderProgramInfo.cs')
-rw-r--r--Ryujinx.Graphics.Shader/ShaderProgramInfo.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Shader/ShaderProgramInfo.cs b/Ryujinx.Graphics.Shader/ShaderProgramInfo.cs
index bb75b10a..30f0ffaa 100644
--- a/Ryujinx.Graphics.Shader/ShaderProgramInfo.cs
+++ b/Ryujinx.Graphics.Shader/ShaderProgramInfo.cs
@@ -10,6 +10,8 @@ namespace Ryujinx.Graphics.Shader
public ReadOnlyCollection<TextureDescriptor> Textures { get; }
public ReadOnlyCollection<TextureDescriptor> Images { get; }
+ public ShaderIdentification Identification { get; }
+ public int GpLayerInputAttribute { get; }
public ShaderStage Stage { get; }
public bool UsesInstanceId { get; }
public bool UsesDrawParameters { get; }
@@ -22,6 +24,8 @@ namespace Ryujinx.Graphics.Shader
BufferDescriptor[] sBuffers,
TextureDescriptor[] textures,
TextureDescriptor[] images,
+ ShaderIdentification identification,
+ int gpLayerInputAttribute,
ShaderStage stage,
bool usesInstanceId,
bool usesDrawParameters,
@@ -34,6 +38,8 @@ namespace Ryujinx.Graphics.Shader
Textures = Array.AsReadOnly(textures);
Images = Array.AsReadOnly(images);
+ Identification = identification;
+ GpLayerInputAttribute = gpLayerInputAttribute;
Stage = stage;
UsesInstanceId = usesInstanceId;
UsesDrawParameters = usesDrawParameters;