OPENCL_ENDIF()
+OPENCL_IF((MAGICKCORE_HDRI_SUPPORT == 1))
+
STRINGIFY(
- inline int ClampToCanvas(const int offset,const int range)
+ inline CLQuantum ClampToQuantum(const float value)
{
- return clamp(offset, (int)0, range-1);
+ return (CLQuantum) value;
}
)
+OPENCL_ELSE()
+
STRINGIFY(
inline CLQuantum ClampToQuantum(const float value)
{
}
)
+OPENCL_ENDIF()
+
+ STRINGIFY(
+ inline int ClampToCanvas(const int offset,const int range)
+ {
+ return clamp(offset, (int)0, range-1);
+ }
+ )
+
STRINGIFY(
inline uint ScaleQuantumToMap(CLQuantum value)
{