Package org.lwjgl.opencl
Class CLImageDesc.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<CLImageDesc,CLImageDesc.Buffer>
-
- org.lwjgl.opencl.CLImageDesc.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.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 ofCLImageDesc
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
buffer()
Returns the value of thebuffer
field.CLImageDesc.Buffer
buffer(long value)
Sets the specified value to thebuffer
field.long
image_array_size()
Returns the value of theimage_array_size
field.CLImageDesc.Buffer
image_array_size(long value)
Sets the specified value to theimage_array_size
field.long
image_depth()
Returns the value of theimage_depth
field.CLImageDesc.Buffer
image_depth(long value)
Sets the specified value to theimage_depth
field.long
image_height()
Returns the value of theimage_height
field.CLImageDesc.Buffer
image_height(long value)
Sets the specified value to theimage_height
field.long
image_row_pitch()
Returns the value of theimage_row_pitch
field.CLImageDesc.Buffer
image_row_pitch(long value)
Sets the specified value to theimage_row_pitch
field.long
image_slice_pitch()
Returns the value of theimage_slice_pitch
field.CLImageDesc.Buffer
image_slice_pitch(long value)
Sets the specified value to theimage_slice_pitch
field.int
image_type()
Returns the value of theimage_type
field.CLImageDesc.Buffer
image_type(int value)
Sets the specified value to theimage_type
field.long
image_width()
Returns the value of theimage_width
field.CLImageDesc.Buffer
image_width(long value)
Sets the specified value to theimage_width
field.int
num_mip_levels()
Returns the value of thenum_mip_levels
field.CLImageDesc.Buffer
num_mip_levels(int value)
Sets the specified value to thenum_mip_levels
field.int
num_samples()
Returns the value of thenum_samples
field.CLImageDesc.Buffer
num_samples(int value)
Sets the specified value to thenum_samples
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newCLImageDesc.Buffer
instance 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 byCLImageDesc.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 Detail
-
image_type
public int image_type()
Returns the value of theimage_type
field.
-
image_width
public long image_width()
Returns the value of theimage_width
field.
-
image_height
public long image_height()
Returns the value of theimage_height
field.
-
image_depth
public long image_depth()
Returns the value of theimage_depth
field.
-
image_array_size
public long image_array_size()
Returns the value of theimage_array_size
field.
-
image_row_pitch
public long image_row_pitch()
Returns the value of theimage_row_pitch
field.
-
image_slice_pitch
public long image_slice_pitch()
Returns the value of theimage_slice_pitch
field.
-
num_mip_levels
public int num_mip_levels()
Returns the value of thenum_mip_levels
field.
-
num_samples
public int num_samples()
Returns the value of thenum_samples
field.
-
buffer
public long buffer()
Returns the value of thebuffer
field.
-
image_type
public CLImageDesc.Buffer image_type(int value)
Sets the specified value to theimage_type
field.
-
image_width
public CLImageDesc.Buffer image_width(long value)
Sets the specified value to theimage_width
field.
-
image_height
public CLImageDesc.Buffer image_height(long value)
Sets the specified value to theimage_height
field.
-
image_depth
public CLImageDesc.Buffer image_depth(long value)
Sets the specified value to theimage_depth
field.
-
image_array_size
public CLImageDesc.Buffer image_array_size(long value)
Sets the specified value to theimage_array_size
field.
-
image_row_pitch
public CLImageDesc.Buffer image_row_pitch(long value)
Sets the specified value to theimage_row_pitch
field.
-
image_slice_pitch
public CLImageDesc.Buffer image_slice_pitch(long value)
Sets the specified value to theimage_slice_pitch
field.
-
num_mip_levels
public CLImageDesc.Buffer num_mip_levels(int value)
Sets the specified value to thenum_mip_levels
field.
-
num_samples
public CLImageDesc.Buffer num_samples(int value)
Sets the specified value to thenum_samples
field.
-
buffer
public CLImageDesc.Buffer buffer(long value)
Sets the specified value to thebuffer
field.
-
-