-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathdx_utils.h
27 lines (21 loc) · 1.01 KB
/
dx_utils.h
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
//==============================================================================
// Copyright (c) 2015-2021 Advanced Micro Devices, Inc. All rights reserved.
/// @author AMD Developer Tools Team
/// @file
/// @brief Common DX utility function declarations
//==============================================================================
#ifndef _GPA_DX_DX_UTILS_H_
#define _GPA_DX_DX_UTILS_H_
#include <DXGI.h>
#include "gpu_performance_api/gpu_perf_api_types.h"
#include "logging.h"
/// Get the adapter description for the given device
/// @return kGpaStatusOk if adapter description access succeeded, GPA_STATUS_ERROR_* if access failed
/// @param [in] device The device
/// @param [out] adapter_desc The adapter description
GpaStatus DxGetAdapterDesc(IUnknown* device, DXGI_ADAPTER_DESC& adapter_desc);
/// Get the first monitor attached to the given device
/// @return Handle to the monitor, nullptr on error
/// @param [in] device The device
HMONITOR DxGetDeviceMonitor(IUnknown* device);
#endif // _GPA_DX_DX_UTILS_H_