VkPhysicalDeviceExternalBufferInfo
The VkPhysicalDeviceExternalBufferInfo
structure is defined as:
typedef struct VkPhysicalDeviceExternalBufferInfo {
VkStructureType sType;
const void* pNext;
VkBufferCreateFlags flags;
VkBufferUsageFlags usage;
VkExternalMemoryHandleTypeFlagBits handleType;
} VkPhysicalDeviceExternalBufferInfo;
or the equivalent
typedef VkPhysicalDeviceExternalBufferInfo VkPhysicalDeviceExternalBufferInfoKHR;
sType
is a VkStructureType value identifying this structure.pNext
isNULL
or a pointer to a structure extending this structure.flags
is a bitmask of VkBufferCreateFlagBits describing additional parameters of the buffer, corresponding to VkBufferCreateInfo::flags
.usage
is a bitmask of VkBufferUsageFlagBits describing the intended usage of the buffer, corresponding to VkBufferCreateInfo::usage
.handleType
is a VkExternalMemoryHandleTypeFlagBits value specifying the memory handle type that will be used with the memory associated with the buffer.
Only usage flags representable in VkBufferUsageFlagBits are returned
in this structure’s usage
.
If the pNext
chain includes a VkBufferUsageFlags2CreateInfoKHR
structure, all usage flags of the buffer are returned in
VkBufferUsageFlags2CreateInfoKHR::usage
.
Valid Usage
VUID-VkPhysicalDeviceExternalBufferInfo-None-09499
If the pNext
chain does not include a
VkBufferUsageFlags2CreateInfoKHR structure,
usage
must be a valid combination of VkBufferUsageFlagBits
values
VUID-VkPhysicalDeviceExternalBufferInfo-None-09500
If the pNext
chain does not include a
VkBufferUsageFlags2CreateInfoKHR structure,
usage
must not be 0
Valid Usage (Implicit)
VUID-VkPhysicalDeviceExternalBufferInfo-sType-sType
sType
must be VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_BUFFER_INFO
VUID-VkPhysicalDeviceExternalBufferInfo-pNext-pNext
pNext
must be NULL
or a pointer to a valid instance of VkBufferUsageFlags2CreateInfoKHR
VUID-VkPhysicalDeviceExternalBufferInfo-sType-unique
The sType
value of each struct in the pNext
chain must be unique
VUID-VkPhysicalDeviceExternalBufferInfo-flags-parameter
flags
must be a valid combination of VkBufferCreateFlagBits values
VUID-VkPhysicalDeviceExternalBufferInfo-handleType-parameter
handleType
must be a valid VkExternalMemoryHandleTypeFlagBits value