public static class Image.ImageDescriptor
extends java.lang.Object
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.
Modifier and Type | Field and Description |
---|---|
long |
arraySize |
long |
depth |
long |
height |
java.nio.ByteBuffer |
hostPtr |
long |
rowPitch |
long |
slicePitch |
Image.ImageType |
type |
long |
width |
Constructor and Description |
---|
ImageDescriptor() |
ImageDescriptor(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,
java.nio.ByteBuffer hostPtr)
Used to specify an image with the provided ByteBuffer as source
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
public Image.ImageType type
public long width
public long height
public long depth
public long arraySize
public long rowPitch
public long slicePitch
public java.nio.ByteBuffer hostPtr
public ImageDescriptor()
public ImageDescriptor(Image.ImageType type, long width, long height, long depth, long arraySize, long rowPitch, long slicePitch, java.nio.ByteBuffer hostPtr)
type
- the image typewidth
- the widthheight
- the height, unused for image types ImageType.IMAGE_1D*
depth
- the depth of the image, only used for image type ImageType.IMAGE_3D
arraySize
- the number of array elements for image type ImageType.IMAGE_1D_ARRAY
and ImageType.IMAGE_2D_ARRAY
rowPitch
- the row pitch of the provided bufferslicePitch
- the slice pitch of the provided bufferhostPtr
- host buffer used as image memorypublic ImageDescriptor(Image.ImageType type, long width, long height, long depth, long arraySize)
type
- the image typewidth
- the widthheight
- the height, unused for image types ImageType.IMAGE_1D*
depth
- the depth of the image, only used for image type ImageType.IMAGE_3D
arraySize
- the number of array elements for image type ImageType.IMAGE_1D_ARRAY
and ImageType.IMAGE_2D_ARRAY