| 77 | } |
| 78 | |
| 79 | static const char* GetTextureTypeName( int textureType ) |
| 80 | { |
| 81 | switch( textureType ) |
| 82 | { |
| 83 | case OP_TEXTURE1D: |
| 84 | return "1D"; |
| 85 | case OP_TEXTURE2D: |
| 86 | return "2D"; |
| 87 | case OP_TEXTURE3D: |
| 88 | return "3D"; |
| 89 | case OP_TEXTURECUBE: |
| 90 | return "CUBE"; |
| 91 | default: |
| 92 | return ""; |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | static bool AssignTextureType( ParserState& state, Symbol* texture, int type, const ScannerToken& token ) |
| 97 | { |
no outgoing calls
no test coverage detected