summaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/CLImage3d.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-03-16 18:05:06 +0100
committerMichael Bien <[email protected]>2010-03-16 18:05:06 +0100
commit919d8e9f992c07ab18ddd6d192d6747e8d7aa40b (patch)
tree8a92dc8adb52758e1f09f2e87632e6f3f6ac695f /src/com/mbien/opencl/CLImage3d.java
parent81b94f83cb76128c481d21134c3d462590db23d0 (diff)
even more utility methods and general awesomeness.
Diffstat (limited to 'src/com/mbien/opencl/CLImage3d.java')
-rw-r--r--src/com/mbien/opencl/CLImage3d.java12
1 files changed, 6 insertions, 6 deletions
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<B extends Buffer> extends CLImage<B> {
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<B extends Buffer> extends CLImage<B> {
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<B>(context, directBuffer, format, width, height, depth, id);
+ return new CLImage3d<B>(context, directBuffer, format, width, height, depth, id, flags);
}
@Override
public <T extends Buffer> CLImage3d<T> cloneWith(T directBuffer) {
- return new CLImage3d<T>(context, directBuffer, format, width, height, depth, ID);
+ return new CLImage3d<T>(context, directBuffer, format, width, height, depth, ID, FLAGS);
}
/**