24 #ifndef PXR_BASE_GF_HALF_H
25 #define PXR_BASE_GF_HALF_H
34 #include "pxr/base/gf/ilmbase_half.h"
35 #include "pxr/base/gf/ilmbase_halfLimits.h"
36 #include "pxr/base/gf/traits.h"
38 #include <type_traits>
40 PXR_NAMESPACE_OPEN_SCOPE
47 template<
typename Half>
49 typename std::enable_if<std::is_same<Half, half>::value,
size_t>::type
50 hash_value(
const Half& h) {
return h.bits(); }
55 public std::integral_constant<bool, true>{};
57 PXR_NAMESPACE_CLOSE_SCOPE
60 #endif // PXR_BASE_GF_HALF_H
pxr_half::half GfHalf
A 16-bit floating point data type.
A metafunction which is equivalent to std::is_floating_point but allows for additional specialization...