MCPcopy Create free account
hub / github.com/carbonengine/trinity / IsPermutationPragma

Function IsPermutationPragma

shadercompiler/ParserState.cpp:515–519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513{
514
515bool IsPermutationPragma( const std::string& pragma )
516{
517 const char* prefix = "permutation";
518 return strncmp( pragma.c_str(), prefix, strlen( prefix ) ) == 0 && !isalnum( pragma[strlen( prefix )] );
519}
520
521bool GetPermutationInfo( const std::string& pragma, Permutation& permutation )
522{

Callers 2

DiscoverPermutationsMethod · 0.85
AddPragmaMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected