OpenVDB  9.0.1
HalfWriter< IsReal, T > Struct Template Reference

#include <openvdb/io/Compression.h>

Detailed Description

template<bool IsReal, typename T>
struct openvdb::v9_0::io::HalfWriter< IsReal, T >

HalfWriter wraps a static function, write(), that is analogous to writeData(), above, except that it is partially specialized for floating-point types in order to quantize floating-point values to 16-bit half float. A wrapper class is required because only classes, not functions, can be partially specialized.