public class VkMemoryGetWin32HandleInfoKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The properties of the handle returned depend on the value of handleType. See VkExternalMemoryHandleTypeFlagBits for a description of the properties of the defined external memory handle types.
handleType must have been included in VkExportMemoryAllocateInfo::handleTypes when memory was created.handleType is defined as an NT handle, GetMemoryWin32HandleKHR must be called no more than once for each valid unique combination of memory and handleType.handleType must be defined as an NT handle or a global share handle.sType must be STRUCTURE_TYPE_MEMORY_GET_WIN32_HANDLE_INFO_KHRpNext must be NULLmemory must be a valid VkDeviceMemory handlehandleType must be a valid VkExternalMemoryHandleTypeFlagBits valuesType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.memory – the memory object from which the handle will be exported.handleType – the type of handle requested.
struct VkMemoryGetWin32HandleInfoKHR {
VkStructureType sType;
void const * pNext;
VkDeviceMemory memory;
VkExternalMemoryHandleTypeFlagBits handleType;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkMemoryGetWin32HandleInfoKHR.Buffer
An array of
VkMemoryGetWin32HandleInfoKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
HANDLETYPE
The struct member offsets.
|
static int |
MEMORY
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 |
|---|
VkMemoryGetWin32HandleInfoKHR(java.nio.ByteBuffer container)
Creates a
VkMemoryGetWin32HandleInfoKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkMemoryGetWin32HandleInfoKHR |
calloc()
Returns a new
VkMemoryGetWin32HandleInfoKHR instance allocated with memCalloc. |
static VkMemoryGetWin32HandleInfoKHR.Buffer |
calloc(int capacity)
Returns a new
VkMemoryGetWin32HandleInfoKHR.Buffer instance allocated with memCalloc. |
static VkMemoryGetWin32HandleInfoKHR |
callocStack()
Returns a new
VkMemoryGetWin32HandleInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkMemoryGetWin32HandleInfoKHR.Buffer |
callocStack(int capacity)
Returns a new
VkMemoryGetWin32HandleInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkMemoryGetWin32HandleInfoKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkMemoryGetWin32HandleInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkMemoryGetWin32HandleInfoKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkMemoryGetWin32HandleInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkMemoryGetWin32HandleInfoKHR |
create()
Returns a new
VkMemoryGetWin32HandleInfoKHR instance allocated with BufferUtils. |
static VkMemoryGetWin32HandleInfoKHR.Buffer |
create(int capacity)
Returns a new
VkMemoryGetWin32HandleInfoKHR.Buffer instance allocated with BufferUtils. |
static VkMemoryGetWin32HandleInfoKHR |
create(long address)
Returns a new
VkMemoryGetWin32HandleInfoKHR instance for the specified memory address. |
static VkMemoryGetWin32HandleInfoKHR.Buffer |
create(long address,
int capacity)
Create a
VkMemoryGetWin32HandleInfoKHR.Buffer instance at the specified memory. |
static VkMemoryGetWin32HandleInfoKHR |
createSafe(long address)
|
static VkMemoryGetWin32HandleInfoKHR.Buffer |
createSafe(long address,
int capacity)
|
int |
handleType()
Returns the value of the
handleType field. |
VkMemoryGetWin32HandleInfoKHR |
handleType(int value)
Sets the specified value to the
handleType field. |
static VkMemoryGetWin32HandleInfoKHR |
malloc()
Returns a new
VkMemoryGetWin32HandleInfoKHR instance allocated with memAlloc. |
static VkMemoryGetWin32HandleInfoKHR.Buffer |
malloc(int capacity)
Returns a new
VkMemoryGetWin32HandleInfoKHR.Buffer instance allocated with memAlloc. |
static VkMemoryGetWin32HandleInfoKHR |
mallocStack()
Returns a new
VkMemoryGetWin32HandleInfoKHR instance allocated on the thread-local MemoryStack. |
static VkMemoryGetWin32HandleInfoKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkMemoryGetWin32HandleInfoKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkMemoryGetWin32HandleInfoKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkMemoryGetWin32HandleInfoKHR.Buffer instance allocated on the specified MemoryStack. |
static VkMemoryGetWin32HandleInfoKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkMemoryGetWin32HandleInfoKHR instance allocated on the specified MemoryStack. |
long |
memory()
Returns the value of the
memory field. |
VkMemoryGetWin32HandleInfoKHR |
memory(long value)
Sets the specified value to the
memory field. |
static int |
nhandleType(long struct)
Unsafe version of
handleType(). |
static void |
nhandleType(long struct,
int value)
Unsafe version of
handleType. |
static long |
nmemory(long struct)
Unsafe version of
memory(). |
static void |
nmemory(long struct,
long value)
Unsafe version of
memory. |
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. |
VkMemoryGetWin32HandleInfoKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
VkMemoryGetWin32HandleInfoKHR |
set(int sType,
long pNext,
long memory,
int handleType)
Initializes this struct with the specified values.
|
VkMemoryGetWin32HandleInfoKHR |
set(VkMemoryGetWin32HandleInfoKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkMemoryGetWin32HandleInfoKHR |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int MEMORY
public static final int HANDLETYPE
public VkMemoryGetWin32HandleInfoKHR(java.nio.ByteBuffer container)
VkMemoryGetWin32HandleInfoKHR 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 long memory()
memory field.public int handleType()
handleType field.public VkMemoryGetWin32HandleInfoKHR sType(int value)
sType field.public VkMemoryGetWin32HandleInfoKHR pNext(long value)
pNext field.public VkMemoryGetWin32HandleInfoKHR memory(long value)
memory field.public VkMemoryGetWin32HandleInfoKHR handleType(int value)
handleType field.public VkMemoryGetWin32HandleInfoKHR set(int sType, long pNext, long memory, int handleType)
public VkMemoryGetWin32HandleInfoKHR set(VkMemoryGetWin32HandleInfoKHR src)
src - the source structpublic static VkMemoryGetWin32HandleInfoKHR malloc()
VkMemoryGetWin32HandleInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkMemoryGetWin32HandleInfoKHR calloc()
VkMemoryGetWin32HandleInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkMemoryGetWin32HandleInfoKHR create()
VkMemoryGetWin32HandleInfoKHR instance allocated with BufferUtils.public static VkMemoryGetWin32HandleInfoKHR create(long address)
VkMemoryGetWin32HandleInfoKHR instance for the specified memory address.@Nullable public static VkMemoryGetWin32HandleInfoKHR createSafe(long address)
public static VkMemoryGetWin32HandleInfoKHR.Buffer malloc(int capacity)
VkMemoryGetWin32HandleInfoKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkMemoryGetWin32HandleInfoKHR.Buffer calloc(int capacity)
VkMemoryGetWin32HandleInfoKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkMemoryGetWin32HandleInfoKHR.Buffer create(int capacity)
VkMemoryGetWin32HandleInfoKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkMemoryGetWin32HandleInfoKHR.Buffer create(long address, int capacity)
VkMemoryGetWin32HandleInfoKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkMemoryGetWin32HandleInfoKHR.Buffer createSafe(long address, int capacity)
public static VkMemoryGetWin32HandleInfoKHR mallocStack()
VkMemoryGetWin32HandleInfoKHR instance allocated on the thread-local MemoryStack.public static VkMemoryGetWin32HandleInfoKHR callocStack()
VkMemoryGetWin32HandleInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkMemoryGetWin32HandleInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkMemoryGetWin32HandleInfoKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkMemoryGetWin32HandleInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkMemoryGetWin32HandleInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkMemoryGetWin32HandleInfoKHR.Buffer mallocStack(int capacity)
VkMemoryGetWin32HandleInfoKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkMemoryGetWin32HandleInfoKHR.Buffer callocStack(int capacity)
VkMemoryGetWin32HandleInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkMemoryGetWin32HandleInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkMemoryGetWin32HandleInfoKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkMemoryGetWin32HandleInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkMemoryGetWin32HandleInfoKHR.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 long nmemory(long struct)
memory().public static int nhandleType(long struct)
handleType().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nmemory(long struct,
long value)
memory.public static void nhandleType(long struct,
int value)
handleType.Copyright LWJGL. All Rights Reserved. License terms.