| 126 | } |
| 127 | |
| 128 | const char * getName(forge::dtype type) |
| 129 | { |
| 130 | switch(type) |
| 131 | { |
| 132 | case s8 : return "char"; |
| 133 | case u8 : return "unsigned char"; |
| 134 | case s32 : return "int"; |
| 135 | case u32 : return "unsigned int"; |
| 136 | case f32 : return "float"; |
| 137 | case s16 : return "short"; |
| 138 | case u16 : return "unsigned short"; |
| 139 | default : TYPE_ERROR(1, type); |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | } |
| 144 | } |