forked from GPUOpen-Tools/gpu_performance_api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadapter.h
More file actions
45 lines (35 loc) · 1.4 KB
/
Copy pathadapter.h
File metadata and controls
45 lines (35 loc) · 1.4 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
42
43
44
45
//==============================================================================
// Copyright (c) 2008-2019 Advanced Micro Devices, Inc. All rights reserved.
/// \author AMD Developer Tools Team
/// \file
/// \brief This is the main include file for Adapter.cpp to enumerate adapters
//==============================================================================
#ifndef _GPA_COMMON_ADAPTER_H_
#define _GPA_COMMON_ADAPTER_H_
#include <vector>
#include <dxgi.h>
#include "ADLUtil.h"
/// Enumerate adapters in the system.
class Adapter
{
public:
/// default constructor
Adapter() = default;
/// destructor
~Adapter() = default;
/// Get ASIC information for all GPUs in the system
/// \param[out] asicInfoList the ADLUtil_ASICInfo vector
/// \return True if ASIC info list was retrieved successfully, false if not
bool getAsicInfoList(AsicInfoList& asicInfoList) const;
private:
/// copy constructor
Adapter(const Adapter&) = default;
/// copy assignment operator
/// \return item being assigned
Adapter& operator=(const Adapter&) = default;
/// Convert DXGI adapter description to ADL ASIC information
/// \param[in] dxgiAdapterDesc DXGI adapter description
/// \param[out] asicInfo ADL ASIC information
static void dxgiAdapterDescToAsicInfo(const DXGI_ADAPTER_DESC& dxgiAdapterDesc, ADLUtil_ASICInfo& asicInfo);
};
#endif // _GPA_COMMON_ADAPTER_H_