public class CLImageFormat
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
image_channel_order – specifies the number of channels and the channel layout i.e. the memory layout in which channels are stored in the imageimage_channel_data_type –
describes the size of the channel data type. The number of bits per element determined by the image_channel_data_type and
image_channel_order must be a power of two.
struct cl_image_format {
cl_channel_order image_channel_order;
cl_channel_type image_channel_data_type;
}| Modifier and Type | Class and Description |
|---|---|
static class |
CLImageFormat.Buffer
An array of
CLImageFormat structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
IMAGE_CHANNEL_DATA_TYPE
The struct member offsets.
|
static int |
IMAGE_CHANNEL_ORDER
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
CLImageFormat(java.nio.ByteBuffer container)
Creates a
CLImageFormat instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static CLImageFormat |
calloc()
Returns a new
CLImageFormat instance allocated with memCalloc. |
static CLImageFormat.Buffer |
calloc(int capacity)
Returns a new
CLImageFormat.Buffer instance allocated with memCalloc. |
static CLImageFormat |
callocStack()
Returns a new
CLImageFormat instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CLImageFormat.Buffer |
callocStack(int capacity)
Returns a new
CLImageFormat.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CLImageFormat.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CLImageFormat.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CLImageFormat |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CLImageFormat instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CLImageFormat |
create()
Returns a new
CLImageFormat instance allocated with BufferUtils. |
static CLImageFormat.Buffer |
create(int capacity)
Returns a new
CLImageFormat.Buffer instance allocated with BufferUtils. |
static CLImageFormat |
create(long address)
Returns a new
CLImageFormat instance for the specified memory address. |
static CLImageFormat.Buffer |
create(long address,
int capacity)
Create a
CLImageFormat.Buffer instance at the specified memory. |
static CLImageFormat |
createSafe(long address)
|
static CLImageFormat.Buffer |
createSafe(long address,
int capacity)
|
int |
image_channel_data_type()
Returns the value of the
image_channel_data_type field. |
CLImageFormat |
image_channel_data_type(int value)
Sets the specified value to the
image_channel_data_type field. |
int |
image_channel_order()
Returns the value of the
image_channel_order field. |
CLImageFormat |
image_channel_order(int value)
Sets the specified value to the
image_channel_order field. |
static CLImageFormat |
malloc()
Returns a new
CLImageFormat instance allocated with memAlloc. |
static CLImageFormat.Buffer |
malloc(int capacity)
Returns a new
CLImageFormat.Buffer instance allocated with memAlloc. |
static CLImageFormat |
mallocStack()
Returns a new
CLImageFormat instance allocated on the thread-local MemoryStack. |
static CLImageFormat.Buffer |
mallocStack(int capacity)
Returns a new
CLImageFormat.Buffer instance allocated on the thread-local MemoryStack. |
static CLImageFormat.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CLImageFormat.Buffer instance allocated on the specified MemoryStack. |
static CLImageFormat |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CLImageFormat instance allocated on the specified MemoryStack. |
static int |
nimage_channel_data_type(long struct)
Unsafe version of
image_channel_data_type(). |
static void |
nimage_channel_data_type(long struct,
int value)
Unsafe version of
image_channel_data_type. |
static int |
nimage_channel_order(long struct)
Unsafe version of
image_channel_order(). |
static void |
nimage_channel_order(long struct,
int value)
Unsafe version of
image_channel_order. |
CLImageFormat |
set(CLImageFormat src)
Copies the specified struct data to this struct.
|
CLImageFormat |
set(int image_channel_order,
int image_channel_data_type)
Initializes this struct with the specified values.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int IMAGE_CHANNEL_ORDER
public static final int IMAGE_CHANNEL_DATA_TYPE
public CLImageFormat(java.nio.ByteBuffer container)
CLImageFormat instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int image_channel_order()
image_channel_order field.public int image_channel_data_type()
image_channel_data_type field.public CLImageFormat image_channel_order(int value)
image_channel_order field.public CLImageFormat image_channel_data_type(int value)
image_channel_data_type field.public CLImageFormat set(int image_channel_order, int image_channel_data_type)
public CLImageFormat set(CLImageFormat src)
src - the source structpublic static CLImageFormat malloc()
CLImageFormat instance allocated with memAlloc. The instance must be explicitly freed.public static CLImageFormat calloc()
CLImageFormat instance allocated with memCalloc. The instance must be explicitly freed.public static CLImageFormat create()
CLImageFormat instance allocated with BufferUtils.public static CLImageFormat create(long address)
CLImageFormat instance for the specified memory address.@Nullable public static CLImageFormat createSafe(long address)
public static CLImageFormat.Buffer malloc(int capacity)
CLImageFormat.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CLImageFormat.Buffer calloc(int capacity)
CLImageFormat.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CLImageFormat.Buffer create(int capacity)
CLImageFormat.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static CLImageFormat.Buffer create(long address, int capacity)
CLImageFormat.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CLImageFormat.Buffer createSafe(long address, int capacity)
public static CLImageFormat mallocStack()
CLImageFormat instance allocated on the thread-local MemoryStack.public static CLImageFormat callocStack()
CLImageFormat instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static CLImageFormat mallocStack(org.lwjgl.system.MemoryStack stack)
CLImageFormat instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static CLImageFormat callocStack(org.lwjgl.system.MemoryStack stack)
CLImageFormat instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static CLImageFormat.Buffer mallocStack(int capacity)
CLImageFormat.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static CLImageFormat.Buffer callocStack(int capacity)
CLImageFormat.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static CLImageFormat.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CLImageFormat.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CLImageFormat.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CLImageFormat.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nimage_channel_order(long struct)
image_channel_order().public static int nimage_channel_data_type(long struct)
image_channel_data_type().public static void nimage_channel_order(long struct,
int value)
image_channel_order.public static void nimage_channel_data_type(long struct,
int value)
image_channel_data_type.Copyright LWJGL. All Rights Reserved. License terms.