Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type HINSTANCE = Ptr ()
- type HWND = Ptr ()
- newtype VkWin32SurfaceCreateFlagsKHR = VkWin32SurfaceCreateFlagsKHR VkFlags
- pattern VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR :: VkStructureType
- pattern VK_KHR_WIN32_SURFACE_SPEC_VERSION :: Integral a => a
- pattern VK_KHR_WIN32_SURFACE_EXTENSION_NAME :: (Eq a, IsString a) => a
- vkCreateWin32SurfaceKHR :: ("instance" ::: VkInstance) -> ("pCreateInfo" ::: Ptr VkWin32SurfaceCreateInfoKHR) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pSurface" ::: Ptr VkSurfaceKHR) -> IO VkResult
- vkGetPhysicalDeviceWin32PresentationSupportKHR :: ("physicalDevice" ::: VkPhysicalDevice) -> ("queueFamilyIndex" ::: Word32) -> IO VkBool32
- data VkWin32SurfaceCreateInfoKHR = VkWin32SurfaceCreateInfoKHR {}
Documentation
newtype VkWin32SurfaceCreateFlagsKHR Source #
Instances
pattern VK_KHR_WIN32_SURFACE_SPEC_VERSION :: Integral a => a Source #
pattern VK_KHR_WIN32_SURFACE_EXTENSION_NAME :: (Eq a, IsString a) => a Source #
vkCreateWin32SurfaceKHR :: ("instance" ::: VkInstance) -> ("pCreateInfo" ::: Ptr VkWin32SurfaceCreateInfoKHR) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pSurface" ::: Ptr VkSurfaceKHR) -> IO VkResult Source #
vkCreateWin32SurfaceKHR - Create a
VkSurfaceKHR
object for an
Win32 native window
Parameters
instance
is the instance to associate the surface with.
pCreateInfo
is a pointer to an instance of theVkWin32SurfaceCreateInfoKHR
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
points to aVkSurfaceKHR
handle in which the created surface object is returned.
Valid Usage (Implicit)
instance
must be a validVkInstance
handle
pCreateInfo
must be a valid pointer to a validVkWin32SurfaceCreateInfoKHR
structure- If
pAllocator
is notNULL
,pAllocator
must be a valid pointer to a validVkAllocationCallbacks
structure pSurface
must be a valid pointer to aVkSurfaceKHR
handle
Return Codes
[Success]
- VK_SUCCESS
[Failure]
- VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
See Also
VkAllocationCallbacks
,
VkInstance
,
VkSurfaceKHR
,
VkWin32SurfaceCreateInfoKHR
vkGetPhysicalDeviceWin32PresentationSupportKHR :: ("physicalDevice" ::: VkPhysicalDevice) -> ("queueFamilyIndex" ::: Word32) -> IO VkBool32 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
queueFamilyIndex
must be less thanpQueueFamilyPropertyCount
returned byvkGetPhysicalDeviceQueueFamilyProperties
for the givenphysicalDevice
Valid Usage (Implicit)
physicalDevice
must be a validVkPhysicalDevice
handle
See Also
data VkWin32SurfaceCreateInfoKHR Source #
VkWin32SurfaceCreateInfoKHR - Structure specifying parameters of a newly created Win32 surface object
Valid Usage
hinstance
must be a valid Win32HINSTANCE
.
hwnd
must be a valid Win32HWND
.
Valid Usage (Implicit)
sType
must beVK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR
pNext
must beNULL
flags
must be0
See Also
VkStructureType
,
VkWin32SurfaceCreateFlagsKHR
, vkCreateWin32SurfaceKHR
VkWin32SurfaceCreateInfoKHR | |
|