Package org.lwjgl.cuda
Class CUDA_ARRAY3D_DESCRIPTOR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.cuda.CUDA_ARRAY3D_DESCRIPTOR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUDA_ARRAY3D_DESCRIPTOR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCUDA_ARRAY3D_DESCRIPTOR.BufferAn array ofCUDA_ARRAY3D_DESCRIPTORstructs.
-
Constructor Summary
Constructors Constructor Description CUDA_ARRAY3D_DESCRIPTOR(java.nio.ByteBuffer container)Creates aCUDA_ARRAY3D_DESCRIPTORinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CUDA_ARRAY3D_DESCRIPTORcalloc()Returns a newCUDA_ARRAY3D_DESCRIPTORinstance allocated withmemCalloc.static CUDA_ARRAY3D_DESCRIPTOR.Buffercalloc(int capacity)Returns a newCUDA_ARRAY3D_DESCRIPTOR.Bufferinstance allocated withmemCalloc.static CUDA_ARRAY3D_DESCRIPTOR.Buffercalloc(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_DESCRIPTORcallocStack()Deprecated.static CUDA_ARRAY3D_DESCRIPTOR.BuffercallocStack(int capacity)Deprecated.static CUDA_ARRAY3D_DESCRIPTOR.BuffercallocStack(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.static CUDA_ARRAY3D_DESCRIPTOR.Buffercreate(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.static CUDA_ARRAY3D_DESCRIPTOR.Buffercreate(long address, int capacity)Create aCUDA_ARRAY3D_DESCRIPTOR.Bufferinstance at the specified memory.static CUDA_ARRAY3D_DESCRIPTORcreateSafe(long address)static CUDA_ARRAY3D_DESCRIPTOR.BuffercreateSafe(long address, int capacity)longDepth()Depth of 3D arrayCUDA_ARRAY3D_DESCRIPTORDepth(long value)Sets the specified value to theDepth()field.intFlags()FlagsCUDA_ARRAY3D_DESCRIPTORFlags(int value)Sets the specified value to theFlags()field.intFormat()Array formatCUDA_ARRAY3D_DESCRIPTORFormat(int value)Sets the specified value to theFormat()field.longHeight()Height of 3D arrayCUDA_ARRAY3D_DESCRIPTORHeight(long value)Sets the specified value to theHeight()field.static CUDA_ARRAY3D_DESCRIPTORmalloc()Returns a newCUDA_ARRAY3D_DESCRIPTORinstance allocated withmemAlloc.static CUDA_ARRAY3D_DESCRIPTOR.Buffermalloc(int capacity)Returns a newCUDA_ARRAY3D_DESCRIPTOR.Bufferinstance allocated withmemAlloc.static CUDA_ARRAY3D_DESCRIPTOR.Buffermalloc(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_DESCRIPTORmallocStack()Deprecated.static CUDA_ARRAY3D_DESCRIPTOR.BuffermallocStack(int capacity)Deprecated.static CUDA_ARRAY3D_DESCRIPTOR.BuffermallocStack(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()Channels per array elementCUDA_ARRAY3D_DESCRIPTORNumChannels(int value)Sets the specified value to theNumChannels()field.static longnWidth(long struct)Unsafe version ofWidth().static voidnWidth(long struct, long value)Unsafe version ofWidth.CUDA_ARRAY3D_DESCRIPTORset(long Width, long Height, long Depth, int Format, int NumChannels, int Flags)Initializes this struct with the specified values.CUDA_ARRAY3D_DESCRIPTORset(CUDA_ARRAY3D_DESCRIPTOR src)Copies the specified struct data to this struct.intsizeof()longWidth()Width of 3D arrayCUDA_ARRAY3D_DESCRIPTORWidth(long value)Sets the specified value to theWidth()field.
-
-
-
Constructor Detail
-
CUDA_ARRAY3D_DESCRIPTOR
public CUDA_ARRAY3D_DESCRIPTOR(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
Width
public long Width()
Width of 3D array
-
Height
public long Height()
Height of 3D array
-
Depth
public long Depth()
Depth of 3D array
-
Format
public int Format()
Array format
-
NumChannels
public int NumChannels()
Channels per array element
-
Flags
public int Flags()
Flags
-
Width
public CUDA_ARRAY3D_DESCRIPTOR Width(long value)
Sets the specified value to theWidth()field.
-
Height
public CUDA_ARRAY3D_DESCRIPTOR Height(long value)
Sets the specified value to theHeight()field.
-
Depth
public CUDA_ARRAY3D_DESCRIPTOR Depth(long value)
Sets the specified value to theDepth()field.
-
Format
public CUDA_ARRAY3D_DESCRIPTOR Format(int value)
Sets the specified value to theFormat()field.
-
NumChannels
public CUDA_ARRAY3D_DESCRIPTOR NumChannels(int value)
Sets the specified value to theNumChannels()field.
-
Flags
public CUDA_ARRAY3D_DESCRIPTOR Flags(int value)
Sets the specified value to theFlags()field.
-
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
public CUDA_ARRAY3D_DESCRIPTOR set(CUDA_ARRAY3D_DESCRIPTOR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static CUDA_ARRAY3D_DESCRIPTOR malloc()
Returns a newCUDA_ARRAY3D_DESCRIPTORinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CUDA_ARRAY3D_DESCRIPTOR calloc()
Returns a newCUDA_ARRAY3D_DESCRIPTORinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CUDA_ARRAY3D_DESCRIPTOR create()
Returns a newCUDA_ARRAY3D_DESCRIPTORinstance allocated withBufferUtils.
-
create
public static CUDA_ARRAY3D_DESCRIPTOR create(long address)
Returns a newCUDA_ARRAY3D_DESCRIPTORinstance for the specified memory address.
-
createSafe
@Nullable public static CUDA_ARRAY3D_DESCRIPTOR createSafe(long address)
-
malloc
public static CUDA_ARRAY3D_DESCRIPTOR.Buffer malloc(int capacity)
Returns a newCUDA_ARRAY3D_DESCRIPTOR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CUDA_ARRAY3D_DESCRIPTOR.Buffer calloc(int capacity)
Returns a newCUDA_ARRAY3D_DESCRIPTOR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CUDA_ARRAY3D_DESCRIPTOR.Buffer create(int capacity)
Returns a newCUDA_ARRAY3D_DESCRIPTOR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CUDA_ARRAY3D_DESCRIPTOR.Buffer create(long address, int capacity)
Create aCUDA_ARRAY3D_DESCRIPTOR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CUDA_ARRAY3D_DESCRIPTOR.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static CUDA_ARRAY3D_DESCRIPTOR mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CUDA_ARRAY3D_DESCRIPTOR callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CUDA_ARRAY3D_DESCRIPTOR mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CUDA_ARRAY3D_DESCRIPTOR callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CUDA_ARRAY3D_DESCRIPTOR.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CUDA_ARRAY3D_DESCRIPTOR.Buffer callocStack(int capacity)
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
public static CUDA_ARRAY3D_DESCRIPTOR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCUDA_ARRAY3D_DESCRIPTORinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CUDA_ARRAY3D_DESCRIPTOR calloc(org.lwjgl.system.MemoryStack stack)
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:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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.
-
-