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

Function ktxErrorString

lib/strings.c:59–64  ·  view source on GitHub ↗

* @~English * @brief Return a string corresponding to a KTX error code. * * @param error the error code for which to return a string * * @return pointer to the message string. * * @internal Use UTF-8 for translated message strings. * * @author Mark Callow */

Source from the content-addressed store, hash-verified

57 * @author Mark Callow
58 */
59const char* ktxErrorString(KTX_error_code error)
60{
61 if (error < 0 || error > KTX_ERROR_MAX_ENUM)
62 return "Unrecognized error code";
63 return errorStrings[error];
64}
65
66/**
67* @~English

Callers 15

mainMethod · 0.85
validateTranscodeMethod · 0.85
transcodeFunction · 0.85
executeDeflateMethod · 0.85
executeEncodeMethod · 0.85
patchWithLibKtxMethod · 0.85
writeKTX2Method · 0.85
executeTranscodeMethod · 0.85
executeExtractMethod · 0.85
compareImagesPerPixelMethod · 0.85

Calls

no outgoing calls

Tested by 13

ktxTextureTestBaseMethod · 0.68
runTestMethod · 0.68
TEST_FFunction · 0.68
TESTFunction · 0.68
runTestMethod · 0.68
resizeMethod · 0.68
runTestMethod · 0.68
runTestMethod · 0.68
TEST_FFunction · 0.68
showFileMethod · 0.68
showFileMethod · 0.68
showFileMethod · 0.68