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

Method load_all_buffers

client/render/scene_loader.cpp:788–800  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

786 }
787
788 void load_all_buffers()
789 {
790 for (fastgltf::Buffer & buffer: gltf.buffers)
791 {
792 if (std::holds_alternative<fastgltf::sources::URI>(buffer.data))
793 {
794 fastgltf::sources::URI uri = std::get<fastgltf::sources::URI>(buffer.data);
795
796 // Don't use the MIME type from fastgltf, it's not initialized for URIs
797 buffer.data = fastgltf::sources::ByteView(load(uri), fastgltf::MimeType::None);
798 }
799 }
800 }
801
802 std::vector<std::shared_ptr<renderer::material>> load_all_materials(std::vector<std::shared_ptr<renderer::texture>> & textures, gpu_buffer & staging_buffer, const renderer::material & default_material)
803 {

Callers 1

operator()Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected