Repository navigation
Commit 2546fd3
committed
MathUtils: extend the OpenCL sincos workaround to Metal
A reference parameter carries its address space into template deduction, so
sincos(T ang, T& s, T& c) called with thread-resident floats deduces T as float
from the first argument and as thread float from the other two. OpenCL has the
same rule, and the three-parameter overload already there for it works verbatim
on Metal.1 parent 01743fb commit 2546fd3
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
0 commit comments