mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-29 03:53:05 +00:00
Forcing shader generation into using vec4 to prevent specific crashes
This commit is contained in:
parent
8261db61d4
commit
413665a941
1 changed files with 3 additions and 3 deletions
|
@ -297,7 +297,7 @@ namespace Ryujinx.Graphics.Gal.Shader
|
|||
{
|
||||
if (DeclInfo.Index >= 0)
|
||||
{
|
||||
SB.AppendLine("layout (location = " + DeclInfo.Index + ") " + InOut + " " + "vec4" + ";");
|
||||
SB.AppendLine("layout (location = " + DeclInfo.Index + ") " + InOut + " " + "vec4 " + DeclInfo.Name + ";");
|
||||
|
||||
Count++;
|
||||
}
|
||||
|
@ -370,7 +370,7 @@ namespace Ryujinx.Graphics.Gal.Shader
|
|||
|
||||
ShaderDeclInfo DeclInfo = KV.Value;
|
||||
|
||||
string Swizzle = ".xyzw".Substring(0, DeclInfo.Size + 1);
|
||||
string Swizzle = ".xyzw";
|
||||
|
||||
if (Decl.ShaderType == GalShaderType.Geometry)
|
||||
{
|
||||
|
@ -418,7 +418,7 @@ namespace Ryujinx.Graphics.Gal.Shader
|
|||
|
||||
ShaderDeclInfo DeclInfo = KV.Value;
|
||||
|
||||
string Swizzle = ".xyzw".Substring(0, DeclInfo.Size + 1);
|
||||
string Swizzle = ".xyzw";
|
||||
|
||||
string Name = Attr.Name;
|
||||
|
||||
|
|
Loading…
Reference in a new issue