Fix gl_Layer to geometry shader change not writing gl_Layer (#5682)

* Fix gl_Layer to geometry shader change not writing gl_Layer

* Shader cache version bump
This commit is contained in:
gdkchan 2023-09-14 14:53:53 -03:00 committed by GitHub
parent e6700b314f
commit a745913329
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -576,6 +576,11 @@ namespace Ryujinx.Graphics.Shader.Translation
int outputAttributesMask = AttributeUsage.UsedOutputAttributes;
int layerOutputAttr = LayerOutputAttribute;
if (LayerOutputWritten)
{
outputAttributesMask |= 1 << ((layerOutputAttr - AttributeConsts.UserAttributeBase) / 16);
}
OutputTopology outputTopology;
int maxOutputVertices;