vulkan-3.1.0.0: Bindings to the Vulkan graphics API.

Safe HaskellNone
LanguageHaskell2010

Graphics.Vulkan.Extensions.VK_NN_vi_surface

Synopsis

Documentation

createViSurfaceNN :: forall io. MonadIO io => Instance -> ViSurfaceCreateInfoNN -> ("allocator" ::: Maybe AllocationCallbacks) -> io SurfaceKHR Source #

vkCreateViSurfaceNN - Create a SurfaceKHR object for a VI layer

Parameters

  • instance is the instance with which to associate the surface.
  • pCreateInfo is a pointer to a ViSurfaceCreateInfoNN structure containing parameters affecting the creation of the surface object.
  • pAllocator is the allocator used for host memory allocated for the surface object when there is no more specific allocator available (see Memory Allocation).
  • pSurface is a pointer to a SurfaceKHR handle in which the created surface object is returned.

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)

  • instance must be a valid Instance handle

Return Codes

Success
Failure

See Also

AllocationCallbacks, Instance, SurfaceKHR, ViSurfaceCreateInfoNN

data ViSurfaceCreateInfoNN Source #

VkViSurfaceCreateInfoNN - Structure specifying parameters of a newly created VI surface object

Valid Usage (Implicit)

See Also

StructureType, ViSurfaceCreateFlagsNN, createViSurfaceNN

Constructors

ViSurfaceCreateInfoNN 

Fields

Instances
Show ViSurfaceCreateInfoNN Source # 
Instance details

Defined in Graphics.Vulkan.Extensions.VK_NN_vi_surface

Storable ViSurfaceCreateInfoNN Source # 
Instance details

Defined in Graphics.Vulkan.Extensions.VK_NN_vi_surface

FromCStruct ViSurfaceCreateInfoNN Source # 
Instance details

Defined in Graphics.Vulkan.Extensions.VK_NN_vi_surface

ToCStruct ViSurfaceCreateInfoNN Source # 
Instance details

Defined in Graphics.Vulkan.Extensions.VK_NN_vi_surface

Zero ViSurfaceCreateInfoNN Source # 
Instance details

Defined in Graphics.Vulkan.Extensions.VK_NN_vi_surface

newtype ViSurfaceCreateFlagsNN Source #

Instances
Eq ViSurfaceCreateFlagsNN Source # 
Instance details

Defined in Graphics.Vulkan.Extensions.VK_NN_vi_surface

Ord ViSurfaceCreateFlagsNN Source # 
Instance details

Defined in Graphics.Vulkan.Extensions.VK_NN_vi_surface

Read ViSurfaceCreateFlagsNN Source # 
Instance details

Defined in Graphics.Vulkan.Extensions.VK_NN_vi_surface

Show ViSurfaceCreateFlagsNN Source # 
Instance details

Defined in Graphics.Vulkan.Extensions.VK_NN_vi_surface

Storable ViSurfaceCreateFlagsNN Source # 
Instance details

Defined in Graphics.Vulkan.Extensions.VK_NN_vi_surface

Bits ViSurfaceCreateFlagsNN Source # 
Instance details

Defined in Graphics.Vulkan.Extensions.VK_NN_vi_surface

Zero ViSurfaceCreateFlagsNN Source # 
Instance details

Defined in Graphics.Vulkan.Extensions.VK_NN_vi_surface

pattern NN_VI_SURFACE_SPEC_VERSION :: forall a. Integral a => a Source #

type NN_VI_SURFACE_EXTENSION_NAME = "VK_NN_vi_surface" Source #

pattern NN_VI_SURFACE_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a Source #

newtype SurfaceKHR Source #

Constructors

SurfaceKHR Word64