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

Function convertSINTPacked

tools/ktx/command_create.cpp:2028–2036  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,
2030 std::string_view swizzle = "") {
2031
2032 if (!swizzle.empty())
2033 image->swizzle(swizzle);
2034
2035 return image->getSINTPacked(c0, c1, c2, c3);
2036}
2037
2038template <typename T>
2039std::vector<uint8_t> convertSINT(const std::unique_ptr<Image>& image, std::string_view swizzle = "") {

Callers 1

convertMethod · 0.85

Calls 3

swizzleMethod · 0.80
getSINTPackedMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected