Blender V5.3
draw_context_private.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2016 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9/* Private functions / structs of the draw manager */
10
11#pragma once
12
13#include "DRW_engine.hh"
14#include "DRW_render.hh"
15
16#include "BLI_task_c.hh"
17#include "BLI_threads.hh"
18#include "BLI_vector_set.hh"
19
20#include "GPU_batch.hh"
21#include "GPU_context.hh"
22#include "GPU_framebuffer.hh"
23#include "GPU_viewport.hh"
24
25struct DRWDebugModule;
26struct DRWUniformChunk;
27
28namespace blender {
29
30struct DRWViewData;
31struct DRWTextStore;
32struct DupliObject;
33struct Object;
34struct Mesh;
35namespace draw {
36struct CurvesModule;
37struct VolumeModule;
38struct PointCloudModule;
39struct GSplatModule;
40struct DRW_MeshCDMask;
41class CurveRefinePass;
42class View;
43} // namespace draw
44struct GPUMaterial;
45
46/* -------------------------------------------------------------------- */
49
51struct DRWData {
53 DRWInstanceDataList *idatalist;
55 ListBaseT<LinkData> smoke_textures;
65
66 /* Ensure modules are created. */
67 void modules_init();
68 /* Callbacks before each sync cycle. */
69 void modules_begin_sync();
70 /* Callbacks after one draw to clear transient data. */
71 void modules_exit();
72};
73
75
76/* -------------------------------------------------------------------- */
79
80/* Get thread local draw context. */
82{
84}
85
86namespace draw {
87
89void drw_batch_cache_generate_requested(Object *ob, TaskGraph &task_graph);
90
96
98 const Mesh &mesh,
100 VectorSet<std::string> *r_attrs,
101 DRW_MeshCDMask *r_cd_needed);
102
103} // namespace draw
104
106
107} // namespace blender
void drw_batch_cache_generate_requested_evaluated_mesh_or_curve(Object *ob, TaskGraph &task_graph)
void drw_batch_cache_validate(Object *ob)
void drw_batch_cache_generate_requested(Object *ob, TaskGraph &task_graph)
void drw_batch_cache_generate_requested_delayed(Object *ob)
void DRW_mesh_get_attributes(const Object &object, const Mesh &mesh, const Span< const GPUMaterial * > materials, VectorSet< std::string > *r_attrs, DRW_MeshCDMask *r_cd_needed)
BMesh Iterators.
DRWContext & drw_get()
static DRWContext & get_active()
DRWInstanceDataList * idatalist
draw::CurvesModule * curves_module
DRWViewData * view_data[2]
draw::GSplatModule * gsplat_module
ListBaseT< LinkData > smoke_textures
draw::PointCloudModule * pointcloud_module
draw::VolumeModule * volume_module