Structures
VkMacOSSurfaceCreateInfoMVK
Structure specifying parameters of a newly created macOS surface object
The VkMacOSSurfaceCreateInfoMVK structure is defined as:
typedef struct VkMacOSSurfaceCreateInfoMVK {
VkStructureType sType;
const void* pNext;
VkMacOSSurfaceCreateFlagsMVK flags;
const void* pView;
} VkMacOSSurfaceCreateInfoMVK;
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 anNSViewobject.
Valid Usage
VUID-VkMacOSSurfaceCreateInfoMVK-pView-04144
If pView is a CAMetalLayer object, it must be a valid
CAMetalLayer
VUID-VkMacOSSurfaceCreateInfoMVK-pView-01317
If pView is an NSView object, it must be a valid
NSView, must be backed by a CALayer object of type
CAMetalLayer, and vkCreateMacOSSurfaceMVK must be called
on the main thread
Valid Usage (Implicit)
VUID-VkMacOSSurfaceCreateInfoMVK-sType-sType
sType must be VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK
VUID-VkMacOSSurfaceCreateInfoMVK-pNext-pNext
pNext must be NULL
VUID-VkMacOSSurfaceCreateInfoMVK-flags-zerobitmask
flags must be 0