| 1874 | // ------------------------------------------------------------------------------------------------- |
| 1875 | |
| 1876 | void 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 | |
| 1883 | void CommandCreate::encodeASTC(KTXTexture2& texture, OptionsEncodeASTC& opts) { |
| 1884 | const auto ret = ktxTexture2_CompressAstcEx(texture, &opts); |
nothing calls this directly
no test coverage detected