Skip to content

MeinMein/DerelictCL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DerelictOpenCL

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 Using Derelict at The One With D.

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.
    ...
}

About

A dynamic binding to OpenCL for the D Programming Language.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages