Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions include/nbl/system/to_string.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
#define _NBL_SYSTEM_TO_STRING_INCLUDED_

#include <nbl/builtin/hlsl/cpp_compat.hlsl>
#include <nbl/builtin/hlsl/emulated/int64_t.hlsl>
#include <nbl/builtin/hlsl/morton.hlsl>

namespace nbl
{
Expand All @@ -21,24 +19,6 @@ struct to_string_helper
}
};

template<>
struct to_string_helper<hlsl::emulated_uint64_t>
{
static std::string __call(const hlsl::emulated_uint64_t& value)
{
return std::to_string(static_cast<uint64_t>(value));
}
};

template<>
struct to_string_helper<hlsl::emulated_int64_t>
{
static std::string __call(const hlsl::emulated_int64_t& value)
{
return std::to_string(static_cast<int64_t>(value));
}
};

template<typename T, int16_t N>
struct to_string_helper<hlsl::vector<T, N>>
{
Expand All @@ -59,17 +39,6 @@ struct to_string_helper<hlsl::vector<T, N>>
}
};

template<bool Signed, uint16_t Bits, uint16_t D, typename _uint64_t>
struct to_string_helper<hlsl::morton::code<Signed, Bits, D, _uint64_t>>
{
using value_t = hlsl::morton::code<Signed, Bits, D, _uint64_t>;
static std::string __call(value_t value)
{
return to_string_helper<value_t::storage_t>::__call(value.value);
}
};


}

template<typename T>
Expand Down
Loading