diff options
author | Michael Bien <[email protected]> | 2010-02-27 00:44:33 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-02-27 00:44:33 +0100 |
commit | 34bb39283a30919212b682c34bb54d8cd3626cbd (patch) | |
tree | 5f70f3473cdfffa8562a558cebcec6aa30af8fc7 /src/com/mbien/opencl/CLImage2d.java | |
parent | 75d392f3fff6d47fdccae9a8915fea61cdbef990 (diff) |
refactored CLGLBuffer into seperate OpenGL buffer and image types.
Diffstat (limited to 'src/com/mbien/opencl/CLImage2d.java')
-rw-r--r-- | src/com/mbien/opencl/CLImage2d.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/com/mbien/opencl/CLImage2d.java b/src/com/mbien/opencl/CLImage2d.java index 882cedc4..a04756b9 100644 --- a/src/com/mbien/opencl/CLImage2d.java +++ b/src/com/mbien/opencl/CLImage2d.java @@ -10,11 +10,15 @@ import static com.mbien.opencl.CLException.*; * * @author Michael Bien */ -public final class CLImage2d<B extends Buffer> extends CLImage<B> { +public class CLImage2d<B extends Buffer> extends CLImage<B> { private CLImage2d(CLContext context, B directBuffer, CLImageFormat format, int width, int height, long id) { super(context, directBuffer, format, width, height, id); } + + protected CLImage2d(CLContext context, B directBuffer, CLImageFormat format, CLImageInfoAccessor accessor, int width, int height, long id) { + super(context, directBuffer, format, accessor, width, height, id); + } static <B extends Buffer> CLImage2d<B> createImage(CLContext context, B directBuffer, int width, int height, int rowPitch, CLImageFormat format, int flags) { @@ -33,4 +37,10 @@ public final class CLImage2d<B extends Buffer> extends CLImage<B> { return new CLImage2d<T>(context, directBuffer, format, width, height, ID); } + + @Override + public String toString() { + return "CLImage2d [id: " + ID+" width: "+width+" height: "+height+"]"; + } + } |