Package org.lwjgl.vulkan
Class KHRMapMemory2
java.lang.Object
org.lwjgl.vulkan.KHRMapMemory2
This extension provides extensible versions of the Vulkan memory map and unmap commands. The new commands are functionally identical to the core commands, except that their parameters are specified using extensible structures that can be used to pass extension-specific information.
- Name String
VK_KHR_map_memory2- Extension Type
- Device extension
- Registered Extension Number
- 272
- Revision
- 1
- Contact
- Faith Ekstrand gfxstrand
- Extension Proposal
- VK_KHR_map_memory2
Other Extension Metadata
- Last Modified Date
- 2023-03-14
- Interactions and External Dependencies
- None
- Contributors
- Faith Ekstrand, Collabora
- Tobias Hector, AMD
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe extension name.static final intThe extension specification version.static final intExtendsVkStructureType.static final intExtendsVkStructureType. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnvkMapMemory2KHR(org.lwjgl.vulkan.VkDevice device, long pMemoryMapInfo, long ppData) Unsafe version of:MapMemory2KHRstatic intnvkUnmapMemory2KHR(org.lwjgl.vulkan.VkDevice device, long pMemoryUnmapInfo) Unsafe version of:UnmapMemory2KHRstatic intvkMapMemory2KHR(org.lwjgl.vulkan.VkDevice device, VkMemoryMapInfoKHR pMemoryMapInfo, org.lwjgl.PointerBuffer ppData) Map a memory object into application address space.static intvkUnmapMemory2KHR(org.lwjgl.vulkan.VkDevice device, VkMemoryUnmapInfoKHR pMemoryUnmapInfo) Unmap a previously mapped memory object.
-
Field Details
-
VK_KHR_MAP_MEMORY_2_SPEC_VERSION
public static final int VK_KHR_MAP_MEMORY_2_SPEC_VERSIONThe extension specification version.- See Also:
-
VK_KHR_MAP_MEMORY_2_EXTENSION_NAME
The extension name.- See Also:
-
VK_STRUCTURE_TYPE_MEMORY_MAP_INFO_KHR
public static final int VK_STRUCTURE_TYPE_MEMORY_MAP_INFO_KHRExtendsVkStructureType.Enum values:
- See Also:
-
VK_STRUCTURE_TYPE_MEMORY_UNMAP_INFO_KHR
public static final int VK_STRUCTURE_TYPE_MEMORY_UNMAP_INFO_KHRExtendsVkStructureType.Enum values:
- See Also:
-
-
Method Details
-
nvkMapMemory2KHR
public static int nvkMapMemory2KHR(org.lwjgl.vulkan.VkDevice device, long pMemoryMapInfo, long ppData) Unsafe version of:MapMemory2KHR -
vkMapMemory2KHR
public static int vkMapMemory2KHR(org.lwjgl.vulkan.VkDevice device, VkMemoryMapInfoKHR pMemoryMapInfo, org.lwjgl.PointerBuffer ppData) Map a memory object into application address space.C Specification
Alternatively, to retrieve a host virtual address pointer to a region of a mappable memory object, call:
VkResult vkMapMemory2KHR( VkDevice device, const VkMemoryMapInfoKHR* pMemoryMapInfo, void** ppData);Description
This function behaves identically to
MapMemoryexcept that it gets its parameters via an extensible structure pointer rather than directly as function arguments.Valid Usage (Implicit)
devicemust be a validVkDevicehandlepMemoryMapInfomust be a valid pointer to a validVkMemoryMapInfoKHRstructureppDatamust be a valid pointer to a pointer value
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
device- the logical device that owns the memory.pMemoryMapInfo- a pointer to aVkMemoryMapInfoKHRstructure describing parameters of the map.ppData- a pointer to avoid *variable in which is returned a host-accessible pointer to the beginning of the mapped range. This pointer minusVkMemoryMapInfoKHR::offsetmust be aligned to at leastVkPhysicalDeviceLimits::minMemoryMapAlignment.
-
nvkUnmapMemory2KHR
public static int nvkUnmapMemory2KHR(org.lwjgl.vulkan.VkDevice device, long pMemoryUnmapInfo) Unsafe version of:UnmapMemory2KHR -
vkUnmapMemory2KHR
public static int vkUnmapMemory2KHR(org.lwjgl.vulkan.VkDevice device, VkMemoryUnmapInfoKHR pMemoryUnmapInfo) Unmap a previously mapped memory object.C Specification
Alternatively, to unmap a memory object once host access to it is no longer needed by the application, call:
VkResult vkUnmapMemory2KHR( VkDevice device, const VkMemoryUnmapInfoKHR* pMemoryUnmapInfo);Description
This function behaves identically to
UnmapMemoryexcept that it gets its parameters via an extensible structure pointer rather than directly as function arguments.Valid Usage (Implicit)
devicemust be a validVkDevicehandlepMemoryUnmapInfomust be a valid pointer to a validVkMemoryUnmapInfoKHRstructure
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
device- the logical device that owns the memory.pMemoryUnmapInfo- a pointer to aVkMemoryUnmapInfoKHRstructure describing parameters of the unmap.
-