Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
HdrFormat.hpp File Reference

What a linear project ASKED its intermediates to be, and what the device let them be. More...

Include dependency graph for HdrFormat.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  esengine::HdrFormatDecision
 The format decision one frame committed to. More...

Namespaces

namespace  esengine

Enumerations

enum class  esengine::HdrRefusal : u8 { esengine::None = 0 , esengine::FloatTargetsUnsupported }
 Why the effective format is not the requested one. More...

Functions

const char * esengine::hdrRefusalName (HdrRefusal why)
 The refusal as a word, for a log line and for a reader.
const char * esengine::pixelFormatName (GfxPixelFormat format)
 A pixel format as a word.
HdrFormatDecision esengine::decideHdrFormat (bool linearOutput, bool supportsFloatTargets)
 What a linear project asks for, and what supportsFloatTargets grants.

Detailed Description

What a linear project ASKED its intermediates to be, and what the device let them be.

The choice was a function nobody kept the answer to: it read the colour-space flag and the device's float capability every time it was asked. So a project set to linear on a backend without renderable float targets ran the whole chain at 8-bit precision, correctly, and with nothing anywhere recording that it had.

Definition in file HdrFormat.hpp.