|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| std::vector< std::shared_ptr< Buffers::MeshBuffer > > MayaFlux::IO::ModelReader::create_mesh_buffers | ( | const TextureResolver & | resolver = nullptr | ) | const |
Construct one MeshBuffer per mesh in the currently loaded scene.
Calls extract_meshes() internally. Returns empty if no scene is loaded. setup_processors() and setup_rendering() are left to the caller.
If resolver is provided, it is called with the raw diffuse path from each mesh's material. The returned VKImage is bound via bind_diffuse_texture(). Null resolver skips texture binding entirely.
| resolver | Optional texture resolver. |
Definition at line 114 of file ModelReader.cpp.
References extract_meshes(), MayaFlux::Journal::FileIO, image, MayaFlux::Journal::IO, MF_ERROR, MF_INFO, and MF_WARN.
Here is the call graph for this function: