createViSurfaceNN :: MonadIO io=> Instanceinstanceis the instance with which to associate the surface.-> ViSurfaceCreateInfoNNpCreateInfois a pointer to a ViSurfaceCreateInfoNN structure containing parameters affecting the creation of the surface object.->"allocator"
::: Maybe AllocationCallbackspAllocatoris the allocator used for host memory allocated for the surface object when there is no more specific allocator available (see Memory Allocation).-> io SurfaceKHR
vkCreateViSurfaceNN - Create a SurfaceKHR object for a VI layer
Description
During the lifetime of a surface created using a particular
nn::vi::NativeWindowHandle, applications must not attempt to
create another surface for the same nn::vi::Layer or attempt to
connect to the same nn::vi::Layer through other platform
mechanisms.
If the native window is created with a specified size, currentExtent
will reflect that size. In this case, applications should use the same
size for the swapchain’s imageExtent. Otherwise, the currentExtent
will have the special value (0xFFFFFFFF, 0xFFFFFFFF), indicating that
applications are expected to choose an appropriate size for the
swapchain’s imageExtent (e.g., by matching the result of a call to
nn::vi::GetDisplayResolution).
Valid Usage (Implicit)
instancemust be a valid Instance handle
pCreateInfomust be a valid pointer to a valid ViSurfaceCreateInfoNN structureIf
pAllocatoris notNULL,pAllocatormust be a valid pointer to a valid AllocationCallbacks structurepSurfacemust be a valid pointer to a SurfaceKHR handle
Return Codes
See Also
VK_NN_vi_surface, AllocationCallbacks, Instance, SurfaceKHR, ViSurfaceCreateInfoNN