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

Function ktxTexture_calcDataSizeTexture

lib/texture.c:780–785  ·  view source on GitHub ↗

* @memberof ktxTexture @private * @~English * @brief Return the number of bytes needed to store all the image data for * a ktxTexture. * * The caclulated size does not include space for storing the @c imageSize * fields of each mip level. * * @param[in] This pointer to the ktxTexture object of interest. * @param[in] fv enum specifying format version for which to calcula

Source from the content-addressed store, hash-verified

778 * @return the data size in bytes.
779 */
780ktx_size_t
781ktxTexture_calcDataSizeTexture(ktxTexture* This)
782{
783 assert (This != NULL);
784 return ktxTexture_calcDataSizeLevels(This, This->numLevels);
785}
786
787/**
788 * @memberof ktxTexture @private

Callers 2

ktxTexture2_constructFunction · 0.85
ktxTexture1_constructFunction · 0.85

Calls 1

assertFunction · 0.85

Tested by

no test coverage detected