MCPcopy Create free account
hub / github.com/alecazam/kram / ParseSemantic

Function ParseSemantic

hlslparser/src/MSLGenerator.cpp:29–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28namespace M4 {
29static void ParseSemantic(const char* semantic, uint32_t* outputLength, uint32_t* outputIndex)
30{
31 const char* semanticIndex = semantic;
32
33 while (*semanticIndex && !isdigit(*semanticIndex)) {
34 semanticIndex++;
35 }
36
37 *outputLength = (uint32_t)(semanticIndex - semantic);
38 *outputIndex = atoi(semanticIndex);
39}
40
41// Parse register name and advance next register index.
42static int ParseRegister(const char* registerName, int& nextRegister)

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected