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

Function ktxTexture2_levelFileOffset

lib/texture2.c:1702–1707  ·  view source on GitHub ↗

* @memberof ktxTexture2 @private * @~English * @brief Retrieve the offset of a level's first image within the KTX2 file. * * @param[in] This pointer to the ktxTexture object of interest. */

Source from the content-addressed store, hash-verified

1700 * @param[in] This pointer to the ktxTexture object of interest.
1701 */
1702ktx_uint64_t ktxTexture2_levelFileOffset(ktxTexture2* This, ktx_uint32_t level)
1703{
1704 assert(This->_private->_firstLevelFileOffset != 0);
1705 return This->_private->_levelIndex[level].byteOffset
1706 + This->_private->_firstLevelFileOffset;
1707}
1708
1709// Recursive function to return the greatest common divisor of a and b.
1710static uint32_t

Callers 1

Calls 1

assertFunction · 0.85

Tested by

no test coverage detected