|
Blender V5.3
|
#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) |
| #define DRW_SHADER_SHARED_H |
Definition at line 65 of file draw_shader_shared.hh.
| #define DRW_VIEW_FROM_RESOURCE_ID |
Definition at line 89 of file draw_shader_shared.hh.
| #define DRW_VIEW_LEN 1 |
Definition at line 87 of file draw_shader_shared.hh.
| #define DRW_VIEW_SHIFT 0 |
Definition at line 88 of file draw_shader_shared.hh.
| 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.
|
inline |
Definition at line 498 of file draw_shader_shared.hh.
References blocker_shadow_set_get(), and ObjectInfos::light_and_shadow_set_membership.
Referenced by blocker_shadow_set_get(), and eevee::shadow::ViewVisibility::shadow_linking_affects_caster().
|
inline |
Definition at line 540 of file draw_shader_shared.hh.
References ObjectBounds::bounding_sphere, and drw_bounds_are_valid().
Referenced by eevee::shadow::comp_main(), workbench::shadow::visibility::culling_main(), drw_bounds_are_valid(), eevee::lightprobe::volume::scene_bounds(), eevee::shadow::tag_update_vert(), eevee::shadow::usage::tag_usage_vert(), and draw::visibility().
|
inline |
Definition at line 532 of file draw_shader_shared.hh.
References ObjectBounds::bounding_sphere, and drw_bounds_corners_are_valid().
Referenced by drw_bounds_corners_are_valid(), draw::resource_finalize_main(), and eevee::shadow::tilemap_bounds_min_max().
| ENUM_OPERATORS | ( | eObjectInfoFlag | ) |
References ENUM_OPERATORS.
|
inline |
Definition at line 493 of file draw_shader_shared.hh.
References ObjectInfos::light_and_shadow_set_membership, and receiver_light_set_get().
Referenced by eevee::forward_lighting_eval(), eevee::deferred::light_eval_frag(), light_iter_init(), eevee::deferred::planar_eval_frag(), receiver_light_set_get(), eevee::deferred::sphere_eval_frag(), eevee::surf_capture(), eevee::surf_deferred(), and eevee::surf_hybrid().
|
staticconstexpr |
Definition at line 74 of file draw_shader_shared.hh.
|
staticconstexpr |
Definition at line 70 of file draw_shader_shared.hh.
|
staticconstexpr |
Definition at line 67 of file draw_shader_shared.hh.
|
static |
Global that needs to be set correctly in each shader stage.
Definition at line 83 of file draw_shader_shared.hh.