diff options
author | Michael Bien <[email protected]> | 2010-01-29 14:36:19 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-01-29 14:36:19 +0100 |
commit | 2015fa5cd47b9be234f30e4b98d06b83486e4fb2 (patch) | |
tree | a03a73f6875e06ebdf8a910d939556ee139a9cb2 /src/com/mbien/opencl/CLImage2d.java | |
parent | b0102cab5062eb8cb06329bff457d4dd5b9d0099 (diff) |
splitted CLImageFormat into CLImageFormat and (generated) CLImageFormatImpl.
refactored CLProgram kernel creation code.
updated tests.
Diffstat (limited to 'src/com/mbien/opencl/CLImage2d.java')
-rw-r--r-- | src/com/mbien/opencl/CLImage2d.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/mbien/opencl/CLImage2d.java b/src/com/mbien/opencl/CLImage2d.java index fd1afcbf..882cedc4 100644 --- a/src/com/mbien/opencl/CLImage2d.java +++ b/src/com/mbien/opencl/CLImage2d.java @@ -22,7 +22,7 @@ public final class CLImage2d<B extends Buffer> extends CLImage<B> { CL cl = context.cl; IntBuffer err = BufferFactory.newDirectByteBuffer(4).asIntBuffer(); - long id = cl.clCreateImage2D(context.ID, flags, format, width, height, rowPitch, directBuffer, err); + 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); |