summaryrefslogtreecommitdiff
path: root/clSimple.txt
blob: 98f118b06ab58edb2aadbb47e36ad635e374155e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
clSimple is set of wrappers around the OpenCL API that make writing simple
OpenCL programs easier.  clSimple consists of two different types of functions:

+ Direct wrappers:
    These functions map directly to an OpenCL API call and will always have the
    same name as an OpenCL API call except with the 'cl' prefix replaced by
    'clSimple'.  These functions take a subset of the arguments that the wrapped
    OpenCL function would take.

+ Convenience wrappers:
    These functions wrap around multiple clSimple calls and always take
    struct cl_simple_context as their first argument.

It is easy to mix clSimple and OpenCL API calls in the same program, so if you
want more functionality than the clSimple wrappers provided, you can always
replace one of the direct wrappers its wrapped OpenCL function.