Package org.lwjgl.opencl
Class CLImageDesc.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<CLImageDesc.Buffer>
org.lwjgl.system.StructBuffer<CLImageDesc,CLImageDesc.Buffer>
org.lwjgl.opencl.CLImageDesc.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<CLImageDesc>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
CLImageDesc
public static class CLImageDesc.Buffer
extends org.lwjgl.system.StructBuffer<CLImageDesc,CLImageDesc.Buffer>
implements org.lwjgl.system.NativeResource
An array of
CLImageDesc structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
Fields inherited from interface org.lwjgl.system.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 theCLImageDesc.buffer()field.longimage_array_size(long value) Sets the specified value to theCLImageDesc.image_array_size()field.longimage_depth(long value) Sets the specified value to theCLImageDesc.image_depth()field.longimage_height(long value) Sets the specified value to theCLImageDesc.image_height()field.longimage_row_pitch(long value) Sets the specified value to theCLImageDesc.image_row_pitch()field.longimage_slice_pitch(long value) Sets the specified value to theCLImageDesc.image_slice_pitch()field.intimage_type(int value) Sets the specified value to theCLImageDesc.image_type()field.longimage_width(long value) Sets the specified value to theCLImageDesc.image_width()field.longmem_object(long value) Sets the specified value to theCLImageDesc.mem_object()field.intnum_mip_levels(int value) Sets the specified value to theCLImageDesc.num_mip_levels()field.intnum_samples(int value) Sets the specified value to theCLImageDesc.num_samples()field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class org.lwjgl.system.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 org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.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
public int image_type()- Returns:
- the value of the
CLImageDesc.image_type()field.
-
image_width
public long image_width()- Returns:
- the value of the
CLImageDesc.image_width()field.
-
image_height
public long image_height()- Returns:
- the value of the
CLImageDesc.image_height()field.
-
image_depth
public long image_depth()- Returns:
- the value of the
CLImageDesc.image_depth()field.
-
image_array_size
public long image_array_size()- Returns:
- the value of the
CLImageDesc.image_array_size()field.
-
image_row_pitch
public long image_row_pitch()- Returns:
- the value of the
CLImageDesc.image_row_pitch()field.
-
image_slice_pitch
public long image_slice_pitch()- Returns:
- the value of the
CLImageDesc.image_slice_pitch()field.
-
num_mip_levels
public int num_mip_levels()- Returns:
- the value of the
CLImageDesc.num_mip_levels()field.
-
num_samples
public int num_samples()- Returns:
- the value of the
CLImageDesc.num_samples()field.
-
buffer
public long buffer()- Returns:
- the value of the
CLImageDesc.buffer()field.
-
mem_object
public long mem_object()- Returns:
- the value of the
CLImageDesc.mem_object()field.
-
image_type
Sets the specified value to theCLImageDesc.image_type()field. -
image_width
Sets the specified value to theCLImageDesc.image_width()field. -
image_height
Sets the specified value to theCLImageDesc.image_height()field. -
image_depth
Sets the specified value to theCLImageDesc.image_depth()field. -
image_array_size
Sets the specified value to theCLImageDesc.image_array_size()field. -
image_row_pitch
Sets the specified value to theCLImageDesc.image_row_pitch()field. -
image_slice_pitch
Sets the specified value to theCLImageDesc.image_slice_pitch()field. -
num_mip_levels
Sets the specified value to theCLImageDesc.num_mip_levels()field. -
num_samples
Sets the specified value to theCLImageDesc.num_samples()field. -
buffer
Sets the specified value to theCLImageDesc.buffer()field. -
mem_object
Sets the specified value to theCLImageDesc.mem_object()field.
-