| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.Vulkan.Extensions.VK_KHR_win32_surface
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 #
Constructors
| VkWin32SurfaceCreateFlagsKHR VkFlags |
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
instanceis the instance to associate the surface with.
pCreateInfois a pointer to an instance of theVkWin32SurfaceCreateInfoKHRstructure containing parameters affecting the creation of the surface object.pAllocatoris the allocator used for host memory allocated for the surface object when there is no more specific allocator available (see Memory Allocation).pSurfacepoints to aVkSurfaceKHRhandle in which the created surface object is returned.
Valid Usage (Implicit)
instancemust be a validVkInstancehandle
pCreateInfomust be a valid pointer to a validVkWin32SurfaceCreateInfoKHRstructure- If
pAllocatoris notNULL,pAllocatormust be a valid pointer to a validVkAllocationCallbacksstructure pSurfacemust be a valid pointer to aVkSurfaceKHRhandle
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
physicalDeviceis the physical device.
queueFamilyIndexis the queue family index.
Description
This platform-specific function can be called prior to creating a surface.
Valid Usage
queueFamilyIndexmust be less thanpQueueFamilyPropertyCountreturned byvkGetPhysicalDeviceQueueFamilyPropertiesfor the givenphysicalDevice
Valid Usage (Implicit)
physicalDevicemust be a validVkPhysicalDevicehandle
See Also
data VkWin32SurfaceCreateInfoKHR Source #
VkWin32SurfaceCreateInfoKHR - Structure specifying parameters of a newly created Win32 surface object
Valid Usage
hinstancemust be a valid Win32HINSTANCE.
hwndmust be a valid Win32HWND.
Valid Usage (Implicit)
sTypemust beVK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR
pNextmust beNULLflagsmust be0
See Also
VkStructureType,
VkWin32SurfaceCreateFlagsKHR, vkCreateWin32SurfaceKHR
Constructors
| VkWin32SurfaceCreateInfoKHR | |
Fields
| |