| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.Vulkan.Extensions.VK_GOOGLE_display_timing
- pattern VK_STRUCTURE_TYPE_PRESENT_TIMES_INFO_GOOGLE :: VkStructureType
- pattern VK_GOOGLE_DISPLAY_TIMING_SPEC_VERSION :: Integral a => a
- pattern VK_GOOGLE_DISPLAY_TIMING_EXTENSION_NAME :: (Eq a, IsString a) => a
- vkGetRefreshCycleDurationGOOGLE :: ("device" ::: VkDevice) -> ("swapchain" ::: VkSwapchainKHR) -> ("pDisplayTimingProperties" ::: Ptr VkRefreshCycleDurationGOOGLE) -> IO VkResult
- vkGetPastPresentationTimingGOOGLE :: ("device" ::: VkDevice) -> ("swapchain" ::: VkSwapchainKHR) -> ("pPresentationTimingCount" ::: Ptr Word32) -> ("pPresentationTimings" ::: Ptr VkPastPresentationTimingGOOGLE) -> IO VkResult
- data VkRefreshCycleDurationGOOGLE = VkRefreshCycleDurationGOOGLE {}
- data VkPastPresentationTimingGOOGLE = VkPastPresentationTimingGOOGLE {}
- data VkPresentTimesInfoGOOGLE = VkPresentTimesInfoGOOGLE {}
- data VkPresentTimeGOOGLE = VkPresentTimeGOOGLE {}
Documentation
pattern VK_GOOGLE_DISPLAY_TIMING_SPEC_VERSION :: Integral a => a Source #
pattern VK_GOOGLE_DISPLAY_TIMING_EXTENSION_NAME :: (Eq a, IsString a) => a Source #
vkGetRefreshCycleDurationGOOGLE :: ("device" ::: VkDevice) -> ("swapchain" ::: VkSwapchainKHR) -> ("pDisplayTimingProperties" ::: Ptr VkRefreshCycleDurationGOOGLE) -> IO VkResult Source #
vkGetRefreshCycleDurationGOOGLE - Obtain the RC duration of the PE’s display
Parameters
deviceis the device associated withswapchain.
swapchainis the swapchain to obtain the refresh duration for.pDisplayTimingPropertiesis a pointer to an instance of theVkRefreshCycleDurationGOOGLEstructure.
Description
Valid Usage (Implicit)
devicemust be a validVkDevicehandle
swapchainmust be a validVkSwapchainKHRhandlepDisplayTimingPropertiesmust be a valid pointer to aVkRefreshCycleDurationGOOGLEstructure- Both of
device, andswapchainmust have been created, allocated, or retrieved from the sameVkInstance
Host Synchronization
- Host access to
swapchainmust be externally synchronized
Return Codes
- Success
- -
VK_SUCCESS
- Failure
- -
VK_ERROR_DEVICE_LOSTVK_ERROR_SURFACE_LOST_KHR
See Also
vkGetPastPresentationTimingGOOGLE :: ("device" ::: VkDevice) -> ("swapchain" ::: VkSwapchainKHR) -> ("pPresentationTimingCount" ::: Ptr Word32) -> ("pPresentationTimings" ::: Ptr VkPastPresentationTimingGOOGLE) -> IO VkResult Source #
vkGetPastPresentationTimingGOOGLE - Obtain timing of a previously-presented image
Parameters
deviceis the device associated withswapchain.
swapchainis the swapchain to obtain presentation timing information duration for.pPresentationTimingCountis a pointer to an integer related to the number ofVkPastPresentationTimingGOOGLEstructures to query, as described below.pPresentationTimingsis eitherNULLor a pointer to an an array ofVkPastPresentationTimingGOOGLEstructures.
Description
If pPresentationTimings is NULL, then the number of newly-available
timing records for the given swapchain is returned in
pPresentationTimingCount. Otherwise, pPresentationTimingCount must
point to a variable set by the user to the number of elements in the
pPresentationTimings array, and on return the variable is overwritten
with the number of structures actually written to
pPresentationTimings. If the value of pPresentationTimingCount is
less than the number of newly-available timing records, at most
pPresentationTimingCount structures will be written. If
pPresentationTimingCount is smaller than the number of newly-available
timing records for the given swapchain, VK_INCOMPLETE will be
returned instead of VK_SUCCESS to indicate that not all the available
values were returned.
Valid Usage (Implicit)
devicemust be a validVkDevicehandle
swapchainmust be a validVkSwapchainKHRhandlepPresentationTimingCountmust be a valid pointer to auint32_tvalue- If the value referenced by
pPresentationTimingCountis not0, andpPresentationTimingsis notNULL,pPresentationTimingsmust be a valid pointer to an array ofpPresentationTimingCountVkPastPresentationTimingGOOGLEstructures - Both of
device, andswapchainmust have been created, allocated, or retrieved from the sameVkInstance
Host Synchronization
- Host access to
swapchainmust be externally synchronized
Return Codes
- Success
- -
VK_SUCCESSVK_INCOMPLETE
- Failure
- -
VK_ERROR_DEVICE_LOSTVK_ERROR_OUT_OF_DATE_KHR
VK_ERROR_SURFACE_LOST_KHR
See Also
data VkRefreshCycleDurationGOOGLE Source #
VkRefreshCycleDurationGOOGLE - Structure containing the RC duration of a display
Description
See Also
Constructors
| VkRefreshCycleDurationGOOGLE | |
Fields
| |
data VkPastPresentationTimingGOOGLE Source #
VkPastPresentationTimingGOOGLE - Structure containing timing information about a previously-presented image
Description
The results for a given swapchain and presentID are only returned
once from vkGetPastPresentationTimingGOOGLE.
The application can use the VkPastPresentationTimingGOOGLE values to
occasionally adjust its timing. For example, if actualPresentTime is
later than expected (e.g. one refreshDuration late), the application
may increase its target IPD to a higher multiple of refreshDuration
(e.g. decrease its frame rate from 60Hz to 30Hz). If actualPresentTime
and earliestPresentTime are consistently different, and if
presentMargin is consistently large enough, the application may
decrease its target IPD to a smaller multiple of refreshDuration (e.g.
increase its frame rate from 30Hz to 60Hz). If actualPresentTime and
earliestPresentTime are same, and if presentMargin is consistently
high, the application may delay the start of its input-render-present
loop in order to decrease the latency between user input and the
corresponding present (always leaving some margin in case a new image
takes longer to render than the previous image). An application that
desires its target IPD to always be the same as refreshDuration, can
also adjust features until actualPresentTime is never late and
presentMargin is satisfactory.
See Also
Constructors
| VkPastPresentationTimingGOOGLE | |
Fields
| |
data VkPresentTimesInfoGOOGLE Source #
VkPresentTimesInfoGOOGLE - The earliest time each image should be presented
Description
Valid Usage
swapchainCountmust be the same value asVkPresentInfoKHR::swapchainCount, whereVkPresentInfoKHRis in thepNextchain of thisVkPresentTimesInfoGOOGLEstructure.
Valid Usage (Implicit)
sTypemust beVK_STRUCTURE_TYPE_PRESENT_TIMES_INFO_GOOGLE
- If
pTimesis notNULL,pTimesmust be a valid pointer to an array ofswapchainCountVkPresentTimeGOOGLEstructures swapchainCountmust be greater than0
See Also
Constructors
| VkPresentTimesInfoGOOGLE | |
Fields
| |
data VkPresentTimeGOOGLE Source #
VkPresentTimeGOOGLE - The earliest time image should be presented
Description
See Also
Constructors
| VkPresentTimeGOOGLE | |
Fields
| |