From 919d8e9f992c07ab18ddd6d192d6747e8d7aa40b Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Tue, 16 Mar 2010 18:05:06 +0100 Subject: even more utility methods and general awesomeness. --- src/com/mbien/opencl/CLImage3d.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/com/mbien/opencl/CLImage3d.java') diff --git a/src/com/mbien/opencl/CLImage3d.java b/src/com/mbien/opencl/CLImage3d.java index 681f4fbe..afb162c2 100644 --- a/src/com/mbien/opencl/CLImage3d.java +++ b/src/com/mbien/opencl/CLImage3d.java @@ -15,13 +15,13 @@ public class CLImage3d extends CLImage { public final int depth; - private CLImage3d(CLContext context, B directBuffer, CLImageFormat format, int width, int height, int depth, long id) { - super(context, directBuffer, format, width, height, id); + private CLImage3d(CLContext context, B directBuffer, CLImageFormat format, int width, int height, int depth, long id, int flags) { + super(context, directBuffer, format, width, height, id, flags); 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); + protected CLImage3d(CLContext context, B directBuffer, CLImageFormat format, CLImageInfoAccessor accessor, int width, int height, int depth, long id, int flags) { + super(context, directBuffer, format, accessor, width, height, id, flags); this.depth = depth; } @@ -35,12 +35,12 @@ public class CLImage3d extends CLImage { long id = cl.clCreateImage3D(context.ID, flags, format.getFormatImpl(), width, height, depth, rowPitch, slicePitch, directBuffer, err); checkForError(err.get(), "can not create 2d image"); - return new CLImage3d(context, directBuffer, format, width, height, depth, id); + return new CLImage3d(context, directBuffer, format, width, height, depth, id, flags); } @Override public CLImage3d cloneWith(T directBuffer) { - return new CLImage3d(context, directBuffer, format, width, height, depth, ID); + return new CLImage3d(context, directBuffer, format, width, height, depth, ID, FLAGS); } /** -- cgit v1.2.3