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