diff options
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+"]"; + } + } |