GPUOpen-LibrariesAndSDKs / RadeonRays_SDK

Radeon Rays is ray intersection acceleration library for hardware and software multiplatforms using CPU and GPU
MIT License
1.06k stars 190 forks source link

Move constants to the RadeonRays namespace #200

Open qhaas opened 5 years ago

qhaas commented 5 years ago

Recently, had a 'PI' collision between the one defined in RadeonRays and another sourcebase (which was using 'PI' as a namespace). While an #undef PI easily solved the issue, moving such (commonly named) constants to the RadeonRays namespace by way of a const might save future developers trouble.