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 SummaryFieldsModifier and TypeFieldDescriptionlonglonglonglonglonglong
- 
Constructor SummaryConstructorsConstructorDescriptionImageDescriptor(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
- 
widthpublic long width
- 
heightpublic long height
- 
depthpublic long depth
- 
arraySizepublic long arraySize
- 
rowPitchpublic long rowPitch
- 
slicePitchpublic long slicePitch
- 
hostPtr
 
- 
- 
Constructor Details- 
ImageDescriptorpublic ImageDescriptor()
- 
ImageDescriptorpublic 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 type
- width- the width
- height- 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_ARRAYand- ImageType.IMAGE_2D_ARRAY
- rowPitch- the row pitch of the provided buffer
- slicePitch- the slice pitch of the provided buffer
- hostPtr- host buffer used as image memory
 
- 
ImageDescriptorSpecifies an image without a host buffer, a new chunk of memory will be allocated.- Parameters:
- type- the image type
- width- the width
- height- 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_ARRAYand- ImageType.IMAGE_2D_ARRAY
 
 
- 
- 
Method Details