Package org.lwjgl.vulkan
Class EXTExternalMemoryHost
- java.lang.Object
-
- org.lwjgl.vulkan.EXTExternalMemoryHost
-
public class EXTExternalMemoryHost extends java.lang.Object
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
- 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.String
VK_EXT_EXTERNAL_MEMORY_HOST_EXTENSION_NAME
The extension name.static int
VK_EXT_EXTERNAL_MEMORY_HOST_SPEC_VERSION
The extension specification version.static int
VK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXT
VK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_MAPPED_FOREIGN_MEMORY_BIT_EXTExtendsVkExternalMemoryHandleTypeFlagBits
.static int
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_EXTExtendsVkStructureType
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 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
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
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
- 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.
-
-