Defined USING_CUSTOM_FLOAT16 preproc constant along with float16 class and gated formatter for float16
This commit is contained in:
@@ -323,6 +323,7 @@ struct fmt::formatter<OpenVulkano::Math::Timestamp>
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef USING_CUSTOM_FLOAT16
|
||||||
template<>
|
template<>
|
||||||
struct fmt::formatter<float16> : fmt::formatter<float>
|
struct fmt::formatter<float16> : fmt::formatter<float>
|
||||||
{
|
{
|
||||||
@@ -332,6 +333,7 @@ struct fmt::formatter<float16> : fmt::formatter<float>
|
|||||||
return fmt::formatter<float>::format(static_cast<float>(f), ctx);
|
return fmt::formatter<float>::format(static_cast<float>(f), ctx);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
struct fmt::formatter<OpenVulkano::int24> : fmt::formatter<int32_t>
|
struct fmt::formatter<OpenVulkano::int24> : fmt::formatter<int32_t>
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
#elif __has_keyword(__fp16)
|
#elif __has_keyword(__fp16)
|
||||||
typedef __fp16 float16;
|
typedef __fp16 float16;
|
||||||
#else
|
#else
|
||||||
|
#define USING_CUSTOM_FLOAT16
|
||||||
|
|
||||||
class float16
|
class float16
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user