| 4 | #include "EffectData.h" |
| 5 | |
| 6 | const 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 | |
| 23 | const char* ToString( ConstantType constType ) |
| 24 | { |