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.
Public Types | Public Member Functions | Static Public Attributes | List of all members
GridMate::HalfMarshaler Class Reference

#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)
 

Detailed Description

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


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