HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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
23
FMT_BEGIN_NAMESPACE
24
template
<>
struct
formatter
<
half
> :
ostream_formatter
{};
25
FMT_END_NAMESPACE
26
#endif
27
#endif
formatter
Definition:
core.h:790
half
imath_half_bits_t half
if we're in a C-only context, alias the half bits type to half
Definition:
half.h:266
half.h
FMT_END_NAMESPACE
#define FMT_END_NAMESPACE
Definition:
core.h:179
basic_ostream_formatter
Definition:
ostream.h:107
FMT_BEGIN_NAMESPACE
#define FMT_BEGIN_NAMESPACE
Definition:
core.h:176
OpenImageIO
half.h
Generated on Thu Sep 4 2025 02:37:52 for HDK by
1.8.6