| 89 | } |
| 90 | |
| 91 | unsigned int TextureData::GetMipHeight(unsigned int mip) const { |
| 92 | const unsigned face = 0; |
| 93 | const unsigned index = face * mip_levels + mip; |
| 94 | if (index < mip_heights.size()) { |
| 95 | return mip_heights[index]; |
| 96 | } else { |
| 97 | return 0; |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | unsigned int TextureData::GetNumFaces() const { |
| 102 | return num_faces; |
no test coverage detected