vulkan-2.0.0.1: Bindings to the Vulkan graphics API.

Safe HaskellNone
LanguageHaskell2010

Graphics.Vulkan.Extensions.VK_EXT_display_surface_counter

Synopsis

Documentation

newtype VkSurfaceCounterFlagBitsEXT Source #

VkSurfaceCounterFlagBitsEXT - Surface-relative counter types

See Also

VkSurfaceCounterFlagsEXT, vkGetSwapchainCounterEXT

Instances
Eq VkSurfaceCounterFlagBitsEXT Source # 
Instance details
Ord VkSurfaceCounterFlagBitsEXT Source # 
Instance details
Read VkSurfaceCounterFlagBitsEXT Source # 
Instance details
Show VkSurfaceCounterFlagBitsEXT Source # 
Instance details
Storable VkSurfaceCounterFlagBitsEXT Source # 
Instance details
Bits VkSurfaceCounterFlagBitsEXT Source # 
Instance details

Methods

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

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

xor :: VkSurfaceCounterFlagBitsEXT -> VkSurfaceCounterFlagBitsEXT -> VkSurfaceCounterFlagBitsEXT #

complement :: VkSurfaceCounterFlagBitsEXT -> VkSurfaceCounterFlagBitsEXT #

shift :: VkSurfaceCounterFlagBitsEXT -> Int -> VkSurfaceCounterFlagBitsEXT #

rotate :: VkSurfaceCounterFlagBitsEXT -> Int -> VkSurfaceCounterFlagBitsEXT #

zeroBits :: VkSurfaceCounterFlagBitsEXT #

bit :: Int -> VkSurfaceCounterFlagBitsEXT #

setBit :: VkSurfaceCounterFlagBitsEXT -> Int -> VkSurfaceCounterFlagBitsEXT #

clearBit :: VkSurfaceCounterFlagBitsEXT -> Int -> VkSurfaceCounterFlagBitsEXT #

complementBit :: VkSurfaceCounterFlagBitsEXT -> Int -> VkSurfaceCounterFlagBitsEXT #

testBit :: VkSurfaceCounterFlagBitsEXT -> Int -> Bool #

bitSizeMaybe :: VkSurfaceCounterFlagBitsEXT -> Maybe Int #

bitSize :: VkSurfaceCounterFlagBitsEXT -> Int #

isSigned :: VkSurfaceCounterFlagBitsEXT -> Bool #

shiftL :: VkSurfaceCounterFlagBitsEXT -> Int -> VkSurfaceCounterFlagBitsEXT #

unsafeShiftL :: VkSurfaceCounterFlagBitsEXT -> Int -> VkSurfaceCounterFlagBitsEXT #

shiftR :: VkSurfaceCounterFlagBitsEXT -> Int -> VkSurfaceCounterFlagBitsEXT #

unsafeShiftR :: VkSurfaceCounterFlagBitsEXT -> Int -> VkSurfaceCounterFlagBitsEXT #

rotateL :: VkSurfaceCounterFlagBitsEXT -> Int -> VkSurfaceCounterFlagBitsEXT #

rotateR :: VkSurfaceCounterFlagBitsEXT -> Int -> VkSurfaceCounterFlagBitsEXT #

popCount :: VkSurfaceCounterFlagBitsEXT -> Int #

FiniteBits VkSurfaceCounterFlagBitsEXT Source # 
Instance details

pattern VK_SURFACE_COUNTER_VBLANK_EXT :: VkSurfaceCounterFlagBitsEXT Source #

VK_SURFACE_COUNTER_VBLANK_EXT specifies a counter incrementing once every time a vertical blanking period occurs on the display associated with the surface.

vkGetPhysicalDeviceSurfaceCapabilities2EXT :: ("physicalDevice" ::: VkPhysicalDevice) -> ("surface" ::: VkSurfaceKHR) -> ("pSurfaceCapabilities" ::: Ptr VkSurfaceCapabilities2EXT) -> IO VkResult Source #

vkGetPhysicalDeviceSurfaceCapabilities2EXT - Query surface capabilities

Parameters

  • physicalDevice is the physical device that will be associated with the swapchain to be created, as described for vkCreateSwapchainKHR.
  • surface is the surface that will be associated with the swapchain.
  • pSurfaceCapabilities is a pointer to an instance of the VkSurfaceCapabilities2EXT structure in which the capabilities are returned.

Description

vkGetPhysicalDeviceSurfaceCapabilities2EXT behaves similarly to vkGetPhysicalDeviceSurfaceCapabilitiesKHR, with the ability to return extended information by adding extension structures to the pNext chain of its pSurfaceCapabilities parameter.

Valid Usage (Implicit)

  • physicalDevice must be a valid VkPhysicalDevice handle
  • surface must be a valid VkSurfaceKHR handle
  • pSurfaceCapabilities must be a valid pointer to a VkSurfaceCapabilities2EXT structure
  • Both of physicalDevice, and surface must have been created, allocated, or retrieved from the same VkInstance

Return Codes

[Success] - VK_SUCCESS

[Failure] - VK_ERROR_OUT_OF_HOST_MEMORY

  • VK_ERROR_OUT_OF_DEVICE_MEMORY
  • VK_ERROR_SURFACE_LOST_KHR

See Also

VkPhysicalDevice, VkSurfaceCapabilities2EXT, VkSurfaceKHR

data VkSurfaceCapabilities2EXT Source #

VkSurfaceCapabilities2EXT - Structure describing capabilities of a surface

Members

All members of VkSurfaceCapabilities2EXT are identical to the corresponding members of VkSurfaceCapabilitiesKHR where one exists. The remaining members are:

Description

  • sType is the type of this structure.
  • pNext is NULL or a pointer to an extension-specific structure.
  • supportedSurfaceCounters is a bitmask of VkSurfaceCounterFlagBitsEXT indicating the supported surface counter types.

Valid Usage

  • supportedSurfaceCounters must not include VK_SURFACE_COUNTER_VBLANK_EXT unless the surface queried is a display surface.

Valid Usage (Implicit)

  • sType must be VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES_2_EXT
  • pNext must be NULL

See Also

VkCompositeAlphaFlagsKHR, VkExtent2D, VkImageUsageFlags, VkStructureType, VkSurfaceCounterFlagsEXT, VkSurfaceTransformFlagBitsKHR, VkSurfaceTransformFlagsKHR, vkGetPhysicalDeviceSurfaceCapabilities2EXT

type VkSurfaceCounterFlagsEXT = VkSurfaceCounterFlagBitsEXT Source #

VkSurfaceCounterFlagsEXT - Bitmask of VkSurfaceCounterFlagBitsEXT

Description

VkSurfaceCounterFlagsEXT is a bitmask type for setting a mask of zero or more VkSurfaceCounterFlagBitsEXT.

See Also

VkSurfaceCapabilities2EXT, VkSurfaceCounterFlagBitsEXT, VkSwapchainCounterCreateInfoEXT