summaryrefslogtreecommitdiff
path: root/sc/sc.cpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-03-02 17:28:07 +1100
committerquou <quou@disroot.org>2025-03-02 17:28:07 +1100
commit528c5a7ef9e3e7cadf9a2caefa3ca115b382df75 (patch)
tree4557c8cb90d182b4f82bc574d61204ff09b5f72f /sc/sc.cpp
parent3634e53cc68671a576754d6bb668f585f7e2c53d (diff)
Diffstat (limited to 'sc/sc.cpp')
-rw-r--r--sc/sc.cpp2
1 files changed, 1 insertions, 1 deletions
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";
}