Update to open3d conversion logic

Merge remote-tracking branch 'origin/fmt_formatter_for_math'
This commit is contained in:
Georg Hagen
2025-03-01 16:52:08 +01:00
5 changed files with 437 additions and 98 deletions

View File

@@ -72,7 +72,7 @@ namespace OpenVulkano
{
for (int i = (si ? EB : EiB); i >= (si ? kB : kiB); i--)
{
if (size > FACTORS[i]) return { static_cast<Unit>(i) };
if (size >= FACTORS[i]) return { static_cast<Unit>(i) };
}
return { B };
}
@@ -162,4 +162,3 @@ namespace OpenVulkano
constexpr ByteSize operator"" _PB(unsigned long long int num) { return { num, ByteSizeUnit::PB }; }
constexpr ByteSize operator"" _EB(unsigned long long int num) { return { num, ByteSizeUnit::EB }; }
}

View File

@@ -18,6 +18,7 @@
#elif __has_keyword(__fp16)
typedef __fp16 float16;
#else
#define USING_CUSTOM_FLOAT16
class float16
{