![]() |
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 (Float16Marshaler, "{CEC3001A-3DE2-42A7-BCCB-38F61477237D}") | |
Float16Marshaler (float rangeMin, float rangeMax) | |
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) |
Compresses a float into a float16 based on a range. Precision will vary since we can encode 65535 values within the provided range.