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

IEEE binary32 → binary16, for the data the GPU takes at half width. More...

#include "./Types.hpp"
#include <cstring>
Include dependency graph for Half.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  esengine

Functions

u16 esengine::packHalf (f32 value)
 IEEE binary32 to binary16.

Detailed Description

IEEE binary32 → binary16, for the data the GPU takes at half width.

One author: a mesh's morph deltas and a frame's probe coefficients both reach the GPU as RGBA16F, and two conversions would be two roundings to keep agreeing.

Definition in file Half.hpp.