MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / ktxTexture_GetElementSize

Function ktxTexture_GetElementSize

lib/texture.c:493–499  ·  view source on GitHub ↗

* @memberof ktxTexture * @~English * @brief Return the size in bytes of an elements of a texture's * images. * * For uncompressed textures an element is one texel. For compressed * textures it is one block. * * @param[in] This pointer to the ktxTexture object of interest. */

Source from the content-addressed store, hash-verified

491 * @param[in] This pointer to the ktxTexture object of interest.
492 */
493ktx_uint32_t
494ktxTexture_GetElementSize(ktxTexture* This)
495{
496 assert (This != NULL);
497
498 return (This->_protected->_formatSize.blockSizeInBits / 8);
499}
500
501/**
502 * @memberof ktxTexture @private

Calls 1

assertFunction · 0.85

Tested by

no test coverage detected