File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -64,21 +64,22 @@ initialize the DirectX 12 version of GPA:
64
64
65
65
#include "gpu_performance_api/gpu_perf_api_interface_loader.h"
66
66
67
+ #ifdef __cplusplus
67
68
GpaApiManager* GpaApiManager::gpa_api_manager _ = nullptr;
68
-
69
- GpaFunctionTable* gpa_function_table = nullptr;
69
+ #endif
70
+ GpaFuncTableInfo* gpa_function_table_info = nullptr;
70
71
71
72
bool InitializeGpa()
72
73
{
73
74
bool ret_val = false;
74
75
75
76
if (kGpaStatusOk == GpaApiManager::Instance()->LoadApi(kGpaApiDirectx12))
76
77
{
77
- gpa_function_table = GpaApiManager::Instance()->GetFunctionTable(kGpaApiDirectx12);
78
+ gpa_function_table_info = GpaApiManager::Instance()->GetFunctionTable(kGpaApiDirectx12);
78
79
79
80
if (nullptr != gpa_function_table)
80
81
{
81
- ret_val = kGpaStatusOk == gpa_function_table ->GpaInitialize(kGpaInitializeDefaultBit);
82
+ ret_val = kGpaStatusOk == gpa_function_table_info ->GpaInitialize(kGpaInitializeDefaultBit);
82
83
}
83
84
}
84
85
You can’t perform that action at this time.
0 commit comments