29package com.jogamp.opencl;
31import com.jogamp.common.nio.Buffers;
32import com.jogamp.opencl.llb.CL;
33import java.nio.Buffer;
34import java.nio.IntBuffer;
36import static com.jogamp.opencl.CLException.*;
56 final IntBuffer err = Buffers.newDirectIntBuffer(1);
58 if(isHostPointerFlag(flags)) {
59 host_ptr = directBuffer;
62 checkForError(err.get(),
"can not create 2d image");
68 public <T extends Buffer> CLImage2d<T> cloneWith(
final T directBuffer) {
75 return "CLImage2d [id: " + ID+
" width: "+
width+
" height: "+
height+
"]";
CLContext is responsible for managing objects such as command-queues, memory, program and kernel obje...
CLPlatform getPlatform()
Returns the CLPlatform this context is running on.
CLImage2d(final CLContext context, final B directBuffer, final CLImageFormat format, final CLImageInfoAccessor accessor, final int width, final int height, final long id, final int flags)
final long ID
The OpenCL object handle.
Java bindings to OpenCL, the Open Computing Language.
long clCreateImage2D(long context, long flags, CLImageFormatImpl image_format, long image_width, long image_height, long image_row_pitch, Buffer host_ptr, IntBuffer errcode_ret)
Interface to C language function: cl_mem {@native clCreateImage2D}(cl_context context,...