MCPcopy Create free account
hub / github.com/WiVRn/WiVRn / load

Method load

client/render/scene_loader.cpp:589–597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

587 }
588
589 fastgltf::span<const std::byte> load(const fastgltf::URI & uri)
590 {
591 auto path = base_directory.empty() ? std::filesystem::path(uri.path()) : base_directory / std::filesystem::path(uri.path());
592 std::span<const std::byte> bytes;
593
594 bytes = load_from_asset(path);
595
596 return fastgltf::span<const std::byte>(bytes.data(), bytes.size());
597 }
598
599 fastgltf::span<const std::byte> load(const fastgltf::sources::URI & uri)
600 {

Callers 1

do_load_imageFunction · 0.45

Calls 4

pathMethod · 0.80
emptyMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected