Package org.lwjgl.vulkan
Class EXTExternalMemoryHost
- java.lang.Object
-
- org.lwjgl.vulkan.EXTExternalMemoryHost
-
public class EXTExternalMemoryHost extends java.lang.ObjectThis 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
- Requires Vulkan 1.0
- Requires
VK_KHR_external_memory
- Contact
- Daniel Rakos drakos-amd
- 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
- Jason Ekstrand, Intel
- James Jones, NVIDIA
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringVK_EXT_EXTERNAL_MEMORY_HOST_EXTENSION_NAMEThe extension name.static intVK_EXT_EXTERNAL_MEMORY_HOST_SPEC_VERSIONThe extension specification version.static intVK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXT
VK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_MAPPED_FOREIGN_MEMORY_BIT_EXTExtendsVkExternalMemoryHandleTypeFlagBits.static intVK_STRUCTURE_TYPE_IMPORT_MEMORY_HOST_POINTER_INFO_EXT
VK_STRUCTURE_TYPE_MEMORY_HOST_POINTER_PROPERTIES_EXT
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_MEMORY_HOST_PROPERTIES_EXTExtendsVkStructureType.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intnvkGetMemoryHostPointerPropertiesEXT(VkDevice device, int handleType, long pHostPointer, long pMemoryHostPointerProperties)Unsafe version of:GetMemoryHostPointerPropertiesEXTstatic intvkGetMemoryHostPointerPropertiesEXT(VkDevice device, int handleType, long pHostPointer, VkMemoryHostPointerPropertiesEXT pMemoryHostPointerProperties)Get properties of external memory host pointer.
-
-
-
Field Detail
-
VK_EXT_EXTERNAL_MEMORY_HOST_SPEC_VERSION
The extension specification version.
-
VK_EXT_EXTERNAL_MEMORY_HOST_EXTENSION_NAME
The extension name.
-
VK_STRUCTURE_TYPE_IMPORT_MEMORY_HOST_POINTER_INFO_EXT, VK_STRUCTURE_TYPE_MEMORY_HOST_POINTER_PROPERTIES_EXT, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_MEMORY_HOST_PROPERTIES_EXT
-
VK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXT, VK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_MAPPED_FOREIGN_MEMORY_BIT_EXT
ExtendsVkExternalMemoryHandleTypeFlagBits.Enum values:
-
-
Method Detail
-
nvkGetMemoryHostPointerPropertiesEXT
public static int nvkGetMemoryHostPointerPropertiesEXT(VkDevice device, int handleType, long pHostPointer, long pMemoryHostPointerProperties)
Unsafe version of:GetMemoryHostPointerPropertiesEXT
-
vkGetMemoryHostPointerPropertiesEXT
public static int vkGetMemoryHostPointerPropertiesEXT(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 validVkExternalMemoryHandleTypeFlagBitsvaluepMemoryHostPointerPropertiesmust 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- 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.
-
-