Added ETC1 texture support. Added KTX file format support.

This commit is contained in:
bkaradzic
2013-09-02 16:22:53 -07:00
parent 9537208d2f
commit 19dd4020f4
13 changed files with 1185 additions and 875 deletions

View File

@@ -1000,6 +1000,7 @@ namespace bgfx
8, // BC3
4, // BC4
8, // BC5
4, // ETC1
0, // Unknown
8, // L8
32, // BGRX8
@@ -1012,6 +1013,11 @@ namespace bgfx
32, // RGB10A2
};
uint32_t getBitsPerPixel(TextureFormat::Enum _format)
{
return s_bitsPerPixel[_format];
}
void calcTextureSize(TextureInfo& _info, uint16_t _width, uint16_t _height, uint16_t _depth, uint8_t _numMips, TextureFormat::Enum _format)
{
_width = bx::uint32_max(1, _width);