Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- createWin32SurfaceKHR :: forall io. MonadIO io => Instance -> Win32SurfaceCreateInfoKHR -> ("allocator" ::: Maybe AllocationCallbacks) -> io SurfaceKHR
- getPhysicalDeviceWin32PresentationSupportKHR :: forall io. MonadIO io => PhysicalDevice -> ("queueFamilyIndex" ::: Word32) -> io Bool
- data Win32SurfaceCreateInfoKHR = Win32SurfaceCreateInfoKHR {}
- newtype Win32SurfaceCreateFlagsKHR = Win32SurfaceCreateFlagsKHR Flags
- type KHR_WIN32_SURFACE_SPEC_VERSION = 6
- pattern KHR_WIN32_SURFACE_SPEC_VERSION :: forall a. Integral a => a
- type KHR_WIN32_SURFACE_EXTENSION_NAME = "VK_KHR_win32_surface"
- pattern KHR_WIN32_SURFACE_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a
- newtype SurfaceKHR = SurfaceKHR Word64
- type HINSTANCE = Ptr ()
- type HWND = Ptr ()
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 aWin32SurfaceCreateInfoKHR
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 aSurfaceKHR
handle in which the created surface object is returned.
Valid Usage (Implicit)
instance
must be a validInstance
handle
pCreateInfo
must be a valid pointer to a validWin32SurfaceCreateInfoKHR
structure- If
pAllocator
is notNULL
,pAllocator
must be a valid pointer to a validAllocationCallbacks
structure pSurface
must be a valid pointer to aSurfaceKHR
handle
Return Codes
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
data Win32SurfaceCreateInfoKHR Source #
VkWin32SurfaceCreateInfoKHR - Structure specifying parameters of a newly created Win32 surface object
Valid Usage (Implicit)
See Also
StructureType
,
Win32SurfaceCreateFlagsKHR
, createWin32SurfaceKHR
Instances
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
Instances
type KHR_WIN32_SURFACE_SPEC_VERSION = 6 Source #
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 #
VkSurfaceKHR - Opaque handle to a surface object
Description
The VK_KHR_surface
extension declares the SurfaceKHR
object, and
provides a function for destroying SurfaceKHR
objects. Separate
platform-specific extensions each provide a function for creating a
SurfaceKHR
object for the respective platform. From the application’s
perspective this is an opaque handle, just like the handles of other
Vulkan objects.
See Also
PhysicalDeviceSurfaceInfo2KHR
,
SwapchainCreateInfoKHR
,
createAndroidSurfaceKHR
,
createDisplayPlaneSurfaceKHR
,
createHeadlessSurfaceEXT
,
createIOSSurfaceMVK
,
createImagePipeSurfaceFUCHSIA
,
createMacOSSurfaceMVK
,
createMetalSurfaceEXT
,
createStreamDescriptorSurfaceGGP
,
createViSurfaceNN
,
createWaylandSurfaceKHR
,
createWin32SurfaceKHR
,
createXcbSurfaceKHR
,
createXlibSurfaceKHR
,
destroySurfaceKHR
,
getDeviceGroupSurfacePresentModesKHR
,
getPhysicalDevicePresentRectanglesKHR
,
getPhysicalDeviceSurfaceCapabilities2EXT
,
getPhysicalDeviceSurfaceCapabilitiesKHR
,
getPhysicalDeviceSurfaceFormatsKHR
,
getPhysicalDeviceSurfacePresentModesKHR
,
getPhysicalDeviceSurfaceSupportKHR