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

Function GetStringForUsageCode

shadercompiler/EffectData.cpp:6–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include "EffectData.h"
5
6const char* GetStringForUsageCode( int usageCode )
7{
8 static const char* str[] = {
9 "POSITION",
10 "COLOR",
11 "NORMAL",
12 "TANGENT",
13 "BINORMAL",
14 "TEXCOORD",
15 "BLENDINDICES",
16 "BLENDWEIGHT"
17 };
18
19 assert( 0 <= usageCode && usageCode < int( sizeof( str ) / sizeof( *str ) ) );
20 return str[usageCode];
21}
22
23const char* ToString( ConstantType constType )
24{

Callers 1

ProcessReflectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected