Class CLImageDescImpl
- java.lang.Object
-
- com.jogamp.opencl.llb.impl.CLImageDescImpl
-
public class CLImageDescImpl extends Object
Struct accessor for cl_image_desc.- Author:
- Wade Walker, GlueGen, et al.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CLImageDescImplcreate()Returns a new instance with all bytes set to zero.static CLImageDescImplcreate(ByteBuffer buf)Returns a new instance using the given ByteBuffer having at least {#link size()} bytes capacity.static CLImageDescImplderefPointer(long addr)Returns new instance dereferencing ByteBuffer at given native address `addr` with sizesize().ByteBuffergetBuffer()Return the underlying native direct ByteBufferlonggetDirectBufferAddress()Returns the native address of the underlying native ByteBuffergetBuffer()longgetImageArraySize()Getter for native fieldimageArraySize, being a struct owned IntType.longgetImageDepth()Getter for native fieldimageDepth, being a struct owned IntType.longgetImageHeight()Getter for native fieldimageHeight, being a struct owned IntType.longgetImageRowPitch()Getter for native fieldimageRowPitch, being a struct owned IntType.longgetImageSlicePitch()Getter for native fieldimageSlicePitch, being a struct owned IntType.intgetImageType()Getter for native fieldimageType, being a struct owned IntType.longgetImageWidth()Getter for native fieldimageWidth, being a struct owned IntType.intgetNumMipLevels()Getter for native fieldnumMipLevels, being a struct owned IntType.intgetNumSamples()Getter for native fieldnumSamples, being a struct owned IntType.CLImageDescImplsetImageArraySize(long src)Setter for native fieldimageArraySize, being a struct owned IntType.CLImageDescImplsetImageDepth(long src)Setter for native fieldimageDepth, being a struct owned IntType.CLImageDescImplsetImageHeight(long src)Setter for native fieldimageHeight, being a struct owned IntType.CLImageDescImplsetImageRowPitch(long src)Setter for native fieldimageRowPitch, being a struct owned IntType.CLImageDescImplsetImageSlicePitch(long src)Setter for native fieldimageSlicePitch, being a struct owned IntType.CLImageDescImplsetImageType(int src)Setter for native fieldimageType, being a struct owned IntType.CLImageDescImplsetImageWidth(long src)Setter for native fieldimageWidth, being a struct owned IntType.CLImageDescImplsetNumMipLevels(int src)Setter for native fieldnumMipLevels, being a struct owned IntType.CLImageDescImplsetNumSamples(int src)Setter for native fieldnumSamples, being a struct owned IntType.static intsize()Returns the aligned total size of a native instance.static booleanusesNativeCode()Returns true if this generated implementation uses native code, otherwise false.
-
-
-
Method Detail
-
usesNativeCode
public static boolean usesNativeCode()
Returns true if this generated implementation uses native code, otherwise false.
-
size
public static int size()
Returns the aligned total size of a native instance.
-
create
public static CLImageDescImpl create()
Returns a new instance with all bytes set to zero.
-
create
public static CLImageDescImpl create(ByteBuffer buf)
Returns a new instance using the given ByteBuffer having at least {#link size()} bytes capacity. The ByteBuffer will beByteBuffer.rewind()and native-order set.
-
derefPointer
public static CLImageDescImpl derefPointer(long addr)
Returns new instance dereferencing ByteBuffer at given native address `addr` with sizesize().
-
getBuffer
public final ByteBuffer getBuffer()
Return the underlying native direct ByteBuffer
-
getDirectBufferAddress
public final long getDirectBufferAddress()
Returns the native address of the underlying native ByteBuffergetBuffer()
-
setImageType
public final CLImageDescImpl setImageType(int src)
Setter for native fieldimageType, being a struct owned IntType.Native Field Signature
(IntType) typedef 'cl_mem_object_type', size[fixed true, lnx64 4], const[false], is[primitive, int]
-
getImageType
public final int getImageType()
Getter for native fieldimageType, being a struct owned IntType.Native Field Signature
(IntType) typedef 'cl_mem_object_type', size[fixed true, lnx64 4], const[false], is[primitive, int]
-
setImageWidth
public final CLImageDescImpl setImageWidth(long src)
Setter for native fieldimageWidth, being a struct owned IntType.Native Field Signature
(IntType) typedef 'size_t', size[fixed false, lnx64 8], const[false], is[primitive, int]
-
getImageWidth
public final long getImageWidth()
Getter for native fieldimageWidth, being a struct owned IntType.Native Field Signature
(IntType) typedef 'size_t', size[fixed false, lnx64 8], const[false], is[primitive, int]
-
setImageHeight
public final CLImageDescImpl setImageHeight(long src)
Setter for native fieldimageHeight, being a struct owned IntType.Native Field Signature
(IntType) typedef 'size_t', size[fixed false, lnx64 8], const[false], is[primitive, int]
-
getImageHeight
public final long getImageHeight()
Getter for native fieldimageHeight, being a struct owned IntType.Native Field Signature
(IntType) typedef 'size_t', size[fixed false, lnx64 8], const[false], is[primitive, int]
-
setImageDepth
public final CLImageDescImpl setImageDepth(long src)
Setter for native fieldimageDepth, being a struct owned IntType.Native Field Signature
(IntType) typedef 'size_t', size[fixed false, lnx64 8], const[false], is[primitive, int]
-
getImageDepth
public final long getImageDepth()
Getter for native fieldimageDepth, being a struct owned IntType.Native Field Signature
(IntType) typedef 'size_t', size[fixed false, lnx64 8], const[false], is[primitive, int]
-
setImageArraySize
public final CLImageDescImpl setImageArraySize(long src)
Setter for native fieldimageArraySize, being a struct owned IntType.Native Field Signature
(IntType) typedef 'size_t', size[fixed false, lnx64 8], const[false], is[primitive, int]
-
getImageArraySize
public final long getImageArraySize()
Getter for native fieldimageArraySize, being a struct owned IntType.Native Field Signature
(IntType) typedef 'size_t', size[fixed false, lnx64 8], const[false], is[primitive, int]
-
setImageRowPitch
public final CLImageDescImpl setImageRowPitch(long src)
Setter for native fieldimageRowPitch, being a struct owned IntType.Native Field Signature
(IntType) typedef 'size_t', size[fixed false, lnx64 8], const[false], is[primitive, int]
-
getImageRowPitch
public final long getImageRowPitch()
Getter for native fieldimageRowPitch, being a struct owned IntType.Native Field Signature
(IntType) typedef 'size_t', size[fixed false, lnx64 8], const[false], is[primitive, int]
-
setImageSlicePitch
public final CLImageDescImpl setImageSlicePitch(long src)
Setter for native fieldimageSlicePitch, being a struct owned IntType.Native Field Signature
(IntType) typedef 'size_t', size[fixed false, lnx64 8], const[false], is[primitive, int]
-
getImageSlicePitch
public final long getImageSlicePitch()
Getter for native fieldimageSlicePitch, being a struct owned IntType.Native Field Signature
(IntType) typedef 'size_t', size[fixed false, lnx64 8], const[false], is[primitive, int]
-
setNumMipLevels
public final CLImageDescImpl setNumMipLevels(int src)
Setter for native fieldnumMipLevels, being a struct owned IntType.Native Field Signature
(IntType) typedef 'cl_uint', size[fixed true, lnx64 4], const[false], is[primitive, int]
-
getNumMipLevels
public final int getNumMipLevels()
Getter for native fieldnumMipLevels, being a struct owned IntType.Native Field Signature
(IntType) typedef 'cl_uint', size[fixed true, lnx64 4], const[false], is[primitive, int]
-
setNumSamples
public final CLImageDescImpl setNumSamples(int src)
Setter for native fieldnumSamples, being a struct owned IntType.Native Field Signature
(IntType) typedef 'cl_uint', size[fixed true, lnx64 4], const[false], is[primitive, int]
-
getNumSamples
public final int getNumSamples()
Getter for native fieldnumSamples, being a struct owned IntType.Native Field Signature
(IntType) typedef 'cl_uint', size[fixed true, lnx64 4], const[false], is[primitive, int]
-
-