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

Method load_assets

samples/api/hpp_instancing/hpp_instancing.cpp:391–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389}
390
391void HPPInstancing::load_assets()
392{
393 rocks.mesh = load_model("scenes/rock.gltf");
394 planet.mesh = load_model("scenes/planet.gltf");
395
396 rocks.texture = load_texture_array("textures/texturearray_rocks_color_rgba.ktx", vkb::scene_graph::components::HPPImage::Color);
397 planet.texture = load_texture("textures/lavaplanet_color_rgba.ktx", vkb::scene_graph::components::HPPImage::Color);
398}
399
400void HPPInstancing::initialize_camera()
401{

Callers

nothing calls this directly

Calls 1

load_textureFunction · 0.85

Tested by

no test coverage detected