Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/gpu/intern/gpu_context_private.hh')
-rw-r--r--source/blender/gpu/intern/gpu_context_private.hh10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_context_private.hh b/source/blender/gpu/intern/gpu_context_private.hh
index bc07bea4bb1..ffa7a38faa6 100644
--- a/source/blender/gpu/intern/gpu_context_private.hh
+++ b/source/blender/gpu/intern/gpu_context_private.hh
@@ -29,6 +29,7 @@
#include "GPU_context.h"
+#include "gpu_debug_private.hh"
#include "gpu_framebuffer_private.hh"
#include "gpu_immediate_private.hh"
#include "gpu_shader_private.hh"
@@ -46,7 +47,7 @@ class Context {
Shader *shader = NULL;
FrameBuffer *active_fb = NULL;
GPUMatrixState *matrix_state = NULL;
- GPUStateManager *state_manager = NULL;
+ StateManager *state_manager = NULL;
Immediate *imm = NULL;
/**
@@ -61,6 +62,8 @@ class Context {
FrameBuffer *back_right = NULL;
FrameBuffer *front_right = NULL;
+ DebugStack debug_stack;
+
protected:
/** Thread on which this context is active. */
pthread_t thread_;
@@ -84,6 +87,9 @@ class Context {
virtual void memory_statistics_get(int *total_mem, int *free_mem) = 0;
+ virtual void debug_group_begin(const char *, int){};
+ virtual void debug_group_end(void){};
+
bool is_active_on_thread(void);
};
@@ -101,4 +107,4 @@ static inline const Context *unwrap(const GPUContext *ctx)
return reinterpret_cast<const Context *>(ctx);
}
-} // namespace blender::gpu \ No newline at end of file
+} // namespace blender::gpu