Struct wt_context_t

Struct Documentation

struct wt_context_t

Holds configurations and pointers to global resources used by wave_tracer for a single render.

Public Functions

inline std::optional<std::filesystem::path> resolve_path(std::filesystem::path path, bool search_in_scene_data = true) const noexcept

Resolves a resource path. If the path is relative, first searches in the scene_data_path directory (unless search_in_scene_data is false), then searches in work directory (./) directory, and finally in parent of work directory (../). Returns std::nullopt if file was not found.

Public Members

length_t default_scale_for_imported_mesh_positions = 1 * u::m
bool renderer_force_ray_tracing = false
std::uint32_t renderer_block_size = 24
std::uint32_t renderer_samples_per_block = 8
std::filesystem::path scene_data_path
std::filesystem::path output_path
wt::thread_pool::tpool_t *threadpool

Thread pool.