From 09cba4571143544817a45657b04357e4419545f5 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Fri, 15 Oct 2010 14:57:24 +0200 Subject: better toString() --- src/com/jogamp/opencl/CLContext.java | 4 +++- src/com/jogamp/opencl/CLMemory.java | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/com/jogamp') diff --git a/src/com/jogamp/opencl/CLContext.java b/src/com/jogamp/opencl/CLContext.java index 837b2ebd..19fdbc1e 100644 --- a/src/com/jogamp/opencl/CLContext.java +++ b/src/com/jogamp/opencl/CLContext.java @@ -605,7 +605,9 @@ public class CLContext extends CLObject implements CLResource { @Override public String toString() { return getClass().getSimpleName()+" [id: " + ID - + " #devices: " + getDevices().length + + ", platform: " + getPlatform().getName() + + ", profile: " + getPlatform().getProfile() + + ", devices: " + getDevices().length + "]"; } diff --git a/src/com/jogamp/opencl/CLMemory.java b/src/com/jogamp/opencl/CLMemory.java index 416b8019..8b28001e 100644 --- a/src/com/jogamp/opencl/CLMemory.java +++ b/src/com/jogamp/opencl/CLMemory.java @@ -241,7 +241,7 @@ public abstract class CLMemory extends CLObject implements CL @Override public String toString() { - return getClass().getSimpleName()+" [id: " + ID+"]"; + return getClass().getSimpleName()+" [id: " + ID+" buffer: "+buffer+"]"; } /** -- cgit v1.2.3