Package org.lwjgl.cuda
Class CUDA_RESOURCE_DESC.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<CUDA_RESOURCE_DESC.Buffer>
org.lwjgl.system.StructBuffer<CUDA_RESOURCE_DESC,CUDA_RESOURCE_DESC.Buffer>
org.lwjgl.cuda.CUDA_RESOURCE_DESC.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<CUDA_RESOURCE_DESC>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
CUDA_RESOURCE_DESC
public static class CUDA_RESOURCE_DESC.Buffer
extends org.lwjgl.system.StructBuffer<CUDA_RESOURCE_DESC,CUDA_RESOURCE_DESC.Buffer>
implements org.lwjgl.system.NativeResource
An array of
CUDA_RESOURCE_DESC 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 newCUDA_RESOURCE_DESC.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionintflags()flags(int value) Sets the specified value to theflagsfield.longres_array_hArray(long value) Sets the specified value to thehArrayfield.longres_linear_devPtr(long value) Sets the specified value to thedevPtrfield.intres_linear_format(int value) Sets the specified value to theformatfield.intres_linear_numChannels(int value) Sets the specified value to thenumChannelsfield.longres_linear_sizeInBytes(long value) Sets the specified value to thesizeInBytesfield.longres_mipmap_hMipmappedArray(long value) Sets the specified value to thehMipmappedArrayfield.longres_pitch2D_devPtr(long value) Sets the specified value to thedevPtrfield.intres_pitch2D_format(int value) Sets the specified value to theformatfield.longres_pitch2D_height(long value) Sets the specified value to theheightfield.intres_pitch2D_numChannels(int value) Sets the specified value to thenumChannelsfield.longres_pitch2D_pitchInBytes(long value) Sets the specified value to thepitchInBytesfield.longres_pitch2D_width(long value) Sets the specified value to thewidthfield.intres_reserved_reserved(int index) res_reserved_reserved(int index, int value) Sets the specified value at the specified index of thereservedfield.res_reserved_reserved(IntBuffer value) Copies the specifiedIntBufferto thereservedfield.intresType()resType(int value) Sets the specified value to theresTypefield.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 newCUDA_RESOURCE_DESC.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
CUDA_RESOURCE_DESC.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
-
resType
public int resType()- Returns:
- the value of the
resTypefield.
-
res_array_hArray
public long res_array_hArray()- Returns:
- the value of the
res.array.hArrayfield.
-
res_mipmap_hMipmappedArray
public long res_mipmap_hMipmappedArray()- Returns:
- the value of the
res.mipmap.hMipmappedArrayfield.
-
res_linear_devPtr
public long res_linear_devPtr()- Returns:
- the value of the
res.linear.devPtrfield.
-
res_linear_format
public int res_linear_format()- Returns:
- the value of the
res.linear.formatfield.
-
res_linear_numChannels
public int res_linear_numChannels()- Returns:
- the value of the
res.linear.numChannelsfield.
-
res_linear_sizeInBytes
public long res_linear_sizeInBytes()- Returns:
- the value of the
res.linear.sizeInBytesfield.
-
res_pitch2D_devPtr
public long res_pitch2D_devPtr()- Returns:
- the value of the
res.pitch2D.devPtrfield.
-
res_pitch2D_format
public int res_pitch2D_format()- Returns:
- the value of the
res.pitch2D.formatfield.
-
res_pitch2D_numChannels
public int res_pitch2D_numChannels()- Returns:
- the value of the
res.pitch2D.numChannelsfield.
-
res_pitch2D_width
public long res_pitch2D_width()- Returns:
- the value of the
res.pitch2D.widthfield.
-
res_pitch2D_height
public long res_pitch2D_height()- Returns:
- the value of the
res.pitch2D.heightfield.
-
res_pitch2D_pitchInBytes
public long res_pitch2D_pitchInBytes()- Returns:
- the value of the
res.pitch2D.pitchInBytesfield.
-
res_reserved_reserved
- Returns:
- a
IntBufferview of theres.reserved.reservedfield.
-
res_reserved_reserved
public int res_reserved_reserved(int index) - Returns:
- the value at the specified index of the
res.reserved.reservedfield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
resType
Sets the specified value to theresTypefield. -
res_array_hArray
Sets the specified value to thehArrayfield. -
res_mipmap_hMipmappedArray
Sets the specified value to thehMipmappedArrayfield. -
res_linear_devPtr
Sets the specified value to thedevPtrfield. -
res_linear_format
Sets the specified value to theformatfield. -
res_linear_numChannels
Sets the specified value to thenumChannelsfield. -
res_linear_sizeInBytes
Sets the specified value to thesizeInBytesfield. -
res_pitch2D_devPtr
Sets the specified value to thedevPtrfield. -
res_pitch2D_format
Sets the specified value to theformatfield. -
res_pitch2D_numChannels
Sets the specified value to thenumChannelsfield. -
res_pitch2D_width
Sets the specified value to thewidthfield. -
res_pitch2D_height
Sets the specified value to theheightfield. -
res_pitch2D_pitchInBytes
Sets the specified value to thepitchInBytesfield. -
res_reserved_reserved
Copies the specifiedIntBufferto thereservedfield. -
res_reserved_reserved
Sets the specified value at the specified index of thereservedfield. -
flags
Sets the specified value to theflagsfield.
-