| 1949 | } |
| 1950 | |
| 1951 | std::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 | |
| 1958 | template <typename T> |
| 1959 | std::vector<uint8_t> convertUNORM(const std::unique_ptr<Image>& image, std::string_view swizzle = "") { |
no test coverage detected