Repository navigation
Commit f97c908
committed
GPU: make std::is_pointer address-space aware on Metal
The shim's partial specialization on a bare T* does match a pointer type written
out in full, but not one deduced from an argument, which carries its address
space. RDHUtils uses std::is_pointer to keep its pointer overloads apart from
its reference ones, so the reference template was instantiated for a pointer and
dereferenced it as a struct.
metal::is_pointer is address-space aware, so the Metal branch forwards to it.1 parent 7d75d71 commit f97c908
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
117 | 122 | | |
| 123 | + | |
118 | 124 | | |
119 | 125 | | |
120 | 126 | | |
| |||
0 commit comments