Package com.jme3.opencl
Class Image.ImageDescriptor
java.lang.Object
com.jme3.opencl.Image.ImageDescriptor
- Enclosing class:
- Image
The image descriptor structure describes the type and dimensions of the image or image array.
There exist two constructors:
ImageDescriptor(ImageType, long, long, long, long)
is used when an image with new memory should be created (used most often).
ImageDescriptor(ImageType, long, long, long, long, long, long, ByteBuffer)
creates an image using the provided ByteBuffer
as source.
-
Field Summary
Modifier and TypeFieldDescriptionlong
long
long
long
long
long
-
Constructor Summary
ConstructorDescriptionImageDescriptor
(Image.ImageType type, long width, long height, long depth, long arraySize) Specifies an image without a host buffer, a new chunk of memory will be allocated.ImageDescriptor
(Image.ImageType type, long width, long height, long depth, long arraySize, long rowPitch, long slicePitch, ByteBuffer hostPtr) Used to specify an image with the provided ByteBuffer as source -
Method Summary
-
Field Details
-
type
-
width
public long width -
height
public long height -
depth
public long depth -
arraySize
public long arraySize -
rowPitch
public long rowPitch -
slicePitch
public long slicePitch -
hostPtr
-
-
Constructor Details
-
ImageDescriptor
public ImageDescriptor() -
ImageDescriptor
public ImageDescriptor(Image.ImageType type, long width, long height, long depth, long arraySize, long rowPitch, long slicePitch, ByteBuffer hostPtr) Used to specify an image with the provided ByteBuffer as source- Parameters:
type
- the image typewidth
- the widthheight
- the height, unused for image typesImageType.IMAGE_1D*
depth
- the depth of the image, only used for image typeImageType.IMAGE_3D
arraySize
- the number of array elements for image typeImageType.IMAGE_1D_ARRAY
andImageType.IMAGE_2D_ARRAY
rowPitch
- the row pitch of the provided bufferslicePitch
- the slice pitch of the provided bufferhostPtr
- host buffer used as image memory
-
ImageDescriptor
Specifies an image without a host buffer, a new chunk of memory will be allocated.- Parameters:
type
- the image typewidth
- the widthheight
- the height, unused for image typesImageType.IMAGE_1D*
depth
- the depth of the image, only used for image typeImageType.IMAGE_3D
arraySize
- the number of array elements for image typeImageType.IMAGE_1D_ARRAY
andImageType.IMAGE_2D_ARRAY
-
-
Method Details