Struct wt_context_t¶
Defined in File wt_context.hpp
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 (unlesssearch_in_scene_data
is false), then searches in work directory (./
) directory, and finally in parent of work directory (../
). Returnsstd::nullopt
if file was not found.
-
inline std::optional<std::filesystem::path> resolve_path(std::filesystem::path path, bool search_in_scene_data = true) const noexcept¶