| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.Vulkan.Extensions.VK_MVK_macos_surface
Synopsis
- newtype VkMacOSSurfaceCreateFlagsMVK = VkMacOSSurfaceCreateFlagsMVK VkFlags
- pattern VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK :: VkStructureType
- pattern VK_MVK_MACOS_SURFACE_SPEC_VERSION :: Integral a => a
- pattern VK_MVK_MACOS_SURFACE_EXTENSION_NAME :: (Eq a, IsString a) => a
- vkCreateMacOSSurfaceMVK :: ("instance" ::: VkInstance) -> ("pCreateInfo" ::: Ptr VkMacOSSurfaceCreateInfoMVK) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pSurface" ::: Ptr VkSurfaceKHR) -> IO VkResult
- data VkMacOSSurfaceCreateInfoMVK = VkMacOSSurfaceCreateInfoMVK {
- vkSType :: VkStructureType
- vkPNext :: Ptr ()
- vkFlags :: VkMacOSSurfaceCreateFlagsMVK
- vkPView :: Ptr ()
Documentation
newtype VkMacOSSurfaceCreateFlagsMVK Source #
Constructors
| VkMacOSSurfaceCreateFlagsMVK VkFlags |
Instances
pattern VK_MVK_MACOS_SURFACE_SPEC_VERSION :: Integral a => a Source #
pattern VK_MVK_MACOS_SURFACE_EXTENSION_NAME :: (Eq a, IsString a) => a Source #
vkCreateMacOSSurfaceMVK :: ("instance" ::: VkInstance) -> ("pCreateInfo" ::: Ptr VkMacOSSurfaceCreateInfoMVK) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pSurface" ::: Ptr VkSurfaceKHR) -> IO VkResult Source #
vkCreateMacOSSurfaceMVK - Create a VkSurfaceKHR object for a macOS NSView
Parameters
instanceis the instance with which to associate the surface.
pCreateInfois a pointer to an instance of theVkMacOSSurfaceCreateInfoMVKstructure containing parameters affecting the creation of the surface object.pAllocatoris the allocator used for host memory allocated for the surface object when there is no more specific allocator available (see Memory Allocation).pSurfacepoints to aVkSurfaceKHRhandle in which the created surface object is returned.
Valid Usage (Implicit)
instancemust be a validVkInstancehandle
pCreateInfomust be a valid pointer to a validVkMacOSSurfaceCreateInfoMVKstructure- If
pAllocatoris notNULL,pAllocatormust be a valid pointer to a validVkAllocationCallbacksstructure pSurfacemust be a valid pointer to aVkSurfaceKHRhandle
Return Codes
[Success]
- VK_SUCCESS
[Failure]
- VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
VK_ERROR_NATIVE_WINDOW_IN_USE_KHR
See Also
VkAllocationCallbacks,
VkInstance,
VkMacOSSurfaceCreateInfoMVK,
VkSurfaceKHR
data VkMacOSSurfaceCreateInfoMVK Source #
VkMacOSSurfaceCreateInfoMVK - Structure specifying parameters of a newly created macOS surface object
Valid Usage
pViewmust be a validNSViewand must be backed by aCALayerinstance of typeCAMetalLayer.
Valid Usage (Implicit)
sTypemust beVK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK
pNextmust beNULLflagsmust be0
See Also
VkMacOSSurfaceCreateFlagsMVK,
VkStructureType, vkCreateMacOSSurfaceMVK
Constructors
| VkMacOSSurfaceCreateInfoMVK | |
Fields
| |