Structures
VkIOSSurfaceCreateInfoMVK
Structure specifying parameters of a newly created iOS surface object
The VkIOSSurfaceCreateInfoMVK structure is defined as:
typedef struct VkIOSSurfaceCreateInfoMVK {
VkStructureType sType;
const void* pNext;
VkIOSSurfaceCreateFlagsMVK flags;
const void* pView;
} VkIOSSurfaceCreateInfoMVK;
sTypeis a VkStructureType value identifying this structure.pNextisNULLor a pointer to a structure extending this structure.flagsis reserved for future use.pViewis a reference to either a CAMetalLayer object or aUIViewobject.
Valid Usage
VUID-VkIOSSurfaceCreateInfoMVK-pView-04143
If pView is a CAMetalLayer object, it must be a valid
CAMetalLayer
VUID-VkIOSSurfaceCreateInfoMVK-pView-01316
If pView is a UIView object, it must be a valid UIView,
must be backed by a CALayer object of type CAMetalLayer,
and vkCreateIOSSurfaceMVK must be called on the main thread
Valid Usage (Implicit)
VUID-VkIOSSurfaceCreateInfoMVK-sType-sType
sType must be VK_STRUCTURE_TYPE_IOS_SURFACE_CREATE_INFO_MVK
VUID-VkIOSSurfaceCreateInfoMVK-pNext-pNext
pNext must be NULL
VUID-VkIOSSurfaceCreateInfoMVK-flags-zerobitmask
flags must be 0