Class CLImageDesc.Buffer
- All Implemented Interfaces:
AutoCloseable, Iterable<CLImageDesc>, NativeResource, Pointer
- Enclosing class:
CLImageDesc
public static class CLImageDesc.Buffer
extends StructBuffer<CLImageDesc, CLImageDesc.Buffer>
implements NativeResource
An array of
CLImageDesc structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface Pointer
Pointer.Default -
Field Summary
Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newCLImageDesc.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionlongbuffer()buffer(long value) Sets the specified value to thebufferfield.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.longmem_object(long value) Sets the specified value to themem_objectfield.intnum_mip_levels(int value) Sets the specified value to thenum_mip_levelsfield.intnum_samples(int value) Sets the specified value to thenum_samplesfield.Methods inherited from class StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class Pointer.Default
equals, hashCodeMethods inherited from interface NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newCLImageDesc.Bufferinstance backed by the specified container.Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by
CLImageDesc.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Details
-
image_type
- Returns:
- the value of the
image_typefield.
-
image_width
- Returns:
- the value of the
image_widthfield.
-
image_height
- Returns:
- the value of the
image_heightfield.
-
image_depth
- Returns:
- the value of the
image_depthfield.
-
image_array_size
- Returns:
- the value of the
image_array_sizefield.
-
image_row_pitch
- Returns:
- the value of the
image_row_pitchfield.
-
image_slice_pitch
- Returns:
- the value of the
image_slice_pitchfield.
-
num_mip_levels
- Returns:
- the value of the
num_mip_levelsfield.
-
num_samples
- Returns:
- the value of the
num_samplesfield.
-
buffer
- Returns:
- the value of the
bufferfield.
-
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.
-