public class VkImportMemoryWin32HandleInfoNV
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If handleType is 0, this structure is ignored by consumers of the VkMemoryAllocateInfo structure it is chained from.
handleType must not have more than one bit set.handle must be a valid handle to memory, obtained as specified by handleType.sType must be STRUCTURE_TYPE_IMPORT_MEMORY_WIN32_HANDLE_INFO_NVhandleType must be a valid combination of VkExternalMemoryHandleTypeFlagBitsNV valuessType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.handleType – 0 or a VkExternalMemoryHandleTypeFlagBitsNV value specifying the type of memory handle in handle.handle – a Windows HANDLE referring to the memory.
struct VkImportMemoryWin32HandleInfoNV {
VkStructureType sType;
void const * pNext;
VkExternalMemoryHandleTypeFlagsNV handleType;
HANDLE handle;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkImportMemoryWin32HandleInfoNV.Buffer
An array of
VkImportMemoryWin32HandleInfoNV structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
HANDLE
The struct member offsets.
|
static int |
HANDLETYPE
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkImportMemoryWin32HandleInfoNV(java.nio.ByteBuffer container)
Creates a
VkImportMemoryWin32HandleInfoNV instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkImportMemoryWin32HandleInfoNV |
calloc()
Returns a new
VkImportMemoryWin32HandleInfoNV instance allocated with memCalloc. |
static VkImportMemoryWin32HandleInfoNV.Buffer |
calloc(int capacity)
Returns a new
VkImportMemoryWin32HandleInfoNV.Buffer instance allocated with memCalloc. |
static VkImportMemoryWin32HandleInfoNV |
callocStack()
Returns a new
VkImportMemoryWin32HandleInfoNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImportMemoryWin32HandleInfoNV.Buffer |
callocStack(int capacity)
Returns a new
VkImportMemoryWin32HandleInfoNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImportMemoryWin32HandleInfoNV.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImportMemoryWin32HandleInfoNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImportMemoryWin32HandleInfoNV |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImportMemoryWin32HandleInfoNV instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImportMemoryWin32HandleInfoNV |
create()
Returns a new
VkImportMemoryWin32HandleInfoNV instance allocated with BufferUtils. |
static VkImportMemoryWin32HandleInfoNV.Buffer |
create(int capacity)
Returns a new
VkImportMemoryWin32HandleInfoNV.Buffer instance allocated with BufferUtils. |
static VkImportMemoryWin32HandleInfoNV |
create(long address)
Returns a new
VkImportMemoryWin32HandleInfoNV instance for the specified memory address. |
static VkImportMemoryWin32HandleInfoNV.Buffer |
create(long address,
int capacity)
Create a
VkImportMemoryWin32HandleInfoNV.Buffer instance at the specified memory. |
static VkImportMemoryWin32HandleInfoNV |
createSafe(long address)
|
static VkImportMemoryWin32HandleInfoNV.Buffer |
createSafe(long address,
int capacity)
|
long |
handle()
Returns the value of the
handle field. |
VkImportMemoryWin32HandleInfoNV |
handle(long value)
Sets the specified value to the
handle field. |
int |
handleType()
Returns the value of the
handleType field. |
VkImportMemoryWin32HandleInfoNV |
handleType(int value)
Sets the specified value to the
handleType field. |
static VkImportMemoryWin32HandleInfoNV |
malloc()
Returns a new
VkImportMemoryWin32HandleInfoNV instance allocated with memAlloc. |
static VkImportMemoryWin32HandleInfoNV.Buffer |
malloc(int capacity)
Returns a new
VkImportMemoryWin32HandleInfoNV.Buffer instance allocated with memAlloc. |
static VkImportMemoryWin32HandleInfoNV |
mallocStack()
Returns a new
VkImportMemoryWin32HandleInfoNV instance allocated on the thread-local MemoryStack. |
static VkImportMemoryWin32HandleInfoNV.Buffer |
mallocStack(int capacity)
Returns a new
VkImportMemoryWin32HandleInfoNV.Buffer instance allocated on the thread-local MemoryStack. |
static VkImportMemoryWin32HandleInfoNV.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImportMemoryWin32HandleInfoNV.Buffer instance allocated on the specified MemoryStack. |
static VkImportMemoryWin32HandleInfoNV |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImportMemoryWin32HandleInfoNV instance allocated on the specified MemoryStack. |
static long |
nhandle(long struct)
Unsafe version of
handle(). |
static void |
nhandle(long struct,
long value)
Unsafe version of
handle. |
static int |
nhandleType(long struct)
Unsafe version of
handleType(). |
static void |
nhandleType(long struct,
int value)
Unsafe version of
handleType. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkImportMemoryWin32HandleInfoNV |
pNext(long value)
Sets the specified value to the
pNext field. |
VkImportMemoryWin32HandleInfoNV |
set(int sType,
long pNext,
int handleType,
long handle)
Initializes this struct with the specified values.
|
VkImportMemoryWin32HandleInfoNV |
set(VkImportMemoryWin32HandleInfoNV src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkImportMemoryWin32HandleInfoNV |
sType(int value)
Sets the specified value to the
sType field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int HANDLETYPE
public static final int HANDLE
public VkImportMemoryWin32HandleInfoNV(java.nio.ByteBuffer container)
VkImportMemoryWin32HandleInfoNV 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 int sType()
sType field.public long pNext()
pNext field.public int handleType()
handleType field.public long handle()
handle field.public VkImportMemoryWin32HandleInfoNV sType(int value)
sType field.public VkImportMemoryWin32HandleInfoNV pNext(long value)
pNext field.public VkImportMemoryWin32HandleInfoNV handleType(int value)
handleType field.public VkImportMemoryWin32HandleInfoNV handle(long value)
handle field.public VkImportMemoryWin32HandleInfoNV set(int sType, long pNext, int handleType, long handle)
public VkImportMemoryWin32HandleInfoNV set(VkImportMemoryWin32HandleInfoNV src)
src - the source structpublic static VkImportMemoryWin32HandleInfoNV malloc()
VkImportMemoryWin32HandleInfoNV instance allocated with memAlloc. The instance must be explicitly freed.public static VkImportMemoryWin32HandleInfoNV calloc()
VkImportMemoryWin32HandleInfoNV instance allocated with memCalloc. The instance must be explicitly freed.public static VkImportMemoryWin32HandleInfoNV create()
VkImportMemoryWin32HandleInfoNV instance allocated with BufferUtils.public static VkImportMemoryWin32HandleInfoNV create(long address)
VkImportMemoryWin32HandleInfoNV instance for the specified memory address.@Nullable public static VkImportMemoryWin32HandleInfoNV createSafe(long address)
public static VkImportMemoryWin32HandleInfoNV.Buffer malloc(int capacity)
VkImportMemoryWin32HandleInfoNV.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImportMemoryWin32HandleInfoNV.Buffer calloc(int capacity)
VkImportMemoryWin32HandleInfoNV.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImportMemoryWin32HandleInfoNV.Buffer create(int capacity)
VkImportMemoryWin32HandleInfoNV.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkImportMemoryWin32HandleInfoNV.Buffer create(long address, int capacity)
VkImportMemoryWin32HandleInfoNV.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkImportMemoryWin32HandleInfoNV.Buffer createSafe(long address, int capacity)
public static VkImportMemoryWin32HandleInfoNV mallocStack()
VkImportMemoryWin32HandleInfoNV instance allocated on the thread-local MemoryStack.public static VkImportMemoryWin32HandleInfoNV callocStack()
VkImportMemoryWin32HandleInfoNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkImportMemoryWin32HandleInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
VkImportMemoryWin32HandleInfoNV instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkImportMemoryWin32HandleInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
VkImportMemoryWin32HandleInfoNV instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkImportMemoryWin32HandleInfoNV.Buffer mallocStack(int capacity)
VkImportMemoryWin32HandleInfoNV.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkImportMemoryWin32HandleInfoNV.Buffer callocStack(int capacity)
VkImportMemoryWin32HandleInfoNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkImportMemoryWin32HandleInfoNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImportMemoryWin32HandleInfoNV.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkImportMemoryWin32HandleInfoNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImportMemoryWin32HandleInfoNV.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 int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nhandleType(long struct)
handleType().public static long nhandle(long struct)
handle().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nhandleType(long struct,
int value)
handleType.public static void nhandle(long struct,
long value)
handle.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.