mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-27 14:11:20 -08:00
glsl: Add gl_ViewportIndex out attribute
This commit is contained in:
parent
fc29de7d5b
commit
9f3970f837
@ -151,6 +151,9 @@ void SetupOutPerVertex(Stage stage, const Info& info, std::string& header) {
|
|||||||
header += "float gl_ClipDistance[];";
|
header += "float gl_ClipDistance[];";
|
||||||
}
|
}
|
||||||
header += "};\n";
|
header += "};\n";
|
||||||
|
if (info.stores_viewport_index) {
|
||||||
|
header += "out int gl_ViewportIndex;";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
@ -264,7 +267,6 @@ void EmitContext::SetupExtensions(std::string&) {
|
|||||||
}
|
}
|
||||||
if (info.stores_viewport_index) {
|
if (info.stores_viewport_index) {
|
||||||
header += "#extension GL_ARB_shader_viewport_layer_array : enable\n";
|
header += "#extension GL_ARB_shader_viewport_layer_array : enable\n";
|
||||||
header += "#extension GL_NV_viewport_array2 : enable\n";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user