diff options
author | Michael Bien <[email protected]> | 2010-10-15 14:57:24 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-10-15 14:57:24 +0200 |
commit | 09cba4571143544817a45657b04357e4419545f5 (patch) | |
tree | 97e0456acb843363b4fe3dc0d9f435f6866a1da3 /src | |
parent | 404428d115cf5bb36b4576016a6c1363072336d3 (diff) |
better toString()
Diffstat (limited to 'src')
-rw-r--r-- | src/com/jogamp/opencl/CLContext.java | 4 | ||||
-rw-r--r-- | src/com/jogamp/opencl/CLMemory.java | 2 |
2 files changed, 4 insertions, 2 deletions
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 <B extends Buffer> extends CLObject implements CL @Override public String toString() { - return getClass().getSimpleName()+" [id: " + ID+"]"; + return getClass().getSimpleName()+" [id: " + ID+" buffer: "+buffer+"]"; } /** |