-
Notifications
You must be signed in to change notification settings - Fork 4
/
iagpConfig.h
54 lines (41 loc) · 2.01 KB
/
iagpConfig.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#pragma once
////////////////////////////////////////////////////////////////
// YOU NEED TO DEFINE THESES VARS FOR USING IAGP ///////////////
// you can check the demo app for an example use ///////////////
// https://github.com/aiekick/InAppGpuProfiler/tree/DemoApp ////
////////////////////////////////////////////////////////////////
// you need also to put your opengl laoder here
// without that you will have many linker error
// ex #include <glald/glad.h>
// you need also to put your imgui header path too
// without that you will have many linker error
// ex #include <glad/glad.h>
// you need also to put your context dependencies here if requried
// by your get/set context fucntions
// without that you will have many linker error
// #define IAGP_GPU_CONTEXT void*
// #define IAGP_GET_CURRENT_CONTEXT
// #define IAGP_SET_CURRENT_CONTEXT SetCurrentContext
////////////////////////////////////////////////////////////////
// OPTIONNAL ///////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
// the title of the profiler detail imgui windows
//#define IAGP_DETAILS_TITLE "Profiler Details"
// the max level of recursion for profiler queries
//#define IAGP_RECURSIVE_LEVELS_COUNT 20U
// the mean average level
// all the values will be smoothed on 60 frames (1s of 60fps diosplay)
//#define IAGP_MEAN_AVERAGE_LEVELS_COUNT 60U
//the minimal size of imgui sub window, when you openif by click right on a progiler bar
//#define IAGP_SUB_WINDOW_MIN_SIZE ImVec2(300, 100)
// the imgui button to use in IAGP
//#define IAGP_IMGUI_BUTTON ImGui::Button
// the Imgui Play/Pause button to use
//#define IAGP_IMGUI_PLAY_PAUSE_BUTTON
//#define IAGP_IMGUI_PLAY_LABEL "Play"
//#define IAGP_IMGUI_PAUSE_LABEL "Pause"
//#define IAGP_IMGUI_PLAY_PAUSE_HELP "Play/Pause Profiling"
// define your fucntion for log error message of IAGP
//#define IAGP_LOG_ERROR_MESSAGE LogError
// define your fucntion for log error message of IAGP only in debug
//#define IAGP_LOG_DEBUG_ERROR_MESSAGE LogDebugError