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

Function convertUNORMPacked

tools/ktx/command_create.cpp:1951–1956  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1949}
1950
1951std::vector<uint8_t> convertUNORMPacked(const std::unique_ptr<Image>& image, uint32_t C0, uint32_t C1, uint32_t C2, uint32_t C3, std::string_view swizzle = "") {
1952 if (!swizzle.empty())
1953 image->swizzle(swizzle);
1954
1955 return image->getUNORMPacked(C0, C1, C2, C3);
1956}
1957
1958template <typename T>
1959std::vector<uint8_t> convertUNORM(const std::unique_ptr<Image>& image, std::string_view swizzle = "") {

Callers 1

convertMethod · 0.85

Calls 3

swizzleMethod · 0.80
getUNORMPackedMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected