Description

A dynamic binding to the OpenCL library.

Package Information

Version1.2.1 (2014-Jul-03)
Homepagehttps://github.com/MeinMein/DerelictCL
Repositoryhttps://github.com/MeinMein/DerelictCL
LicenseBoost
AuthorsGerbrand Kamphuis (vuaru), p0nce
Registered byGerbrand Kamphuis
Dependencies

derelict-util

Installation

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

dub.json
dub.sdl

Readme

DerelictOpenCL

Warning: this an unofficial Derelict binding.

A dynamic binding to OpenCL for the D Programming Language.

For information on how to build DerelictCL and link it with your programs, please see the post Building and Using Packages in DerelictOrg at the Derelict forums.

For information on how to load the OpenCL library via DerelictCL, see the page DerelictUtil for Users at the DerelictUtil Wiki. 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.
    ...
}

Available versions

1.2.1 1.2.0 ~master