summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit-hlsl.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2020-03-02 19:14:18 -0500
committerGitHub <noreply@github.com>2020-03-02 19:14:18 -0500
commitcbba1f2ba451f31e910d59fb9efbadc5e370c095 (patch)
treecf34d86713e2f915a42ce4ece11b7da82b9d4454 /source/slang/slang-emit-hlsl.cpp
parentdbd8e8dc0847338a2a93d35385f48b5ce5671dd6 (diff)
Renamed UnownedStringSlice::size to getLength to make match String. (#1254)
Diffstat (limited to 'source/slang/slang-emit-hlsl.cpp')
-rw-r--r--source/slang/slang-emit-hlsl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-emit-hlsl.cpp b/source/slang/slang-emit-hlsl.cpp
index 1d4b6a317..a0e6e872d 100644
--- a/source/slang/slang-emit-hlsl.cpp
+++ b/source/slang/slang-emit-hlsl.cpp
@@ -773,7 +773,7 @@ void HLSLSourceEmitter::emitInterpolationModifiersImpl(IRInst* varInst, IRType*
auto decoration = (IRInterpolationModeDecoration*)dd;
UnownedStringSlice modeText = _getInterpolationModifierText(decoration->getMode());
- if (modeText.size() > 0)
+ if (modeText.getLength() > 0)
{
m_writer->emit(modeText);
m_writer->emitChar(' ');