public abstract class CLImage<B extends Buffer> extends CLMemory<B>
Modifier and Type | Class and Description |
---|---|
protected static class |
CLImage.CLImageInfoAccessor |
CLMemory.GLObjectType, CLMemory.Map, CLMemory.Mem
Modifier and Type | Field and Description |
---|---|
protected CLImageFormat |
format |
int |
height |
int |
width |
clCapacity, elementSize, FLAGS, size
Modifier | Constructor and Description |
---|---|
protected |
CLImage(CLContext context,
B directBuffer,
CLImageFormat format,
CLImage.CLImageInfoAccessor accessor,
int width,
int height,
long id,
int flags) |
protected |
CLImage(CLContext context,
B directBuffer,
CLImageFormat format,
int width,
int height,
long id,
int flags) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
This method is not intended to be called from client code.
|
protected static CLImageFormat |
createUninitializedImageFormat() |
int |
getElementSize()
Returns the size of each element of the image memory object given by image.
|
CLImageFormat |
getFormat()
Returns the image format descriptor specified when image was created.
|
int |
getHeight()
Returns the height of this image in pixels.
|
int |
getRowPitch()
Returns the size in bytes of a row of elements of the image object given by image.
|
int |
getWidth()
Returns width of this image in pixels.
|
boolean |
isReleased()
Returns true if
CLResource.release() has been called. |
cloneWith, equals, getBuffer, getCL, getCLCapacity, getCLSize, getConfig, getMapCount, getNIOCapacity, getNIOSize, getSizeImpl, hashCode, initCLCapacity, isHostPointerFlag, isReadOnly, isReadWrite, isWriteOnly, registerDestructorCallback, release, toString, use
getContext, getID, getPlatform
protected CLImageFormat format
public final int width
public final int height
protected CLImage(CLContext context, B directBuffer, CLImageFormat format, int width, int height, long id, int flags)
protected CLImage(CLContext context, B directBuffer, CLImageFormat format, CLImage.CLImageInfoAccessor accessor, int width, int height, long id, int flags)
protected static CLImageFormat createUninitializedImageFormat()
public CLImageFormat getFormat()
public int getElementSize()
CLImageFormat
descriptor.getElementSize
in class CLMemory<B extends Buffer>
public int getRowPitch()
public int getWidth()
public int getHeight()
@Deprecated public final void close()
AutoCloseable
.
Might be remove as soon we have extension methods, but shall validate with Java 1.5 specs.close
in interface AutoCloseable
AutoCloseable
public boolean isReleased()
CLResource
CLResource.release()
has been called.isReleased
in interface CLResource