summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/com')
-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();
}