Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_manager.h
| Show First 20 Lines • Show All 543 Lines • ▼ Show 20 Lines | typedef struct DRWManager { | ||||
| * 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; | struct TaskGraph *task_graph; | ||||
| /* Contains list of objects that needs to be extracted from other objects. */ | /* Contains list of objects that needs to be extracted from other objects. | ||||
| * Performs a delayed preparation and extraction. */ | |||||
| struct GSet *delayed_preparation_extraction; | |||||
| /* Multi user data should be prepared for all objects before scheduling the | |||||
| * extraction. Performs the extraction phase only. */ | |||||
| struct GSet *delayed_extraction; | struct GSet *delayed_extraction; | ||||
| /* ---------- 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; | ||||
| Show All 22 Lines | |||||
| void drw_debug_draw(void); | void drw_debug_draw(void); | ||||
| void drw_debug_init(void); | void drw_debug_init(void); | ||||
| eDRWCommandType command_type_get(const uint64_t *command_type_bits, int index); | eDRWCommandType command_type_get(const uint64_t *command_type_bits, int index); | ||||
| void drw_batch_cache_validate(Object *ob); | void drw_batch_cache_validate(Object *ob); | ||||
| void drw_batch_cache_generate_requested(struct Object *ob); | void drw_batch_cache_generate_requested(struct Object *ob); | ||||
| void drw_batch_cache_generate_requested_delayed(Object *ob); | void drw_batch_cache_generate_requested_delayed(struct Object *ob); | ||||
| void drw_batch_cache_prepare_and_generate_requested_delayed(struct Object *ob); | |||||
| void drw_batch_cache_schedule_delayed(Object *ob); | |||||
| void drw_resource_buffer_finish(ViewportMemoryPool *vmempool); | void drw_resource_buffer_finish(ViewportMemoryPool *vmempool); | ||||
| /* Procedural Drawing */ | /* Procedural Drawing */ | ||||
| GPUBatch *drw_cache_procedural_points_get(void); | GPUBatch *drw_cache_procedural_points_get(void); | ||||
| GPUBatch *drw_cache_procedural_lines_get(void); | GPUBatch *drw_cache_procedural_lines_get(void); | ||||
| GPUBatch *drw_cache_procedural_triangles_get(void); | GPUBatch *drw_cache_procedural_triangles_get(void); | ||||
| #endif /* __DRAW_MANAGER_H__ */ | #endif /* __DRAW_MANAGER_H__ */ | ||||