|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.lwjgl.PointerWrapperAbstract
org.lwjgl.opencl.CLMem
public final class CLMem
This class is a wrapper around a cl_mem pointer.
Field Summary |
---|
Fields inherited from class org.lwjgl.PointerWrapperAbstract |
---|
pointer |
Method Summary | |
---|---|
static CLMem |
createImage2D(CLContext context,
long flags,
CLImageFormat image_format,
long image_width,
long image_height,
long image_row_pitch,
java.nio.Buffer host_ptr,
java.nio.IntBuffer errcode_ret)
Creates a new 2D image object. |
static CLMem |
createImage3D(CLContext context,
long flags,
CLImageFormat image_format,
long image_width,
long image_height,
long image_depth,
long image_row_pitch,
long image_slice_pitch,
java.nio.Buffer host_ptr,
java.nio.IntBuffer errcode_ret)
Creates a new 3D image object. |
CLMem |
createSubBuffer(long flags,
int buffer_create_type,
CLBufferRegion buffer_create_info,
java.nio.IntBuffer errcode_ret)
|
int |
getGLObjectName()
Returns the GL object name. |
int |
getGLObjectType()
Returns the GL object type. |
int |
getGLTextureInfoInt(int param_name)
Returns the int value of the specified parameter. |
int |
getImageChannelOrder()
Returns the image channel order. |
int |
getImageChannelType()
Returns the image channel type. |
CLImageFormat |
getImageFormat()
Returns the image format. |
long |
getImageInfoSize(int param_name)
Returns the size_t value of the specified parameter. |
java.nio.ByteBuffer |
getInfoHostBuffer()
Returns a direct ByteBuffer instance that points to the host memory that backs this CLMem object. |
int |
getInfoInt(int param_name)
Returns the integer value of the specified parameter. |
long |
getInfoLong(int param_name)
Returns the long value of the specified parameter. |
long |
getInfoSize(int param_name)
Returns the size_t value of the specified parameter. |
P |
getParent()
|
int |
getReferenceCount()
|
boolean |
isValid()
Returns true if this object represents a valid pointer. |
Methods inherited from class org.lwjgl.PointerWrapperAbstract |
---|
checkValid, equals, getPointer, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static CLMem createImage2D(CLContext context, long flags, CLImageFormat image_format, long image_width, long image_height, long image_row_pitch, java.nio.Buffer host_ptr, java.nio.IntBuffer errcode_ret)
context
- the context on which to create the image objectflags
- the memory object flagsimage_format
- the image formatimage_width
- the image widthimage_height
- the image heightimage_row_pitch
- the image row pitchhost_ptr
- the host buffer from which to read image data (optional)errcode_ret
- the error code result
public static CLMem createImage3D(CLContext context, long flags, CLImageFormat image_format, long image_width, long image_height, long image_depth, long image_row_pitch, long image_slice_pitch, java.nio.Buffer host_ptr, java.nio.IntBuffer errcode_ret)
context
- the context on which to create the image objectflags
- the memory object flagsimage_format
- the image formatimage_width
- the image widthimage_height
- the image heightimage_depth
- the image depthimage_row_pitch
- the image row pitchimage_slice_pitch
- the image slice pitchhost_ptr
- the host buffer from which to read image data (optional)errcode_ret
- the error code result
public CLMem createSubBuffer(long flags, int buffer_create_type, CLBufferRegion buffer_create_info, java.nio.IntBuffer errcode_ret)
public int getInfoInt(int param_name)
param_name
- the parameter
public long getInfoSize(int param_name)
param_name
- the parameter
public long getInfoLong(int param_name)
param_name
- the parameter
public java.nio.ByteBuffer getInfoHostBuffer()
public long getImageInfoSize(int param_name)
param_name
- the parameter
public CLImageFormat getImageFormat()
public int getImageChannelOrder()
public int getImageChannelType()
public int getGLObjectType()
public int getGLObjectName()
public int getGLTextureInfoInt(int param_name)
param_name
- the parameter
public P getParent()
public final int getReferenceCount()
public final boolean isValid()
PointerWrapperAbstract
isValid
in class PointerWrapperAbstract
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |