mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-04 00:49:02 -06:00 
			
		
		
		
	glsl: Add gl_PerVertex in for GS
This commit is contained in:
		@@ -245,7 +245,8 @@ EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile
 | 
			
		||||
        break;
 | 
			
		||||
    case Stage::Geometry:
 | 
			
		||||
        stage_name = "gs";
 | 
			
		||||
        header += fmt::format("layout({})in;layout({},max_vertices={})out;",
 | 
			
		||||
        header += fmt::format("layout({})in;layout({},max_vertices={})out;"
 | 
			
		||||
                              "in gl_PerVertex{{vec4 gl_Position;}}gl_in[];",
 | 
			
		||||
                              InputPrimitive(runtime_info.input_topology),
 | 
			
		||||
                              OutputPrimitive(program.output_topology), program.output_vertices);
 | 
			
		||||
        break;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user