public abstract class CLImage extends CLMem
CLMem.DestructorCallback, CLMem.Flags, CLMem.GLObjectInfo, CLMem.GLObjectType, CLMem.MapFlags, CLMem.Migration, CLMem.ObjectType, CLMem.Usage| Modifier and Type | Method and Description |
|---|---|
CLEvent |
copyTo(CLQueue queue,
CLImage destination,
CLEvent... eventsToWaitFor)
Calls clEnqueueCopyImage.
|
CLEvent |
copyTo(CLQueue queue,
CLImage destination,
long[] sourceOrigin,
long[] destinationOrigin,
long[] region,
CLEvent... eventsToWaitFor)
Calls clEnqueueCopyImage.
|
boolean |
equals(Object obj)
Underyling implementation pointer-based equality test
|
CLEvent |
fillImage(CLQueue queue,
Object color,
CLEvent... eventsToWaitFor)
Calls clEnqueueFillImage.
|
CLEvent |
fillImage(CLQueue queue,
Object color,
long[] origin,
long[] region,
CLEvent... eventsToWaitFor)
Calls clEnqueueFillImage.
|
long |
getElementSize()
Return size of each element of the image memory object given by image.
|
static <E extends TypedPointer,A extends com.nativelibs4java.opencl.CLAbstractEntity> |
getEntities(A[] objects,
Pointer<E> out) |
CLImageFormat |
getFormat()
Return image format descriptor specified when image is created with CLContext.create{Input|Output|InputOutput}{2D|3D}.
|
int |
hashCode()
Underyling implementation pointer-based hashCode computation
|
void |
release()
Manual release of the OpenCL resources represented by this object.
|
CLEvent |
unmap(CLQueue queue,
ByteBuffer buffer,
CLEvent... eventsToWaitFor)
Calls clEnqueueUnmapMemObject.
|
acquireGLObject, getByteCount, getContext, getGLObjectInfo, releaseGLObject, setDestructorCallbackpublic CLImageFormat getFormat()
public long getElementSize()
public CLEvent fillImage(CLQueue queue, Object color, CLEvent... eventsToWaitFor)
queue - queue - Queue on which to enqueue this fill buffer command.color - Color components to fill the buffer with.eventsToWaitFor - Events that need to complete before this particular command can be executed. Special value CLEvent.FIRE_AND_FORGET can be used to avoid returning a CLEvent.CLEvent.FIRE_AND_FORGET.public CLEvent fillImage(CLQueue queue, Object color, long[] origin, long[] region, CLEvent... eventsToWaitFor)
queue - queue - Queue on which to enqueue this fill buffer command.color - Color components to fill the buffer with.origin - Origin point.region - Size of the region to fill.eventsToWaitFor - Events that need to complete before this particular command can be executed. Special value CLEvent.FIRE_AND_FORGET can be used to avoid returning a CLEvent.CLEvent.FIRE_AND_FORGET.public CLEvent unmap(CLQueue queue, ByteBuffer buffer, CLEvent... eventsToWaitFor)
CLImage2D.map(com.nativelibs4java.opencl.CLQueue, com.nativelibs4java.opencl.CLMem.MapFlags, com.nativelibs4java.opencl.CLEvent[])
see CLImage3D.map(com.nativelibs4java.opencl.CLQueue, com.nativelibs4java.opencl.CLMem.MapFlags, com.nativelibs4java.opencl.CLEvent[])queue - buffer - eventsToWaitFor - Events that need to complete before this particular command can be executed. Special value CLEvent.FIRE_AND_FORGET can be used to avoid returning a CLEvent.CLEvent.FIRE_AND_FORGET.public CLEvent copyTo(CLQueue queue, CLImage destination, CLEvent... eventsToWaitFor)
queue - eventsToWaitFor - Events that need to complete before this particular command can be executed. Special value CLEvent.FIRE_AND_FORGET can be used to avoid returning a CLEvent.CLEvent.FIRE_AND_FORGET.public CLEvent copyTo(CLQueue queue, CLImage destination, long[] sourceOrigin, long[] destinationOrigin, long[] region, CLEvent... eventsToWaitFor)
queue - eventsToWaitFor - Events that need to complete before this particular command can be executed. Special value CLEvent.FIRE_AND_FORGET can be used to avoid returning a CLEvent.CLEvent.FIRE_AND_FORGET.public void release()
public static <E extends TypedPointer,A extends com.nativelibs4java.opencl.CLAbstractEntity> Pointer<E> getEntities(A[] objects, Pointer<E> out)
public int hashCode()
Copyright © 2009-2015. All Rights Reserved.