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

Function convertUINTPacked

tools/ktx/command_create.cpp:2018–2026  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2016}
2017
2018std::vector<uint8_t> convertUINTPacked(const std::unique_ptr<Image>& image,
2019 uint32_t c0 = 0, uint32_t c1 = 0, uint32_t c2 = 0, uint32_t c3 = 0,
2020 std::string_view swizzle = "") {
2021
2022 if (!swizzle.empty())
2023 image->swizzle(swizzle);
2024
2025 return image->getUINTPacked(c0, c1, c2, c3);
2026}
2027
2028std::vector<uint8_t> convertSINTPacked(const std::unique_ptr<Image>& image,
2029 uint32_t c0 = 0, uint32_t c1 = 0, uint32_t c2 = 0, uint32_t c3 = 0,

Callers 1

convertMethod · 0.85

Calls 3

swizzleMethod · 0.80
getUINTPackedMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected