From 3e75f3f7c0b7339547ee3cf3da2e68599dd68b53 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Sun, 19 Jun 2011 23:26:00 +0200 Subject: implemented isReleased() --- src/com/jogamp/opencl/demos/radixsort/RadixSort.java | 5 +++++ src/com/jogamp/opencl/demos/radixsort/Scan.java | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'src/com/jogamp/opencl/demos') 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(); } -- cgit v1.2.3