Skip to content
Open
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
7 changes: 7 additions & 0 deletions GPU/Common/GPUCommonTypeTraits.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@
#endif
namespace std
{
#ifdef __METAL__
using metal::numeric_limits;
template <class T>
constant constexpr bool is_standard_layout_v = __is_standard_layout(T);
template <class T>
constant constexpr bool is_trivially_copyable_v = __is_trivially_copyable(T);
#endif
template <bool B, class T, class F>
struct conditional {
typedef T type;
Expand Down