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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The 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 aCLImageFormat
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic CLImageFormat
calloc()
Returns a newCLImageFormat
instance allocated withmemCalloc
.static CLImageFormat.Buffer
calloc
(int capacity) Returns a newCLImageFormat.Buffer
instance allocated withmemCalloc
.static CLImageFormat.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newCLImageFormat.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CLImageFormat
calloc
(MemoryStack stack) Returns a newCLImageFormat
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CLImageFormat
Deprecated.static CLImageFormat.Buffer
callocStack
(int capacity) Deprecated.static CLImageFormat.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static CLImageFormat
callocStack
(MemoryStack stack) Deprecated.static CLImageFormat
create()
Returns a newCLImageFormat
instance allocated withBufferUtils
.static CLImageFormat.Buffer
create
(int capacity) Returns a newCLImageFormat.Buffer
instance allocated withBufferUtils
.static CLImageFormat
create
(long address) Returns a newCLImageFormat
instance for the specified memory address.static CLImageFormat.Buffer
create
(long address, int capacity) Create aCLImageFormat.Buffer
instance at the specified memory.static @Nullable CLImageFormat
createSafe
(long address) static @Nullable CLImageFormat.Buffer
createSafe
(long address, int capacity) int
image_channel_data_type
(int value) Sets the specified value to theimage_channel_data_type
field.int
image_channel_order
(int value) Sets the specified value to theimage_channel_order
field.static CLImageFormat
malloc()
Returns a newCLImageFormat
instance allocated withmemAlloc
.static CLImageFormat.Buffer
malloc
(int capacity) Returns a newCLImageFormat.Buffer
instance allocated withmemAlloc
.static CLImageFormat.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newCLImageFormat.Buffer
instance allocated on the specifiedMemoryStack
.static CLImageFormat
malloc
(MemoryStack stack) Returns a newCLImageFormat
instance allocated on the specifiedMemoryStack
.static CLImageFormat
Deprecated.static CLImageFormat.Buffer
mallocStack
(int capacity) Deprecated.static CLImageFormat.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static CLImageFormat
mallocStack
(MemoryStack stack) Deprecated.static int
nimage_channel_data_type
(long struct) Unsafe version ofimage_channel_data_type()
.static void
nimage_channel_data_type
(long struct, int value) Unsafe version ofimage_channel_data_type
.static int
nimage_channel_order
(long struct) Unsafe version ofimage_channel_order()
.static void
nimage_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.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aCLImageFormat
instance at the current position of the specifiedByteBuffer
container. 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:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<CLImageFormat>
-
image_channel_order
public int image_channel_order()- Returns:
- the value of the
image_channel_order
field.
-
image_channel_data_type
public int image_channel_data_type()- Returns:
- the value of the
image_channel_data_type
field.
-
image_channel_order
Sets the specified value to theimage_channel_order
field. -
image_channel_data_type
Sets the specified value to theimage_channel_data_type
field. -
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 newCLImageFormat
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newCLImageFormat
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newCLImageFormat
instance allocated withBufferUtils
. -
create
Returns a newCLImageFormat
instance for the specified memory address. -
createSafe
-
malloc
Returns a newCLImageFormat.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newCLImageFormat.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newCLImageFormat.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aCLImageFormat.Buffer
instance 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 newCLImageFormat
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newCLImageFormat
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newCLImageFormat.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newCLImageFormat.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-