summaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/CLResource.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2009-11-08 21:48:29 +0100
committerMichael Bien <[email protected]>2009-11-08 21:48:29 +0100
commitd2050aea14e6ab1a6429eab56f0612c2deb6184f (patch)
treeecb5b0fa28e3cc592b053cef7ac1dab3edcb684d /src/com/mbien/opencl/CLResource.java
parentc33ac63fb62d3d27979ca56bb577c18f745f70d4 (diff)
improved Exception handling in CLProgram and CLKernel.
introduced CLResource interface for releasable resources. CLProgram is now rebuildable.
Diffstat (limited to 'src/com/mbien/opencl/CLResource.java')
-rw-r--r--src/com/mbien/opencl/CLResource.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/com/mbien/opencl/CLResource.java b/src/com/mbien/opencl/CLResource.java
new file mode 100644
index 00000000..4f0d9d01
--- /dev/null
+++ b/src/com/mbien/opencl/CLResource.java
@@ -0,0 +1,14 @@
+package com.mbien.opencl;
+
+/**
+ * Releasable OpenCL resource.
+ * @author Michael Bien
+ */
+public interface CLResource {
+
+ /**
+ * Releases the OpenCL resource.
+ */
+ public void release();
+
+}