derelict-cl 3.2.0

A dynamic binding to the OpenCL library.


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

DerelictOpenCL

A dynamic binding to OpenCL for the D Programming Language.

Please see the pages Building and Linking Derelict and Using Derelict, or information on how to build DerelictCL and load the OpenCL library at run time. In the meantime, here's some sample code.

import derelict.opencl.cl;

void main() {
    // Load the OpenCL library.
    DerelictCL.load();

    // Query platforms and devices
    ...

    // Reload the OpenCL library.
    DerelictCL.reload(<chosen_version>);

    // Load OpenCL official extensions.
    DerelictCL.loadEXT(<chosen_platform>);

    // Now OpenCL functions can be called.
    ...
}
Authors:
Gerbrand Kamphuis (vuaru), Guillaume Piolat (p0nce)
Dependencies:
derelict-util
Versions:
3.2.0 2017-Oct-09
3.1.0 2017-Jun-08
3.0.0 2017-Feb-24
2.0.0 2015-May-24
1.2.3 2015-May-24
Show all 7 versions
Download Stats:
  • 0 downloads today

  • 1 downloads this week

  • 12 downloads this month

  • 1340 downloads total