summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/glsl/emit_context.cpp
diff options
context:
space:
mode:
authorGravatar ameerj2021-06-01 00:07:14 -0400
committerGravatar ameerj2021-07-22 21:51:37 -0400
commit59576b82a8c06943e6b9fafbff6ed1884a4132a7 (patch)
tree68f1a4b587e5283524940466aafd1e1d4e3d6155 /src/shader_recompiler/backend/glsl/emit_context.cpp
parentglsl: Implement tessellation shaders (diff)
downloadyuzu-59576b82a8c06943e6b9fafbff6ed1884a4132a7.tar.gz
yuzu-59576b82a8c06943e6b9fafbff6ed1884a4132a7.tar.xz
yuzu-59576b82a8c06943e6b9fafbff6ed1884a4132a7.zip
glsl: Fix precise variable declaration
and add some more separation in the shader for better debugability when dumped
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_context.cpp')
-rw-r--r--src/shader_recompiler/backend/glsl/emit_context.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_context.cpp b/src/shader_recompiler/backend/glsl/emit_context.cpp
index 01403ca17..2375b7a06 100644
--- a/src/shader_recompiler/backend/glsl/emit_context.cpp
+++ b/src/shader_recompiler/backend/glsl/emit_context.cpp
@@ -150,7 +150,7 @@ void SetupOutPerVertex(Stage stage, const Info& info, std::string& header) {
150 if (info.stores_clip_distance) { 150 if (info.stores_clip_distance) {
151 header += "float gl_ClipDistance[];"; 151 header += "float gl_ClipDistance[];";
152 } 152 }
153 header += "};"; 153 header += "};\n";
154} 154}
155} // namespace 155} // namespace
156 156
@@ -223,6 +223,7 @@ EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile
223 header += declaration; 223 header += declaration;
224 } 224 }
225 } 225 }
226 header += "\n";
226 DefineConstantBuffers(bindings); 227 DefineConstantBuffers(bindings);
227 DefineStorageBuffers(bindings); 228 DefineStorageBuffers(bindings);
228 SetupImages(bindings); 229 SetupImages(bindings);