vulkan-3.2.0.0: Bindings to the Vulkan graphics API.

Safe HaskellNone
LanguageHaskell2010

Graphics.Vulkan.Extensions.VK_KHR_win32_surface

Synopsis

Documentation

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

vkCreateWin32SurfaceKHR - Create a SurfaceKHR object for an Win32 native window

Parameters

  • instance is the instance to associate the surface with.
  • pCreateInfo is a pointer to a Win32SurfaceCreateInfoKHR 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.

Valid Usage (Implicit)

  • instance must be a valid Instance handle

Return Codes

Success
Failure

See Also

AllocationCallbacks, Instance, SurfaceKHR, Win32SurfaceCreateInfoKHR

getPhysicalDeviceWin32PresentationSupportKHR :: forall io. MonadIO io => PhysicalDevice -> ("queueFamilyIndex" ::: Word32) -> io Bool Source #

vkGetPhysicalDeviceWin32PresentationSupportKHR - query queue family support for presentation on a Win32 display

Parameters

  • physicalDevice is the physical device.
  • queueFamilyIndex is the queue family index.

Description

This platform-specific function can be called prior to creating a surface.

Valid Usage (Implicit)

See Also

PhysicalDevice

data Win32SurfaceCreateInfoKHR Source #

VkWin32SurfaceCreateInfoKHR - Structure specifying parameters of a newly created Win32 surface object

Valid Usage (Implicit)

See Also

StructureType, Win32SurfaceCreateFlagsKHR, createWin32SurfaceKHR

Constructors

Win32SurfaceCreateInfoKHR 

Fields

Instances
Show Win32SurfaceCreateInfoKHR Source # 
Instance details

Defined in Graphics.Vulkan.Extensions.VK_KHR_win32_surface

Storable Win32SurfaceCreateInfoKHR Source # 
Instance details

Defined in Graphics.Vulkan.Extensions.VK_KHR_win32_surface

FromCStruct Win32SurfaceCreateInfoKHR Source # 
Instance details

Defined in Graphics.Vulkan.Extensions.VK_KHR_win32_surface

ToCStruct Win32SurfaceCreateInfoKHR Source # 
Instance details

Defined in Graphics.Vulkan.Extensions.VK_KHR_win32_surface

Zero Win32SurfaceCreateInfoKHR Source # 
Instance details

Defined in Graphics.Vulkan.Extensions.VK_KHR_win32_surface

newtype Win32SurfaceCreateFlagsKHR Source #

VkWin32SurfaceCreateFlagsKHR - Reserved for future use

Description

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

See Also

Win32SurfaceCreateInfoKHR

Instances
Eq Win32SurfaceCreateFlagsKHR Source # 
Instance details

Defined in Graphics.Vulkan.Extensions.VK_KHR_win32_surface

Ord Win32SurfaceCreateFlagsKHR Source # 
Instance details

Defined in Graphics.Vulkan.Extensions.VK_KHR_win32_surface

Read Win32SurfaceCreateFlagsKHR Source # 
Instance details

Defined in Graphics.Vulkan.Extensions.VK_KHR_win32_surface

Show Win32SurfaceCreateFlagsKHR Source # 
Instance details

Defined in Graphics.Vulkan.Extensions.VK_KHR_win32_surface

Storable Win32SurfaceCreateFlagsKHR Source # 
Instance details

Defined in Graphics.Vulkan.Extensions.VK_KHR_win32_surface

Bits Win32SurfaceCreateFlagsKHR Source # 
Instance details

Defined in Graphics.Vulkan.Extensions.VK_KHR_win32_surface

Methods

(.&.) :: Win32SurfaceCreateFlagsKHR -> Win32SurfaceCreateFlagsKHR -> Win32SurfaceCreateFlagsKHR #

(.|.) :: Win32SurfaceCreateFlagsKHR -> Win32SurfaceCreateFlagsKHR -> Win32SurfaceCreateFlagsKHR #

xor :: Win32SurfaceCreateFlagsKHR -> Win32SurfaceCreateFlagsKHR -> Win32SurfaceCreateFlagsKHR #

complement :: Win32SurfaceCreateFlagsKHR -> Win32SurfaceCreateFlagsKHR #

shift :: Win32SurfaceCreateFlagsKHR -> Int -> Win32SurfaceCreateFlagsKHR #

rotate :: Win32SurfaceCreateFlagsKHR -> Int -> Win32SurfaceCreateFlagsKHR #

zeroBits :: Win32SurfaceCreateFlagsKHR #

bit :: Int -> Win32SurfaceCreateFlagsKHR #

setBit :: Win32SurfaceCreateFlagsKHR -> Int -> Win32SurfaceCreateFlagsKHR #

clearBit :: Win32SurfaceCreateFlagsKHR -> Int -> Win32SurfaceCreateFlagsKHR #

complementBit :: Win32SurfaceCreateFlagsKHR -> Int -> Win32SurfaceCreateFlagsKHR #

testBit :: Win32SurfaceCreateFlagsKHR -> Int -> Bool #

bitSizeMaybe :: Win32SurfaceCreateFlagsKHR -> Maybe Int #

bitSize :: Win32SurfaceCreateFlagsKHR -> Int #

isSigned :: Win32SurfaceCreateFlagsKHR -> Bool #

shiftL :: Win32SurfaceCreateFlagsKHR -> Int -> Win32SurfaceCreateFlagsKHR #

unsafeShiftL :: Win32SurfaceCreateFlagsKHR -> Int -> Win32SurfaceCreateFlagsKHR #

shiftR :: Win32SurfaceCreateFlagsKHR -> Int -> Win32SurfaceCreateFlagsKHR #

unsafeShiftR :: Win32SurfaceCreateFlagsKHR -> Int -> Win32SurfaceCreateFlagsKHR #

rotateL :: Win32SurfaceCreateFlagsKHR -> Int -> Win32SurfaceCreateFlagsKHR #

rotateR :: Win32SurfaceCreateFlagsKHR -> Int -> Win32SurfaceCreateFlagsKHR #

popCount :: Win32SurfaceCreateFlagsKHR -> Int #

Zero Win32SurfaceCreateFlagsKHR Source # 
Instance details

Defined in Graphics.Vulkan.Extensions.VK_KHR_win32_surface

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

type KHR_WIN32_SURFACE_EXTENSION_NAME = "VK_KHR_win32_surface" Source #

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

newtype SurfaceKHR Source #

Constructors

SurfaceKHR Word64 

type HINSTANCE = Ptr () Source #

type HWND = Ptr () Source #