Blender
V5.3
source
blender
draw
intern
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
25
struct
DRWDebugModule;
26
struct
DRWUniformChunk;
27
28
namespace
blender
{
29
30
struct
DRWViewData
;
31
struct
DRWTextStore
;
32
struct
DupliObject
;
33
struct
Object
;
34
struct
Mesh
;
35
namespace
draw
{
36
struct
CurvesModule
;
37
struct
VolumeModule
;
38
struct
PointCloudModule
;
39
struct
GSplatModule
;
40
struct
DRW_MeshCDMask
;
41
class
CurveRefinePass
;
42
class
View
;
43
}
// namespace draw
44
struct
GPUMaterial
;
45
46
/* -------------------------------------------------------------------- */
49
51
struct
DRWData
{
53
DRWInstanceDataList *
idatalist
;
55
ListBaseT<LinkData>
smoke_textures
;
57
DRWViewData
*
view_data
[2];
59
draw::CurvesModule
*
curves_module
;
60
draw::VolumeModule
*
volume_module
;
61
draw::PointCloudModule
*
pointcloud_module
;
62
draw::GSplatModule
*
gsplat_module
;
64
draw::View
*
default_view
;
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. */
81
inline
DRWContext
&
drw_get
()
82
{
83
return
DRWContext::get_active
();
84
}
85
86
namespace
draw
{
87
88
void
drw_batch_cache_validate
(
Object
*ob);
89
void
drw_batch_cache_generate_requested
(
Object
*ob, TaskGraph &task_graph);
90
94
void
drw_batch_cache_generate_requested_delayed
(
Object
*ob);
95
void
drw_batch_cache_generate_requested_evaluated_mesh_or_curve
(
Object
*ob, TaskGraph &task_graph);
96
97
void
DRW_mesh_get_attributes
(
const
Object
&
object
,
98
const
Mesh
&
mesh
,
99
Span<const GPUMaterial *>
materials,
100
VectorSet<std::string>
*r_attrs,
101
DRW_MeshCDMask
*r_cd_needed);
102
103
}
// namespace draw
104
106
107
}
// namespace blender
BLI_task_c.hh
BLI_threads.hh
BLI_vector_set.hh
DRW_engine.hh
DRW_render.hh
GPU_batch.hh
GPU_context.hh
GPU_framebuffer.hh
GPU_viewport.hh
Object
Definition
scene/object.h:37
blender::Span
Definition
BLI_span.hh:74
blender::VectorSet
Definition
BLI_vector_set.hh:94
blender::draw::CurveRefinePass
Definition
draw_hair_private.hh:24
blender::draw::View
Definition
draw_view.hh:37
blender::eevee::VolumeModule
Definition
eevee_volume.hh:52
blender::bke::mesh
Definition
BKE_mesh.hh:28
blender::draw
Definition
BKE_grease_pencil.hh:34
blender::draw::drw_batch_cache_generate_requested_evaluated_mesh_or_curve
void drw_batch_cache_generate_requested_evaluated_mesh_or_curve(Object *ob, TaskGraph &task_graph)
Definition
draw_cache.cc:560
blender::draw::drw_batch_cache_validate
void drw_batch_cache_validate(Object *ob)
Definition
draw_cache.cc:488
blender::draw::drw_batch_cache_generate_requested
void drw_batch_cache_generate_requested(Object *ob, TaskGraph &task_graph)
Definition
draw_cache.cc:519
blender::draw::drw_batch_cache_generate_requested_delayed
void drw_batch_cache_generate_requested_delayed(Object *ob)
Definition
draw_cache.cc:598
blender::draw::DRW_mesh_get_attributes
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)
Definition
draw_cache_impl_mesh.cc:764
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::drw_get
DRWContext & drw_get()
Definition
draw_context_private.hh:81
draw
Definition
select_lib.bsl.hh:10
blender::DRWContext
Definition
DRW_render.hh:236
blender::DRWContext::get_active
static DRWContext & get_active()
Definition
DRW_render.hh:400
blender::DRWData
Definition
draw_context_private.hh:51
blender::DRWData::idatalist
DRWInstanceDataList * idatalist
Definition
draw_context_private.hh:53
blender::DRWData::modules_exit
void modules_exit()
Definition
draw_context.cc:415
blender::DRWData::curves_module
draw::CurvesModule * curves_module
Definition
draw_context_private.hh:59
blender::DRWData::default_view
draw::View * default_view
Definition
draw_context_private.hh:64
blender::DRWData::view_data
DRWViewData * view_data[2]
Definition
draw_context_private.hh:57
blender::DRWData::gsplat_module
draw::GSplatModule * gsplat_module
Definition
draw_context_private.hh:62
blender::DRWData::modules_begin_sync
void modules_begin_sync()
Definition
draw_context.cc:407
blender::DRWData::smoke_textures
ListBaseT< LinkData > smoke_textures
Definition
draw_context_private.hh:55
blender::DRWData::modules_init
void modules_init()
Definition
draw_context.cc:398
blender::DRWData::pointcloud_module
draw::PointCloudModule * pointcloud_module
Definition
draw_context_private.hh:61
blender::DRWData::volume_module
draw::VolumeModule * volume_module
Definition
draw_context_private.hh:60
blender::DRWTextStore
Definition
draw_manager_text.cc:68
blender::DRWViewData
Definition
draw_view_data.hh:62
blender::DupliObject
Definition
BKE_duplilist.hh:31
blender::GPUMaterial
Definition
gpu_material.cc:66
blender::Mesh
Definition
DNA_mesh_types.h:148
blender::Object
Definition
DNA_object_types.h:466
blender::draw::CurvesModule
Definition
draw_hair_private.hh:51
blender::draw::DRW_MeshCDMask
Definition
draw_attributes.hh:28
blender::draw::GSplatModule
Definition
draw_gsplat_private.hh:147
blender::draw::PointCloudModule
Definition
draw_pointcloud.cc:29
Generated on
for Blender by
doxygen
1.18.0