Repository navigation
Expand file tree
/
Copy pathvk_utils.h
More file actions
41 lines (33 loc) · 1.52 KB
/
Copy pathvk_utils.h
File metadata and controls
41 lines (33 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//==============================================================================
// Copyright Advanced Micro Devices, Inc. All rights reserved.
/// @author AMD Developer Tools Team
/// @file
/// @brief Vulkan utility functions declaration
//==============================================================================
#ifndef GPU_PERF_API_VK_VK_UTILS_H_
#define GPU_PERF_API_VK_VK_UTILS_H_
#include "gpu_performance_api/gpu_perf_api_types.h"
#include "gpu_perf_api_vk/vk_includes.h"
namespace vk_utils
{
#ifdef _DEBUG
/// @brief For debugging only: Prints out information about the QueueFamilyTimestamps bits.
///
/// @param [in] vk_physical_device The physical device to which the queue family belongs.
void DebugReportQueueFamilyTimestampBits(VkPhysicalDevice vk_physical_device);
#endif
/// @brief Checks whether the device is supported for profiling or not.
///
/// @param [in] vk_physical_device Vulkan physical device.
///
/// @return True if device is supported otherwise false.
bool IsDeviceSupportedForProfiling(VkPhysicalDevice vk_physical_device);
/// @brief Gets the time stamp frequency of Vulkan device to convert cycles to milliseconds.
///
/// @param [in] vk_physical_device Device pointer.
/// @param [out] timestamp_frequency The timestamp frequency.
///
/// @return True if timestamp frequency access succeeded, otherwise false.
bool GetTimestampFrequency(VkPhysicalDevice vk_physical_device, GpaUInt64& timestamp_frequency);
} // namespace vk_utils
#endif