ShaderCompiler::VertexIdRewrite namespace

Functions

auto FindSubstring(StringView haystack, StringView needle) -> std::size_t
Byte offset of needle in haystack, or Npos.
auto ReplaceAllOf(StringView s, StringView from, StringView to) -> String
Replaces every occurrence of from in s with to.
auto Apply(StringView src, bool& usedCorner, bool& usedInstance) -> String

Variables

std::size_t Npos constexpr
"Not found" sentinel of the string helpers below