yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

gl_shader_gen: Apply default value to gl_Position

Nvidia has sane default output values for varyings, but the other
vendors don't apply these. To properly emulate this we would have to
analyze the shader header. For the time being, apply the same default
Nvidia applies so we get the same behaviour on non-Nvidia drivers.
This commit is contained in:
ReinUsesLisp 2019-11-19 20:32:01 -03:00
parent 60993513af
commit bc10714dcf
No known key found for this signature in database
GPG Key ID: 2DFC508897B39CFE
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ layout (std140, binding = EMULATION_UBO_BINDING) uniform vs_config {
out += R"(
void main() {
gl_Position = vec4(0.0f, 0.0f, 0.0f, 1.0f);
execute_vertex();
)";
if (ir_b) {