getDeviceFaultReportsKHR :: MonadIO io=> Devicedeviceis the logical device from which to query the diagnostic fault information.->"timeout"
::: Word64timeoutis the timeout period in units of nanoseconds.timeoutis adjusted to the closest value allowed by the implementation-dependent timeout accuracy, which may be substantially longer than one nanosecond, and may be longer than the requested period.-> io (Result,"faultInfo"
::: Vector DeviceFaultInfoKHR)
vkGetDeviceFaultReportsKHR - Reports fault information for the specified device
Description
If at least one fault report is available when
getDeviceFaultReportsKHR is called, then getDeviceFaultReportsKHR
returns immediately. If no faults have occurred at the time
getDeviceFaultReportsKHR is called, then getDeviceFaultReportsKHR
will block and wait until a fault occurs and a report becomes available
or until the timeout has expired, whichever is sooner.
If timeout is zero, then getDeviceFaultReportsKHR does not wait, but
simply returns the current fault count and reports.
TIMEOUT will be returned in this case if no
faults have occurred, even though no actual wait was performed.
If a fault has occurred before the timeout has expired,
getDeviceFaultReportsKHR returns SUCCESS.
Otherwise, getDeviceFaultReportsKHR returns
TIMEOUT after the timeout has expired.
If pFaultInfo is NULL, then the number of fault reports available is
returned in pFaultCount. Otherwise, pFaultCount must point to a
variable set by the application to the number of elements in the
pFaultInfo array, and on return the variable is overwritten with the
number of handles actually written to pFaultInfo. If pFaultCount is
less than the number of fault reports available, at most pFaultCount
structures will be written, and INCOMPLETE
will be returned instead of SUCCESS, to
indicate that not all the available fault reports were returned.
If more than one fault report is available, they will be returned in
order of occurrence via pFaultInfo.
Each individual fault report is returned exactly once.
getDeviceFaultReportsKHR() may be invoked in parallel on different
threads, in which case each invocation for a given device will return
a unique set of reports. No fault report being returned to more than one
invocation.
Valid Usage (Implicit)
devicemust be a valid Device handle
pFaultCountsmust be a valid pointer to auint32_tvalueIf
pFaultInfois notNULL,pFaultInfomust be a valid pointer to an array ofpFaultCountsDeviceFaultInfoKHR structuresIf
pFaultInfois notNULL, the value referenced bypFaultCountsmust be greater than0