MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / HPPImage

Method HPPImage

framework/scene_graph/components/hpp_image.cpp:40–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40HPPImage::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
49std::unique_ptr<vkb::scene_graph::components::HPPImage> HPPImage::load(const std::string &name, const std::string &uri,
50 ContentType content_type)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected