Toast Engine
Loading...
Searching...
No Matches
assets::HdrImage Struct Reference

A decoded floating-point image, always four channels. More...

#include <hdr_image.hpp>

Public Member Functions

auto valid () const noexcept -> bool

Public Attributes

uint32_t width = 0
uint32_t height = 0
std::vector< float > pixels
 Row-major, width * height * 4 floats, linear radiance rather than display values.

Detailed Description

A decoded floating-point image, always four channels.

Four rather than three because Vulkan has no widely-supported three-channel float format - R32G32B32Sfloat is optional and absent on plenty of desktop parts, while R32G32B32A32Sfloat is universal. The alpha is padding and always 1


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