diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/gfx/d3d/d3d-util.cpp | 2 | ||||
| -rw-r--r-- | tools/render-test/options.cpp | 2 | ||||
| -rw-r--r-- | tools/slang-generate/main.cpp | 2 | ||||
| -rw-r--r-- | tools/slang-test/slang-test-main.cpp | 6 |
4 files changed, 6 insertions, 6 deletions
diff --git a/tools/gfx/d3d/d3d-util.cpp b/tools/gfx/d3d/d3d-util.cpp index 3f25ff46c..c746655c7 100644 --- a/tools/gfx/d3d/d3d-util.cpp +++ b/tools/gfx/d3d/d3d-util.cpp @@ -368,7 +368,7 @@ bool D3DUtil::isTypeless(DXGI_FORMAT format) static bool _isMatch(IDXGIAdapter* adapter, const Slang::UnownedStringSlice& lowerAdapaterName) { - if (lowerAdapaterName.size() == 0) + if (lowerAdapaterName.getLength() == 0) { return true; } diff --git a/tools/render-test/options.cpp b/tools/render-test/options.cpp index bd6d2b364..8331de07e 100644 --- a/tools/render-test/options.cpp +++ b/tools/render-test/options.cpp @@ -245,7 +245,7 @@ SlangResult parseOptions(int argc, const char*const* argv, Slang::WriterHelper s { // Lookup Slang::UnownedStringSlice argSlice(arg); - if (argSlice.size() && argSlice[0] == '-') + if (argSlice.getLength() && argSlice[0] == '-') { // Look up the rendering API if set UnownedStringSlice argName = UnownedStringSlice(argSlice.begin() + 1, argSlice.end()); diff --git a/tools/slang-generate/main.cpp b/tools/slang-generate/main.cpp index be06836e7..979127f8d 100644 --- a/tools/slang-generate/main.cpp +++ b/tools/slang-generate/main.cpp @@ -558,7 +558,7 @@ void emitSimpleText( while (StringUtil::extractLine(content, line)) { // Write the line - fwrite(line.begin(), 1, line.size(), stream); + fwrite(line.begin(), 1, line.getLength(), stream); // Specially handle the 'final line', excluding an empty line after \n. // We can detect, as if input ends with 'cr/lf' combination, content.begin == span.end(), else if content.begin() == nullptr. diff --git a/tools/slang-test/slang-test-main.cpp b/tools/slang-test/slang-test-main.cpp index 9f9ad527a..01655a4fe 100644 --- a/tools/slang-test/slang-test-main.cpp +++ b/tools/slang-test/slang-test-main.cpp @@ -568,7 +568,7 @@ static SlangResult _extractRenderTestRequirements(const CommandLine& cmdLine, Te for (const auto& arg: args) { Slang::UnownedStringSlice argSlice = arg.value.getUnownedSlice(); - if (argSlice.size() && argSlice[0] == '-') + if (argSlice.getLength() && argSlice[0] == '-') { // Look up the rendering API if set UnownedStringSlice argName = UnownedStringSlice(argSlice.begin() + 1, argSlice.end()); @@ -1918,7 +1918,7 @@ static SlangResult _extractProfileTime(const UnownedStringSlice& text, double& t { if (line.startsWith(lineStart)) { - UnownedStringSlice remaining(line.begin() + lineStart.size(), line.end()); + UnownedStringSlice remaining(line.begin() + lineStart.getLength(), line.end()); remaining.trim(); timeOut = StringToDouble(String(remaining)); @@ -1970,7 +1970,7 @@ TestResult runPerformanceProfile(TestContext* context, TestInput& input) static double _textToDouble(const UnownedStringSlice& slice) { - Index size = Index(slice.size()); + Index size = Index(slice.getLength()); // We have to zero terminate to be able to use atof const Index maxSize = 80; char buffer[maxSize + 1]; |
