mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-13 06:07:58 -05:00
glsl: Fix precise variable declaration
and add some more separation in the shader for better debugability when dumped
This commit is contained in:
@ -150,7 +150,7 @@ void SetupOutPerVertex(Stage stage, const Info& info, std::string& header) {
|
||||
if (info.stores_clip_distance) {
|
||||
header += "float gl_ClipDistance[];";
|
||||
}
|
||||
header += "};";
|
||||
header += "};\n";
|
||||
}
|
||||
} // namespace
|
||||
|
||||
@ -223,6 +223,7 @@ EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile
|
||||
header += declaration;
|
||||
}
|
||||
}
|
||||
header += "\n";
|
||||
DefineConstantBuffers(bindings);
|
||||
DefineStorageBuffers(bindings);
|
||||
SetupImages(bindings);
|
||||
|
Reference in New Issue
Block a user