Class KHRMapMemory2

java.lang.Object
org.lwjgl.vulkan.KHRMapMemory2

public class KHRMapMemory2 extends Object
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.
Promotion to Vulkan 1.4

Functionality in this extension is included in core Vulkan 1.4 with the KHR suffix omitted. The original type, enum and command names are still available as aliases of the core functionality.

Name String
VK_KHR_map_memory2
Extension Type
Device extension
Registered Extension Number
272
Revision
1
Deprecation State
  • Promoted to Vulkan 1.4
Contact
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 Details

  • 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, VkMemoryMapInfo pMemoryMapInfo, org.lwjgl.PointerBuffer ppData)
      Parameters:
      device - the logical device that owns the memory.
      pMemoryMapInfo - a pointer to a VkMemoryMapInfo structure describing parameters of the map.
      ppData - a pointer to a void * variable in which is returned a host-accessible pointer to the beginning of the mapped range. This pointer minus VkMemoryMapInfo::offset must be aligned to at least VkPhysicalDeviceLimits::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, VkMemoryUnmapInfo pMemoryUnmapInfo)
      Parameters:
      device - the logical device that owns the memory.
      pMemoryUnmapInfo - a pointer to a VkMemoryUnmapInfo structure describing parameters of the unmap.