Package org.lwjgl.vulkan
Class EXTExternalMemoryHost
java.lang.Object
org.lwjgl.vulkan.EXTExternalMemoryHost
This extension enables an application to import host allocations and host mapped foreign device memory to Vulkan memory objects.
- Name String
VK_EXT_external_memory_host- Extension Type
- Device extension
- Registered Extension Number
- 179
- Revision
- 1
- Extension and Version Dependencies
VK_KHR_external_memoryor Version 1.1- Contact
- Daniel Rakos drakos-amd
Other Extension Metadata
- Last Modified Date
- 2017-11-10
- IP Status
- No known IP claims.
- Contributors
- Jaakko Konttinen, AMD
- David Mao, AMD
- Daniel Rakos, AMD
- Tobias Hector, Imagination Technologies
- Faith Ekstrand, Intel
- James Jones, NVIDIA
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe extension name.static final intThe extension specification version.static final intExtendsVkExternalMemoryHandleTypeFlagBits.static final intExtendsVkExternalMemoryHandleTypeFlagBits.static final intExtendsVkStructureType.static final intExtendsVkStructureType.static final intExtendsVkStructureType. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnvkGetMemoryHostPointerPropertiesEXT(org.lwjgl.vulkan.VkDevice device, int handleType, long pHostPointer, long pMemoryHostPointerProperties) Unsafe version of:GetMemoryHostPointerPropertiesEXTstatic intvkGetMemoryHostPointerPropertiesEXT(org.lwjgl.vulkan.VkDevice device, int handleType, long pHostPointer, VkMemoryHostPointerPropertiesEXT pMemoryHostPointerProperties) Get properties of external memory host pointer.
-
Field Details
-
VK_EXT_EXTERNAL_MEMORY_HOST_SPEC_VERSION
public static final int VK_EXT_EXTERNAL_MEMORY_HOST_SPEC_VERSIONThe extension specification version.- See Also:
-
VK_EXT_EXTERNAL_MEMORY_HOST_EXTENSION_NAME
The extension name.- See Also:
-
VK_STRUCTURE_TYPE_IMPORT_MEMORY_HOST_POINTER_INFO_EXT
public static final int VK_STRUCTURE_TYPE_IMPORT_MEMORY_HOST_POINTER_INFO_EXTExtendsVkStructureType.Enum values:
- See Also:
-
VK_STRUCTURE_TYPE_MEMORY_HOST_POINTER_PROPERTIES_EXT
public static final int VK_STRUCTURE_TYPE_MEMORY_HOST_POINTER_PROPERTIES_EXTExtendsVkStructureType.Enum values:
- See Also:
-
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_MEMORY_HOST_PROPERTIES_EXT
public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_MEMORY_HOST_PROPERTIES_EXTExtendsVkStructureType.Enum values:
- See Also:
-
VK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXT
public static final int VK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXTExtendsVkExternalMemoryHandleTypeFlagBits.Enum values:
- See Also:
-
VK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_MAPPED_FOREIGN_MEMORY_BIT_EXT
public static final int VK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_MAPPED_FOREIGN_MEMORY_BIT_EXTExtendsVkExternalMemoryHandleTypeFlagBits.Enum values:
- See Also:
-
-
Method Details
-
nvkGetMemoryHostPointerPropertiesEXT
public static int nvkGetMemoryHostPointerPropertiesEXT(org.lwjgl.vulkan.VkDevice device, int handleType, long pHostPointer, long pMemoryHostPointerProperties) Unsafe version of:GetMemoryHostPointerPropertiesEXT -
vkGetMemoryHostPointerPropertiesEXT
public static int vkGetMemoryHostPointerPropertiesEXT(org.lwjgl.vulkan.VkDevice device, int handleType, long pHostPointer, VkMemoryHostPointerPropertiesEXT pMemoryHostPointerProperties) Get properties of external memory host pointer.C Specification
To determine the correct parameters to use when importing host pointers, call:
VkResult vkGetMemoryHostPointerPropertiesEXT( VkDevice device, VkExternalMemoryHandleTypeFlagBits handleType, const void* pHostPointer, VkMemoryHostPointerPropertiesEXT* pMemoryHostPointerProperties);Valid Usage
handleTypemust beEXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXTorEXTERNAL_MEMORY_HANDLE_TYPE_HOST_MAPPED_FOREIGN_MEMORY_BIT_EXTpHostPointermust be a pointer aligned to an integer multiple ofVkPhysicalDeviceExternalMemoryHostPropertiesEXT::minImportedHostPointerAlignment- If
handleTypeisEXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXT,pHostPointermust be a pointer to host memory - If
handleTypeisEXTERNAL_MEMORY_HANDLE_TYPE_HOST_MAPPED_FOREIGN_MEMORY_BIT_EXT,pHostPointermust be a pointer to host mapped foreign memory
Valid Usage (Implicit)
devicemust be a validVkDevicehandlehandleTypemust be a validVkExternalMemoryHandleTypeFlagBitsvaluepHostPointermust be a pointer valuepMemoryHostPointerPropertiesmust be a valid pointer to aVkMemoryHostPointerPropertiesEXTstructure
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
device- the logical device that will be importingpHostPointer.handleType- aVkExternalMemoryHandleTypeFlagBitsvalue specifying the type of the handlepHostPointer.pHostPointer- the host pointer to import from.pMemoryHostPointerProperties- a pointer to aVkMemoryHostPointerPropertiesEXTstructure in which the host pointer properties are returned.
-