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.
VK_EXT_external_memory_host
- Name String
VK_EXT_external_memory_host
- Extension Type
- Device extension
- Registered Extension Number
- 179
- Revision
- 1
- Extension and Version Dependencies
VK_KHR_external_memory
or 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
Modifier and TypeFieldDescriptionstatic final String
The extension name.static final int
The extension specification version.static final int
ExtendsVkExternalMemoryHandleTypeFlagBits
.static final int
ExtendsVkExternalMemoryHandleTypeFlagBits
.static final int
ExtendsVkStructureType
.static final int
ExtendsVkStructureType
.static final int
ExtendsVkStructureType
. -
Method Summary
Modifier and TypeMethodDescriptionstatic int
nvkGetMemoryHostPointerPropertiesEXT
(VkDevice device, int handleType, long pHostPointer, long pMemoryHostPointerProperties) Unsafe version of:GetMemoryHostPointerPropertiesEXT
static int
vkGetMemoryHostPointerPropertiesEXT
(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(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
handleType
must beEXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXT
orEXTERNAL_MEMORY_HANDLE_TYPE_HOST_MAPPED_FOREIGN_MEMORY_BIT_EXT
pHostPointer
must be a pointer aligned to an integer multiple ofVkPhysicalDeviceExternalMemoryHostPropertiesEXT
::minImportedHostPointerAlignment
- If
handleType
isEXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXT
,pHostPointer
must be a pointer to host memory - If
handleType
isEXTERNAL_MEMORY_HANDLE_TYPE_HOST_MAPPED_FOREIGN_MEMORY_BIT_EXT
,pHostPointer
must be a pointer to host mapped foreign memory
Valid Usage (Implicit)
device
must be a validVkDevice
handlehandleType
must be a validVkExternalMemoryHandleTypeFlagBits
valuepHostPointer
must be a pointer valuepMemoryHostPointerProperties
must be a valid pointer to aVkMemoryHostPointerPropertiesEXT
structure
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
device
- the logical device that will be importingpHostPointer
.handleType
- aVkExternalMemoryHandleTypeFlagBits
value specifying the type of the handlepHostPointer
.pHostPointer
- the host pointer to import from.pMemoryHostPointerProperties
- a pointer to aVkMemoryHostPointerPropertiesEXT
structure in which the host pointer properties are returned.
-