Top Description Fields Constructors Methods
org.lwjgl.vulkan

public Class EXTExternalMemoryHost

extends Object
Class Inheritance
Imports
org.lwjgl.system.*

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
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 TypeField and Description
public static final String
public static final int
VK_EXT_EXTERNAL_MEMORY_HOST_SPEC_VERSION

The extension specification version.

public static final int
VK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXT

Extends VkExternalMemoryHandleTypeFlagBits.

public static final int
VK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_MAPPED_FOREIGN_MEMORY_BIT_EXT

Extends VkExternalMemoryHandleTypeFlagBits.

public static final int
public static final int
public static final int

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static int
nvkGetMemoryHostPointerPropertiesEXT(VkDevice device, int handleType, long pHostPointer, long pMemoryHostPointerProperties)

Unsafe version of: GetMemoryHostPointerPropertiesEXT

public static int
vkGetMemoryHostPointerPropertiesEXT(VkDevice
the logical device that will be importing pHostPointer.
device
,
int
a VkExternalMemoryHandleTypeFlagBits value specifying the type of the handle pHostPointer.
handleType
,
long
the host pointer to import from.
pHostPointer
,
VkMemoryHostPointerPropertiesEXT
a pointer to a VkMemoryHostPointerPropertiesEXT structure in which the host pointer properties are returned.
pMemoryHostPointerProperties
)

Get properties of external memory host pointer.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

VK_EXT_EXTERNAL_MEMORY_HOST_EXTENSION_NAMEback to summary
public static final String VK_EXT_EXTERNAL_MEMORY_HOST_EXTENSION_NAME

The extension name.

VK_EXT_EXTERNAL_MEMORY_HOST_SPEC_VERSIONback to summary
public static final int VK_EXT_EXTERNAL_MEMORY_HOST_SPEC_VERSION

The extension specification version.

VK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXTback to summary
public static final int VK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXT

Extends VkExternalMemoryHandleTypeFlagBits.

Enum values:
VK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_MAPPED_FOREIGN_MEMORY_BIT_EXTback to summary
public static final int VK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_MAPPED_FOREIGN_MEMORY_BIT_EXT

Extends VkExternalMemoryHandleTypeFlagBits.

Enum values:
VK_STRUCTURE_TYPE_IMPORT_MEMORY_HOST_POINTER_INFO_EXTback to summary
public static final int VK_STRUCTURE_TYPE_IMPORT_MEMORY_HOST_POINTER_INFO_EXT

Extends VkStructureType.

Enum values:
VK_STRUCTURE_TYPE_MEMORY_HOST_POINTER_PROPERTIES_EXTback to summary
public static final int VK_STRUCTURE_TYPE_MEMORY_HOST_POINTER_PROPERTIES_EXT

Extends VkStructureType.

Enum values:
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_MEMORY_HOST_PROPERTIES_EXTback to summary
public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_MEMORY_HOST_PROPERTIES_EXT

Extends VkStructureType.

Enum values:

Constructor Detail

EXTExternalMemoryHostback to summary
protected EXTExternalMemoryHost()

Method Detail

nvkGetMemoryHostPointerPropertiesEXTback to summary
public static int nvkGetMemoryHostPointerPropertiesEXT(VkDevice device, int handleType, long pHostPointer, long pMemoryHostPointerProperties)

Unsafe version of: GetMemoryHostPointerPropertiesEXT

vkGetMemoryHostPointerPropertiesEXTback to summary
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
Valid Usage (Implicit)
  • device must be a valid VkDevice handle
  • handleType must be a valid VkExternalMemoryHandleTypeFlagBits value
  • pHostPointer must be a pointer value
  • pMemoryHostPointerProperties must be a valid pointer to a VkMemoryHostPointerPropertiesEXT structure
Return Codes
On success, this command returns
On failure, this command returns
See Also

VkMemoryHostPointerPropertiesEXT

Parameters
device:VkDevice

the logical device that will be importing pHostPointer.

handleType:int

a VkExternalMemoryHandleTypeFlagBits value specifying the type of the handle pHostPointer.

pHostPointer:long

the host pointer to import from.

pMemoryHostPointerProperties:VkMemoryHostPointerPropertiesEXT

a pointer to a VkMemoryHostPointerPropertiesEXT structure in which the host pointer properties are returned.

Annotations
@NativeType:VkResult