mirror of
https://github.com/BinomialLLC/basis_universal.git
synced 2026-08-04 12:29:04 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user