Path Tracing
Loading...
Searching...
No Matches
ModelLoader Struct Reference

#include <loader.hpp>

Collaboration diagram for ModelLoader:

Public Attributes

std::vector< GPUTriangle > pending_tris
std::vector< GPUMaterial > pending_mats
std::vector< CPUMaterial > pending_cpu_mats
std::vector< BVHNode > pending_bvh
MeshBounds pending_bounds
std::atomic< bool > upload_pending = false
std::atomic< bool > is_loading = false
std::atomic< int > stage = STAGE_PARSING
std::thread worker
 Handle of the current background load.
std::vector< CPUMaterial > ui_cpu_mats
std::vector< GPUMaterial > ui_mats

Member Data Documentation

◆ is_loading

std::atomic<bool> ModelLoader::is_loading = false

◆ pending_bounds

MeshBounds ModelLoader::pending_bounds

◆ pending_bvh

std::vector<BVHNode> ModelLoader::pending_bvh

◆ pending_cpu_mats

std::vector<CPUMaterial> ModelLoader::pending_cpu_mats

◆ pending_mats

std::vector<GPUMaterial> ModelLoader::pending_mats

◆ pending_tris

std::vector<GPUTriangle> ModelLoader::pending_tris

◆ stage

std::atomic<int> ModelLoader::stage = STAGE_PARSING

◆ ui_cpu_mats

std::vector<CPUMaterial> ModelLoader::ui_cpu_mats

UI-thread-only snapshot of the model's materials. Written for the main thread

◆ ui_mats

std::vector<GPUMaterial> ModelLoader::ui_mats

◆ upload_pending

std::atomic<bool> ModelLoader::upload_pending = false

◆ worker

std::thread ModelLoader::worker

Handle of the current background load.


The documentation for this struct was generated from the following file: