Package org.lwjgl.opencl
Class CLImageFormat
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct cl_image_format {
cl_channel_order image_channel_order;
cl_channel_type image_channel_data_type;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCLImageFormat(ByteBuffer container) Creates aCLImageFormatinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic CLImageFormatcalloc()Returns a newCLImageFormatinstance allocated withmemCalloc.static CLImageFormat.Buffercalloc(int capacity) Returns a newCLImageFormat.Bufferinstance allocated withmemCalloc.static CLImageFormat.Buffercalloc(int capacity, MemoryStack stack) Returns a newCLImageFormat.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CLImageFormatcalloc(MemoryStack stack) Returns a newCLImageFormatinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CLImageFormatDeprecated.static CLImageFormat.BuffercallocStack(int capacity) Deprecated.static CLImageFormat.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static CLImageFormatcallocStack(MemoryStack stack) Deprecated.static CLImageFormatcreate()Returns a newCLImageFormatinstance allocated withBufferUtils.static CLImageFormat.Buffercreate(int capacity) Returns a newCLImageFormat.Bufferinstance allocated withBufferUtils.static CLImageFormatcreate(long address) Returns a newCLImageFormatinstance for the specified memory address.static CLImageFormat.Buffercreate(long address, int capacity) Create aCLImageFormat.Bufferinstance at the specified memory.static @Nullable CLImageFormatcreateSafe(long address) static @Nullable CLImageFormat.BuffercreateSafe(long address, int capacity) intimage_channel_data_type(int value) Sets the specified value to theimage_channel_data_typefield.intimage_channel_order(int value) Sets the specified value to theimage_channel_orderfield.static CLImageFormatmalloc()Returns a newCLImageFormatinstance allocated withmemAlloc.static CLImageFormat.Buffermalloc(int capacity) Returns a newCLImageFormat.Bufferinstance allocated withmemAlloc.static CLImageFormat.Buffermalloc(int capacity, MemoryStack stack) Returns a newCLImageFormat.Bufferinstance allocated on the specifiedMemoryStack.static CLImageFormatmalloc(MemoryStack stack) Returns a newCLImageFormatinstance allocated on the specifiedMemoryStack.static CLImageFormatDeprecated.static CLImageFormat.BuffermallocStack(int capacity) Deprecated.static CLImageFormat.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static CLImageFormatmallocStack(MemoryStack stack) Deprecated.static intnimage_channel_data_type(long struct) Unsafe version ofimage_channel_data_type().static voidnimage_channel_data_type(long struct, int value) Unsafe version ofimage_channel_data_type.static intnimage_channel_order(long struct) Unsafe version ofimage_channel_order().static voidnimage_channel_order(long struct, int value) Unsafe version ofimage_channel_order.set(int image_channel_order, int image_channel_data_type) Initializes this struct with the specified values.set(CLImageFormat src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
IMAGE_CHANNEL_ORDER
public static final int IMAGE_CHANNEL_ORDERThe struct member offsets. -
IMAGE_CHANNEL_DATA_TYPE
public static final int IMAGE_CHANNEL_DATA_TYPEThe struct member offsets.
-
-
Constructor Details
-
CLImageFormat
Creates aCLImageFormatinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<CLImageFormat>
-
image_channel_order
public int image_channel_order()- Returns:
- the value of the
image_channel_orderfield.
-
image_channel_data_type
public int image_channel_data_type()- Returns:
- the value of the
image_channel_data_typefield.
-
image_channel_order
Sets the specified value to theimage_channel_orderfield. -
image_channel_data_type
Sets the specified value to theimage_channel_data_typefield. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newCLImageFormatinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCLImageFormatinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCLImageFormatinstance allocated withBufferUtils. -
create
Returns a newCLImageFormatinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCLImageFormat.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCLImageFormat.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCLImageFormat.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCLImageFormat.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newCLImageFormatinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCLImageFormatinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newCLImageFormat.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newCLImageFormat.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nimage_channel_order
public static int nimage_channel_order(long struct) Unsafe version ofimage_channel_order(). -
nimage_channel_data_type
public static int nimage_channel_data_type(long struct) Unsafe version ofimage_channel_data_type(). -
nimage_channel_order
public static void nimage_channel_order(long struct, int value) Unsafe version ofimage_channel_order. -
nimage_channel_data_type
public static void nimage_channel_data_type(long struct, int value) Unsafe version ofimage_channel_data_type.
-