Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_manager.h
| Show All 25 Lines | |||||
| #define __DRAW_MANAGER_H__ | #define __DRAW_MANAGER_H__ | ||||
| #include "DRW_engine.h" | #include "DRW_engine.h" | ||||
| #include "DRW_render.h" | #include "DRW_render.h" | ||||
| #include "BLI_assert.h" | #include "BLI_assert.h" | ||||
| #include "BLI_linklist.h" | #include "BLI_linklist.h" | ||||
| #include "BLI_memblock.h" | #include "BLI_memblock.h" | ||||
| #include "BLI_task.h" | |||||
| #include "BLI_threads.h" | #include "BLI_threads.h" | ||||
| #include "GPU_batch.h" | #include "GPU_batch.h" | ||||
| #include "GPU_context.h" | #include "GPU_context.h" | ||||
| #include "GPU_framebuffer.h" | #include "GPU_framebuffer.h" | ||||
| #include "GPU_shader.h" | #include "GPU_shader.h" | ||||
| #include "GPU_uniformbuffer.h" | #include "GPU_uniformbuffer.h" | ||||
| #include "GPU_viewport.h" | #include "GPU_viewport.h" | ||||
| ▲ Show 20 Lines • Show All 478 Lines • ▼ Show 20 Lines | typedef struct DRWManager { | ||||
| /** TODO(fclem) Remove this. Only here to support | /** TODO(fclem) Remove this. Only here to support | ||||
| * shaders without common_view_lib.glsl */ | * shaders without common_view_lib.glsl */ | ||||
| DRWViewUboStorage view_storage_cpy; | DRWViewUboStorage view_storage_cpy; | ||||
| #ifdef USE_GPU_SELECT | #ifdef USE_GPU_SELECT | ||||
| uint select_id; | uint select_id; | ||||
| #endif | #endif | ||||
| struct TaskGraph *task_graph; | |||||
| /* ---------- Nothing after this point is cleared after use ----------- */ | /* ---------- Nothing after this point is cleared after use ----------- */ | ||||
| /* gl_context serves as the offset for clearing only | /* gl_context serves as the offset for clearing only | ||||
| * the top portion of the struct so DO NOT MOVE IT! */ | * the top portion of the struct so DO NOT MOVE IT! */ | ||||
| /** Unique ghost context used by the draw manager. */ | /** Unique ghost context used by the draw manager. */ | ||||
| void *gl_context; | void *gl_context; | ||||
| GPUContext *gpu_context; | GPUContext *gpu_context; | ||||
| /** Mutex to lock the drw manager and avoid concurrent context usage. */ | /** Mutex to lock the drw manager and avoid concurrent context usage. */ | ||||
| ▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines | |||||