mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-04 00:49:02 -06:00 
			
		
		
		
	glasm: Fix tessellation input attributes
This commit is contained in:
		@@ -21,9 +21,12 @@ void GetCbuf(EmitContext& ctx, IR::Inst& inst, const IR::Value& binding, ScalarU
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
std::string VertexIndex(EmitContext& ctx, ScalarU32 vertex) {
 | 
			
		||||
    if (ctx.stage == Stage::Geometry) {
 | 
			
		||||
    switch (ctx.stage) {
 | 
			
		||||
    case Stage::TessellationControl:
 | 
			
		||||
    case Stage::TessellationEval:
 | 
			
		||||
    case Stage::Geometry:
 | 
			
		||||
        return fmt::format("[{}]", vertex);
 | 
			
		||||
    } else {
 | 
			
		||||
    default:
 | 
			
		||||
        return "";
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user