![]() |
Open 3D Engine GridMate API Reference
2205.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
#include <CompressionMarshal.h>
Public Types | |
typedef float | DataType |
Public Member Functions | |
AZ_TYPE_INFO (HalfMarshaler, "{A11F3B68-423A-472D-8D8C-6A2923ECB155}") | |
void | Marshal (WriteBuffer &wb, float value) const |
void | Unmarshal (float &f, ReadBuffer &rb) const |
Static Public Attributes | |
static const AZStd::size_t | MarshalSize = sizeof(AZ::u16) |
Compress to half, losing half of the precision. The internal format is: 1 bit sign bit 5 bits exponent, biased by 15 10 bits mantissa, hidden leading bit, normalized to 1.0