Skip to content

Files

Latest commit

84db9ec · Dec 30, 2017

History

History

ocl-interop

OpenCL+OpenGL Interop for Rust

Creates a Context with GL interoperability enabled. DirectX Interop is theoretically possible, but currently not implemented. MacOS & OpenGL ES support is untested, but should work.

Usage

Add the following to your Cargo dependancies

ocl-interop="0.1.3"

Then, when you need the context

// Make sure the gl context is active
//Create an OpenCL context with the GL interop enabled
let context=get_context().expect("Cannot create OpenCL Context");
// use it!