mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	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:
		
							parent
							
								
									60993513af
								
							
						
					
					
						commit
						bc10714dcf
					
				@ -32,6 +32,7 @@ layout (std140, binding = EMULATION_UBO_BINDING) uniform vs_config {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    out += R"(
 | 
					    out += R"(
 | 
				
			||||||
void main() {
 | 
					void main() {
 | 
				
			||||||
 | 
					    gl_Position = vec4(0.0f, 0.0f, 0.0f, 1.0f);
 | 
				
			||||||
    execute_vertex();
 | 
					    execute_vertex();
 | 
				
			||||||
)";
 | 
					)";
 | 
				
			||||||
    if (ir_b) {
 | 
					    if (ir_b) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user