diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-10-17 16:26:27 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-10-17 16:26:27 +0000 |
| commit | 435f70be7aebd9a669d6a276df67e8eb814a45e3 (patch) | |
| tree | 040377c1ac3201fef75c01e9e3535a172babbcb1 /Common/interface | |
| parent | Improved StrCmpSuff() to allow optional suffix (diff) | |
| download | DiligentCore-435f70be7aebd9a669d6a276df67e8eb814a45e3.tar.gz DiligentCore-435f70be7aebd9a669d6a276df67e8eb814a45e3.zip | |
Implemented separate samplers in D3D11
Diffstat (limited to 'Common/interface')
| -rw-r--r-- | Common/interface/StringTools.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Common/interface/StringTools.h b/Common/interface/StringTools.h index 2ce9729d..e7e14dfd 100644 --- a/Common/interface/StringTools.h +++ b/Common/interface/StringTools.h @@ -98,7 +98,7 @@ inline int StrCmpNoCase(const char* Str1, const char* Str2) } // Returns true if RefStr == Str + Suff -// If NoSuffixAllowed == true, also returns true if RefStr == Str +// If Suff == nullptr or NoSuffixAllowed == true, also returns true if RefStr == Str inline bool StrCmpSuff(const char* RefStr, const char* Str, const char* Suff, bool NoSuffixAllowed = false) { VERIFY_EXPR(RefStr != nullptr && Str!= nullptr); @@ -123,9 +123,9 @@ inline bool StrCmpSuff(const char* RefStr, const char* Str, const char* Suff, bo if (*s != 0) { - // abc abc_def - // ^ ^ - // r s + // ab abc + // ^ ^ + // r s VERIFY_EXPR(*r == 0); return false; } |
