Function Prototype
vkGetGpaDeviceClockInfoAMD
Getting device clocks and ratios
To query the GPU clock current values and their ratios to their maximums, call:
VkResult vkGetGpaDeviceClockInfoAMD(
VkDevice device,
VkGpaDeviceGetClockInfoAMD* pInfo);
pub fn get_gpa_device_clock_info_amd(
device: vk::Device,
p_info: *mut vk::GpaDeviceGetClockInfoAMD,
) -> vk::Result;
deviceis the logical device that sets the clocks.pInfois a pointer to a VkGpaDeviceGetClockInfoAMD structure in which the clock values are returned.
Valid Usage (Implicit)
VUID-vkGetGpaDeviceClockInfoAMD-device-parameter
device must be a valid VkDevice handle
VUID-vkGetGpaDeviceClockInfoAMD-pInfo-parameter
pInfo must be a valid pointer to a VkGpaDeviceGetClockInfoAMD structure
Parent
VK_AMD_gpa_interfaceType
Function Prototype
Return Values
VK_SUCCESS
VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
VK_ERROR_UNKNOWN
VK_ERROR_VALIDATION_FAILED