From 7c7146428a0584ad38f036d24a70c15f700f9a8e Mon Sep 17 00:00:00 2001 From: Wade Walker Date: Sun, 20 Sep 2015 15:09:04 -0500 Subject: Add ability to access newer CLImpl versions for devices Added a CLPlatform method to return a CLImpl version specific to a device. This lets the user get a CLImpl12 or CLImpl20 instance which they could then cast to the right type and use to access newer CL functions than those in the default CLImpl11 object. --- src/com/jogamp/opencl/CLVersion.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/com/jogamp/opencl/CLVersion.java') diff --git a/src/com/jogamp/opencl/CLVersion.java b/src/com/jogamp/opencl/CLVersion.java index 3a48f0b7..fc2419c7 100644 --- a/src/com/jogamp/opencl/CLVersion.java +++ b/src/com/jogamp/opencl/CLVersion.java @@ -45,6 +45,9 @@ public class CLVersion implements Comparable { public final static CLVersion CL_1_0 = new CLVersion("OpenCL 1.0"); public final static CLVersion CL_1_1 = new CLVersion("OpenCL 1.1"); + public final static CLVersion CL_1_2 = new CLVersion("OpenCL 1.2"); + public final static CLVersion CL_2_0 = new CLVersion("OpenCL 2.0"); + public final static CLVersion CL_2_1 = new CLVersion("OpenCL 2.1"); /** * The full version String is defined as: -- cgit v1.2.3