Enable KTX sRGB formats

- When parsing, set m_srgb flag on the ImageContainer if the image
  is in an sRGB format.

- When writing, take a new srgb parameter. If set, use the appropriate
  sRGB format.
This commit is contained in:
Robin Allen
2020-03-03 22:14:59 +00:00
parent f19841e815
commit 7d226675ea
2 changed files with 20 additions and 5 deletions

View File

@@ -541,6 +541,7 @@ namespace bimg
, uint32_t _depth
, uint8_t _numMips
, uint32_t _numLayers
, bool _srgb
, const void* _src
, bx::Error* _err = NULL
);