|
Vulkan Schnee 0.0.1
High-performance rendering engine
|
Loader for EXR (OpenEXR) image files. More...
#include <ExrLoader.h>
Public Member Functions | |
| ExrLoader ()=default | |
| ~ExrLoader ()=default | |
| tinygltf::Image | load (const std::filesystem::path &filename) |
| Load a complete EXR image file. | |
| ExrHeader | loadHeader (std::filesystem::path path) |
| Load only the header information from an EXR file. | |
Loader for EXR (OpenEXR) image files.
Provides functionality to load EXR image files, with support for loading headers separately (useful for ECS systems) and loading full image data. Converts planar EXR channel data to interleaved format compatible with glTF/OpenGL.
Definition at line 81 of file ExrLoader.h.
|
default |
|
default |
| tinygltf::Image EngineCore::ExrLoader::load | ( | const std::filesystem::path & | filename | ) |
Load a complete EXR image file.
Load complete EXR image with header and pixel data.
Loads both header and pixel data from an EXR file and converts it to a tinygltf::Image format. The image data is interleaved (RGBA) from the planar format used by EXR files. Channel order is converted from EXR's BGR to RGB for OpenGL compatibility.
| filename | Path to the EXR file to load |
| Empty | image if loading fails |
Loads both header and pixel data, converting from planar to interleaved format. Handles BGR to RGB channel conversion for OpenGL compatibility.
Definition at line 40 of file ExrLoader.cpp.
References TRACY_ZONE_SCOPED_NAMED.
Referenced by EngineCore::GltfLoader::GltfMaterialData::GltfMaterialData(), Ecs::TextureAssetPipeline::loadImageData(), and Ecs::ModelAssetPipeline::processTextures().
|
nodiscard |
Load only the header information from an EXR file.
Load only header information from EXR file.
Parses and extracts header information without loading pixel data. Useful for inspecting file properties before loading, or for use with ECS systems that need header data as components.
| path | Path to the EXR file |
| ExrHeader | with valid=false if parsing fails |
Parses the EXR file header without loading pixel data. Returns an ExrHeader wrapper that owns its data, allowing the native EXRHeader to be freed.
Definition at line 176 of file ExrLoader.cpp.
References TRACY_ZONE_SCOPED_NAMED.
Referenced by Ecs::TextureAssetPipeline::requestExrHeaders().