public final class CLMem extends PointerWrapperAbstract
pointer
Modifier and Type | Method and Description |
---|---|
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.
|
checkValid, equals, getPointer, hashCode, toString
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 resultpublic 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 resultpublic 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 parameterpublic long getInfoSize(int param_name)
param_name
- the parameterpublic long getInfoLong(int param_name)
param_name
- the parameterpublic java.nio.ByteBuffer getInfoHostBuffer()
public long getImageInfoSize(int param_name)
param_name
- the parameterpublic CLImageFormat getImageFormat()
public int getImageChannelOrder()
public int getImageChannelType()
public int getGLObjectType()
public int getGLObjectName()
public int getGLTextureInfoInt(int param_name)
param_name
- the parameterpublic P getParent()
public final int getReferenceCount()
public final boolean isValid()
PointerWrapperAbstract
isValid
in class PointerWrapperAbstract
Copyright © 2002-2009 lwjgl.org. All Rights Reserved.