diff options
Diffstat (limited to 'tools/render-test/shader-input-layout.cpp')
| -rw-r--r-- | tools/render-test/shader-input-layout.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/render-test/shader-input-layout.cpp b/tools/render-test/shader-input-layout.cpp index bb213cdaa..c03afaa9e 100644 --- a/tools/render-test/shader-input-layout.cpp +++ b/tools/render-test/shader-input-layout.cpp @@ -1015,9 +1015,12 @@ struct ShaderInputLayoutParser for (auto& line : lines) { lineNum++; - if (line.startsWith("//TEST_INPUT:")) + if (!line.startsWith("//")) + continue; + line = line.getUnownedSlice().tail(2).trim(); + if (line.startsWith("TEST_INPUT:")) { - auto lineContent = line.subString(13, line.getLength() - 13); + auto lineContent = line.subString(11, line.getLength() - 11); Misc::TokenReader parser(lineContent); try { |
