rust-opencl icon indicating copy to clipboard operation
rust-opencl copied to clipboard

Extension Support

Open kazimuth opened this issue 10 years ago • 2 comments

There are a lot of OpenCL extensions; it would be nifty to support them. I would be particularly interested in the OpenGL (and DirectX) extensions, but I'm not sure how to implement those without adding a dependency on a Rust OpenGL implementation - which a problem, because different projects use implementations generated from different versions of the OpenGL spec. Maybe by exporting a macro?

(I've been hacking on an implementation of non-opengl extensions, will PR soon.)

kazimuth avatar Dec 27 '14 01:12 kazimuth

I wonder if Cargo has support for optional dependencies? Then we could decide at compile time which extensions we want to enable.

On Dec 26, 2014, at 5:56 PM, James Gilles [email protected] wrote:

There are a of OpenCL extensions; it would be nifty to support them. I would be particularly interested in the OpenGL (and DirectX) extensions, but I'm not sure how to implement those without adding a dependency on a Rust OpenGL implementation - which a problem, because different projects use implementations generated from different versions of the OpenGL spec. Maybe by exporting a macro?

(I've been hacking on an implementation of non-opengl extensions, will PR soon.)

— Reply to this email directly or view it on GitHub https://github.com/luqmana/rust-opencl/issues/52.

eholk avatar Dec 27 '14 01:12 eholk

Yeah, it does! http://doc.crates.io/manifest.html#the-[features]-section But, that doesn't quite fit the problem: I think we want users to be able to use any GL implementation created by gl-rs's gl_generator, and we can't add all of those as dependencies. (Or, we could try, but it would be challenging.)

kazimuth avatar Dec 27 '14 02:12 kazimuth