Skip to content

Commit 0ee4d4b

Browse files
committed
in-progress work: allow render-test to generate and bind various resource inputs for running test shaders with arbitrary parameter definitions.
This commit contains the parser of the resource input definition.
1 parent 5a18dc7 commit 0ee4d4b

19 files changed

+1423
-36
lines changed

source/core/core.vcxproj

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
<ClInclude Include="smart-pointer.h" />
3737
<ClInclude Include="stream.h" />
3838
<ClInclude Include="text-io.h" />
39+
<ClInclude Include="token-reader.h" />
3940
<ClInclude Include="type-traits.h" />
4041
</ItemGroup>
4142
<ItemGroup>
@@ -44,6 +45,7 @@
4445
<ClCompile Include="slang-string.cpp" />
4546
<ClCompile Include="stream.cpp" />
4647
<ClCompile Include="text-io.cpp" />
48+
<ClCompile Include="token-reader.cpp" />
4749
</ItemGroup>
4850
<ItemGroup>
4951
<Natvis Include="core.natvis" />

source/core/text-io.h

-22
Original file line numberDiff line numberDiff line change
@@ -311,28 +311,6 @@ namespace Slang
311311
stream = 0;
312312
}
313313
};
314-
315-
inline List<String> Split(String text, char c)
316-
{
317-
List<String> result;
318-
StringBuilder sb;
319-
for (int i = 0; i < text.Length(); i++)
320-
{
321-
if (text[i] == c)
322-
{
323-
auto str = sb.ToString();
324-
if (str.Length() != 0)
325-
result.Add(str);
326-
sb.Clear();
327-
}
328-
else
329-
sb << text[i];
330-
}
331-
auto lastStr = sb.ToString();
332-
if (lastStr.Length())
333-
result.Add(lastStr);
334-
return result;
335-
}
336314
}
337315

338316
#endif

0 commit comments

Comments
 (0)