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
86namespace 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-
4222template <typename T, int16_t N>
4323struct to_string_helper <hlsl::vector<T, N>>
4424{
@@ -59,18 +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- TestValueToTextConverter<value_t ::storage_t > mortonCodeDataToTextConverter;
69- return mortonCodeDataToTextConverter (value.value );
70- }
71- };
72-
73-
7442}
7543
7644template <typename T>
0 commit comments