C Specification

The VkMacOSSurfaceCreateInfoMVK structure is defined as:

// Provided by VK_MVK_macos_surface
typedef struct VkMacOSSurfaceCreateInfoMVK {
    VkStructureType                 sType;
    const void*                     pNext;
    VkMacOSSurfaceCreateFlagsMVK    flags;
    const void*                     pView;
} VkMacOSSurfaceCreateInfoMVK;


  • sType is a VkStructureType value identifying this structure.

  • pNext is NULL or a pointer to a structure extending this structure.

  • flags is reserved for future use.

  • pView is a reference to either a CAMetalLayer object or an NSView object.


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

  • VUID-VkMacOSSurfaceCreateInfoMVK-pNext-pNext
    pNext must be NULL

  • VUID-VkMacOSSurfaceCreateInfoMVK-flags-zerobitmask
    flags must be 0

See Also

Document Notes

For more information, see the Vulkan Specification

This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.

Copyright 2014-2024 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0