aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/CLVersion.java
diff options
context:
space:
mode:
authorWade Walker <[email protected]>2015-09-20 15:09:04 -0500
committerWade Walker <[email protected]>2015-11-08 14:05:30 -0600
commit7c7146428a0584ad38f036d24a70c15f700f9a8e (patch)
tree7a66e83cc5bef52e1b07b5c8e9c7417b331e7f04 /src/com/jogamp/opencl/CLVersion.java
parent4638f4b3fdf4c946bda0b290a83652e4db00edea (diff)
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.
Diffstat (limited to 'src/com/jogamp/opencl/CLVersion.java')
-rw-r--r--src/com/jogamp/opencl/CLVersion.java3
1 files changed, 3 insertions, 0 deletions
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<CLVersion> {
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: