Skip to content

Commit 407051c

Browse files
authored
Merge pull request #958 from Devsh-Graphics-Programming/system_to_string
2 parents e674772 + d39adec commit 407051c

File tree

2 files changed

+1
-32
lines changed

2 files changed

+1
-32
lines changed

include/nbl/system/to_string.h

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
#define _NBL_SYSTEM_TO_STRING_INCLUDED_
33

44
#include <nbl/builtin/hlsl/cpp_compat.hlsl>
5-
#include <nbl/builtin/hlsl/emulated/int64_t.hlsl>
6-
#include <nbl/builtin/hlsl/morton.hlsl>
75

86
namespace nbl
97
{
@@ -21,24 +19,6 @@ struct to_string_helper
2119
}
2220
};
2321

24-
template<>
25-
struct to_string_helper<hlsl::emulated_uint64_t>
26-
{
27-
static std::string __call(const hlsl::emulated_uint64_t& value)
28-
{
29-
return std::to_string(static_cast<uint64_t>(value));
30-
}
31-
};
32-
33-
template<>
34-
struct to_string_helper<hlsl::emulated_int64_t>
35-
{
36-
static std::string __call(const hlsl::emulated_int64_t& value)
37-
{
38-
return std::to_string(static_cast<int64_t>(value));
39-
}
40-
};
41-
4222
template<typename T, int16_t N>
4323
struct to_string_helper<hlsl::vector<T, N>>
4424
{
@@ -59,17 +39,6 @@ struct to_string_helper<hlsl::vector<T, N>>
5939
}
6040
};
6141

62-
template<bool Signed, uint16_t Bits, uint16_t D, typename _uint64_t>
63-
struct to_string_helper<hlsl::morton::code<Signed, Bits, D, _uint64_t>>
64-
{
65-
using value_t = hlsl::morton::code<Signed, Bits, D, _uint64_t>;
66-
static std::string __call(value_t value)
67-
{
68-
return to_string_helper<value_t::storage_t>::__call(value.value);
69-
}
70-
};
71-
72-
7342
}
7443

7544
template<typename T>

0 commit comments

Comments
 (0)