aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2011-06-19 23:26:00 +0200
committerMichael Bien <[email protected]>2011-06-19 23:26:00 +0200
commit3e75f3f7c0b7339547ee3cf3da2e68599dd68b53 (patch)
tree88533f18e44d19824ae4f23f8ed0325356c14d04 /src/com/jogamp/opencl
parent1a5a20615afc6f247bfd7f50b099247d8fd45342 (diff)
implemented isReleased()
Diffstat (limited to 'src/com/jogamp/opencl')
-rw-r--r--src/com/jogamp/opencl/demos/radixsort/RadixSort.java5
-rw-r--r--src/com/jogamp/opencl/demos/radixsort/Scan.java5
2 files changed, 10 insertions, 0 deletions
diff --git a/src/com/jogamp/opencl/demos/radixsort/RadixSort.java b/src/com/jogamp/opencl/demos/radixsort/RadixSort.java
index e2a7b46..92e61a2 100644
--- a/src/com/jogamp/opencl/demos/radixsort/RadixSort.java
+++ b/src/com/jogamp/opencl/demos/radixsort/RadixSort.java
@@ -173,6 +173,11 @@ public class RadixSort implements CLResource {
mBlockOffsets.release();
}
+ @Override
+ public boolean isReleased() {
+ return scan.isReleased();
+ }
+
public void close() {
release();
}
diff --git a/src/com/jogamp/opencl/demos/radixsort/Scan.java b/src/com/jogamp/opencl/demos/radixsort/Scan.java
index 3d364ed..b096437 100644
--- a/src/com/jogamp/opencl/demos/radixsort/Scan.java
+++ b/src/com/jogamp/opencl/demos/radixsort/Scan.java
@@ -125,6 +125,11 @@ public class Scan implements CLResource {
}
}
+ @Override
+ public boolean isReleased() {
+ return program.isReleased();
+ }
+
public void close() {
release();
}