Adding uncompressed pixel support to transcoder wrappers in webgl/transcoder/basis_wrappers.cpp. Note uncompressed hasn't been tested yet, but I've verified that compressed still works.

This commit is contained in:
richgel999
2019-09-19 21:39:57 -07:00
parent 33bf902b01
commit c2869ffecc
5 changed files with 104 additions and 48 deletions

View File

@@ -8415,6 +8415,22 @@ namespace basist
}
return false;
}
uint32_t basis_get_uncompressed_bytes_per_pixel(transcoder_texture_format fmt)
{
switch (fmt)
{
case cTFRGBA32:
return sizeof(uint32_t);
case cTFRGB565:
case cTFBGR565:
case cTFRGBA4444:
return sizeof(uint16_t);
default:
break;
}
return 0;
}
} // namespace basist