Structures

VkImportScreenBufferInfoQNX

Import memory from a QNX Screen buffer

To import memory created outside of the current Vulkan instance from a QNX Screen buffer, add a VkImportScreenBufferInfoQNX structure to the pNext chain of the VkMemoryAllocateInfo structure. The VkImportScreenBufferInfoQNX structure is defined as:

typedef struct VkImportScreenBufferInfoQNX {
    VkStructureType sType;
    const void* pNext;
    struct _screen_buffer* buffer;
} VkImportScreenBufferInfoQNX;
  • sType is a VkStructureType value identifying this structure.
  • pNext is NULL or a pointer to a structure extending this structure.
  • buffer is a pointer to a struct _screen_buffer, the QNX Screen buffer to import

The implementation may not acquire a reference to the imported Screen buffer. Therefore, the application must ensure that the object referred to by buffer stays valid as long as the device memory to which it is imported is being used.

Valid Usage

VUID-VkImportScreenBufferInfoQNX-buffer-08966

If buffer is not NULL, QNX Screen Buffers must be supported for import, as reported by VkExternalImageFormatProperties or VkExternalBufferProperties

Valid Usage (Implicit)

VUID-VkImportScreenBufferInfoQNX-sType-sType

sType must be VK_STRUCTURE_TYPE_IMPORT_SCREEN_BUFFER_INFO_QNX