| 38 | } |
| 39 | |
| 40 | HPPImage::HPPImage(const std::string &name, std::vector<uint8_t> &&d, std::vector<vkb::scene_graph::components::HPPMipmap> &&m) : |
| 41 | Component{name}, |
| 42 | data{std::move(d)}, |
| 43 | format{vk::Format::eR8G8B8A8Unorm}, |
| 44 | mipmaps{std::move(m)} |
| 45 | { |
| 46 | update_hash(); |
| 47 | } |
| 48 | |
| 49 | std::unique_ptr<vkb::scene_graph::components::HPPImage> HPPImage::load(const std::string &name, const std::string &uri, |
| 50 | ContentType content_type) |
nothing calls this directly
no outgoing calls
no test coverage detected