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

Function get_extension

framework/common/utils.cpp:34–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32namespace vkb
33{
34std::string get_extension(const std::string &uri)
35{
36 auto dot_pos = uri.find_last_of('.');
37 if (dot_pos == std::string::npos)
38 {
39 throw std::runtime_error{"Uri has no extension"};
40 }
41
42 return uri.substr(dot_pos + 1);
43}
44
45void screenshot(vkb::rendering::RenderContextC &render_context, const std::string &filename)
46{

Callers 3

load_sceneMethod · 0.85
loadMethod · 0.85
loadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected