mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-13 08:18:21 -05:00
14 lines
208 B
C++
14 lines
208 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
typedef uint16_t half_float_t;
|
|
|
|
class HalfFloat
|
|
{
|
|
HalfFloat() = default;
|
|
|
|
public:
|
|
static float ToFloat(half_float_t half);
|
|
static half_float_t ToHalf(float f);
|
|
}; |