diff options
author | Jonas Karlsson <[email protected]> | 2025-05-27 22:44:34 +0200 |
---|---|---|
committer | Jonas Karlsson <[email protected]> | 2025-05-28 15:05:27 +0200 |
commit | 75c66953ee2fc9c9a532690b7ab0250d67fc1730 (patch) | |
tree | 19e49021956e9156fbbbbf972f2ad13f4c14457d /src/xr/quick3dxr/plugin.cpp | |
parent | 780ab6e03190710dd921425b37afae5a12a36b63 (diff) |
The EXR file format is a bit slow on multipart files due to the fact
that it has to decode all headers to find the header you are looking
for. Therefore we add a custom file format designed to be fast and
easy for storing baked lightmaps.
The file format is basically just a sorted list of key/value pairs where
the keys have a fixed size with offsets and sizes into the file. This
makes it possible to lookup keys in log(N) time and you don't need to
parse the whole file or all the keys when looking for a key.
There are helper functions for storing f32 and u32 images, meshes and
metadata.
The format is storing data little-endian but will convert to big-endian
automatically.
Change-Id: Ia230b98b38b685a44022df66a00b42ca9f7ca39b
Reviewed-by: Kristoffer Skau <[email protected]>
Diffstat (limited to 'src/xr/quick3dxr/plugin.cpp')
0 files changed, 0 insertions, 0 deletions