Package org.lwjgl.cuda
Class CUDA_ARRAY3D_DESCRIPTOR
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CUDA_ARRAY3D_DESCRIPTOR>
org.lwjgl.cuda.CUDA_ARRAY3D_DESCRIPTOR
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUDA_ARRAY3D_DESCRIPTOR
extends org.lwjgl.system.Struct<CUDA_ARRAY3D_DESCRIPTOR>
implements org.lwjgl.system.NativeResource
Layout
struct CUDA_ARRAY3D_DESCRIPTOR {
size_t Width;
size_t Height;
size_t Depth;
CUarray_format Format;
unsigned int NumChannels;
unsigned int Flags;
}-
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 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_ARRAY3D_DESCRIPTOR(ByteBuffer container) Creates aCUDA_ARRAY3D_DESCRIPTORinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic CUDA_ARRAY3D_DESCRIPTORcalloc()Returns a newCUDA_ARRAY3D_DESCRIPTORinstance allocated withmemCalloc.calloc(int capacity) Returns a newCUDA_ARRAY3D_DESCRIPTOR.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUDA_ARRAY3D_DESCRIPTOR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUDA_ARRAY3D_DESCRIPTORcalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUDA_ARRAY3D_DESCRIPTORinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUDA_ARRAY3D_DESCRIPTORDeprecated.callocStack(int capacity) Deprecated.callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static CUDA_ARRAY3D_DESCRIPTORcallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static CUDA_ARRAY3D_DESCRIPTORcreate()Returns a newCUDA_ARRAY3D_DESCRIPTORinstance allocated withBufferUtils.create(int capacity) Returns a newCUDA_ARRAY3D_DESCRIPTOR.Bufferinstance allocated withBufferUtils.static CUDA_ARRAY3D_DESCRIPTORcreate(long address) Returns a newCUDA_ARRAY3D_DESCRIPTORinstance for the specified memory address.create(long address, int capacity) Create aCUDA_ARRAY3D_DESCRIPTOR.Bufferinstance at the specified memory.static @Nullable CUDA_ARRAY3D_DESCRIPTORcreateSafe(long address) static @Nullable CUDA_ARRAY3D_DESCRIPTOR.BuffercreateSafe(long address, int capacity) longDepth()Depth(long value) Sets the specified value to theDepthfield.intFlags()Flags(int value) Sets the specified value to theFlagsfield.intFormat()Format(int value) Sets the specified value to theFormatfield.longHeight()Height(long value) Sets the specified value to theHeightfield.static CUDA_ARRAY3D_DESCRIPTORmalloc()Returns a newCUDA_ARRAY3D_DESCRIPTORinstance allocated withmemAlloc.malloc(int capacity) Returns a newCUDA_ARRAY3D_DESCRIPTOR.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUDA_ARRAY3D_DESCRIPTOR.Bufferinstance allocated on the specifiedMemoryStack.static CUDA_ARRAY3D_DESCRIPTORmalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUDA_ARRAY3D_DESCRIPTORinstance allocated on the specifiedMemoryStack.static CUDA_ARRAY3D_DESCRIPTORDeprecated.mallocStack(int capacity) Deprecated.mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static CUDA_ARRAY3D_DESCRIPTORmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static longnDepth(long struct) Unsafe version ofDepth().static voidnDepth(long struct, long value) Unsafe version ofDepth.static intnFlags(long struct) Unsafe version ofFlags().static voidnFlags(long struct, int value) Unsafe version ofFlags.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, long Depth, int Format, int NumChannels, int Flags) Initializes this struct with the specified values.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. -
DEPTH
public static final int DEPTHThe struct member offsets. -
FORMAT
public static final int FORMATThe struct member offsets. -
NUMCHANNELS
public static final int NUMCHANNELSThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets.
-
-
Constructor Details
-
CUDA_ARRAY3D_DESCRIPTOR
Creates aCUDA_ARRAY3D_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_ARRAY3D_DESCRIPTOR>
-
Width
public long Width()- Returns:
- the value of the
Widthfield.
-
Height
public long Height()- Returns:
- the value of the
Heightfield.
-
Depth
public long Depth()- Returns:
- the value of the
Depthfield.
-
Format
public int Format()- Returns:
- the value of the
Formatfield.
-
NumChannels
public int NumChannels()- Returns:
- the value of the
NumChannelsfield.
-
Flags
public int Flags()- Returns:
- the value of the
Flagsfield.
-
Width
Sets the specified value to theWidthfield. -
Height
Sets the specified value to theHeightfield. -
Depth
Sets the specified value to theDepthfield. -
Format
Sets the specified value to theFormatfield. -
NumChannels
Sets the specified value to theNumChannelsfield. -
Flags
Sets the specified value to theFlagsfield. -
set
public CUDA_ARRAY3D_DESCRIPTOR set(long Width, long Height, long Depth, int Format, int NumChannels, int Flags) 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_ARRAY3D_DESCRIPTORinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCUDA_ARRAY3D_DESCRIPTORinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCUDA_ARRAY3D_DESCRIPTORinstance allocated withBufferUtils. -
create
Returns a newCUDA_ARRAY3D_DESCRIPTORinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCUDA_ARRAY3D_DESCRIPTOR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCUDA_ARRAY3D_DESCRIPTOR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCUDA_ARRAY3D_DESCRIPTOR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCUDA_ARRAY3D_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_ARRAY3D_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_ARRAY3D_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_ARRAY3D_DESCRIPTORinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCUDA_ARRAY3D_DESCRIPTORinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CUDA_ARRAY3D_DESCRIPTOR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUDA_ARRAY3D_DESCRIPTOR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static CUDA_ARRAY3D_DESCRIPTOR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUDA_ARRAY3D_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(). -
nDepth
public static long nDepth(long struct) Unsafe version ofDepth(). -
nFormat
public static int nFormat(long struct) Unsafe version ofFormat(). -
nNumChannels
public static int nNumChannels(long struct) Unsafe version ofNumChannels(). -
nFlags
public static int nFlags(long struct) Unsafe version ofFlags(). -
nWidth
public static void nWidth(long struct, long value) Unsafe version ofWidth. -
nHeight
public static void nHeight(long struct, long value) Unsafe version ofHeight. -
nDepth
public static void nDepth(long struct, long value) Unsafe version ofDepth. -
nFormat
public static void nFormat(long struct, int value) Unsafe version ofFormat. -
nNumChannels
public static void nNumChannels(long struct, int value) Unsafe version ofNumChannels. -
nFlags
public static void nFlags(long struct, int value) Unsafe version ofFlags.
-