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

Method encodeBasis

tools/ktx/command_create.cpp:1876–1881  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1874// -------------------------------------------------------------------------------------------------
1875
1876void CommandCreate::encodeBasis(KTXTexture2& texture, OptionsEncodeBasis<false>& opts) {
1877 auto ret = ktxTexture2_CompressBasisEx(texture, &opts);
1878 if (ret != KTX_SUCCESS)
1879 fatal(rc::KTX_FAILURE, "Failed to encode KTX2 file with codec \"{}\". KTX Error: {}",
1880 to_underlying(opts.codec), ktxErrorString(ret));
1881}
1882
1883void CommandCreate::encodeASTC(KTXTexture2& texture, OptionsEncodeASTC& opts) {
1884 const auto ret = ktxTexture2_CompressAstcEx(texture, &opts);

Callers

nothing calls this directly

Calls 4

fatalClass · 0.85
to_underlyingFunction · 0.85
ktxErrorStringFunction · 0.85

Tested by

no test coverage detected