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

Function calcLevelAlignment

tools/ktx/validate.cpp:595–600  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593}
594
595inline uint32_t calcLevelAlignment(ktxSupercmpScheme scheme, uint8_t blockByteLength) {
596 if (scheme != KTX_SS_NONE)
597 return 1;
598 else
599 return std::lcm(blockByteLength, 4);
600}
601
602size_t ValidationContext::calcImageSize(uint32_t level) {
603 const auto levelWidth = std::max(1u, header.pixelWidth >> level);

Callers 1

validateLevelIndexMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected