Blender V4.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_OBJ_MAT_UBO_SLOT   8
 
#define DRW_LAYER_ATTR_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_PRINT_SLOT   15
 
#define DRW_DEBUG_DRAW_SLOT   14
 
#define DRW_COMMAND_GROUP_SIZE   64
 
#define DRW_FINALIZE_GROUP_SIZE   64
 
#define DRW_VISIBILITY_GROUP_SIZE   32
 
#define 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::workbench::MeshPass::init_pass().

◆ DRW_COMMAND_GROUP_SIZE

#define DRW_COMMAND_GROUP_SIZE   64

Definition at line 36 of file draw_defines.hh.

Referenced by blender::draw::command::DrawMultiBuf::bind().

◆ DRW_DEBUG_DRAW_SLOT

#define DRW_DEBUG_DRAW_SLOT   14

Definition at line 34 of file draw_defines.hh.

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

◆ DRW_DEBUG_PRINT_SLOT

#define DRW_DEBUG_PRINT_SLOT   15

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_LAYER_ATTR_UBO_SLOT

#define DRW_LAYER_ATTR_UBO_SLOT   7

Definition at line 19 of file draw_defines.hh.

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

◆ 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_OBJ_MAT_UBO_SLOT

#define DRW_OBJ_MAT_UBO_SLOT   8

Definition at line 18 of file draw_defines.hh.

◆ DRW_RESOURCE_ID_SLOT

#define DRW_RESOURCE_ID_SLOT   11

◆ DRW_VIEW_CULLING_UBO_SLOT

#define DRW_VIEW_CULLING_UBO_SLOT   10

◆ DRW_VIEW_MAX

#define DRW_VIEW_MAX   64

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 46 of file draw_defines.hh.

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

◆ DRW_VIEW_UBO_SLOT

◆ 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().