summaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/CLImage2d.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/mbien/opencl/CLImage2d.java')
-rw-r--r--src/com/mbien/opencl/CLImage2d.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/com/mbien/opencl/CLImage2d.java b/src/com/mbien/opencl/CLImage2d.java
index a04756b9..9345244e 100644
--- a/src/com/mbien/opencl/CLImage2d.java
+++ b/src/com/mbien/opencl/CLImage2d.java
@@ -12,12 +12,12 @@ import static com.mbien.opencl.CLException.*;
*/
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);
+ private CLImage2d(CLContext context, B directBuffer, CLImageFormat format, int width, int height, long id, int flags) {
+ super(context, directBuffer, format, width, height, id, flags);
}
- protected CLImage2d(CLContext context, B directBuffer, CLImageFormat format, CLImageInfoAccessor accessor, int width, int height, long id) {
- super(context, directBuffer, format, accessor, width, height, id);
+ protected CLImage2d(CLContext context, B directBuffer, CLImageFormat format, CLImageInfoAccessor accessor, int width, int height, long id, int flags) {
+ super(context, directBuffer, format, accessor, width, height, id, flags);
}
static <B extends Buffer> CLImage2d<B> createImage(CLContext context, B directBuffer,
@@ -29,12 +29,12 @@ public class CLImage2d<B extends Buffer> extends CLImage<B> {
long id = cl.clCreateImage2D(context.ID, flags, format.getFormatImpl(), width, height, rowPitch, directBuffer, err);
checkForError(err.get(), "can not create 2d image");
- return new CLImage2d<B>(context, directBuffer, format, width, height, id);
+ return new CLImage2d<B>(context, directBuffer, format, width, height, id, flags);
}
@Override
public <T extends Buffer> CLImage2d<T> cloneWith(T directBuffer) {
- return new CLImage2d<T>(context, directBuffer, format, width, height, ID);
+ return new CLImage2d<T>(context, directBuffer, format, width, height, ID, FLAGS);
}