Blender V5.3
draw_shader_shared.hh File Reference
#include "GPU_shader_shared_utils.hh"
#include "BLI_math_vector.hh"
#include "GPU_shader.hh"
#include "draw_defines.hh"

Go to the source code of this file.

Classes

struct  FrustumCorners
struct  FrustumPlanes
struct  ViewCullingData
struct  ViewMatrices
struct  ObjectMatrices
struct  ObjectInfos
struct  ObjectBounds
struct  ScalingRange
struct  GSplatInfos
struct  VolumeInfos
struct  CurvesInfos
struct  ObjectAttribute
struct  LayerAttribute

Macros

#define DRW_SHADER_SHARED_H

Variables

static constexpr int DRW_RESOURCE_CHUNK_LEN = 512
static constexpr int DRW_GRID_PER_VOLUME_MAX = 16
static constexpr int DRW_ATTRIBUTE_PER_CURVES_MAX = 15

Views

#define DRW_VIEW_LEN   1
#define DRW_VIEW_SHIFT   0
#define DRW_VIEW_FROM_RESOURCE_ID
static uint drw_view_id = 0

Debug draw shapes

enum  eObjectInfoFlag : uint32_t {
  OBJECT_SELECTED = (1u << 0u) , OBJECT_FROM_DUPLI = (1u << 1u) , OBJECT_FROM_SET = (1u << 2u) , OBJECT_ACTIVE = (1u << 3u) ,
  OBJECT_NEGATIVE_SCALE = (1u << 4u) , OBJECT_HOLDOUT = (1u << 5u) , OBJECT_ACTIVE_EDIT_MODE = (1u << 6u) , OBJECT_NO_INFO = ~OBJECT_HOLDOUT
}
 ENUM_OPERATORS (eObjectInfoFlag)
uint receiver_light_set_get (ObjectInfos object_infos)
uint blocker_shadow_set_get (ObjectInfos object_infos)
bool drw_bounds_corners_are_valid (ObjectBounds bounds)
bool drw_bounds_are_valid (ObjectBounds bounds)

Macro Definition Documentation

◆ DRW_SHADER_SHARED_H

#define DRW_SHADER_SHARED_H

Definition at line 65 of file draw_shader_shared.hh.

◆ DRW_VIEW_FROM_RESOURCE_ID

#define DRW_VIEW_FROM_RESOURCE_ID

Definition at line 89 of file draw_shader_shared.hh.

◆ DRW_VIEW_LEN

#define DRW_VIEW_LEN   1

Definition at line 87 of file draw_shader_shared.hh.

◆ DRW_VIEW_SHIFT

#define DRW_VIEW_SHIFT   0

Definition at line 88 of file draw_shader_shared.hh.

Enumeration Type Documentation

◆ eObjectInfoFlag

enum eObjectInfoFlag : uint32_t
Enumerator
OBJECT_SELECTED 
OBJECT_FROM_DUPLI 
OBJECT_FROM_SET 
OBJECT_ACTIVE 
OBJECT_NEGATIVE_SCALE 
OBJECT_HOLDOUT 
OBJECT_ACTIVE_EDIT_MODE 
OBJECT_NO_INFO 

Definition at line 451 of file draw_shader_shared.hh.

Function Documentation

◆ blocker_shadow_set_get()

◆ drw_bounds_are_valid()

◆ drw_bounds_corners_are_valid()

◆ ENUM_OPERATORS()

ENUM_OPERATORS ( eObjectInfoFlag )

References ENUM_OPERATORS.

◆ receiver_light_set_get()

Variable Documentation

◆ DRW_ATTRIBUTE_PER_CURVES_MAX

int DRW_ATTRIBUTE_PER_CURVES_MAX = 15
staticconstexpr

Definition at line 74 of file draw_shader_shared.hh.

◆ DRW_GRID_PER_VOLUME_MAX

int DRW_GRID_PER_VOLUME_MAX = 16
staticconstexpr

Definition at line 70 of file draw_shader_shared.hh.

◆ DRW_RESOURCE_CHUNK_LEN

int DRW_RESOURCE_CHUNK_LEN = 512
staticconstexpr

Definition at line 67 of file draw_shader_shared.hh.

◆ drw_view_id

uint drw_view_id = 0
static

Global that needs to be set correctly in each shader stage.

Definition at line 83 of file draw_shader_shared.hh.