| 106 | } |
| 107 | |
| 108 | unsigned int Image::getBaseStride() const |
| 109 | { |
| 110 | if (_baseType == BaseType::FLOAT) |
| 111 | { |
| 112 | return 4; |
| 113 | } |
| 114 | if (_baseType == BaseType::HALF || |
| 115 | _baseType == BaseType::UINT16 || |
| 116 | _baseType == BaseType::INT16) |
| 117 | { |
| 118 | return 2; |
| 119 | } |
| 120 | if (_baseType == BaseType::UINT8 || |
| 121 | _baseType == BaseType::INT8) |
| 122 | { |
| 123 | return 1; |
| 124 | } |
| 125 | throw Exception("Unsupported base type in getBaseStride"); |
| 126 | } |
| 127 | |
| 128 | unsigned int Image::getMaxMipCount() const |
| 129 | { |
no outgoing calls
no test coverage detected