mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-13 21:27:56 -05:00
HACK glsl: Write defaults to unused generic attributes
This commit is contained in:
@ -209,6 +209,12 @@ std::string EmitGLSL(const Profile& profile, const RuntimeInfo& runtime_info, IR
|
||||
ctx.header += "void main(){\n";
|
||||
if (program.stage == Stage::VertexA || program.stage == Stage::VertexB) {
|
||||
ctx.header += "gl_Position = vec4(0.0f, 0.0f, 0.0f, 1.0f);";
|
||||
// TODO: Properly resolve attribute issues
|
||||
for (size_t index = 0; index < program.info.stores_generics.size() / 2; ++index) {
|
||||
if (!program.info.stores_generics[index]) {
|
||||
ctx.header += fmt::format("out_attr{}=vec4(0,0,0,1);", index);
|
||||
}
|
||||
}
|
||||
}
|
||||
DefineVariables(ctx, ctx.header);
|
||||
if (ctx.uses_cc_carry) {
|
||||
|
Reference in New Issue
Block a user