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::Float16Marshaler Class Reference

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

Detailed Description

Compresses a float into a float16 based on a range. Precision will vary since we can encode 65535 values within the provided range.


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