HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
half.h
Go to the documentation of this file.
1 // Copyright Contributors to the OpenImageIO project.
2 // SPDX-License-Identifier: Apache-2.0
3 // https://github.com/AcademySoftwareFoundation/OpenImageIO/
4 
5 
6 #pragma once
7 
8 // Determine which Imath we're dealing with and include the appropriate path
9 // to half.h.
10 
11 #if defined(__has_include) && __has_include(<Imath/half.h>)
12 # include <Imath/half.h>
13 #elif 3 >= 3
14 # include <Imath/half.h>
15 #else
16 # include <OpenEXR/half.h>
17 #endif
18 
19 
20 #if defined(FMT_VERSION) && !defined(OIIO_HALF_FORMATTER)
21 #if FMT_VERSION >= 100000
22 #define OIIO_HALF_FORMATTER
24 template<> struct formatter<half> : ostream_formatter {};
26 #endif
27 #endif
imath_half_bits_t half
if we're in a C-only context, alias the half bits type to half
Definition: half.h:266
#define FMT_END_NAMESPACE
Definition: core.h:179
#define FMT_BEGIN_NAMESPACE
Definition: core.h:176