public class CUDA_ARRAY3D_DESCRIPTOR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
Width – Width of 3D arrayHeight – Height of 3D arrayDepth – Depth of 3D arrayFormat – Array formatNumChannels – Channels per array elementFlags – Flags
struct CUDA_ARRAY3D_DESCRIPTOR {
size_t Width;
size_t Height;
size_t Depth;
CUarray_format Format;
unsigned int NumChannels;
unsigned int Flags;
}| Modifier and Type | Class and Description |
|---|---|
static class |
CUDA_ARRAY3D_DESCRIPTOR.Buffer
An array of
CUDA_ARRAY3D_DESCRIPTOR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DEPTH
The struct member offsets.
|
static int |
FLAGS
The struct member offsets.
|
static int |
FORMAT
The struct member offsets.
|
static int |
HEIGHT
The struct member offsets.
|
static int |
NUMCHANNELS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
WIDTH
The struct member offsets.
|
| Constructor and Description |
|---|
CUDA_ARRAY3D_DESCRIPTOR(java.nio.ByteBuffer container)
Creates a
CUDA_ARRAY3D_DESCRIPTOR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static CUDA_ARRAY3D_DESCRIPTOR |
calloc()
Returns a new
CUDA_ARRAY3D_DESCRIPTOR instance allocated with memCalloc. |
static CUDA_ARRAY3D_DESCRIPTOR.Buffer |
calloc(int capacity)
Returns a new
CUDA_ARRAY3D_DESCRIPTOR.Buffer instance allocated with memCalloc. |
static CUDA_ARRAY3D_DESCRIPTOR |
callocStack()
Returns a new
CUDA_ARRAY3D_DESCRIPTOR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CUDA_ARRAY3D_DESCRIPTOR.Buffer |
callocStack(int capacity)
Returns a new
CUDA_ARRAY3D_DESCRIPTOR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CUDA_ARRAY3D_DESCRIPTOR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_ARRAY3D_DESCRIPTOR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CUDA_ARRAY3D_DESCRIPTOR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_ARRAY3D_DESCRIPTOR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CUDA_ARRAY3D_DESCRIPTOR |
create()
Returns a new
CUDA_ARRAY3D_DESCRIPTOR instance allocated with BufferUtils. |
static CUDA_ARRAY3D_DESCRIPTOR.Buffer |
create(int capacity)
Returns a new
CUDA_ARRAY3D_DESCRIPTOR.Buffer instance allocated with BufferUtils. |
static CUDA_ARRAY3D_DESCRIPTOR |
create(long address)
Returns a new
CUDA_ARRAY3D_DESCRIPTOR instance for the specified memory address. |
static CUDA_ARRAY3D_DESCRIPTOR.Buffer |
create(long address,
int capacity)
Create a
CUDA_ARRAY3D_DESCRIPTOR.Buffer instance at the specified memory. |
static CUDA_ARRAY3D_DESCRIPTOR |
createSafe(long address)
|
static CUDA_ARRAY3D_DESCRIPTOR.Buffer |
createSafe(long address,
int capacity)
|
long |
Depth()
Returns the value of the
Depth field. |
CUDA_ARRAY3D_DESCRIPTOR |
Depth(long value)
Sets the specified value to the
Depth field. |
int |
Flags()
Returns the value of the
Flags field. |
CUDA_ARRAY3D_DESCRIPTOR |
Flags(int value)
Sets the specified value to the
Flags field. |
int |
Format()
Returns the value of the
Format field. |
CUDA_ARRAY3D_DESCRIPTOR |
Format(int value)
Sets the specified value to the
Format field. |
long |
Height()
Returns the value of the
Height field. |
CUDA_ARRAY3D_DESCRIPTOR |
Height(long value)
Sets the specified value to the
Height field. |
static CUDA_ARRAY3D_DESCRIPTOR |
malloc()
Returns a new
CUDA_ARRAY3D_DESCRIPTOR instance allocated with memAlloc. |
static CUDA_ARRAY3D_DESCRIPTOR.Buffer |
malloc(int capacity)
Returns a new
CUDA_ARRAY3D_DESCRIPTOR.Buffer instance allocated with memAlloc. |
static CUDA_ARRAY3D_DESCRIPTOR |
mallocStack()
Returns a new
CUDA_ARRAY3D_DESCRIPTOR instance allocated on the thread-local MemoryStack. |
static CUDA_ARRAY3D_DESCRIPTOR.Buffer |
mallocStack(int capacity)
Returns a new
CUDA_ARRAY3D_DESCRIPTOR.Buffer instance allocated on the thread-local MemoryStack. |
static CUDA_ARRAY3D_DESCRIPTOR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_ARRAY3D_DESCRIPTOR.Buffer instance allocated on the specified MemoryStack. |
static CUDA_ARRAY3D_DESCRIPTOR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_ARRAY3D_DESCRIPTOR instance allocated on the specified MemoryStack. |
static long |
nDepth(long struct)
Unsafe version of
Depth(). |
static void |
nDepth(long struct,
long value)
Unsafe version of
Depth. |
static int |
nFlags(long struct)
Unsafe version of
Flags(). |
static void |
nFlags(long struct,
int value)
Unsafe version of
Flags. |
static int |
nFormat(long struct)
Unsafe version of
Format(). |
static void |
nFormat(long struct,
int value)
Unsafe version of
Format. |
static long |
nHeight(long struct)
Unsafe version of
Height(). |
static void |
nHeight(long struct,
long value)
Unsafe version of
Height. |
static int |
nNumChannels(long struct)
Unsafe version of
NumChannels(). |
static void |
nNumChannels(long struct,
int value)
Unsafe version of
NumChannels. |
int |
NumChannels()
Returns the value of the
NumChannels field. |
CUDA_ARRAY3D_DESCRIPTOR |
NumChannels(int value)
Sets the specified value to the
NumChannels field. |
static long |
nWidth(long struct)
Unsafe version of
Width(). |
static void |
nWidth(long struct,
long value)
Unsafe version of
Width. |
CUDA_ARRAY3D_DESCRIPTOR |
set(CUDA_ARRAY3D_DESCRIPTOR src)
Copies the specified struct data to this struct.
|
CUDA_ARRAY3D_DESCRIPTOR |
set(long Width,
long Height,
long Depth,
int Format,
int NumChannels,
int Flags)
Initializes this struct with the specified values.
|
int |
sizeof() |
long |
Width()
Returns the value of the
Width field. |
CUDA_ARRAY3D_DESCRIPTOR |
Width(long value)
Sets the specified value to the
Width field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int WIDTH
public static final int HEIGHT
public static final int DEPTH
public static final int FORMAT
public static final int NUMCHANNELS
public static final int FLAGS
public CUDA_ARRAY3D_DESCRIPTOR(java.nio.ByteBuffer container)
CUDA_ARRAY3D_DESCRIPTOR instance at the current position of the specified ByteBuffer container. 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic long Width()
Width field.public long Height()
Height field.public long Depth()
Depth field.public int Format()
Format field.public int NumChannels()
NumChannels field.public int Flags()
Flags field.public CUDA_ARRAY3D_DESCRIPTOR Width(long value)
Width field.public CUDA_ARRAY3D_DESCRIPTOR Height(long value)
Height field.public CUDA_ARRAY3D_DESCRIPTOR Depth(long value)
Depth field.public CUDA_ARRAY3D_DESCRIPTOR Format(int value)
Format field.public CUDA_ARRAY3D_DESCRIPTOR NumChannels(int value)
NumChannels field.public CUDA_ARRAY3D_DESCRIPTOR Flags(int value)
Flags field.public CUDA_ARRAY3D_DESCRIPTOR set(long Width, long Height, long Depth, int Format, int NumChannels, int Flags)
public CUDA_ARRAY3D_DESCRIPTOR set(CUDA_ARRAY3D_DESCRIPTOR src)
src - the source structpublic static CUDA_ARRAY3D_DESCRIPTOR malloc()
CUDA_ARRAY3D_DESCRIPTOR instance allocated with memAlloc. The instance must be explicitly freed.public static CUDA_ARRAY3D_DESCRIPTOR calloc()
CUDA_ARRAY3D_DESCRIPTOR instance allocated with memCalloc. The instance must be explicitly freed.public static CUDA_ARRAY3D_DESCRIPTOR create()
CUDA_ARRAY3D_DESCRIPTOR instance allocated with BufferUtils.public static CUDA_ARRAY3D_DESCRIPTOR create(long address)
CUDA_ARRAY3D_DESCRIPTOR instance for the specified memory address.@Nullable public static CUDA_ARRAY3D_DESCRIPTOR createSafe(long address)
public static CUDA_ARRAY3D_DESCRIPTOR.Buffer malloc(int capacity)
CUDA_ARRAY3D_DESCRIPTOR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CUDA_ARRAY3D_DESCRIPTOR.Buffer calloc(int capacity)
CUDA_ARRAY3D_DESCRIPTOR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CUDA_ARRAY3D_DESCRIPTOR.Buffer create(int capacity)
CUDA_ARRAY3D_DESCRIPTOR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static CUDA_ARRAY3D_DESCRIPTOR.Buffer create(long address, int capacity)
CUDA_ARRAY3D_DESCRIPTOR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CUDA_ARRAY3D_DESCRIPTOR.Buffer createSafe(long address, int capacity)
public static CUDA_ARRAY3D_DESCRIPTOR mallocStack()
CUDA_ARRAY3D_DESCRIPTOR instance allocated on the thread-local MemoryStack.public static CUDA_ARRAY3D_DESCRIPTOR callocStack()
CUDA_ARRAY3D_DESCRIPTOR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static CUDA_ARRAY3D_DESCRIPTOR mallocStack(org.lwjgl.system.MemoryStack stack)
CUDA_ARRAY3D_DESCRIPTOR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static CUDA_ARRAY3D_DESCRIPTOR callocStack(org.lwjgl.system.MemoryStack stack)
CUDA_ARRAY3D_DESCRIPTOR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static CUDA_ARRAY3D_DESCRIPTOR.Buffer mallocStack(int capacity)
CUDA_ARRAY3D_DESCRIPTOR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static CUDA_ARRAY3D_DESCRIPTOR.Buffer callocStack(int capacity)
CUDA_ARRAY3D_DESCRIPTOR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static CUDA_ARRAY3D_DESCRIPTOR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CUDA_ARRAY3D_DESCRIPTOR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CUDA_ARRAY3D_DESCRIPTOR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CUDA_ARRAY3D_DESCRIPTOR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static long nWidth(long struct)
Width().public static long nHeight(long struct)
Height().public static long nDepth(long struct)
Depth().public static int nFormat(long struct)
Format().public static int nNumChannels(long struct)
NumChannels().public static int nFlags(long struct)
Flags().public static void nWidth(long struct,
long value)
Width.public static void nHeight(long struct,
long value)
Height.public static void nDepth(long struct,
long value)
Depth.public static void nFormat(long struct,
int value)
Format.public static void nNumChannels(long struct,
int value)
NumChannels.public static void nFlags(long struct,
int value)
Flags.Copyright LWJGL. All Rights Reserved. License terms.