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