logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Common_Built-In_Functions - Click an item in the table below for details about that function.

Authors

TheKhronosGroup

Name

       Common_Built-In_Functions - Click an item in the table below for details about that function.

       ┌──────────────────┬────────────────────────────────────┐
       │ clamp(3clc)      │ Clamp x to range given by min, max │
       ├──────────────────┼────────────────────────────────────┤
       │ degrees(3clc)    │ radians to degrees                 │
       ├──────────────────┼────────────────────────────────────┤
       │ commonMax(3clc)  │ Maximum of x and y                 │
       ├──────────────────┼────────────────────────────────────┤
       │ commonMin(3clc)  │ Minimum of x and y                 │
       ├──────────────────┼────────────────────────────────────┤
       │ mix(3clc)        │ Linear blend of x and y            │
       ├──────────────────┼────────────────────────────────────┤
       │ radians(3clc)    │ degrees to radians                 │
       ├──────────────────┼────────────────────────────────────┤
       │ sign(3clc)       │ Sign of x                          │
       ├──────────────────┼────────────────────────────────────┤
       │ smoothstep(3clc) │ Step and interpolate               │
       ├──────────────────┼────────────────────────────────────┤
       │ step(3clc)       │ 0.0 if x < edge, else 1.0          │
       └──────────────────┴────────────────────────────────────┘

Notes

        1. OpenCL Specification
           page 260, section 6.12.4 - Common Functions

The Khronos Group                                  11/18/2024                          COMMONBUILT-INFUN(3clc)

Specification

OpenCLSpecification[1]

See Also