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

Method create_texture

samples/general/mobile_nerf/mobile_nerf.cpp:1572–1587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1570}
1571
1572void MobileNerf::create_texture(int model_index, int sub_model_index, int models_entry)
1573{
1574 // Set up the input texture image
1575
1576 // TODO(tomatkinson): should load different scenes's feature map from command line
1577 std::string feature_0_path = model_path[model_index] + "shape" + std::to_string(sub_model_index) + ".pngfeat0.png";
1578 std::string feature_1_path = model_path[model_index] + "shape" + std::to_string(sub_model_index) + ".pngfeat1.png";
1579
1580 LOGI("Creating feature texture 0");
1581 create_texture_helper(feature_0_path, models[models_entry].texture_input_0);
1582 LOGI("Done Creating feature texture 0");
1583
1584 LOGI("Creating feature texture 1");
1585 create_texture_helper(feature_1_path, models[models_entry].texture_input_1);
1586 LOGI("Done Creating feature texture 0");
1587}
1588
1589void MobileNerf::create_texture_helper(std::string const &texturePath, Texture &texture_input)
1590{

Callers

nothing calls this directly

Calls 1

to_stringFunction · 0.50

Tested by

no test coverage detected