public class VkExportMemoryAllocateInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
handleTypes must be supported and compatible, as reported by VkExternalImageFormatProperties or VkExternalBufferProperties.sType must be STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFOhandleTypes must be a valid combination of VkExternalMemoryHandleTypeFlagBits valuessType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.handleTypes – a bitmask of VkExternalMemoryHandleTypeFlagBits specifying one or more memory handle types the application can export from the resulting allocation. The application can request multiple handle types for the same allocation.
struct VkExportMemoryAllocateInfo {
VkStructureType sType;
void const * pNext;
VkExternalMemoryHandleTypeFlags handleTypes;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkExportMemoryAllocateInfo.Buffer
An array of
VkExportMemoryAllocateInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
HANDLETYPES
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 |
|---|
VkExportMemoryAllocateInfo(java.nio.ByteBuffer container)
Creates a
VkExportMemoryAllocateInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkExportMemoryAllocateInfo |
calloc()
Returns a new
VkExportMemoryAllocateInfo instance allocated with memCalloc. |
static VkExportMemoryAllocateInfo.Buffer |
calloc(int capacity)
Returns a new
VkExportMemoryAllocateInfo.Buffer instance allocated with memCalloc. |
static VkExportMemoryAllocateInfo |
callocStack()
Returns a new
VkExportMemoryAllocateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkExportMemoryAllocateInfo.Buffer |
callocStack(int capacity)
Returns a new
VkExportMemoryAllocateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkExportMemoryAllocateInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkExportMemoryAllocateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkExportMemoryAllocateInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkExportMemoryAllocateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkExportMemoryAllocateInfo |
create()
Returns a new
VkExportMemoryAllocateInfo instance allocated with BufferUtils. |
static VkExportMemoryAllocateInfo.Buffer |
create(int capacity)
Returns a new
VkExportMemoryAllocateInfo.Buffer instance allocated with BufferUtils. |
static VkExportMemoryAllocateInfo |
create(long address)
Returns a new
VkExportMemoryAllocateInfo instance for the specified memory address. |
static VkExportMemoryAllocateInfo.Buffer |
create(long address,
int capacity)
Create a
VkExportMemoryAllocateInfo.Buffer instance at the specified memory. |
static VkExportMemoryAllocateInfo |
createSafe(long address)
|
static VkExportMemoryAllocateInfo.Buffer |
createSafe(long address,
int capacity)
|
int |
handleTypes()
Returns the value of the
handleTypes field. |
VkExportMemoryAllocateInfo |
handleTypes(int value)
Sets the specified value to the
handleTypes field. |
static VkExportMemoryAllocateInfo |
malloc()
Returns a new
VkExportMemoryAllocateInfo instance allocated with memAlloc. |
static VkExportMemoryAllocateInfo.Buffer |
malloc(int capacity)
Returns a new
VkExportMemoryAllocateInfo.Buffer instance allocated with memAlloc. |
static VkExportMemoryAllocateInfo |
mallocStack()
Returns a new
VkExportMemoryAllocateInfo instance allocated on the thread-local MemoryStack. |
static VkExportMemoryAllocateInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkExportMemoryAllocateInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkExportMemoryAllocateInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkExportMemoryAllocateInfo.Buffer instance allocated on the specified MemoryStack. |
static VkExportMemoryAllocateInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkExportMemoryAllocateInfo instance allocated on the specified MemoryStack. |
static int |
nhandleTypes(long struct)
Unsafe version of
handleTypes(). |
static void |
nhandleTypes(long struct,
int value)
Unsafe version of
handleTypes. |
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. |
VkExportMemoryAllocateInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
VkExportMemoryAllocateInfo |
set(int sType,
long pNext,
int handleTypes)
Initializes this struct with the specified values.
|
VkExportMemoryAllocateInfo |
set(VkExportMemoryAllocateInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkExportMemoryAllocateInfo |
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 HANDLETYPES
public VkExportMemoryAllocateInfo(java.nio.ByteBuffer container)
VkExportMemoryAllocateInfo 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 handleTypes()
handleTypes field.public VkExportMemoryAllocateInfo sType(int value)
sType field.public VkExportMemoryAllocateInfo pNext(long value)
pNext field.public VkExportMemoryAllocateInfo handleTypes(int value)
handleTypes field.public VkExportMemoryAllocateInfo set(int sType, long pNext, int handleTypes)
public VkExportMemoryAllocateInfo set(VkExportMemoryAllocateInfo src)
src - the source structpublic static VkExportMemoryAllocateInfo malloc()
VkExportMemoryAllocateInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkExportMemoryAllocateInfo calloc()
VkExportMemoryAllocateInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkExportMemoryAllocateInfo create()
VkExportMemoryAllocateInfo instance allocated with BufferUtils.public static VkExportMemoryAllocateInfo create(long address)
VkExportMemoryAllocateInfo instance for the specified memory address.@Nullable public static VkExportMemoryAllocateInfo createSafe(long address)
public static VkExportMemoryAllocateInfo.Buffer malloc(int capacity)
VkExportMemoryAllocateInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkExportMemoryAllocateInfo.Buffer calloc(int capacity)
VkExportMemoryAllocateInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkExportMemoryAllocateInfo.Buffer create(int capacity)
VkExportMemoryAllocateInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkExportMemoryAllocateInfo.Buffer create(long address, int capacity)
VkExportMemoryAllocateInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkExportMemoryAllocateInfo.Buffer createSafe(long address, int capacity)
public static VkExportMemoryAllocateInfo mallocStack()
VkExportMemoryAllocateInfo instance allocated on the thread-local MemoryStack.public static VkExportMemoryAllocateInfo callocStack()
VkExportMemoryAllocateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkExportMemoryAllocateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkExportMemoryAllocateInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkExportMemoryAllocateInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkExportMemoryAllocateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkExportMemoryAllocateInfo.Buffer mallocStack(int capacity)
VkExportMemoryAllocateInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkExportMemoryAllocateInfo.Buffer callocStack(int capacity)
VkExportMemoryAllocateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkExportMemoryAllocateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkExportMemoryAllocateInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkExportMemoryAllocateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkExportMemoryAllocateInfo.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 nhandleTypes(long struct)
handleTypes().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nhandleTypes(long struct,
int value)
handleTypes.Copyright LWJGL. All Rights Reserved. License terms.