Fix support for 565 textures (#2347)

* Fix support for 565 textures

This requires exposing a new USHORT_565 pixel data type.

* Update JS bindings
This commit is contained in:
Romain Guy
2020-04-06 12:01:41 -07:00
committed by GitHub
parent 6330b1625c
commit 72056ee9e3
8 changed files with 44 additions and 35 deletions

View File

@@ -430,6 +430,7 @@ public:
PixelDataType getType(int format) const noexcept {
switch (format) {
case BITMAP_CONFIG_RGB_565: return PixelDataType::USHORT_565;
case BITMAP_CONFIG_RGBA_F16: return PixelDataType::HALF;
default: return PixelDataType::UBYTE;
}