Package org.lwjgl.opencl
Class CLImageDesc
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct cl_image_desc {
cl_mem_object_type image_type;
size_t image_width;
size_t image_height;
size_t image_depth;
size_t image_array_size;
size_t image_row_pitch;
size_t image_slice_pitch;
cl_uint num_mip_levels;
cl_uint num_samples;
union {
cl_mem buffer;
cl_mem mem_object;
};
}-
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 member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.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
ConstructorsConstructorDescriptionCLImageDesc(ByteBuffer container) Creates aCLImageDescinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlongbuffer()buffer(long value) Sets the specified value to thebufferfield.static CLImageDesccalloc()Returns a newCLImageDescinstance allocated withmemCalloc.static CLImageDesc.Buffercalloc(int capacity) Returns a newCLImageDesc.Bufferinstance allocated withmemCalloc.static CLImageDesc.Buffercalloc(int capacity, MemoryStack stack) Returns a newCLImageDesc.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CLImageDesccalloc(MemoryStack stack) Returns a newCLImageDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CLImageDesccreate()Returns a newCLImageDescinstance allocated withBufferUtils.static CLImageDesc.Buffercreate(int capacity) Returns a newCLImageDesc.Bufferinstance allocated withBufferUtils.static CLImageDesccreate(long address) Returns a newCLImageDescinstance for the specified memory address.static CLImageDesc.Buffercreate(long address, int capacity) Create aCLImageDesc.Bufferinstance at the specified memory.static @Nullable CLImageDesccreateSafe(long address) static @Nullable CLImageDesc.BuffercreateSafe(long address, int capacity) longimage_array_size(long value) Sets the specified value to theimage_array_sizefield.longimage_depth(long value) Sets the specified value to theimage_depthfield.longimage_height(long value) Sets the specified value to theimage_heightfield.longimage_row_pitch(long value) Sets the specified value to theimage_row_pitchfield.longimage_slice_pitch(long value) Sets the specified value to theimage_slice_pitchfield.intimage_type(int value) Sets the specified value to theimage_typefield.longimage_width(long value) Sets the specified value to theimage_widthfield.static CLImageDescmalloc()Returns a newCLImageDescinstance allocated withmemAlloc.static CLImageDesc.Buffermalloc(int capacity) Returns a newCLImageDesc.Bufferinstance allocated withmemAlloc.static CLImageDesc.Buffermalloc(int capacity, MemoryStack stack) Returns a newCLImageDesc.Bufferinstance allocated on the specifiedMemoryStack.static CLImageDescmalloc(MemoryStack stack) Returns a newCLImageDescinstance allocated on the specifiedMemoryStack.longmem_object(long value) Sets the specified value to themem_objectfield.static longnbuffer(long struct) Unsafe version ofbuffer().static voidnbuffer(long struct, long value) Unsafe version ofbuffer.static longnimage_array_size(long struct) Unsafe version ofimage_array_size().static voidnimage_array_size(long struct, long value) Unsafe version ofimage_array_size.static longnimage_depth(long struct) Unsafe version ofimage_depth().static voidnimage_depth(long struct, long value) Unsafe version ofimage_depth.static longnimage_height(long struct) Unsafe version ofimage_height().static voidnimage_height(long struct, long value) Unsafe version ofimage_height.static longnimage_row_pitch(long struct) Unsafe version ofimage_row_pitch().static voidnimage_row_pitch(long struct, long value) Unsafe version ofimage_row_pitch.static longnimage_slice_pitch(long struct) Unsafe version ofimage_slice_pitch().static voidnimage_slice_pitch(long struct, long value) Unsafe version ofimage_slice_pitch.static intnimage_type(long struct) Unsafe version ofimage_type().static voidnimage_type(long struct, int value) Unsafe version ofimage_type.static longnimage_width(long struct) Unsafe version ofimage_width().static voidnimage_width(long struct, long value) Unsafe version ofimage_width.static longnmem_object(long struct) Unsafe version ofmem_object().static voidnmem_object(long struct, long value) Unsafe version ofmem_object.static intnnum_mip_levels(long struct) Unsafe version ofnum_mip_levels().static voidnnum_mip_levels(long struct, int value) Unsafe version ofnum_mip_levels.static intnnum_samples(long struct) Unsafe version ofnum_samples().static voidnnum_samples(long struct, int value) Unsafe version ofnum_samples.intnum_mip_levels(int value) Sets the specified value to thenum_mip_levelsfield.intnum_samples(int value) Sets the specified value to thenum_samplesfield.set(CLImageDesc 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_TYPE
public static final int IMAGE_TYPEThe struct member offsets. -
IMAGE_WIDTH
public static final int IMAGE_WIDTHThe struct member offsets. -
IMAGE_HEIGHT
public static final int IMAGE_HEIGHTThe struct member offsets. -
IMAGE_DEPTH
public static final int IMAGE_DEPTHThe struct member offsets. -
IMAGE_ARRAY_SIZE
public static final int IMAGE_ARRAY_SIZEThe struct member offsets. -
IMAGE_ROW_PITCH
public static final int IMAGE_ROW_PITCHThe struct member offsets. -
IMAGE_SLICE_PITCH
public static final int IMAGE_SLICE_PITCHThe struct member offsets. -
NUM_MIP_LEVELS
public static final int NUM_MIP_LEVELSThe struct member offsets. -
NUM_SAMPLES
public static final int NUM_SAMPLESThe struct member offsets. -
BUFFER
public static final int BUFFERThe struct member offsets. -
MEM_OBJECT
public static final int MEM_OBJECTThe struct member offsets.
-
-
Constructor Details
-
CLImageDesc
Creates aCLImageDescinstance 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<CLImageDesc>
-
image_type
public int image_type()- Returns:
- the value of the
image_typefield.
-
image_width
public long image_width()- Returns:
- the value of the
image_widthfield.
-
image_height
public long image_height()- Returns:
- the value of the
image_heightfield.
-
image_depth
public long image_depth()- Returns:
- the value of the
image_depthfield.
-
image_array_size
public long image_array_size()- Returns:
- the value of the
image_array_sizefield.
-
image_row_pitch
public long image_row_pitch()- Returns:
- the value of the
image_row_pitchfield.
-
image_slice_pitch
public long image_slice_pitch()- Returns:
- the value of the
image_slice_pitchfield.
-
num_mip_levels
public int num_mip_levels()- Returns:
- the value of the
num_mip_levelsfield.
-
num_samples
public int num_samples()- Returns:
- the value of the
num_samplesfield.
-
buffer
public long buffer()- Returns:
- the value of the
bufferfield.
-
mem_object
public long mem_object()- Returns:
- the value of the
mem_objectfield.
-
image_type
Sets the specified value to theimage_typefield. -
image_width
Sets the specified value to theimage_widthfield. -
image_height
Sets the specified value to theimage_heightfield. -
image_depth
Sets the specified value to theimage_depthfield. -
image_array_size
Sets the specified value to theimage_array_sizefield. -
image_row_pitch
Sets the specified value to theimage_row_pitchfield. -
image_slice_pitch
Sets the specified value to theimage_slice_pitchfield. -
num_mip_levels
Sets the specified value to thenum_mip_levelsfield. -
num_samples
Sets the specified value to thenum_samplesfield. -
buffer
Sets the specified value to thebufferfield. -
mem_object
Sets the specified value to themem_objectfield. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newCLImageDescinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCLImageDescinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCLImageDescinstance allocated withBufferUtils. -
create
Returns a newCLImageDescinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCLImageDesc.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCLImageDesc.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCLImageDesc.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCLImageDesc.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newCLImageDescinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCLImageDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newCLImageDesc.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newCLImageDesc.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nimage_type
public static int nimage_type(long struct) Unsafe version ofimage_type(). -
nimage_width
public static long nimage_width(long struct) Unsafe version ofimage_width(). -
nimage_height
public static long nimage_height(long struct) Unsafe version ofimage_height(). -
nimage_depth
public static long nimage_depth(long struct) Unsafe version ofimage_depth(). -
nimage_array_size
public static long nimage_array_size(long struct) Unsafe version ofimage_array_size(). -
nimage_row_pitch
public static long nimage_row_pitch(long struct) Unsafe version ofimage_row_pitch(). -
nimage_slice_pitch
public static long nimage_slice_pitch(long struct) Unsafe version ofimage_slice_pitch(). -
nnum_mip_levels
public static int nnum_mip_levels(long struct) Unsafe version ofnum_mip_levels(). -
nnum_samples
public static int nnum_samples(long struct) Unsafe version ofnum_samples(). -
nbuffer
public static long nbuffer(long struct) Unsafe version ofbuffer(). -
nmem_object
public static long nmem_object(long struct) Unsafe version ofmem_object(). -
nimage_type
public static void nimage_type(long struct, int value) Unsafe version ofimage_type. -
nimage_width
public static void nimage_width(long struct, long value) Unsafe version ofimage_width. -
nimage_height
public static void nimage_height(long struct, long value) Unsafe version ofimage_height. -
nimage_depth
public static void nimage_depth(long struct, long value) Unsafe version ofimage_depth. -
nimage_array_size
public static void nimage_array_size(long struct, long value) Unsafe version ofimage_array_size. -
nimage_row_pitch
public static void nimage_row_pitch(long struct, long value) Unsafe version ofimage_row_pitch. -
nimage_slice_pitch
public static void nimage_slice_pitch(long struct, long value) Unsafe version ofimage_slice_pitch. -
nnum_mip_levels
public static void nnum_mip_levels(long struct, int value) Unsafe version ofnum_mip_levels. -
nnum_samples
public static void nnum_samples(long struct, int value) Unsafe version ofnum_samples. -
nbuffer
public static void nbuffer(long struct, long value) Unsafe version ofbuffer. -
nmem_object
public static void nmem_object(long struct, long value) Unsafe version ofmem_object.
-