public class CUDA_EXTERNAL_MEMORY_BUFFER_DESC
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
offset – Offset into the memory object where the buffer's base issize – Size of the bufferflags – Flags reserved for future use. Must be zero.
struct CUDA_EXTERNAL_MEMORY_BUFFER_DESC {
unsigned long long offset;
unsigned long long size;
unsigned int flags;
unsigned int reserved[16];
}| Modifier and Type | Class and Description |
|---|---|
static class |
CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer
An array of
CUDA_EXTERNAL_MEMORY_BUFFER_DESC structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FLAGS
The struct member offsets.
|
static int |
OFFSET
The struct member offsets.
|
static int |
RESERVED
The struct member offsets.
|
static int |
SIZE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
CUDA_EXTERNAL_MEMORY_BUFFER_DESC(java.nio.ByteBuffer container)
Creates a
CUDA_EXTERNAL_MEMORY_BUFFER_DESC instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static CUDA_EXTERNAL_MEMORY_BUFFER_DESC |
calloc()
Returns a new
CUDA_EXTERNAL_MEMORY_BUFFER_DESC instance allocated with memCalloc. |
static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer |
calloc(int capacity)
Returns a new
CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer instance allocated with memCalloc. |
static CUDA_EXTERNAL_MEMORY_BUFFER_DESC |
callocStack()
Returns a new
CUDA_EXTERNAL_MEMORY_BUFFER_DESC instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer |
callocStack(int capacity)
Returns a new
CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CUDA_EXTERNAL_MEMORY_BUFFER_DESC |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_EXTERNAL_MEMORY_BUFFER_DESC instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CUDA_EXTERNAL_MEMORY_BUFFER_DESC |
create()
Returns a new
CUDA_EXTERNAL_MEMORY_BUFFER_DESC instance allocated with BufferUtils. |
static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer |
create(int capacity)
Returns a new
CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer instance allocated with BufferUtils. |
static CUDA_EXTERNAL_MEMORY_BUFFER_DESC |
create(long address)
Returns a new
CUDA_EXTERNAL_MEMORY_BUFFER_DESC instance for the specified memory address. |
static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer |
create(long address,
int capacity)
Create a
CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer instance at the specified memory. |
static CUDA_EXTERNAL_MEMORY_BUFFER_DESC |
createSafe(long address)
|
static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
CUDA_EXTERNAL_MEMORY_BUFFER_DESC |
flags(int value)
Sets the specified value to the
flags field. |
static CUDA_EXTERNAL_MEMORY_BUFFER_DESC |
malloc()
Returns a new
CUDA_EXTERNAL_MEMORY_BUFFER_DESC instance allocated with memAlloc. |
static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer |
malloc(int capacity)
Returns a new
CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer instance allocated with memAlloc. |
static CUDA_EXTERNAL_MEMORY_BUFFER_DESC |
mallocStack()
Returns a new
CUDA_EXTERNAL_MEMORY_BUFFER_DESC instance allocated on the thread-local MemoryStack. |
static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer |
mallocStack(int capacity)
Returns a new
CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer instance allocated on the thread-local MemoryStack. |
static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer instance allocated on the specified MemoryStack. |
static CUDA_EXTERNAL_MEMORY_BUFFER_DESC |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_EXTERNAL_MEMORY_BUFFER_DESC instance allocated on the specified MemoryStack. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static long |
noffset(long struct)
Unsafe version of
offset(). |
static void |
noffset(long struct,
long value)
Unsafe version of
offset. |
static java.nio.IntBuffer |
nreserved(long struct)
Unsafe version of
reserved(). |
static int |
nreserved(long struct,
int index)
Unsafe version of
reserved. |
static void |
nreserved(long struct,
java.nio.IntBuffer value)
Unsafe version of
reserved. |
static void |
nreserved(long struct,
int index,
int value)
Unsafe version of
reserved. |
static long |
nsize(long struct)
Unsafe version of
size(). |
static void |
nsize(long struct,
long value)
Unsafe version of
size. |
long |
offset()
Returns the value of the
offset field. |
CUDA_EXTERNAL_MEMORY_BUFFER_DESC |
offset(long value)
Sets the specified value to the
offset field. |
java.nio.IntBuffer |
reserved()
Returns a
IntBuffer view of the reserved field. |
int |
reserved(int index)
Returns the value at the specified index of the
reserved field. |
CUDA_EXTERNAL_MEMORY_BUFFER_DESC |
reserved(java.nio.IntBuffer value)
Copies the specified
IntBuffer to the reserved field. |
CUDA_EXTERNAL_MEMORY_BUFFER_DESC |
reserved(int index,
int value)
Sets the specified value at the specified index of the
reserved field. |
CUDA_EXTERNAL_MEMORY_BUFFER_DESC |
set(CUDA_EXTERNAL_MEMORY_BUFFER_DESC src)
Copies the specified struct data to this struct.
|
CUDA_EXTERNAL_MEMORY_BUFFER_DESC |
set(long offset,
long size,
int flags,
java.nio.IntBuffer reserved)
Initializes this struct with the specified values.
|
long |
size()
Returns the value of the
size field. |
CUDA_EXTERNAL_MEMORY_BUFFER_DESC |
size(long value)
Sets the specified value to the
size field. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int OFFSET
public static final int SIZE
public static final int FLAGS
public static final int RESERVED
public CUDA_EXTERNAL_MEMORY_BUFFER_DESC(java.nio.ByteBuffer container)
CUDA_EXTERNAL_MEMORY_BUFFER_DESC 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 offset()
offset field.public long size()
size field.public int flags()
flags field.public java.nio.IntBuffer reserved()
IntBuffer view of the reserved field.public int reserved(int index)
reserved field.public CUDA_EXTERNAL_MEMORY_BUFFER_DESC offset(long value)
offset field.public CUDA_EXTERNAL_MEMORY_BUFFER_DESC size(long value)
size field.public CUDA_EXTERNAL_MEMORY_BUFFER_DESC flags(int value)
flags field.public CUDA_EXTERNAL_MEMORY_BUFFER_DESC reserved(java.nio.IntBuffer value)
IntBuffer to the reserved field.public CUDA_EXTERNAL_MEMORY_BUFFER_DESC reserved(int index, int value)
reserved field.public CUDA_EXTERNAL_MEMORY_BUFFER_DESC set(long offset, long size, int flags, java.nio.IntBuffer reserved)
public CUDA_EXTERNAL_MEMORY_BUFFER_DESC set(CUDA_EXTERNAL_MEMORY_BUFFER_DESC src)
src - the source structpublic static CUDA_EXTERNAL_MEMORY_BUFFER_DESC malloc()
CUDA_EXTERNAL_MEMORY_BUFFER_DESC instance allocated with memAlloc. The instance must be explicitly freed.public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC calloc()
CUDA_EXTERNAL_MEMORY_BUFFER_DESC instance allocated with memCalloc. The instance must be explicitly freed.public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC create()
CUDA_EXTERNAL_MEMORY_BUFFER_DESC instance allocated with BufferUtils.public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC create(long address)
CUDA_EXTERNAL_MEMORY_BUFFER_DESC instance for the specified memory address.@Nullable public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC createSafe(long address)
public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer malloc(int capacity)
CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer calloc(int capacity)
CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer create(int capacity)
CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer create(long address, int capacity)
CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer createSafe(long address, int capacity)
public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC mallocStack()
CUDA_EXTERNAL_MEMORY_BUFFER_DESC instance allocated on the thread-local MemoryStack.public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC callocStack()
CUDA_EXTERNAL_MEMORY_BUFFER_DESC instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC mallocStack(org.lwjgl.system.MemoryStack stack)
CUDA_EXTERNAL_MEMORY_BUFFER_DESC instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static CUDA_EXTERNAL_MEMORY_BUFFER_DESC callocStack(org.lwjgl.system.MemoryStack stack)
CUDA_EXTERNAL_MEMORY_BUFFER_DESC instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer mallocStack(int capacity)
CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer callocStack(int capacity)
CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CUDA_EXTERNAL_MEMORY_BUFFER_DESC.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 noffset(long struct)
offset().public static long nsize(long struct)
size().public static int nflags(long struct)
flags().public static java.nio.IntBuffer nreserved(long struct)
reserved().public static int nreserved(long struct,
int index)
reserved.public static void noffset(long struct,
long value)
offset.public static void nsize(long struct,
long value)
size.public static void nflags(long struct,
int value)
flags.public static void nreserved(long struct,
java.nio.IntBuffer value)
reserved.public static void nreserved(long struct,
int index,
int value)
reserved.Copyright LWJGL. All Rights Reserved. License terms.