ShaderCompiler::GlslExprTokenizer class

GLSL expression tokenizer (reusable outside the folder).

Public static functions

static void Tokenize(StringView text, std::size_t begin, std::size_t end, std::size_t index, std::vector<GlslToken>& out)

Function documentation

static void ShaderCompiler::GlslExprTokenizer::Tokenize(StringView text, std::size_t begin, std::size_t end, std::size_t index, std::vector<GlslToken>& out)

Appends the tokens of columns [begin, end) of text to out, tagging them with index (no End token is added)