Skip to content
it's /me edited this page Mar 2, 2021 · 2 revisions

Exists in OpenGL ES, but not in Cuda, OpenCL, Metal, and it's not added by DCTL. So we have to define it ourselves ...

__DEVICE__ inline float radians(float degrees) { return M_PI * degrees / 180.0f; }

Clone this wiki locally