diff options
author | Michael Bien <[email protected]> | 2011-06-19 23:26:00 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2011-06-19 23:26:00 +0200 |
commit | 3e75f3f7c0b7339547ee3cf3da2e68599dd68b53 (patch) | |
tree | 88533f18e44d19824ae4f23f8ed0325356c14d04 /src/com/jogamp | |
parent | 1a5a20615afc6f247bfd7f50b099247d8fd45342 (diff) |
implemented isReleased()
Diffstat (limited to 'src/com/jogamp')
-rw-r--r-- | src/com/jogamp/opencl/demos/radixsort/RadixSort.java | 5 | ||||
-rw-r--r-- | src/com/jogamp/opencl/demos/radixsort/Scan.java | 5 |
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(); } |