MCPcopy Create free account
hub / github.com/dfranx/ShaderDebugger / GetMatrixTypeFromName

Function GetMatrixTypeFromName

src/Utils.cpp:122–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120 }
121 }
122 bv_type GetMatrixTypeFromName(const char* name)
123 {
124 for (int i = 0; i < floatMats.size(); i++)
125 if (strcmp(floatMats[i], name) == 0 || (i < doubleMats.size() && strcmp(doubleMats[i], name) == 0))
126 return bv_type_float;
127
128 return bv_type_void;
129 }
130 bv_type GetVariableTypeFromName(const char* name)
131 {
132 static const char* tNames[] = { "int", "float", "bool", "double", "uint", "byte", "char", "short", "half" };

Callers 2

DefaultConstructorFunction · 0.85

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected