Class VkMemoryAllocateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkMemoryAllocateInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkMemoryAllocateInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure containing parameters of a memory allocation.Description
The internal data of an allocated device memory object must include a reference to implementation-specific resources, referred to as the memory object’s payload. Applications can also import and export that internal data to and from device memory objects to share data between Vulkan instances and other compatible APIs. A
VkMemoryAllocateInfostructure defines a memory import operation if itspNextchain includes one of the following structures:VkImportMemoryWin32HandleInfoKHRwith a non-zerohandleTypevalueVkImportMemoryFdInfoKHRwith a non-zerohandleTypevalueVkImportMemoryHostPointerInfoEXTwith a non-zerohandleTypevalue
If the parameters define an import operation and the external handle type is
EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_BIT,EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_KMT_BIT, orEXTERNAL_MEMORY_HANDLE_TYPE_D3D12_RESOURCE_BIT,allocationSizeis ignored. The implementation must query the size of these allocations from the OS.Whether device memory objects constructed via a memory import operation hold a reference to their payload depends on the properties of the handle type used to perform the import, as defined below for each valid handle type. Importing memory must not modify the content of the memory. Implementations must ensure that importing memory does not enable the importing Vulkan instance to access any memory or resources in other Vulkan instances other than that corresponding to the memory object imported. Implementations must also ensure accessing imported memory which has not been initialized does not allow the importing Vulkan instance to obtain data from the exporting Vulkan instance or vice-versa.
Note
How exported and imported memory is isolated is left to the implementation, but applications should be aware that such isolation may prevent implementations from placing multiple exportable memory objects in the same physical or virtual page. Hence, applications should avoid creating many small external memory objects whenever possible.
Importing memory must not increase overall heap usage within a system. However, it must affect the following per-process values:
VkPhysicalDeviceMaintenance3Properties::maxMemoryAllocationCountVkPhysicalDeviceMemoryBudgetPropertiesEXT::heapUsage
When performing a memory import operation, it is the responsibility of the application to ensure the external handles and their associated payloads meet all valid usage requirements. However, implementations must perform sufficient validation of external handles and payloads to ensure that the operation results in a valid memory object which will not cause program termination, device loss, queue stalls, or corruption of other resources when used as allowed according to its allocation parameters. If the external handle provided does not meet these requirements, the implementation must fail the memory import operation with the error code
ERROR_INVALID_EXTERNAL_HANDLE.Valid Usage
allocationSizemust be greater than 0- If the
pNextchain includes aVkExportMemoryAllocateInfostructure, and any of the handle types specified inVkExportMemoryAllocateInfo::handleTypesrequire a dedicated allocation, as reported byGetPhysicalDeviceImageFormatProperties2inVkExternalImageFormatProperties::externalMemoryProperties.externalMemoryFeaturesorVkExternalBufferProperties::externalMemoryProperties.externalMemoryFeatures, thepNextchain must include aVkMemoryDedicatedAllocateInfoorVkDedicatedAllocationMemoryAllocateInfoNVstructure with either itsimageorbuffermember set to a value other thanNULL_HANDLE - If the
pNextchain includes aVkExportMemoryAllocateInfostructure, it must not include aVkExportMemoryAllocateInfoNVorVkExportMemoryWin32HandleInfoNVstructure - If the
pNextchain includes aVkImportMemoryWin32HandleInfoKHRstructure, it must not include aVkImportMemoryWin32HandleInfoNVstructure - If the parameters define an import operation, the external handle specified was created by the Vulkan API, and the external handle type is
EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT, then the values ofallocationSizeandmemoryTypeIndexmust match those specified when the payload being imported was created - If the parameters define an import operation and the external handle specified was created by the Vulkan API, the device mask specified by
VkMemoryAllocateFlagsInfomust match the mask specified when the payload being imported was allocated - If the parameters define an import operation and the external handle specified was created by the Vulkan API, the list of physical devices that comprise the logical device passed to
AllocateMemorymust match the list of physical devices that comprise the logical device on which the payload was originally allocated - If the parameters define an import operation and the external handle is an NT handle or a global share handle created outside of the Vulkan API, the value of
memoryTypeIndexmust be one of those returned byGetMemoryWin32HandlePropertiesKHR - If the parameters define an import operation, the external handle was created by the Vulkan API, and the external handle type is
EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BITorEXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT, then the values ofallocationSizeandmemoryTypeIndexmust match those specified when the payload being imported was created - If the parameters define an import operation and the external handle type is
EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_HEAP_BIT,allocationSizemust match the size specified when creating the Direct3D 12 heap from which the payload was extracted - If the parameters define an import operation and the external handle is a POSIX file descriptor created outside of the Vulkan API, the value of
memoryTypeIndexmust be one of those returned byGetMemoryFdPropertiesKHR - If the protected memory feature is not enabled, the
VkMemoryAllocateInfo::memoryTypeIndexmust not indicate a memory type that reportsMEMORY_PROPERTY_PROTECTED_BIT - If the parameters define an import operation and the external handle is a host pointer, the value of
memoryTypeIndexmust be one of those returned byGetMemoryHostPointerPropertiesEXT - If the parameters define an import operation and the external handle is a host pointer,
allocationSizemust be an integer multiple ofVkPhysicalDeviceExternalMemoryHostPropertiesEXT::minImportedHostPointerAlignment - If the parameters define an import operation and the external handle is a host pointer, the
pNextchain must not include aVkDedicatedAllocationMemoryAllocateInfoNVstructure with either itsimageorbufferfield set to a value other thanNULL_HANDLE - If the parameters define an import operation and the external handle is a host pointer, the
pNextchain must not include aVkMemoryDedicatedAllocateInfostructure with either itsimageorbufferfield set to a value other thanNULL_HANDLE - If
VkMemoryOpaqueCaptureAddressAllocateInfo::opaqueCaptureAddressis not zero,VkMemoryAllocateFlagsInfo::flagsmust includeMEMORY_ALLOCATE_DEVICE_ADDRESS_CAPTURE_REPLAY_BIT - If
VkMemoryAllocateFlagsInfo::flagsincludesMEMORY_ALLOCATE_DEVICE_ADDRESS_CAPTURE_REPLAY_BIT, the bufferDeviceAddressCaptureReplay feature must be enabled - If
VkMemoryAllocateFlagsInfo::flagsincludesMEMORY_ALLOCATE_DEVICE_ADDRESS_BIT, the bufferDeviceAddress feature must be enabled - If the
pNextchain includes aVkImportMemoryHostPointerInfoEXTstructure,VkMemoryOpaqueCaptureAddressAllocateInfo::opaqueCaptureAddressmust be zero - If the parameters define an import operation,
VkMemoryOpaqueCaptureAddressAllocateInfo::opaqueCaptureAddressmust be zero
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_MEMORY_ALLOCATE_INFO- Each
pNextmember of any structure (including this one) in thepNextchain must be eitherNULLor a pointer to a valid instance ofVkDedicatedAllocationMemoryAllocateInfoNV,VkExportMemoryAllocateInfo,VkExportMemoryAllocateInfoNV,VkExportMemoryWin32HandleInfoKHR,VkExportMemoryWin32HandleInfoNV,VkImportMemoryFdInfoKHR,VkImportMemoryHostPointerInfoEXT,VkImportMemoryWin32HandleInfoKHR,VkImportMemoryWin32HandleInfoNV,VkMemoryAllocateFlagsInfo,VkMemoryDedicatedAllocateInfo,VkMemoryOpaqueCaptureAddressAllocateInfo, orVkMemoryPriorityAllocateInfoEXT - The
sTypevalue of each struct in thepNextchain must be unique
See Also
Layout
struct VkMemoryAllocateInfo { VkStructureTypesType(); void const *pNext(); VkDeviceSizeallocationSize(); uint32_tmemoryTypeIndex(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkMemoryAllocateInfo.BufferAn array ofVkMemoryAllocateInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intALLOCATIONSIZE
MEMORYTYPEINDEX
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkMemoryAllocateInfo(java.nio.ByteBuffer container)Creates aVkMemoryAllocateInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description longallocationSize()the size of the allocation in bytes.VkMemoryAllocateInfoallocationSize(long value)Sets the specified value to theallocationSize()field.static VkMemoryAllocateInfocalloc()Returns a newVkMemoryAllocateInfoinstance allocated withmemCalloc.static VkMemoryAllocateInfo.Buffercalloc(int capacity)Returns a newVkMemoryAllocateInfo.Bufferinstance allocated withmemCalloc.static VkMemoryAllocateInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkMemoryAllocateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMemoryAllocateInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkMemoryAllocateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMemoryAllocateInfocallocStack()Deprecated.static VkMemoryAllocateInfo.BuffercallocStack(int capacity)Deprecated.static VkMemoryAllocateInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkMemoryAllocateInfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkMemoryAllocateInfocreate()Returns a newVkMemoryAllocateInfoinstance allocated withBufferUtils.static VkMemoryAllocateInfo.Buffercreate(int capacity)Returns a newVkMemoryAllocateInfo.Bufferinstance allocated withBufferUtils.static VkMemoryAllocateInfocreate(long address)Returns a newVkMemoryAllocateInfoinstance for the specified memory address.static VkMemoryAllocateInfo.Buffercreate(long address, int capacity)Create aVkMemoryAllocateInfo.Bufferinstance at the specified memory.static VkMemoryAllocateInfocreateSafe(long address)static VkMemoryAllocateInfo.BuffercreateSafe(long address, int capacity)static VkMemoryAllocateInfomalloc()Returns a newVkMemoryAllocateInfoinstance allocated withmemAlloc.static VkMemoryAllocateInfo.Buffermalloc(int capacity)Returns a newVkMemoryAllocateInfo.Bufferinstance allocated withmemAlloc.static VkMemoryAllocateInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkMemoryAllocateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkMemoryAllocateInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkMemoryAllocateInfoinstance allocated on the specifiedMemoryStack.static VkMemoryAllocateInfomallocStack()Deprecated.static VkMemoryAllocateInfo.BuffermallocStack(int capacity)Deprecated.static VkMemoryAllocateInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkMemoryAllocateInfomallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.intmemoryTypeIndex()an index identifying a memory type from thememoryTypesarray of theVkPhysicalDeviceMemoryPropertiesstructure.VkMemoryAllocateInfomemoryTypeIndex(int value)Sets the specified value to thememoryTypeIndex()field.static longnallocationSize(long struct)Unsafe version ofallocationSize().static voidnallocationSize(long struct, long value)Unsafe version ofallocationSize.static intnmemoryTypeIndex(long struct)Unsafe version ofmemoryTypeIndex().static voidnmemoryTypeIndex(long struct, int value)Unsafe version ofmemoryTypeIndex.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()NULLor a pointer to a structure extending this structure.VkMemoryAllocateInfopNext(long value)Sets the specified value to thepNext()field.VkMemoryAllocateInfopNext(VkDedicatedAllocationMemoryAllocateInfoNV value)Prepends the specifiedVkDedicatedAllocationMemoryAllocateInfoNVvalue to thepNextchain.VkMemoryAllocateInfopNext(VkExportMemoryAllocateInfo value)Prepends the specifiedVkExportMemoryAllocateInfovalue to thepNextchain.VkMemoryAllocateInfopNext(VkExportMemoryAllocateInfoKHR value)Prepends the specifiedVkExportMemoryAllocateInfoKHRvalue to thepNextchain.VkMemoryAllocateInfopNext(VkExportMemoryAllocateInfoNV value)Prepends the specifiedVkExportMemoryAllocateInfoNVvalue to thepNextchain.VkMemoryAllocateInfopNext(VkExportMemoryWin32HandleInfoKHR value)Prepends the specifiedVkExportMemoryWin32HandleInfoKHRvalue to thepNextchain.VkMemoryAllocateInfopNext(VkExportMemoryWin32HandleInfoNV value)Prepends the specifiedVkExportMemoryWin32HandleInfoNVvalue to thepNextchain.VkMemoryAllocateInfopNext(VkImportMemoryFdInfoKHR value)Prepends the specifiedVkImportMemoryFdInfoKHRvalue to thepNextchain.VkMemoryAllocateInfopNext(VkImportMemoryHostPointerInfoEXT value)Prepends the specifiedVkImportMemoryHostPointerInfoEXTvalue to thepNextchain.VkMemoryAllocateInfopNext(VkImportMemoryWin32HandleInfoKHR value)Prepends the specifiedVkImportMemoryWin32HandleInfoKHRvalue to thepNextchain.VkMemoryAllocateInfopNext(VkImportMemoryWin32HandleInfoNV value)Prepends the specifiedVkImportMemoryWin32HandleInfoNVvalue to thepNextchain.VkMemoryAllocateInfopNext(VkMemoryAllocateFlagsInfo value)Prepends the specifiedVkMemoryAllocateFlagsInfovalue to thepNextchain.VkMemoryAllocateInfopNext(VkMemoryAllocateFlagsInfoKHR value)Prepends the specifiedVkMemoryAllocateFlagsInfoKHRvalue to thepNextchain.VkMemoryAllocateInfopNext(VkMemoryDedicatedAllocateInfo value)Prepends the specifiedVkMemoryDedicatedAllocateInfovalue to thepNextchain.VkMemoryAllocateInfopNext(VkMemoryDedicatedAllocateInfoKHR value)Prepends the specifiedVkMemoryDedicatedAllocateInfoKHRvalue to thepNextchain.VkMemoryAllocateInfopNext(VkMemoryOpaqueCaptureAddressAllocateInfo value)Prepends the specifiedVkMemoryOpaqueCaptureAddressAllocateInfovalue to thepNextchain.VkMemoryAllocateInfopNext(VkMemoryOpaqueCaptureAddressAllocateInfoKHR value)Prepends the specifiedVkMemoryOpaqueCaptureAddressAllocateInfoKHRvalue to thepNextchain.VkMemoryAllocateInfopNext(VkMemoryPriorityAllocateInfoEXT value)Prepends the specifiedVkMemoryPriorityAllocateInfoEXTvalue to thepNextchain.VkMemoryAllocateInfoset(int sType, long pNext, long allocationSize, int memoryTypeIndex)Initializes this struct with the specified values.VkMemoryAllocateInfoset(VkMemoryAllocateInfo src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkMemoryAllocateInfosType(int value)Sets the specified value to thesType()field.VkMemoryAllocateInfosType$Default()Sets theSTRUCTURE_TYPE_MEMORY_ALLOCATE_INFOvalue to thesType()field.
-
-
-
Constructor Detail
-
VkMemoryAllocateInfo
public VkMemoryAllocateInfo(java.nio.ByteBuffer container)
Creates aVkMemoryAllocateInfoinstance at the current position of the specifiedByteBuffercontainer. 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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
allocationSize
public long allocationSize()
the size of the allocation in bytes.
-
memoryTypeIndex
public int memoryTypeIndex()
an index identifying a memory type from thememoryTypesarray of theVkPhysicalDeviceMemoryPropertiesstructure.
-
sType
public VkMemoryAllocateInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkMemoryAllocateInfo sType$Default()
Sets theSTRUCTURE_TYPE_MEMORY_ALLOCATE_INFOvalue to thesType()field.
-
pNext
public VkMemoryAllocateInfo pNext(long value)
Sets the specified value to thepNext()field.
-
pNext
public VkMemoryAllocateInfo pNext(VkDedicatedAllocationMemoryAllocateInfoNV value)
Prepends the specifiedVkDedicatedAllocationMemoryAllocateInfoNVvalue to thepNextchain.
-
pNext
public VkMemoryAllocateInfo pNext(VkExportMemoryAllocateInfo value)
Prepends the specifiedVkExportMemoryAllocateInfovalue to thepNextchain.
-
pNext
public VkMemoryAllocateInfo pNext(VkExportMemoryAllocateInfoKHR value)
Prepends the specifiedVkExportMemoryAllocateInfoKHRvalue to thepNextchain.
-
pNext
public VkMemoryAllocateInfo pNext(VkExportMemoryAllocateInfoNV value)
Prepends the specifiedVkExportMemoryAllocateInfoNVvalue to thepNextchain.
-
pNext
public VkMemoryAllocateInfo pNext(VkExportMemoryWin32HandleInfoKHR value)
Prepends the specifiedVkExportMemoryWin32HandleInfoKHRvalue to thepNextchain.
-
pNext
public VkMemoryAllocateInfo pNext(VkExportMemoryWin32HandleInfoNV value)
Prepends the specifiedVkExportMemoryWin32HandleInfoNVvalue to thepNextchain.
-
pNext
public VkMemoryAllocateInfo pNext(VkImportMemoryFdInfoKHR value)
Prepends the specifiedVkImportMemoryFdInfoKHRvalue to thepNextchain.
-
pNext
public VkMemoryAllocateInfo pNext(VkImportMemoryHostPointerInfoEXT value)
Prepends the specifiedVkImportMemoryHostPointerInfoEXTvalue to thepNextchain.
-
pNext
public VkMemoryAllocateInfo pNext(VkImportMemoryWin32HandleInfoKHR value)
Prepends the specifiedVkImportMemoryWin32HandleInfoKHRvalue to thepNextchain.
-
pNext
public VkMemoryAllocateInfo pNext(VkImportMemoryWin32HandleInfoNV value)
Prepends the specifiedVkImportMemoryWin32HandleInfoNVvalue to thepNextchain.
-
pNext
public VkMemoryAllocateInfo pNext(VkMemoryAllocateFlagsInfo value)
Prepends the specifiedVkMemoryAllocateFlagsInfovalue to thepNextchain.
-
pNext
public VkMemoryAllocateInfo pNext(VkMemoryAllocateFlagsInfoKHR value)
Prepends the specifiedVkMemoryAllocateFlagsInfoKHRvalue to thepNextchain.
-
pNext
public VkMemoryAllocateInfo pNext(VkMemoryDedicatedAllocateInfo value)
Prepends the specifiedVkMemoryDedicatedAllocateInfovalue to thepNextchain.
-
pNext
public VkMemoryAllocateInfo pNext(VkMemoryDedicatedAllocateInfoKHR value)
Prepends the specifiedVkMemoryDedicatedAllocateInfoKHRvalue to thepNextchain.
-
pNext
public VkMemoryAllocateInfo pNext(VkMemoryOpaqueCaptureAddressAllocateInfo value)
Prepends the specifiedVkMemoryOpaqueCaptureAddressAllocateInfovalue to thepNextchain.
-
pNext
public VkMemoryAllocateInfo pNext(VkMemoryOpaqueCaptureAddressAllocateInfoKHR value)
Prepends the specifiedVkMemoryOpaqueCaptureAddressAllocateInfoKHRvalue to thepNextchain.
-
pNext
public VkMemoryAllocateInfo pNext(VkMemoryPriorityAllocateInfoEXT value)
Prepends the specifiedVkMemoryPriorityAllocateInfoEXTvalue to thepNextchain.
-
allocationSize
public VkMemoryAllocateInfo allocationSize(long value)
Sets the specified value to theallocationSize()field.
-
memoryTypeIndex
public VkMemoryAllocateInfo memoryTypeIndex(int value)
Sets the specified value to thememoryTypeIndex()field.
-
set
public VkMemoryAllocateInfo set(int sType, long pNext, long allocationSize, int memoryTypeIndex)
Initializes this struct with the specified values.
-
set
public VkMemoryAllocateInfo set(VkMemoryAllocateInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkMemoryAllocateInfo malloc()
Returns a newVkMemoryAllocateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkMemoryAllocateInfo calloc()
Returns a newVkMemoryAllocateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkMemoryAllocateInfo create()
Returns a newVkMemoryAllocateInfoinstance allocated withBufferUtils.
-
create
public static VkMemoryAllocateInfo create(long address)
Returns a newVkMemoryAllocateInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkMemoryAllocateInfo createSafe(long address)
-
malloc
public static VkMemoryAllocateInfo.Buffer malloc(int capacity)
Returns a newVkMemoryAllocateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkMemoryAllocateInfo.Buffer calloc(int capacity)
Returns a newVkMemoryAllocateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkMemoryAllocateInfo.Buffer create(int capacity)
Returns a newVkMemoryAllocateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkMemoryAllocateInfo.Buffer create(long address, int capacity)
Create aVkMemoryAllocateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkMemoryAllocateInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkMemoryAllocateInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkMemoryAllocateInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkMemoryAllocateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkMemoryAllocateInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkMemoryAllocateInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkMemoryAllocateInfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkMemoryAllocateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkMemoryAllocateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkMemoryAllocateInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkMemoryAllocateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkMemoryAllocateInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkMemoryAllocateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkMemoryAllocateInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkMemoryAllocateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkMemoryAllocateInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkMemoryAllocateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
nallocationSize
public static long nallocationSize(long struct)
Unsafe version ofallocationSize().
-
nmemoryTypeIndex
public static int nmemoryTypeIndex(long struct)
Unsafe version ofmemoryTypeIndex().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nallocationSize
public static void nallocationSize(long struct, long value)Unsafe version ofallocationSize.
-
nmemoryTypeIndex
public static void nmemoryTypeIndex(long struct, int value)Unsafe version ofmemoryTypeIndex.
-
-