Blender V5.3
draw_defines.hh File Reference

Go to the source code of this file.

Macros

#define DRW_VIEW_UBO_SLOT   11
#define DRW_VIEW_CULLING_UBO_SLOT   10
#define DRW_OBJ_DATA_INFO_UBO_SLOT   9
#define DRW_LAYER_ATTR_UBO_SLOT   8
#define DRW_VOLUME_UBO_SLOT   7
#define DRW_OBJ_INFOS_UBO_SLOT   6
#define DRW_CLIPPING_UBO_SLOT   5
#define DRW_RESOURCE_ID_SLOT   11
#define DRW_OBJ_MAT_SLOT   10
#define DRW_OBJ_INFOS_SLOT   9
#define DRW_OBJ_ATTR_SLOT   8
#define DRW_DEBUG_DRAW_SLOT   14
#define DRW_DEBUG_DRAW_FEEDBACK_SLOT   15
#define DRW_COMMAND_GROUP_SIZE   64
#define DRW_FINALIZE_GROUP_SIZE   64
#define DRW_VISIBILITY_GROUP_SIZE   32
#define DRW_GSPLAT_GROUP_SIZE   128
#define DRW_MESH_TO_CORNER_GROUP_SIZE   128
#define DRW_GSPLAT_SHAPE_DATA_TEX_SLOT   17
#define DRW_GSPLAT_ELLIPSE_COMP_TEX_SLOT   18
#define DRW_GSPLAT_RADIANCE_COMP_TEX_SLOT   19
#define DRW_POINTCLOUD_STRIP_TILE_SIZE   8
#define DRW_GSPLAT_STRIP_TILE_SIZE   5
#define OVERLAY_GLOBALS_SLOT   7

Variables

static constexpr int DRW_VIEW_MAX = 64

Detailed Description

List of defines that are shared with the GPUShaderCreateInfos. We do this to avoid dragging larger headers into the createInfo pipeline which would cause problems.

Definition in file draw_defines.hh.

Macro Definition Documentation

◆ DRW_CLIPPING_UBO_SLOT

#define DRW_CLIPPING_UBO_SLOT   5

Definition at line 24 of file draw_defines.hh.

Referenced by blender::draw::edit_select::Instance::begin_sync(), blender::draw::external::Prepass::begin_sync(), blender::draw::overlay::AntiAliasing::begin_sync(), blender::draw::overlay::Armatures::begin_sync(), blender::draw::overlay::AttributeViewer::begin_sync(), blender::draw::overlay::Background::begin_sync(), blender::draw::overlay::Cameras::begin_sync(), blender::draw::overlay::Curves::begin_sync(), blender::draw::overlay::Empties::begin_sync(), blender::draw::overlay::Facing::begin_sync(), blender::draw::overlay::Fade::begin_sync(), blender::draw::overlay::GreasePencil::begin_sync(), blender::draw::overlay::Grid::begin_sync(), blender::draw::overlay::GSplats::begin_sync(), blender::draw::overlay::Lattices::begin_sync(), blender::draw::overlay::LightProbes::begin_sync(), blender::draw::overlay::Meshes::begin_sync(), blender::draw::overlay::MeshUVs::begin_sync(), blender::draw::overlay::ModeTransfer::begin_sync(), blender::draw::overlay::MotionPath::begin_sync(), blender::draw::overlay::Outline::begin_sync(), blender::draw::overlay::Paints::begin_sync(), blender::draw::overlay::Particles::begin_sync(), blender::draw::overlay::PointClouds::begin_sync(), blender::draw::overlay::Prepass::begin_sync(), blender::draw::overlay::Sculpts::begin_sync(), blender::draw::overlay::Text::begin_sync(), blender::draw::overlay::Wireframe::begin_sync(), blender::draw::overlay::Axes::end_sync(), blender::draw::overlay::Bounds::end_sync(), blender::draw::overlay::Cameras::end_sync(), blender::draw::overlay::Empties::end_sync(), blender::draw::overlay::Fluids::end_sync(), blender::draw::overlay::ForceFields::end_sync(), blender::draw::overlay::LightProbes::end_sync(), blender::draw::overlay::Lights::end_sync(), blender::draw::overlay::Metaballs::end_sync(), blender::draw::overlay::Origins::end_sync(), blender::draw::overlay::Relations::end_sync(), blender::draw::overlay::Speakers::end_sync(), blender::draw::overlay::Outline::flat_objects_pass_sync(), and blender::workbench::MeshPass::init_pass().

◆ DRW_COMMAND_GROUP_SIZE

#define DRW_COMMAND_GROUP_SIZE   64

◆ DRW_DEBUG_DRAW_FEEDBACK_SLOT

#define DRW_DEBUG_DRAW_FEEDBACK_SLOT   15

Definition at line 34 of file draw_defines.hh.

◆ DRW_DEBUG_DRAW_SLOT

#define DRW_DEBUG_DRAW_SLOT   14

Definition at line 33 of file draw_defines.hh.

Referenced by blender::draw::Manager::debug_bind().

◆ DRW_FINALIZE_GROUP_SIZE

#define DRW_FINALIZE_GROUP_SIZE   64

Definition at line 37 of file draw_defines.hh.

Referenced by blender::draw::Manager::end_sync().

◆ DRW_GSPLAT_ELLIPSE_COMP_TEX_SLOT

#define DRW_GSPLAT_ELLIPSE_COMP_TEX_SLOT   18

Definition at line 46 of file draw_defines.hh.

◆ DRW_GSPLAT_GROUP_SIZE

#define DRW_GSPLAT_GROUP_SIZE   128

◆ DRW_GSPLAT_RADIANCE_COMP_TEX_SLOT

#define DRW_GSPLAT_RADIANCE_COMP_TEX_SLOT   19

Definition at line 47 of file draw_defines.hh.

◆ DRW_GSPLAT_SHAPE_DATA_TEX_SLOT

#define DRW_GSPLAT_SHAPE_DATA_TEX_SLOT   17

Definition at line 45 of file draw_defines.hh.

◆ DRW_GSPLAT_STRIP_TILE_SIZE

◆ DRW_LAYER_ATTR_UBO_SLOT

#define DRW_LAYER_ATTR_UBO_SLOT   8

Definition at line 18 of file draw_defines.hh.

Referenced by blender::draw::Manager::resource_bind().

◆ DRW_MESH_TO_CORNER_GROUP_SIZE

#define DRW_MESH_TO_CORNER_GROUP_SIZE   128

Definition at line 41 of file draw_defines.hh.

Referenced by blender::draw::dispatch_batched().

◆ DRW_OBJ_ATTR_SLOT

#define DRW_OBJ_ATTR_SLOT   8

Definition at line 30 of file draw_defines.hh.

Referenced by blender::draw::Manager::resource_bind().

◆ DRW_OBJ_DATA_INFO_UBO_SLOT

#define DRW_OBJ_DATA_INFO_UBO_SLOT   9

Definition at line 17 of file draw_defines.hh.

◆ DRW_OBJ_INFOS_SLOT

#define DRW_OBJ_INFOS_SLOT   9

Definition at line 29 of file draw_defines.hh.

Referenced by blender::draw::Manager::resource_bind().

◆ DRW_OBJ_INFOS_UBO_SLOT

#define DRW_OBJ_INFOS_UBO_SLOT   6

Definition at line 22 of file draw_defines.hh.

◆ DRW_OBJ_MAT_SLOT

#define DRW_OBJ_MAT_SLOT   10

Definition at line 28 of file draw_defines.hh.

Referenced by blender::draw::Manager::resource_bind().

◆ DRW_POINTCLOUD_STRIP_TILE_SIZE

#define DRW_POINTCLOUD_STRIP_TILE_SIZE   8

◆ DRW_RESOURCE_ID_SLOT

◆ DRW_VIEW_CULLING_UBO_SLOT

#define DRW_VIEW_CULLING_UBO_SLOT   10

◆ DRW_VIEW_UBO_SLOT

#define DRW_VIEW_UBO_SLOT   11

◆ DRW_VISIBILITY_GROUP_SIZE

#define DRW_VISIBILITY_GROUP_SIZE   32

Definition at line 39 of file draw_defines.hh.

Referenced by blender::draw::View::compute_visibility().

◆ DRW_VOLUME_UBO_SLOT

#define DRW_VOLUME_UBO_SLOT   7

Definition at line 19 of file draw_defines.hh.

◆ OVERLAY_GLOBALS_SLOT

#define OVERLAY_GLOBALS_SLOT   7

Definition at line 60 of file draw_defines.hh.

Referenced by blender::draw::external::Prepass::begin_sync(), blender::draw::overlay::AntiAliasing::begin_sync(), blender::draw::overlay::Armatures::begin_sync(), blender::draw::overlay::AttributeViewer::begin_sync(), blender::draw::overlay::Background::begin_sync(), blender::draw::overlay::Cameras::begin_sync(), blender::draw::overlay::Curves::begin_sync(), blender::draw::overlay::Empties::begin_sync(), blender::draw::overlay::Facing::begin_sync(), blender::draw::overlay::Fade::begin_sync(), blender::draw::overlay::GreasePencil::begin_sync(), blender::draw::overlay::Grid::begin_sync(), blender::draw::overlay::GSplats::begin_sync(), blender::draw::overlay::ImagePrepass::begin_sync(), blender::draw::overlay::Lattices::begin_sync(), blender::draw::overlay::LightProbes::begin_sync(), blender::draw::overlay::Meshes::begin_sync(), blender::draw::overlay::MeshUVs::begin_sync(), blender::draw::overlay::ModeTransfer::begin_sync(), blender::draw::overlay::MotionPath::begin_sync(), blender::draw::overlay::Outline::begin_sync(), blender::draw::overlay::Paints::begin_sync(), blender::draw::overlay::Particles::begin_sync(), blender::draw::overlay::PointClouds::begin_sync(), blender::draw::overlay::Prepass::begin_sync(), blender::draw::overlay::Sculpts::begin_sync(), blender::draw::overlay::Text::begin_sync(), blender::draw::overlay::Wireframe::begin_sync(), blender::draw::overlay::Axes::end_sync(), blender::draw::overlay::Bounds::end_sync(), blender::draw::overlay::Cameras::end_sync(), blender::draw::overlay::Empties::end_sync(), blender::draw::overlay::Fluids::end_sync(), blender::draw::overlay::ForceFields::end_sync(), blender::draw::overlay::LightProbes::end_sync(), blender::draw::overlay::Lights::end_sync(), blender::draw::overlay::Metaballs::end_sync(), blender::draw::overlay::Origins::end_sync(), blender::draw::overlay::Relations::end_sync(), blender::draw::overlay::Speakers::end_sync(), and blender::draw::overlay::Outline::flat_objects_pass_sync().

Variable Documentation

◆ DRW_VIEW_MAX

int DRW_VIEW_MAX = 64
staticconstexpr

The maximum of indexable views is dictated by:

  • The UBO limit (16KiB) of the ViewMatrices container.
  • The maximum resource index supported for shaders using multi-view (see DRW_VIEW_SHIFT).

Definition at line 54 of file draw_defines.hh.