mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-19 21:42:59 +01:00
Added ETC1 texture support. Added KTX file format support.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user