public class VkExportMemoryAllocateInfoNV
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
sType must be STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO_NVhandleTypes must be a valid combination of VkExternalMemoryHandleTypeFlagBitsNV valuessType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.handleTypes – a bitmask of VkExternalMemoryHandleTypeFlagBitsNV specifying one or more memory handle types that may be exported. Multiple handle types may be requested for the same allocation as long as they are compatible, as reported by GetPhysicalDeviceExternalImageFormatPropertiesNV.
struct VkExportMemoryAllocateInfoNV {
VkStructureType sType;
void const * pNext;
VkExternalMemoryHandleTypeFlagsNV handleTypes;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkExportMemoryAllocateInfoNV.Buffer
An array of
VkExportMemoryAllocateInfoNV 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 |
|---|
VkExportMemoryAllocateInfoNV(java.nio.ByteBuffer container)
Creates a
VkExportMemoryAllocateInfoNV instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkExportMemoryAllocateInfoNV |
calloc()
Returns a new
VkExportMemoryAllocateInfoNV instance allocated with memCalloc. |
static VkExportMemoryAllocateInfoNV.Buffer |
calloc(int capacity)
Returns a new
VkExportMemoryAllocateInfoNV.Buffer instance allocated with memCalloc. |
static VkExportMemoryAllocateInfoNV |
callocStack()
Returns a new
VkExportMemoryAllocateInfoNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkExportMemoryAllocateInfoNV.Buffer |
callocStack(int capacity)
Returns a new
VkExportMemoryAllocateInfoNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkExportMemoryAllocateInfoNV.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkExportMemoryAllocateInfoNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkExportMemoryAllocateInfoNV |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkExportMemoryAllocateInfoNV instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkExportMemoryAllocateInfoNV |
create()
Returns a new
VkExportMemoryAllocateInfoNV instance allocated with BufferUtils. |
static VkExportMemoryAllocateInfoNV.Buffer |
create(int capacity)
Returns a new
VkExportMemoryAllocateInfoNV.Buffer instance allocated with BufferUtils. |
static VkExportMemoryAllocateInfoNV |
create(long address)
Returns a new
VkExportMemoryAllocateInfoNV instance for the specified memory address. |
static VkExportMemoryAllocateInfoNV.Buffer |
create(long address,
int capacity)
Create a
VkExportMemoryAllocateInfoNV.Buffer instance at the specified memory. |
static VkExportMemoryAllocateInfoNV |
createSafe(long address)
|
static VkExportMemoryAllocateInfoNV.Buffer |
createSafe(long address,
int capacity)
|
int |
handleTypes()
Returns the value of the
handleTypes field. |
VkExportMemoryAllocateInfoNV |
handleTypes(int value)
Sets the specified value to the
handleTypes field. |
static VkExportMemoryAllocateInfoNV |
malloc()
Returns a new
VkExportMemoryAllocateInfoNV instance allocated with memAlloc. |
static VkExportMemoryAllocateInfoNV.Buffer |
malloc(int capacity)
Returns a new
VkExportMemoryAllocateInfoNV.Buffer instance allocated with memAlloc. |
static VkExportMemoryAllocateInfoNV |
mallocStack()
Returns a new
VkExportMemoryAllocateInfoNV instance allocated on the thread-local MemoryStack. |
static VkExportMemoryAllocateInfoNV.Buffer |
mallocStack(int capacity)
Returns a new
VkExportMemoryAllocateInfoNV.Buffer instance allocated on the thread-local MemoryStack. |
static VkExportMemoryAllocateInfoNV.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkExportMemoryAllocateInfoNV.Buffer instance allocated on the specified MemoryStack. |
static VkExportMemoryAllocateInfoNV |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkExportMemoryAllocateInfoNV 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. |
VkExportMemoryAllocateInfoNV |
pNext(long value)
Sets the specified value to the
pNext field. |
VkExportMemoryAllocateInfoNV |
set(int sType,
long pNext,
int handleTypes)
Initializes this struct with the specified values.
|
VkExportMemoryAllocateInfoNV |
set(VkExportMemoryAllocateInfoNV src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkExportMemoryAllocateInfoNV |
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 VkExportMemoryAllocateInfoNV(java.nio.ByteBuffer container)
VkExportMemoryAllocateInfoNV 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 VkExportMemoryAllocateInfoNV sType(int value)
sType field.public VkExportMemoryAllocateInfoNV pNext(long value)
pNext field.public VkExportMemoryAllocateInfoNV handleTypes(int value)
handleTypes field.public VkExportMemoryAllocateInfoNV set(int sType, long pNext, int handleTypes)
public VkExportMemoryAllocateInfoNV set(VkExportMemoryAllocateInfoNV src)
src - the source structpublic static VkExportMemoryAllocateInfoNV malloc()
VkExportMemoryAllocateInfoNV instance allocated with memAlloc. The instance must be explicitly freed.public static VkExportMemoryAllocateInfoNV calloc()
VkExportMemoryAllocateInfoNV instance allocated with memCalloc. The instance must be explicitly freed.public static VkExportMemoryAllocateInfoNV create()
VkExportMemoryAllocateInfoNV instance allocated with BufferUtils.public static VkExportMemoryAllocateInfoNV create(long address)
VkExportMemoryAllocateInfoNV instance for the specified memory address.@Nullable public static VkExportMemoryAllocateInfoNV createSafe(long address)
public static VkExportMemoryAllocateInfoNV.Buffer malloc(int capacity)
VkExportMemoryAllocateInfoNV.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkExportMemoryAllocateInfoNV.Buffer calloc(int capacity)
VkExportMemoryAllocateInfoNV.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkExportMemoryAllocateInfoNV.Buffer create(int capacity)
VkExportMemoryAllocateInfoNV.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkExportMemoryAllocateInfoNV.Buffer create(long address, int capacity)
VkExportMemoryAllocateInfoNV.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkExportMemoryAllocateInfoNV.Buffer createSafe(long address, int capacity)
public static VkExportMemoryAllocateInfoNV mallocStack()
VkExportMemoryAllocateInfoNV instance allocated on the thread-local MemoryStack.public static VkExportMemoryAllocateInfoNV callocStack()
VkExportMemoryAllocateInfoNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkExportMemoryAllocateInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
VkExportMemoryAllocateInfoNV instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkExportMemoryAllocateInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
VkExportMemoryAllocateInfoNV instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkExportMemoryAllocateInfoNV.Buffer mallocStack(int capacity)
VkExportMemoryAllocateInfoNV.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkExportMemoryAllocateInfoNV.Buffer callocStack(int capacity)
VkExportMemoryAllocateInfoNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkExportMemoryAllocateInfoNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkExportMemoryAllocateInfoNV.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkExportMemoryAllocateInfoNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkExportMemoryAllocateInfoNV.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.