MCPcopy Create free account
hub / github.com/crownengine/crown / getFormat

Function getFormat

3rdparty/bimg/src/image.cpp:293–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291 }
292
293 TextureFormat::Enum getFormat(const char* _name)
294 {
295 for (uint32_t ii = 0; ii < TextureFormat::Count; ++ii)
296 {
297 const TextureFormat::Enum fmt = TextureFormat::Enum(ii);
298 if (isValid(fmt) )
299 {
300 if (0 == bx::strCmpI(s_textureFormatName[ii], _name) )
301 {
302 return fmt;
303 }
304 }
305 }
306
307 return TextureFormat::Unknown;
308 }
309
310 uint8_t imageGetNumMips(TextureFormat::Enum _format, uint16_t _width, uint16_t _height, uint16_t _depth)
311 {

Callers 1

mainFunction · 0.85

Calls 3

strCmpIFunction · 0.85
EnumEnum · 0.70
isValidFunction · 0.70

Tested by

no test coverage detected