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:
6464
6565 #include "gpu_performance_api/gpu_perf_api_interface_loader.h"
6666
67+ #ifdef __cplusplus
6768 GpaApiManager* GpaApiManager::gpa_api_manager _ = nullptr;
68-
69- GpaFunctionTable* gpa_function_table = nullptr;
69+ #endif
70+ GpaFuncTableInfo* gpa_function_table_info = nullptr;
7071
7172 bool InitializeGpa()
7273 {
7374 bool ret_val = false;
7475
7576 if (kGpaStatusOk == GpaApiManager::Instance()->LoadApi(kGpaApiDirectx12))
7677 {
77- gpa_function_table = GpaApiManager::Instance()->GetFunctionTable(kGpaApiDirectx12);
78+ gpa_function_table_info = GpaApiManager::Instance()->GetFunctionTable(kGpaApiDirectx12);
7879
7980 if (nullptr != gpa_function_table)
8081 {
81- ret_val = kGpaStatusOk == gpa_function_table ->GpaInitialize(kGpaInitializeDefaultBit);
82+ ret_val = kGpaStatusOk == gpa_function_table_info ->GpaInitialize(kGpaInitializeDefaultBit);
8283 }
8384 }
8485
You can’t perform that action at this time.
0 commit comments