Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Wl_display
- data Wl_surface
- newtype VkWaylandSurfaceCreateFlagsKHR = VkWaylandSurfaceCreateFlagsKHR VkFlags
- pattern VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR :: VkStructureType
- pattern VK_KHR_WAYLAND_SURFACE_SPEC_VERSION :: Integral a => a
- pattern VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME :: (Eq a, IsString a) => a
- vkCreateWaylandSurfaceKHR :: ("instance" ::: VkInstance) -> ("pCreateInfo" ::: Ptr VkWaylandSurfaceCreateInfoKHR) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pSurface" ::: Ptr VkSurfaceKHR) -> IO VkResult
- vkGetPhysicalDeviceWaylandPresentationSupportKHR :: ("physicalDevice" ::: VkPhysicalDevice) -> ("queueFamilyIndex" ::: Word32) -> ("display" ::: Ptr Wl_display) -> IO VkBool32
- data VkWaylandSurfaceCreateInfoKHR = VkWaylandSurfaceCreateInfoKHR {}
Documentation
data Wl_display Source #
Opaque data
data Wl_surface Source #
Opaque data
newtype VkWaylandSurfaceCreateFlagsKHR Source #
Instances
pattern VK_KHR_WAYLAND_SURFACE_SPEC_VERSION :: Integral a => a Source #
pattern VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME :: (Eq a, IsString a) => a Source #
vkCreateWaylandSurfaceKHR :: ("instance" ::: VkInstance) -> ("pCreateInfo" ::: Ptr VkWaylandSurfaceCreateInfoKHR) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pSurface" ::: Ptr VkSurfaceKHR) -> IO VkResult Source #
vkCreateWaylandSurfaceKHR - Create a
VkSurfaceKHR
object for a
Wayland window
Parameters
instance
is the instance to associate the surface with.
pCreateInfo
is a pointer to an instance of theVkWaylandSurfaceCreateInfoKHR
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 validVkWaylandSurfaceCreateInfoKHR
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
,
VkWaylandSurfaceCreateInfoKHR
vkGetPhysicalDeviceWaylandPresentationSupportKHR :: ("physicalDevice" ::: VkPhysicalDevice) -> ("queueFamilyIndex" ::: Word32) -> ("display" ::: Ptr Wl_display) -> IO VkBool32 Source #
vkGetPhysicalDeviceWaylandPresentationSupportKHR - Query physical device for presentation to Wayland
Parameters
physicalDevice
is the physical device.
queueFamilyIndex
is the queue family index.display
is a pointer to thewl_display
associated with a Wayland compositor.
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
display
must be a valid pointer to awl_display
value
See Also
data VkWaylandSurfaceCreateInfoKHR Source #
VkWaylandSurfaceCreateInfoKHR - Structure specifying parameters of a newly created Wayland surface object
Valid Usage
display
must point to a valid Waylandwl_display
.
surface
must point to a valid Waylandwl_surface
.
Valid Usage (Implicit)
sType
must beVK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR
pNext
must beNULL
flags
must be0
See Also
VkStructureType
,
VkWaylandSurfaceCreateFlagsKHR
, vkCreateWaylandSurfaceKHR
VkWaylandSurfaceCreateInfoKHR | |
|