| 71 | } |
| 72 | |
| 73 | BLUE_CLASS( TriVariable ) : |
| 74 | public ITr2EffectValue |
| 75 | { |
| 76 | public: |
| 77 | // This class is not actually exposed |
| 78 | EXPOSE_TO_BLUE(); |
| 79 | |
| 80 | static const char* GetTypeName( TriVariableContentType t ) |
| 81 | { |
| 82 | static const char* typeNames[TRIVARIABLE_COUNT] = { |
| 83 | "INVALID TYPE!", |
| 84 | // A float variable type of some sort. May be converted into any known float type |
| 85 | "TRIVARIABLE_UNKNOWN_FLOAT", |
| 86 | "TRIVARIABLE_TEXTURE_RES", |
| 87 | "TRIVARIABLE_INT", |
| 88 | "TRIVARIABLE_FLOAT", |
| 89 | "TRIVARIABLE_FLOAT2", |
| 90 | "TRIVARIABLE_FLOAT3", |
| 91 | "TRIVARIABLE_FLOAT4", |
| 92 | "TRIVARIABLE_FLOAT4X4", |
| 93 | "TRIVARIABLE_COLOR", |
| 94 | "TRIVARIABLE_GPUBUFFER" |
| 95 | }; |
| 96 | |
| 97 | return typeNames[t]; |
| 98 | } |
| 99 | |
| 100 | static size_t GetTypeSize( TriVariableContentType t ) |
| 101 | { |
nothing calls this directly
no test coverage detected