Package org.lwjgl.cuda
Class CUDA_ARRAY_DESCRIPTOR
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CUDA_ARRAY_DESCRIPTOR>
org.lwjgl.cuda.CUDA_ARRAY_DESCRIPTOR
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUDA_ARRAY_DESCRIPTOR
extends org.lwjgl.system.Struct<CUDA_ARRAY_DESCRIPTOR>
implements org.lwjgl.system.NativeResource
Layout
struct CUDA_ARRAY_DESCRIPTOR {
size_t Width;
size_t Height;
CUarray_format Format;
unsigned int NumChannels;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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 size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCUDA_ARRAY_DESCRIPTOR(ByteBuffer container) Creates aCUDA_ARRAY_DESCRIPTORinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic CUDA_ARRAY_DESCRIPTORcalloc()Returns a newCUDA_ARRAY_DESCRIPTORinstance allocated withmemCalloc.static CUDA_ARRAY_DESCRIPTOR.Buffercalloc(int capacity) Returns a newCUDA_ARRAY_DESCRIPTOR.Bufferinstance allocated withmemCalloc.static CUDA_ARRAY_DESCRIPTOR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUDA_ARRAY_DESCRIPTOR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUDA_ARRAY_DESCRIPTORcalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUDA_ARRAY_DESCRIPTORinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUDA_ARRAY_DESCRIPTORDeprecated.static CUDA_ARRAY_DESCRIPTOR.BuffercallocStack(int capacity) Deprecated.static CUDA_ARRAY_DESCRIPTOR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static CUDA_ARRAY_DESCRIPTORcallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static CUDA_ARRAY_DESCRIPTORcreate()Returns a newCUDA_ARRAY_DESCRIPTORinstance allocated withBufferUtils.static CUDA_ARRAY_DESCRIPTOR.Buffercreate(int capacity) Returns a newCUDA_ARRAY_DESCRIPTOR.Bufferinstance allocated withBufferUtils.static CUDA_ARRAY_DESCRIPTORcreate(long address) Returns a newCUDA_ARRAY_DESCRIPTORinstance for the specified memory address.static CUDA_ARRAY_DESCRIPTOR.Buffercreate(long address, int capacity) Create aCUDA_ARRAY_DESCRIPTOR.Bufferinstance at the specified memory.static @Nullable CUDA_ARRAY_DESCRIPTORcreateSafe(long address) static @Nullable CUDA_ARRAY_DESCRIPTOR.BuffercreateSafe(long address, int capacity) intFormat()Format(int value) Sets the specified value to theFormatfield.longHeight()Height(long value) Sets the specified value to theHeightfield.static CUDA_ARRAY_DESCRIPTORmalloc()Returns a newCUDA_ARRAY_DESCRIPTORinstance allocated withmemAlloc.static CUDA_ARRAY_DESCRIPTOR.Buffermalloc(int capacity) Returns a newCUDA_ARRAY_DESCRIPTOR.Bufferinstance allocated withmemAlloc.static CUDA_ARRAY_DESCRIPTOR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUDA_ARRAY_DESCRIPTOR.Bufferinstance allocated on the specifiedMemoryStack.static CUDA_ARRAY_DESCRIPTORmalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUDA_ARRAY_DESCRIPTORinstance allocated on the specifiedMemoryStack.static CUDA_ARRAY_DESCRIPTORDeprecated.static CUDA_ARRAY_DESCRIPTOR.BuffermallocStack(int capacity) Deprecated.static CUDA_ARRAY_DESCRIPTOR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static CUDA_ARRAY_DESCRIPTORmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static intnFormat(long struct) Unsafe version ofFormat().static voidnFormat(long struct, int value) Unsafe version ofFormat.static longnHeight(long struct) Unsafe version ofHeight().static voidnHeight(long struct, long value) Unsafe version ofHeight.static intnNumChannels(long struct) Unsafe version ofNumChannels().static voidnNumChannels(long struct, int value) Unsafe version ofNumChannels.intNumChannels(int value) Sets the specified value to theNumChannelsfield.static longnWidth(long struct) Unsafe version ofWidth().static voidnWidth(long struct, long value) Unsafe version ofWidth.set(long Width, long Height, int Format, int NumChannels) Initializes this struct with the specified values.set(CUDA_ARRAY_DESCRIPTOR src) Copies the specified struct data to this struct.intsizeof()longWidth()Width(long value) Sets the specified value to theWidthfield.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods 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. -
WIDTH
public static final int WIDTHThe struct member offsets. -
HEIGHT
public static final int HEIGHTThe struct member offsets. -
FORMAT
public static final int FORMATThe struct member offsets. -
NUMCHANNELS
public static final int NUMCHANNELSThe struct member offsets.
-
-
Constructor Details
-
CUDA_ARRAY_DESCRIPTOR
Creates aCUDA_ARRAY_DESCRIPTORinstance 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<CUDA_ARRAY_DESCRIPTOR>
-
Width
public long Width()- Returns:
- the value of the
Widthfield.
-
Height
public long Height()- Returns:
- the value of the
Heightfield.
-
Format
public int Format()- Returns:
- the value of the
Formatfield.
-
NumChannels
public int NumChannels()- Returns:
- the value of the
NumChannelsfield.
-
Width
Sets the specified value to theWidthfield. -
Height
Sets the specified value to theHeightfield. -
Format
Sets the specified value to theFormatfield. -
NumChannels
Sets the specified value to theNumChannelsfield. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newCUDA_ARRAY_DESCRIPTORinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCUDA_ARRAY_DESCRIPTORinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCUDA_ARRAY_DESCRIPTORinstance allocated withBufferUtils. -
create
Returns a newCUDA_ARRAY_DESCRIPTORinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCUDA_ARRAY_DESCRIPTOR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCUDA_ARRAY_DESCRIPTOR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCUDA_ARRAY_DESCRIPTOR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCUDA_ARRAY_DESCRIPTOR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
@Deprecated public static CUDA_ARRAY_DESCRIPTOR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static CUDA_ARRAY_DESCRIPTOR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newCUDA_ARRAY_DESCRIPTORinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCUDA_ARRAY_DESCRIPTORinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newCUDA_ARRAY_DESCRIPTOR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newCUDA_ARRAY_DESCRIPTOR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nWidth
public static long nWidth(long struct) Unsafe version ofWidth(). -
nHeight
public static long nHeight(long struct) Unsafe version ofHeight(). -
nFormat
public static int nFormat(long struct) Unsafe version ofFormat(). -
nNumChannels
public static int nNumChannels(long struct) Unsafe version ofNumChannels(). -
nWidth
public static void nWidth(long struct, long value) Unsafe version ofWidth. -
nHeight
public static void nHeight(long struct, long value) Unsafe version ofHeight. -
nFormat
public static void nFormat(long struct, int value) Unsafe version ofFormat. -
nNumChannels
public static void nNumChannels(long struct, int value) Unsafe version ofNumChannels.
-