Structures
VkDeviceFaultAddressInfoKHR
Structure specifying GPU virtual address information
The VkDeviceFaultAddressInfoKHR structure is defined as:
typedef struct VkDeviceFaultAddressInfoKHR {
VkDeviceFaultAddressTypeKHR addressType;
VkDeviceAddress reportedAddress;
VkDeviceSize addressPrecision;
} VkDeviceFaultAddressInfoKHR;
pub struct DeviceFaultAddressInfoKHR {
address_type: vk::DeviceFaultAddressTypeKHR,
reported_address: vk::DeviceAddress,
address_precision: vk::DeviceSize,
}
typedef VkDeviceFaultAddressInfoKHR VkDeviceFaultAddressInfoEXT;
type DeviceFaultAddressInfoEXT = vk::DeviceFaultAddressInfoKHR;
addressTypeis either the type of memory operation that triggered a page fault, or the type of association between an instruction pointer and a fault.reportedAddressis the GPU virtual address recorded by the device.addressPrecisionis a power of two value that specifies how precisely the device can report the address.
The combination of reportedAddress and addressPrecision allow
the possible range of addresses to be calculated, such that:
lower_address = (pInfo->reportedAddress & ~(pInfo->addressPrecision-1))
upper_address = (pInfo->reportedAddress | (pInfo->addressPrecision-1))
It is valid for the
reportedAddress to contain a more precise address
than indicated by addressPrecision.
In this case, the value of reportedAddress should be treated as an
additional hint as to the value of the address that triggered the page
fault, or to the value of an instruction pointer.Parent
VK_KHR_device_faultType
Structures