diff options
Diffstat (limited to 'src/com/mbien/opencl/CLImage3d.java')
-rw-r--r-- | src/com/mbien/opencl/CLImage3d.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/com/mbien/opencl/CLImage3d.java b/src/com/mbien/opencl/CLImage3d.java index 2549ff21..681f4fbe 100644 --- a/src/com/mbien/opencl/CLImage3d.java +++ b/src/com/mbien/opencl/CLImage3d.java @@ -11,7 +11,7 @@ import static com.mbien.opencl.CLException.*; * * @author Michael Bien */ -public final class CLImage3d<B extends Buffer> extends CLImage<B> { +public class CLImage3d<B extends Buffer> extends CLImage<B> { public final int depth; @@ -20,6 +20,12 @@ public final class CLImage3d<B extends Buffer> extends CLImage<B> { this.depth = depth; } + protected CLImage3d(CLContext context, B directBuffer, CLImageFormat format, CLImageInfoAccessor accessor, int width, int height, int depth, long id) { + super(context, directBuffer, format, accessor, width, height, id); + this.depth = depth; + } + + static <B extends Buffer> CLImage3d<B> createImage(CLContext context, B directBuffer, int width, int height, int depth, int rowPitch, int slicePitch, CLImageFormat format, int flags) { @@ -50,4 +56,9 @@ public final class CLImage3d<B extends Buffer> extends CLImage<B> { public int getDepth() { return depth; } + + @Override + public String toString() { + return "CLImage3d [id: " + ID+" width: "+width+" height: "+height+" depth: "+depth+"]"; + } } |