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

Method load_scene

framework/vulkan_sample.h:1189–1200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1187
1188template <vkb::BindingType bindingType>
1189inline void VulkanSample<bindingType>::load_scene(const std::string &path)
1190{
1191 vkb::HPPGLTFLoader loader(*device);
1192
1193 scene = loader.read_scene_from_file(path);
1194
1195 if (!scene)
1196 {
1197 LOGE("Cannot load scene: {}", path.c_str());
1198 throw std::runtime_error("Cannot load scene: " + path);
1199 }
1200}
1201
1202template <vkb::BindingType bindingType>
1203inline bool VulkanSample<bindingType>::prepare(const ApplicationOptions &options)

Callers

nothing calls this directly

Calls 1

read_scene_from_fileMethod · 0.45

Tested by

no test coverage detected