From 528c5a7ef9e3e7cadf9a2caefa3ca115b382df75 Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 2 Mar 2025 17:28:07 +1100 Subject: シ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sc/sc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sc') diff --git a/sc/sc.cpp b/sc/sc.cpp index 9232e10..1f7ccba 100644 --- a/sc/sc.cpp +++ b/sc/sc.cpp @@ -601,7 +601,7 @@ struct Desc { size_t i, l = trgts.size(); for (i = 0; i < l; i++) { auto& attr = trgts[i]; - ss << "layout (location = 0) out "; + ss << "layout (location = " << i << ") out "; ss << attr.tname << " "; ss << attr.name << ";\n"; } -- cgit v1.2.3-54-g00ecf