diff --git a/Ryujinx.Graphics/Gal/Shader/GlslDecompiler.cs b/Ryujinx.Graphics/Gal/Shader/GlslDecompiler.cs index 0ad437e786..804d64f64e 100644 --- a/Ryujinx.Graphics/Gal/Shader/GlslDecompiler.cs +++ b/Ryujinx.Graphics/Gal/Shader/GlslDecompiler.cs @@ -77,7 +77,9 @@ namespace Ryujinx.Graphics.Gal.Shader StringBuilder SB = new StringBuilder(); - PrintDeclUBOs(SB); + SB.AppendLine("#version 430"); + + PrintDeclSSBOs(SB); PrintDeclInAttributes(SB); PrintDeclOutAttributes(SB); @@ -94,12 +96,12 @@ namespace Ryujinx.Graphics.Gal.Shader return SB.ToString(); } - private void PrintDeclUBOs(StringBuilder SB) + private void PrintDeclSSBOs(StringBuilder SB) { foreach (int Cbuf in UsedCbufs) { SB.AppendLine($"layout(std430, binding = {Cbuf}) buffer {CbufBuffPrefix}{Cbuf} {{"); - SB.AppendLine($"{IdentationStr}float[] {CbufDataName};"); + SB.AppendLine($"{IdentationStr}float {CbufDataName}[];"); SB.AppendLine("};"); SB.AppendLine(string.Empty); } diff --git a/Ryujinx.Graphics/Gal/Shader/ShaderTest.cs b/Ryujinx.Graphics/Gal/Shader/ShaderTest.cs index 156f60fa20..c567336ca1 100644 --- a/Ryujinx.Graphics/Gal/Shader/ShaderTest.cs +++ b/Ryujinx.Graphics/Gal/Shader/ShaderTest.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; - namespace Ryujinx.Graphics.Gal.Shader { public static class ShaderTest