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 CLImageDescImpl
create()
Returns a new instance with all bytes set to zero.static CLImageDescImpl
create(ByteBuffer buf)
Returns a new instance using the given ByteBuffer having at least {#link size()} bytes capacity.static CLImageDescImpl
derefPointer(long addr)
Returns new instance dereferencing ByteBuffer at given native address `addr` with sizesize()
.ByteBuffer
getBuffer()
Return the underlying native direct ByteBufferlong
getDirectBufferAddress()
Returns the native address of the underlying native ByteBuffergetBuffer()
long
getImageArraySize()
Getter for native fieldimageArraySize
, being a struct owned IntType.long
getImageDepth()
Getter for native fieldimageDepth
, being a struct owned IntType.long
getImageHeight()
Getter for native fieldimageHeight
, being a struct owned IntType.long
getImageRowPitch()
Getter for native fieldimageRowPitch
, being a struct owned IntType.long
getImageSlicePitch()
Getter for native fieldimageSlicePitch
, being a struct owned IntType.int
getImageType()
Getter for native fieldimageType
, being a struct owned IntType.long
getImageWidth()
Getter for native fieldimageWidth
, being a struct owned IntType.int
getNumMipLevels()
Getter for native fieldnumMipLevels
, being a struct owned IntType.int
getNumSamples()
Getter for native fieldnumSamples
, being a struct owned IntType.CLImageDescImpl
setImageArraySize(long src)
Setter for native fieldimageArraySize
, being a struct owned IntType.CLImageDescImpl
setImageDepth(long src)
Setter for native fieldimageDepth
, being a struct owned IntType.CLImageDescImpl
setImageHeight(long src)
Setter for native fieldimageHeight
, being a struct owned IntType.CLImageDescImpl
setImageRowPitch(long src)
Setter for native fieldimageRowPitch
, being a struct owned IntType.CLImageDescImpl
setImageSlicePitch(long src)
Setter for native fieldimageSlicePitch
, being a struct owned IntType.CLImageDescImpl
setImageType(int src)
Setter for native fieldimageType
, being a struct owned IntType.CLImageDescImpl
setImageWidth(long src)
Setter for native fieldimageWidth
, being a struct owned IntType.CLImageDescImpl
setNumMipLevels(int src)
Setter for native fieldnumMipLevels
, being a struct owned IntType.CLImageDescImpl
setNumSamples(int src)
Setter for native fieldnumSamples
, being a struct owned IntType.static int
size()
Returns the aligned total size of a native instance.static boolean
usesNativeCode()
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]
-
-