diff options
author | Michael Bien <[email protected]> | 2010-01-25 19:43:11 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-01-25 19:43:11 +0100 |
commit | b4ae8c794974e91878ca005bf2eaaa95781301a3 (patch) | |
tree | fe5ee3073f9d20a31c04709ee847057aa7741c81 /src/com/mbien/opencl/CLImage2d.java | |
parent | 8e2cfb1179a97f7ed1248132429e1e60663b0d42 (diff) |
CLImage support for CLCommandQueue.
Diffstat (limited to 'src/com/mbien/opencl/CLImage2d.java')
-rw-r--r-- | src/com/mbien/opencl/CLImage2d.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/mbien/opencl/CLImage2d.java b/src/com/mbien/opencl/CLImage2d.java index ca8b58ed..fd1afcbf 100644 --- a/src/com/mbien/opencl/CLImage2d.java +++ b/src/com/mbien/opencl/CLImage2d.java @@ -12,8 +12,8 @@ import static com.mbien.opencl.CLException.*; */ public final class CLImage2d<B extends Buffer> extends CLImage<B> { - private CLImage2d(CLContext context, B directBuffer, CLImageFormat format, long id) { - super(context, directBuffer, format, id); + private CLImage2d(CLContext context, B directBuffer, CLImageFormat format, int width, int height, long id) { + super(context, directBuffer, format, width, height, id); } static <B extends Buffer> CLImage2d<B> createImage(CLContext context, B directBuffer, @@ -25,12 +25,12 @@ public final class CLImage2d<B extends Buffer> extends CLImage<B> { long id = cl.clCreateImage2D(context.ID, flags, format, width, height, rowPitch, directBuffer, err); checkForError(err.get(), "can not create 2d image"); - return new CLImage2d<B>(context, directBuffer, format, id); + return new CLImage2d<B>(context, directBuffer, format, width, height, id); } @Override public <T extends Buffer> CLImage2d<T> cloneWith(T directBuffer) { - return new CLImage2d<T>(context, directBuffer, format, ID); + return new CLImage2d<T>(context, directBuffer, format, width, height, ID); } } |