summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-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";
}