vulkan-3.6.11: Bindings to the Vulkan graphics API.
Safe HaskellNone
LanguageHaskell2010

Vulkan.Extensions.VK_NN_vi_surface

Synopsis

Documentation

createViSurfaceNN Source #

Arguments

:: forall io. MonadIO io 
=> Instance

instance is the instance with which to associate the surface.

-> ViSurfaceCreateInfoNN

pCreateInfo is a pointer to a ViSurfaceCreateInfoNN structure containing parameters affecting the creation of the surface object.

-> ("allocator" ::: Maybe AllocationCallbacks)

pAllocator is 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)

  • 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

  • flags :: ViSurfaceCreateFlagsNN

    flags is reserved for future use.

    flags must be 0

  • window :: Ptr ()

    window is the nn::vi::NativeWindowHandle for the nn::vi::Layer with which to associate the surface.

    window must be a valid nn::vi::NativeWindowHandle

Instances

Instances details
Show ViSurfaceCreateInfoNN Source # 
Instance details

Defined in Vulkan.Extensions.VK_NN_vi_surface

Storable ViSurfaceCreateInfoNN Source # 
Instance details

Defined in Vulkan.Extensions.VK_NN_vi_surface

FromCStruct ViSurfaceCreateInfoNN Source # 
Instance details

Defined in Vulkan.Extensions.VK_NN_vi_surface

ToCStruct ViSurfaceCreateInfoNN Source # 
Instance details

Defined in Vulkan.Extensions.VK_NN_vi_surface

Zero ViSurfaceCreateInfoNN Source # 
Instance details

Defined in Vulkan.Extensions.VK_NN_vi_surface

newtype ViSurfaceCreateFlagsNN Source #

VkViSurfaceCreateFlagsNN - Reserved for future use

Description

ViSurfaceCreateFlagsNN is a bitmask type for setting a mask, but is currently reserved for future use.

See Also

ViSurfaceCreateInfoNN

Instances

Instances details
Eq ViSurfaceCreateFlagsNN Source # 
Instance details

Defined in Vulkan.Extensions.VK_NN_vi_surface

Ord ViSurfaceCreateFlagsNN Source # 
Instance details

Defined in Vulkan.Extensions.VK_NN_vi_surface

Read ViSurfaceCreateFlagsNN Source # 
Instance details

Defined in Vulkan.Extensions.VK_NN_vi_surface

Show ViSurfaceCreateFlagsNN Source # 
Instance details

Defined in Vulkan.Extensions.VK_NN_vi_surface

Storable ViSurfaceCreateFlagsNN Source # 
Instance details

Defined in Vulkan.Extensions.VK_NN_vi_surface

Bits ViSurfaceCreateFlagsNN Source # 
Instance details

Defined in Vulkan.Extensions.VK_NN_vi_surface

Zero ViSurfaceCreateFlagsNN Source # 
Instance details

Defined in 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 

Instances

Instances details
Eq SurfaceKHR Source # 
Instance details

Defined in Vulkan.Extensions.Handles

Ord SurfaceKHR Source # 
Instance details

Defined in Vulkan.Extensions.Handles

Show SurfaceKHR Source # 
Instance details

Defined in Vulkan.Extensions.Handles

Storable SurfaceKHR Source # 
Instance details

Defined in Vulkan.Extensions.Handles

Zero SurfaceKHR Source # 
Instance details

Defined in Vulkan.Extensions.Handles

HasObjectType SurfaceKHR Source # 
Instance details

Defined in Vulkan.Extensions.Handles

IsHandle SurfaceKHR Source # 
Instance details

Defined in Vulkan.Extensions.Handles