Package com.jogamp.opencl.llb.impl
Class CLImageFormatImpl
- java.lang.Object
-
- com.jogamp.opencl.llb.impl.CLImageFormatImpl
-
public class CLImageFormatImpl extends Object
Struct accessor for cl_image_format.- Author:
- Michael Bien, GlueGen, et al.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CLImageFormatImplcreate()Returns a new instance with all bytes set to zero.static CLImageFormatImplcreate(ByteBuffer buf)Returns a new instance using the given ByteBuffer having at least {#link size()} bytes capacity.static CLImageFormatImplderefPointer(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()intgetImageChannelDataType()Getter for native fieldimageChannelDataType, being a struct owned IntType.intgetImageChannelOrder()Getter for native fieldimageChannelOrder, being a struct owned IntType.CLImageFormatImplsetImageChannelDataType(int src)Setter for native fieldimageChannelDataType, being a struct owned IntType.CLImageFormatImplsetImageChannelOrder(int src)Setter for native fieldimageChannelOrder, 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 CLImageFormatImpl create()
Returns a new instance with all bytes set to zero.
-
create
public static CLImageFormatImpl 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 CLImageFormatImpl 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()
-
setImageChannelOrder
public final CLImageFormatImpl setImageChannelOrder(int src)
Setter for native fieldimageChannelOrder, being a struct owned IntType.Native Field Signature
(IntType) typedef 'cl_channel_order', size[fixed true, lnx64 4], const[false], is[primitive, int]
-
getImageChannelOrder
public final int getImageChannelOrder()
Getter for native fieldimageChannelOrder, being a struct owned IntType.Native Field Signature
(IntType) typedef 'cl_channel_order', size[fixed true, lnx64 4], const[false], is[primitive, int]
-
setImageChannelDataType
public final CLImageFormatImpl setImageChannelDataType(int src)
Setter for native fieldimageChannelDataType, being a struct owned IntType.Native Field Signature
(IntType) typedef 'cl_channel_type', size[fixed true, lnx64 4], const[false], is[primitive, int]
-
getImageChannelDataType
public final int getImageChannelDataType()
Getter for native fieldimageChannelDataType, being a struct owned IntType.Native Field Signature
(IntType) typedef 'cl_channel_type', size[fixed true, lnx64 4], const[false], is[primitive, int]
-
-