Blender V5.3
eevee_defines.hh File Reference

Go to the source code of this file.

Macros

#define LUT_WORKGROUP_SIZE   16
#define LIGHT_CHUNK   256
#define SPHERE_PROBE_FORMAT   SFLOAT_16_16_16_16
#define VOLUME_PROBE_FORMAT   SFLOAT_16_16_16_16
#define GBUF_HEADER_FB_LAYER_COUNT   1
#define GBUF_CLOSURE_FB_LAYER_COUNT   2
#define GBUF_NORMAL_FB_LAYER_COUNT   1
#define DEFERRED_RADIANCE_FORMAT   UINT_32
#define DEFERRED_GBUFFER_ROG_ID   0
#define RAYTRACE_RADIANCE_FORMAT   UFLOAT_11_11_10
#define RAYTRACE_RAYTIME_FORMAT   SFLOAT_32
#define RAYTRACE_VARIANCE_FORMAT   SFLOAT_16
#define RAYTRACE_TILEMASK_FORMAT   UINT_8
#define SUBSURFACE_RADIANCE_FORMAT   UFLOAT_11_11_10
#define SUBSURFACE_OBJECT_ID_FORMAT   UINT_16
#define FILM_GROUP_SIZE   16
#define MOTION_BLUR_GROUP_SIZE   32
#define MOTION_BLUR_DILATE_GROUP_SIZE   512
#define AMBIENT_OCCLUSION_PASS_TILE_SIZE   16
#define SURFEL_GROUP_SIZE   256
#define SURFEL_LIST_GROUP_SIZE   256
#define IRRADIANCE_GRID_GROUP_SIZE   4
#define IRRADIANCE_GRID_BRICK_SIZE   4
#define IRRADIANCE_BOUNDS_GROUP_SIZE   64
#define VOLUME_GROUP_SIZE   4
#define VOLUME_INTEGRATION_GROUP_SIZE   8
#define VERTEX_COPY_GROUP_SIZE   64
#define UTIL_TEX_SIZE   64
#define UTIL_BSDF_LAYER_COUNT   16
#define UTIL_TEX_UV_SCALE   ((UTIL_TEX_SIZE - 1.0f) / UTIL_TEX_SIZE)
#define UTIL_TEX_UV_BIAS   (0.5f / UTIL_TEX_SIZE)
#define UTIL_BLUE_NOISE_LAYER   0
#define UTIL_SSS_TRANSMITTANCE_PROFILE_LAYER   1
#define UTIL_LTC_MAT_LAYER   2
#define UTIL_BRDF_LAYER   3
#define UTIL_BSDF_LAYER   4
#define UTIL_DISK_INTEGRAL_LAYER   UTIL_SSS_TRANSMITTANCE_PROFILE_LAYER
#define UTIL_DISK_INTEGRAL_COMP   3
#define PREPASS_FRAG_OUT_NORMAL   0
#define PREPASS_FRAG_OUT_OB_ID   1
#define PREPASS_FRAG_OUT_VELOCITY   2
#define RBUFS_UTILITY_TEX_SLOT   2
#define HIZ_TEX_SLOT   3
#define SHADOW_TILEMAPS_TEX_SLOT   4
#define SHADOW_ATLAS_TEX_SLOT   5
#define VOLUME_PROBE_TEX_SLOT   6
#define SPHERE_PROBE_TEX_SLOT   7
#define VOLUME_SCATTERING_TEX_SLOT   8
#define VOLUME_TRANSMITTANCE_TEX_SLOT   9
#define HIZ_PREVIOUS_LAYER_TEX_SLOT   10
#define RADIANCE_PREVIOUS_LAYER_TEX_SLOT   11
#define RAYCAST_DEPTH_TEX_SLOT   12
#define OBJECT_ID_TEX_SLOT   13
#define PREPASS_NORMAL_TEX_SLOT   14
#define PLANAR_PROBE_DEPTH_TEX_SLOT   15
#define PLANAR_PROBE_RADIANCE_TEX_SLOT   16
#define GBUF_CLOSURE_TEX_SLOT   17
#define GBUF_NORMAL_TEX_SLOT   18
#define GBUF_HEADER_TEX_SLOT   19
#define RBUFS_COLOR_SLOT   0
#define RBUFS_VALUE_SLOT   1
#define RBUFS_CRYPTOMATTE_SLOT   2
#define GBUF_CLOSURE_SLOT   3
#define GBUF_NORMAL_SLOT   4
#define GBUF_HEADER_SLOT   5
#define VOLUME_PROP_SCATTERING_IMG_SLOT   0
#define VOLUME_PROP_EXTINCTION_IMG_SLOT   1
#define VOLUME_PROP_EMISSION_IMG_SLOT   2
#define VOLUME_PROP_PHASE_IMG_SLOT   3
#define VOLUME_PROP_PHASE_WEIGHT_IMG_SLOT   4
#define VOLUME_OCCUPANCY_SLOT   5
#define VOLUME_HIT_DEPTH_SLOT   0
#define VOLUME_HIT_COUNT_SLOT   1
#define SHADOW_ATLAS_IMG_SLOT   4
#define UNIFORM_BUF_SLOT   1
#define PIPELINE_BUF_SLOT   2
#define RAYTRACE_BUF_SLOT   3
#define IRRADIANCE_GRID_BUF_SLOT   4
#define SPHERE_PROBE_BUF_SLOT   5
#define PLANAR_PROBE_BUF_SLOT   6
#define VELOCITY_CAMERA_PREV_BUF   4
#define VELOCITY_CAMERA_CURR_BUF   5
#define VELOCITY_CAMERA_NEXT_BUF   6
#define CLIP_PLANE_BUF   7
#define SUBSURFACE_BUF_SLOT   4
#define LIGHT_CULL_BUF_SLOT   0
#define LIGHT_BUF_SLOT   1
#define LIGHT_ZBIN_BUF_SLOT   2
#define LIGHT_TILE_BUF_SLOT   3
#define IRRADIANCE_BRICK_BUF_SLOT   4
#define SAMPLING_BUF_SLOT   6
#define CRYPTOMATTE_BUF_SLOT   7
#define SURFEL_BUF_SLOT   4
#define CAPTURE_BUF_SLOT   5
#define SHADOW_RENDER_MAP_BUF_SLOT   3
#define SHADOW_PAGE_INFO_SLOT   4
#define SHADOW_RENDER_VIEW_BUF_SLOT   5
#define VELOCITY_OBJ_PREV_BUF_SLOT   0
#define VELOCITY_OBJ_NEXT_BUF_SLOT   1
#define VELOCITY_GEO_PREV_BUF_SLOT   2
#define VELOCITY_GEO_NEXT_BUF_SLOT   3
#define VELOCITY_INDIRECTION_BUF_SLOT   4
#define CLOSURE_WEIGHT_CUTOFF   1e-5f
#define BSDF_ROUGHNESS_THRESHOLD   2e-2f
#define EEVEE_PI   3.14159265358979323846f

Variables

static constexpr int HIZ_MIP_COUNT = 7
static constexpr int HIZ_GROUP_SIZE = 16
static constexpr int CULLING_SELECT_GROUP_SIZE = 256
static constexpr int CULLING_SORT_GROUP_SIZE = 256
static constexpr int CULLING_ZBIN_GROUP_SIZE = 1024
static constexpr int CULLING_TILE_GROUP_SIZE = 256
static constexpr int SPHERE_PROBE_REMAP_GROUP_SIZE = 32
static constexpr int SPHERE_PROBE_GROUP_SIZE = 16
static constexpr int SPHERE_PROBE_SELECT_GROUP_SIZE = 64
static constexpr int SPHERE_PROBE_MIPMAP_LEVELS = 5
static constexpr int SPHERE_PROBE_SH_GROUP_SIZE = 256
static constexpr int SPHERE_PROBE_SH_SAMPLES_PER_GROUP = 64
static constexpr int SPHERE_PROBE_ATLAS_MAX_SUBDIV = 12
static constexpr int SPHERE_PROBE_ATLAS_RES
static constexpr int SPHERE_PROBE_MAX_HARMONIC
static constexpr float SPHERE_PROBE_MIX_START_ROUGHNESS = 0.7f
static constexpr float SPHERE_PROBE_MIX_END_ROUGHNESS = 0.9f
static constexpr float SPHERE_PROBE_MIP_MAX_ROUGHNESS = 0.7f
static constexpr int SPHERE_PROBE_MAX = 128
static constexpr int PLANAR_PROBE_MAX = 16
static constexpr int SHADOW_TILEMAP_RES = 32
static constexpr int SHADOW_TILEMAP_LOD = 5
static constexpr int SHADOW_TILEMAP_LOD0_LEN
static constexpr int SHADOW_TILEMAP_LOD1_LEN
static constexpr int SHADOW_TILEMAP_LOD2_LEN
static constexpr int SHADOW_TILEMAP_LOD3_LEN
static constexpr int SHADOW_TILEMAP_LOD4_LEN
static constexpr int SHADOW_TILEMAP_LOD5_LEN
static constexpr int SHADOW_TILEMAP_PER_ROW = 64
static constexpr int SHADOW_TILEDATA_PER_TILEMAP
static constexpr int SHADOW_TILEMAP_MAX_CLIPMAP_LOD = 8
static constexpr int SHADOW_PAGE_CLEAR_GROUP_SIZE = 32
static constexpr int SHADOW_PAGE_RES = 256
static constexpr int SHADOW_PAGE_LOD = 8
static constexpr int SHADOW_MAP_MAX_RES = (SHADOW_PAGE_RES * SHADOW_TILEMAP_RES)
static constexpr int SHADOW_DEPTH_SCAN_GROUP_SIZE = 8
static constexpr int SHADOW_AABB_TAG_GROUP_SIZE = 64
static constexpr int SHADOW_MAX_TILEMAP = 4096
static constexpr int SHADOW_MAX_TILE
static constexpr int SHADOW_MAX_PAGE = 8192
static constexpr int SHADOW_BOUNDS_GROUP_SIZE = 64
static constexpr int SHADOW_CLIPMAP_GROUP_SIZE = 64
static constexpr int SHADOW_VIEW_MAX = 64
static constexpr int SHADOW_RENDER_MAP_SIZE
static constexpr int SHADOW_ATOMIC = 1
static constexpr int SHADOW_PAGE_PER_ROW = 8
static constexpr int SHADOW_PAGE_PER_COL = 8
static constexpr int SHADOW_PAGE_MAX_LAYER = 128
static constexpr int SHADOW_PAGE_PER_LAYER
static constexpr int SHADOW_MAX_STEP = 16
static constexpr int SHADOW_MAX_RAY = 4
static constexpr int SHADOW_ROG_ID = 0
static constexpr int RAYTRACE_GROUP_SIZE = 8
static constexpr int SUBSURFACE_GROUP_SIZE = RAYTRACE_GROUP_SIZE
static constexpr int IRRADIANCE_GRID_MAX = 64
static constexpr int DOF_TILES_SIZE = 8
static constexpr int DOF_TILES_FLATTEN_GROUP_SIZE = DOF_TILES_SIZE
static constexpr int DOF_TILES_DILATE_GROUP_SIZE = 8
static constexpr int DOF_BOKEH_LUT_SIZE = 32
static constexpr int DOF_MAX_SLIGHT_FOCUS_RADIUS = 5
static constexpr int DOF_SLIGHT_FOCUS_SAMPLE_MAX = 16
static constexpr int DOF_MIP_COUNT = 4
static constexpr int DOF_REDUCE_GROUP_SIZE = (1 << (DOF_MIP_COUNT - 1))
static constexpr int DOF_DEFAULT_GROUP_SIZE = 32
static constexpr int DOF_STABILIZE_GROUP_SIZE = 16
static constexpr int DOF_FILTER_GROUP_SIZE = 8
static constexpr int DOF_GATHER_GROUP_SIZE = DOF_TILES_SIZE
static constexpr int DOF_RESOLVE_GROUP_SIZE = (DOF_TILES_SIZE * 2)
static constexpr int VOLUME_HIT_DEPTH_MAX = 16

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 eevee_defines.hh.

Macro Definition Documentation

◆ AMBIENT_OCCLUSION_PASS_TILE_SIZE

#define AMBIENT_OCCLUSION_PASS_TILE_SIZE   16

Definition at line 187 of file eevee_defines.hh.

Referenced by blender::eevee::AmbientOcclusion::sync().

◆ BSDF_ROUGHNESS_THRESHOLD

#define BSDF_ROUGHNESS_THRESHOLD   2e-2f

◆ CAPTURE_BUF_SLOT

#define CAPTURE_BUF_SLOT   5

◆ CLIP_PLANE_BUF

#define CLIP_PLANE_BUF   7

Definition at line 287 of file eevee_defines.hh.

Referenced by blender::eevee::PlanarProbePipeline::begin_sync().

◆ CLOSURE_WEIGHT_CUTOFF

◆ CRYPTOMATTE_BUF_SLOT

#define CRYPTOMATTE_BUF_SLOT   7

Definition at line 298 of file eevee_defines.hh.

Referenced by blender::eevee::Cryptomatte::bind_resources().

◆ DEFERRED_GBUFFER_ROG_ID

#define DEFERRED_GBUFFER_ROG_ID   0

Definition at line 145 of file eevee_defines.hh.

◆ DEFERRED_RADIANCE_FORMAT

#define DEFERRED_RADIANCE_FORMAT   UINT_32

Definition at line 144 of file eevee_defines.hh.

◆ EEVEE_PI

◆ FILM_GROUP_SIZE

#define FILM_GROUP_SIZE   16

◆ GBUF_CLOSURE_FB_LAYER_COUNT

#define GBUF_CLOSURE_FB_LAYER_COUNT   2

◆ GBUF_CLOSURE_SLOT

#define GBUF_CLOSURE_SLOT   3

Definition at line 255 of file eevee_defines.hh.

Referenced by blender::eevee::GBuffer::bind_optional_layers().

◆ GBUF_CLOSURE_TEX_SLOT

#define GBUF_CLOSURE_TEX_SLOT   17

Definition at line 247 of file eevee_defines.hh.

◆ GBUF_HEADER_FB_LAYER_COUNT

#define GBUF_HEADER_FB_LAYER_COUNT   1

IMPORTANT: Make sure all Gbuffer frame-buffer setup matches this.

Definition at line 139 of file eevee_defines.hh.

Referenced by eevee::SurfaceDeferred::write_header_data(), and eevee::SurfaceHybrid::write_header_data().

◆ GBUF_HEADER_SLOT

#define GBUF_HEADER_SLOT   5

Definition at line 257 of file eevee_defines.hh.

Referenced by blender::eevee::GBuffer::bind_optional_layers().

◆ GBUF_HEADER_TEX_SLOT

#define GBUF_HEADER_TEX_SLOT   19

Definition at line 249 of file eevee_defines.hh.

◆ GBUF_NORMAL_FB_LAYER_COUNT

#define GBUF_NORMAL_FB_LAYER_COUNT   1

◆ GBUF_NORMAL_SLOT

#define GBUF_NORMAL_SLOT   4

Definition at line 256 of file eevee_defines.hh.

Referenced by blender::eevee::GBuffer::bind_optional_layers().

◆ GBUF_NORMAL_TEX_SLOT

#define GBUF_NORMAL_TEX_SLOT   18

Definition at line 248 of file eevee_defines.hh.

◆ HIZ_PREVIOUS_LAYER_TEX_SLOT

◆ HIZ_TEX_SLOT

#define HIZ_TEX_SLOT   3

Definition at line 230 of file eevee_defines.hh.

Referenced by blender::eevee::add_pipeline_create_info().

◆ IRRADIANCE_BOUNDS_GROUP_SIZE

#define IRRADIANCE_BOUNDS_GROUP_SIZE   64

◆ IRRADIANCE_BRICK_BUF_SLOT

#define IRRADIANCE_BRICK_BUF_SLOT   4

Definition at line 296 of file eevee_defines.hh.

Referenced by blender::eevee::VolumeProbeModule::bind_resources().

◆ IRRADIANCE_GRID_BRICK_SIZE

◆ IRRADIANCE_GRID_BUF_SLOT

#define IRRADIANCE_GRID_BUF_SLOT   4

Definition at line 278 of file eevee_defines.hh.

Referenced by blender::eevee::VolumeProbeModule::bind_resources().

◆ IRRADIANCE_GRID_GROUP_SIZE

#define IRRADIANCE_GRID_GROUP_SIZE   4

Definition at line 192 of file eevee_defines.hh.

Referenced by blender::eevee::IrradianceBake::surfels_create().

◆ LIGHT_BUF_SLOT

#define LIGHT_BUF_SLOT   1

◆ LIGHT_CHUNK

#define LIGHT_CHUNK   256

Definition at line 25 of file eevee_defines.hh.

Referenced by blender::eevee::LightModule::end_sync().

◆ LIGHT_CULL_BUF_SLOT

#define LIGHT_CULL_BUF_SLOT   0

◆ LIGHT_TILE_BUF_SLOT

#define LIGHT_TILE_BUF_SLOT   3

◆ LIGHT_ZBIN_BUF_SLOT

#define LIGHT_ZBIN_BUF_SLOT   2

◆ LUT_WORKGROUP_SIZE

#define LUT_WORKGROUP_SIZE   16

Definition at line 15 of file eevee_defines.hh.

Referenced by blender::eevee::Precompute::Precompute().

◆ MOTION_BLUR_DILATE_GROUP_SIZE

#define MOTION_BLUR_DILATE_GROUP_SIZE   512

Definition at line 165 of file eevee_defines.hh.

◆ MOTION_BLUR_GROUP_SIZE

#define MOTION_BLUR_GROUP_SIZE   32

Definition at line 164 of file eevee_defines.hh.

Referenced by blender::eevee::MotionBlurModule::render().

◆ OBJECT_ID_TEX_SLOT

◆ PIPELINE_BUF_SLOT

#define PIPELINE_BUF_SLOT   2

◆ PLANAR_PROBE_BUF_SLOT

#define PLANAR_PROBE_BUF_SLOT   6

◆ PLANAR_PROBE_DEPTH_TEX_SLOT

#define PLANAR_PROBE_DEPTH_TEX_SLOT   15

◆ PLANAR_PROBE_RADIANCE_TEX_SLOT

#define PLANAR_PROBE_RADIANCE_TEX_SLOT   16

◆ PREPASS_FRAG_OUT_NORMAL

#define PREPASS_FRAG_OUT_NORMAL   0

Definition at line 220 of file eevee_defines.hh.

◆ PREPASS_FRAG_OUT_OB_ID

#define PREPASS_FRAG_OUT_OB_ID   1

Definition at line 221 of file eevee_defines.hh.

◆ PREPASS_FRAG_OUT_VELOCITY

#define PREPASS_FRAG_OUT_VELOCITY   2

Definition at line 222 of file eevee_defines.hh.

◆ PREPASS_NORMAL_TEX_SLOT

◆ RADIANCE_PREVIOUS_LAYER_TEX_SLOT

◆ RAYCAST_DEPTH_TEX_SLOT

◆ RAYTRACE_BUF_SLOT

#define RAYTRACE_BUF_SLOT   3

Definition at line 276 of file eevee_defines.hh.

Referenced by blender::eevee::UniformDataModule::bind_resources().

◆ RAYTRACE_RADIANCE_FORMAT

#define RAYTRACE_RADIANCE_FORMAT   UFLOAT_11_11_10

Definition at line 150 of file eevee_defines.hh.

◆ RAYTRACE_RAYTIME_FORMAT

#define RAYTRACE_RAYTIME_FORMAT   SFLOAT_32

Definition at line 151 of file eevee_defines.hh.

◆ RAYTRACE_TILEMASK_FORMAT

#define RAYTRACE_TILEMASK_FORMAT   UINT_8

Definition at line 153 of file eevee_defines.hh.

◆ RAYTRACE_VARIANCE_FORMAT

#define RAYTRACE_VARIANCE_FORMAT   SFLOAT_16

Definition at line 152 of file eevee_defines.hh.

◆ RBUFS_COLOR_SLOT

◆ RBUFS_CRYPTOMATTE_SLOT

#define RBUFS_CRYPTOMATTE_SLOT   2

◆ RBUFS_UTILITY_TEX_SLOT

◆ RBUFS_VALUE_SLOT

◆ SAMPLING_BUF_SLOT

#define SAMPLING_BUF_SLOT   6

Definition at line 297 of file eevee_defines.hh.

Referenced by blender::eevee::Sampling::bind_resources().

◆ SHADOW_ATLAS_IMG_SLOT

#define SHADOW_ATLAS_IMG_SLOT   4

Definition at line 269 of file eevee_defines.hh.

Referenced by blender::eevee::ShadowPipeline::sync().

◆ SHADOW_ATLAS_TEX_SLOT

#define SHADOW_ATLAS_TEX_SLOT   5

Definition at line 233 of file eevee_defines.hh.

Referenced by blender::eevee::ShadowModule::bind_resources().

◆ SHADOW_PAGE_INFO_SLOT

#define SHADOW_PAGE_INFO_SLOT   4

Definition at line 305 of file eevee_defines.hh.

Referenced by blender::eevee::ShadowPipeline::sync().

◆ SHADOW_RENDER_MAP_BUF_SLOT

#define SHADOW_RENDER_MAP_BUF_SLOT   3

Definition at line 304 of file eevee_defines.hh.

Referenced by blender::eevee::ShadowPipeline::sync().

◆ SHADOW_RENDER_VIEW_BUF_SLOT

#define SHADOW_RENDER_VIEW_BUF_SLOT   5

Definition at line 306 of file eevee_defines.hh.

Referenced by blender::eevee::ShadowPipeline::sync().

◆ SHADOW_TILEMAPS_TEX_SLOT

#define SHADOW_TILEMAPS_TEX_SLOT   4

Definition at line 232 of file eevee_defines.hh.

Referenced by blender::eevee::ShadowModule::bind_resources().

◆ SPHERE_PROBE_BUF_SLOT

#define SPHERE_PROBE_BUF_SLOT   5

Definition at line 279 of file eevee_defines.hh.

Referenced by blender::eevee::SphereProbeModule::bind_resources().

◆ SPHERE_PROBE_FORMAT

#define SPHERE_PROBE_FORMAT   SFLOAT_16_16_16_16

Definition at line 53 of file eevee_defines.hh.

◆ SPHERE_PROBE_TEX_SLOT

#define SPHERE_PROBE_TEX_SLOT   7

Definition at line 235 of file eevee_defines.hh.

Referenced by blender::eevee::SphereProbeModule::bind_resources().

◆ SUBSURFACE_BUF_SLOT

#define SUBSURFACE_BUF_SLOT   4

Definition at line 289 of file eevee_defines.hh.

Referenced by blender::eevee::SubsurfaceModule::end_sync().

◆ SUBSURFACE_OBJECT_ID_FORMAT

#define SUBSURFACE_OBJECT_ID_FORMAT   UINT_16

Definition at line 158 of file eevee_defines.hh.

◆ SUBSURFACE_RADIANCE_FORMAT

#define SUBSURFACE_RADIANCE_FORMAT   UFLOAT_11_11_10

Definition at line 157 of file eevee_defines.hh.

◆ SURFEL_BUF_SLOT

#define SURFEL_BUF_SLOT   4

◆ SURFEL_GROUP_SIZE

#define SURFEL_GROUP_SIZE   256

Definition at line 190 of file eevee_defines.hh.

Referenced by blender::eevee::IrradianceBake::surfels_create().

◆ SURFEL_LIST_GROUP_SIZE

#define SURFEL_LIST_GROUP_SIZE   256

Definition at line 191 of file eevee_defines.hh.

Referenced by blender::eevee::IrradianceBake::raylists_build().

◆ UNIFORM_BUF_SLOT

#define UNIFORM_BUF_SLOT   1

Definition at line 273 of file eevee_defines.hh.

Referenced by blender::eevee::UniformDataModule::bind_resources().

◆ UTIL_BLUE_NOISE_LAYER

◆ UTIL_BRDF_LAYER

#define UTIL_BRDF_LAYER   3

◆ UTIL_BSDF_LAYER

#define UTIL_BSDF_LAYER   4

◆ UTIL_BSDF_LAYER_COUNT

#define UTIL_BSDF_LAYER_COUNT   16

Definition at line 206 of file eevee_defines.hh.

Referenced by UtilityTexture::sample_bsdf_lut().

◆ UTIL_DISK_INTEGRAL_COMP

#define UTIL_DISK_INTEGRAL_COMP   3

◆ UTIL_DISK_INTEGRAL_LAYER

◆ UTIL_LTC_MAT_LAYER

#define UTIL_LTC_MAT_LAYER   2

◆ UTIL_SSS_TRANSMITTANCE_PROFILE_LAYER

#define UTIL_SSS_TRANSMITTANCE_PROFILE_LAYER   1

◆ UTIL_TEX_SIZE

#define UTIL_TEX_SIZE   64

Definition at line 205 of file eevee_defines.hh.

Referenced by UtilityTexture::fetch().

◆ UTIL_TEX_UV_BIAS

#define UTIL_TEX_UV_BIAS   (0.5f / UTIL_TEX_SIZE)

◆ UTIL_TEX_UV_SCALE

#define UTIL_TEX_UV_SCALE   ((UTIL_TEX_SIZE - 1.0f) / UTIL_TEX_SIZE)

◆ VELOCITY_CAMERA_CURR_BUF

#define VELOCITY_CAMERA_CURR_BUF   5

Definition at line 283 of file eevee_defines.hh.

Referenced by blender::eevee::VelocityModule::bind_resources().

◆ VELOCITY_CAMERA_NEXT_BUF

#define VELOCITY_CAMERA_NEXT_BUF   6

Definition at line 284 of file eevee_defines.hh.

Referenced by blender::eevee::VelocityModule::bind_resources().

◆ VELOCITY_CAMERA_PREV_BUF

#define VELOCITY_CAMERA_PREV_BUF   4

Definition at line 282 of file eevee_defines.hh.

Referenced by blender::eevee::VelocityModule::bind_resources().

◆ VELOCITY_GEO_NEXT_BUF_SLOT

#define VELOCITY_GEO_NEXT_BUF_SLOT   3

Definition at line 312 of file eevee_defines.hh.

Referenced by blender::eevee::VelocityModule::bind_resources().

◆ VELOCITY_GEO_PREV_BUF_SLOT

#define VELOCITY_GEO_PREV_BUF_SLOT   2

Definition at line 311 of file eevee_defines.hh.

Referenced by blender::eevee::VelocityModule::bind_resources().

◆ VELOCITY_INDIRECTION_BUF_SLOT

#define VELOCITY_INDIRECTION_BUF_SLOT   4

Definition at line 313 of file eevee_defines.hh.

Referenced by blender::eevee::VelocityModule::bind_resources().

◆ VELOCITY_OBJ_NEXT_BUF_SLOT

#define VELOCITY_OBJ_NEXT_BUF_SLOT   1

Definition at line 310 of file eevee_defines.hh.

Referenced by blender::eevee::VelocityModule::bind_resources().

◆ VELOCITY_OBJ_PREV_BUF_SLOT

#define VELOCITY_OBJ_PREV_BUF_SLOT   0

Definition at line 309 of file eevee_defines.hh.

Referenced by blender::eevee::VelocityModule::bind_resources().

◆ VERTEX_COPY_GROUP_SIZE

#define VERTEX_COPY_GROUP_SIZE   64

◆ VOLUME_GROUP_SIZE

#define VOLUME_GROUP_SIZE   4

◆ VOLUME_HIT_COUNT_SLOT

#define VOLUME_HIT_COUNT_SLOT   1

Definition at line 267 of file eevee_defines.hh.

◆ VOLUME_HIT_DEPTH_SLOT

#define VOLUME_HIT_DEPTH_SLOT   0

Definition at line 266 of file eevee_defines.hh.

◆ VOLUME_INTEGRATION_GROUP_SIZE

#define VOLUME_INTEGRATION_GROUP_SIZE   8

Definition at line 198 of file eevee_defines.hh.

Referenced by blender::eevee::VolumeModule::end_sync().

◆ VOLUME_OCCUPANCY_SLOT

#define VOLUME_OCCUPANCY_SLOT   5

Definition at line 264 of file eevee_defines.hh.

◆ VOLUME_PROBE_FORMAT

#define VOLUME_PROBE_FORMAT   SFLOAT_16_16_16_16

NOTE: Runtime format only.

Definition at line 60 of file eevee_defines.hh.

◆ VOLUME_PROBE_TEX_SLOT

#define VOLUME_PROBE_TEX_SLOT   6

Definition at line 234 of file eevee_defines.hh.

Referenced by blender::eevee::VolumeProbeModule::bind_resources().

◆ VOLUME_PROP_EMISSION_IMG_SLOT

#define VOLUME_PROP_EMISSION_IMG_SLOT   2

Definition at line 261 of file eevee_defines.hh.

◆ VOLUME_PROP_EXTINCTION_IMG_SLOT

#define VOLUME_PROP_EXTINCTION_IMG_SLOT   1

Definition at line 260 of file eevee_defines.hh.

◆ VOLUME_PROP_PHASE_IMG_SLOT

#define VOLUME_PROP_PHASE_IMG_SLOT   3

Definition at line 262 of file eevee_defines.hh.

◆ VOLUME_PROP_PHASE_WEIGHT_IMG_SLOT

#define VOLUME_PROP_PHASE_WEIGHT_IMG_SLOT   4

Definition at line 263 of file eevee_defines.hh.

◆ VOLUME_PROP_SCATTERING_IMG_SLOT

#define VOLUME_PROP_SCATTERING_IMG_SLOT   0

Definition at line 259 of file eevee_defines.hh.

◆ VOLUME_SCATTERING_TEX_SLOT

#define VOLUME_SCATTERING_TEX_SLOT   8

Definition at line 236 of file eevee_defines.hh.

◆ VOLUME_TRANSMITTANCE_TEX_SLOT

#define VOLUME_TRANSMITTANCE_TEX_SLOT   9

Definition at line 237 of file eevee_defines.hh.

Variable Documentation

◆ CULLING_SELECT_GROUP_SIZE

int CULLING_SELECT_GROUP_SIZE = 256
staticconstexpr

Definition at line 27 of file eevee_defines.hh.

◆ CULLING_SORT_GROUP_SIZE

int CULLING_SORT_GROUP_SIZE = 256
staticconstexpr

Definition at line 28 of file eevee_defines.hh.

◆ CULLING_TILE_GROUP_SIZE

int CULLING_TILE_GROUP_SIZE = 256
staticconstexpr

Definition at line 30 of file eevee_defines.hh.

◆ CULLING_ZBIN_GROUP_SIZE

int CULLING_ZBIN_GROUP_SIZE = 1024
staticconstexpr

Definition at line 29 of file eevee_defines.hh.

◆ DOF_BOKEH_LUT_SIZE

int DOF_BOKEH_LUT_SIZE = 32
staticconstexpr

Definition at line 175 of file eevee_defines.hh.

◆ DOF_DEFAULT_GROUP_SIZE

int DOF_DEFAULT_GROUP_SIZE = 32
staticconstexpr

Definition at line 180 of file eevee_defines.hh.

◆ DOF_FILTER_GROUP_SIZE

int DOF_FILTER_GROUP_SIZE = 8
staticconstexpr

Definition at line 182 of file eevee_defines.hh.

◆ DOF_GATHER_GROUP_SIZE

int DOF_GATHER_GROUP_SIZE = DOF_TILES_SIZE
staticconstexpr

Definition at line 183 of file eevee_defines.hh.

◆ DOF_MAX_SLIGHT_FOCUS_RADIUS

int DOF_MAX_SLIGHT_FOCUS_RADIUS = 5
staticconstexpr

Definition at line 176 of file eevee_defines.hh.

◆ DOF_MIP_COUNT

int DOF_MIP_COUNT = 4
staticconstexpr

Definition at line 178 of file eevee_defines.hh.

◆ DOF_REDUCE_GROUP_SIZE

int DOF_REDUCE_GROUP_SIZE = (1 << (DOF_MIP_COUNT - 1))
staticconstexpr

Definition at line 179 of file eevee_defines.hh.

◆ DOF_RESOLVE_GROUP_SIZE

int DOF_RESOLVE_GROUP_SIZE = (DOF_TILES_SIZE * 2)
staticconstexpr

Definition at line 184 of file eevee_defines.hh.

◆ DOF_SLIGHT_FOCUS_SAMPLE_MAX

int DOF_SLIGHT_FOCUS_SAMPLE_MAX = 16
staticconstexpr

Definition at line 177 of file eevee_defines.hh.

◆ DOF_STABILIZE_GROUP_SIZE

int DOF_STABILIZE_GROUP_SIZE = 16
staticconstexpr

Definition at line 181 of file eevee_defines.hh.

◆ DOF_TILES_DILATE_GROUP_SIZE

int DOF_TILES_DILATE_GROUP_SIZE = 8
staticconstexpr

Definition at line 174 of file eevee_defines.hh.

◆ DOF_TILES_FLATTEN_GROUP_SIZE

int DOF_TILES_FLATTEN_GROUP_SIZE = DOF_TILES_SIZE
staticconstexpr

Definition at line 173 of file eevee_defines.hh.

◆ DOF_TILES_SIZE

int DOF_TILES_SIZE = 8
staticconstexpr

Definition at line 172 of file eevee_defines.hh.

◆ HIZ_GROUP_SIZE

int HIZ_GROUP_SIZE = 16
staticconstexpr

Definition at line 22 of file eevee_defines.hh.

◆ HIZ_MIP_COUNT

int HIZ_MIP_COUNT = 7
staticconstexpr

Definition at line 18 of file eevee_defines.hh.

◆ IRRADIANCE_GRID_MAX

int IRRADIANCE_GRID_MAX = 64
staticconstexpr

Maximum number of entities inside the cache.

Definition at line 169 of file eevee_defines.hh.

◆ PLANAR_PROBE_MAX

int PLANAR_PROBE_MAX = 16
staticconstexpr

Limited by the performance impact it can cause. Limited by the max layer count supported by a hardware (256). Limited by the UBO size limit (16384 bytes / sizeof(PlanarProbeData)).

Definition at line 67 of file eevee_defines.hh.

◆ RAYTRACE_GROUP_SIZE

int RAYTRACE_GROUP_SIZE = 8
staticconstexpr

Definition at line 148 of file eevee_defines.hh.

◆ SHADOW_AABB_TAG_GROUP_SIZE

int SHADOW_AABB_TAG_GROUP_SIZE = 64
staticconstexpr

Definition at line 117 of file eevee_defines.hh.

◆ SHADOW_ATOMIC

int SHADOW_ATOMIC = 1
staticconstexpr

Definition at line 127 of file eevee_defines.hh.

◆ SHADOW_BOUNDS_GROUP_SIZE

int SHADOW_BOUNDS_GROUP_SIZE = 64
staticconstexpr

Definition at line 122 of file eevee_defines.hh.

◆ SHADOW_CLIPMAP_GROUP_SIZE

int SHADOW_CLIPMAP_GROUP_SIZE = 64
staticconstexpr

Definition at line 123 of file eevee_defines.hh.

◆ SHADOW_DEPTH_SCAN_GROUP_SIZE

int SHADOW_DEPTH_SCAN_GROUP_SIZE = 8
staticconstexpr

Definition at line 116 of file eevee_defines.hh.

◆ SHADOW_MAP_MAX_RES

int SHADOW_MAP_MAX_RES = (SHADOW_PAGE_RES * SHADOW_TILEMAP_RES)
staticconstexpr

Definition at line 115 of file eevee_defines.hh.

◆ SHADOW_MAX_PAGE

int SHADOW_MAX_PAGE = 8192
staticconstexpr

Definition at line 121 of file eevee_defines.hh.

◆ SHADOW_MAX_RAY

int SHADOW_MAX_RAY = 4
staticconstexpr

Definition at line 134 of file eevee_defines.hh.

◆ SHADOW_MAX_STEP

int SHADOW_MAX_STEP = 16
staticconstexpr

Definition at line 133 of file eevee_defines.hh.

◆ SHADOW_MAX_TILE

int SHADOW_MAX_TILE
staticconstexpr
Initial value:
static constexpr int SHADOW_MAX_TILEMAP
static constexpr int SHADOW_TILEDATA_PER_TILEMAP

Definition at line 119 of file eevee_defines.hh.

◆ SHADOW_MAX_TILEMAP

int SHADOW_MAX_TILEMAP = 4096
staticconstexpr

Definition at line 118 of file eevee_defines.hh.

◆ SHADOW_PAGE_CLEAR_GROUP_SIZE

int SHADOW_PAGE_CLEAR_GROUP_SIZE = 32
staticconstexpr

Definition at line 109 of file eevee_defines.hh.

◆ SHADOW_PAGE_LOD

int SHADOW_PAGE_LOD = 8
staticconstexpr

Definition at line 111 of file eevee_defines.hh.

◆ SHADOW_PAGE_MAX_LAYER

int SHADOW_PAGE_MAX_LAYER = 128
staticconstexpr

Definition at line 130 of file eevee_defines.hh.

◆ SHADOW_PAGE_PER_COL

int SHADOW_PAGE_PER_COL = 8
staticconstexpr

Definition at line 129 of file eevee_defines.hh.

◆ SHADOW_PAGE_PER_LAYER

int SHADOW_PAGE_PER_LAYER
staticconstexpr
Initial value:
static constexpr int SHADOW_PAGE_PER_ROW
static constexpr int SHADOW_PAGE_PER_COL

Definition at line 131 of file eevee_defines.hh.

◆ SHADOW_PAGE_PER_ROW

int SHADOW_PAGE_PER_ROW = 8
staticconstexpr

Definition at line 128 of file eevee_defines.hh.

◆ SHADOW_PAGE_RES

int SHADOW_PAGE_RES = 256
staticconstexpr

Definition at line 110 of file eevee_defines.hh.

◆ SHADOW_RENDER_MAP_SIZE

int SHADOW_RENDER_MAP_SIZE
staticconstexpr
Initial value:
static constexpr int SHADOW_TILEMAP_LOD0_LEN
static constexpr int SHADOW_VIEW_MAX

Definition at line 125 of file eevee_defines.hh.

◆ SHADOW_ROG_ID

int SHADOW_ROG_ID = 0
staticconstexpr

Definition at line 135 of file eevee_defines.hh.

◆ SHADOW_TILEDATA_PER_TILEMAP

int SHADOW_TILEDATA_PER_TILEMAP
staticconstexpr
Initial value:
=
static constexpr int SHADOW_TILEMAP_LOD5_LEN
static constexpr int SHADOW_TILEMAP_LOD3_LEN
static constexpr int SHADOW_TILEMAP_LOD2_LEN
static constexpr int SHADOW_TILEMAP_LOD4_LEN
static constexpr int SHADOW_TILEMAP_LOD1_LEN

Definition at line 97 of file eevee_defines.hh.

◆ SHADOW_TILEMAP_LOD

int SHADOW_TILEMAP_LOD = 5
staticconstexpr

Definition at line 82 of file eevee_defines.hh.

◆ SHADOW_TILEMAP_LOD0_LEN

int SHADOW_TILEMAP_LOD0_LEN
staticconstexpr
Initial value:
static constexpr int SHADOW_TILEMAP_RES

Definition at line 84 of file eevee_defines.hh.

◆ SHADOW_TILEMAP_LOD1_LEN

int SHADOW_TILEMAP_LOD1_LEN
staticconstexpr
Initial value:

Definition at line 86 of file eevee_defines.hh.

◆ SHADOW_TILEMAP_LOD2_LEN

int SHADOW_TILEMAP_LOD2_LEN
staticconstexpr
Initial value:

Definition at line 88 of file eevee_defines.hh.

◆ SHADOW_TILEMAP_LOD3_LEN

int SHADOW_TILEMAP_LOD3_LEN
staticconstexpr
Initial value:

Definition at line 90 of file eevee_defines.hh.

◆ SHADOW_TILEMAP_LOD4_LEN

int SHADOW_TILEMAP_LOD4_LEN
staticconstexpr
Initial value:

Definition at line 92 of file eevee_defines.hh.

◆ SHADOW_TILEMAP_LOD5_LEN

int SHADOW_TILEMAP_LOD5_LEN
staticconstexpr
Initial value:

Definition at line 94 of file eevee_defines.hh.

◆ SHADOW_TILEMAP_MAX_CLIPMAP_LOD

int SHADOW_TILEMAP_MAX_CLIPMAP_LOD = 8
staticconstexpr

Definition at line 101 of file eevee_defines.hh.

◆ SHADOW_TILEMAP_PER_ROW

int SHADOW_TILEMAP_PER_ROW = 64
staticconstexpr

Definition at line 96 of file eevee_defines.hh.

◆ SHADOW_TILEMAP_RES

int SHADOW_TILEMAP_RES = 32
staticconstexpr

IMPORTANT: Some data packing are tweaked for these values. Be sure to update them accordingly. SHADOW_TILEMAP_RES max is 32 because of the shared bitmaps used for LOD tagging. It is also limited by the maximum thread group size (1024).

Definition at line 81 of file eevee_defines.hh.

◆ SHADOW_VIEW_MAX

int SHADOW_VIEW_MAX = 64
staticconstexpr

Definition at line 124 of file eevee_defines.hh.

◆ SPHERE_PROBE_ATLAS_MAX_SUBDIV

int SPHERE_PROBE_ATLAS_MAX_SUBDIV = 12
staticconstexpr

Definition at line 41 of file eevee_defines.hh.

◆ SPHERE_PROBE_ATLAS_RES

int SPHERE_PROBE_ATLAS_RES
staticconstexpr
Initial value:
= (1
static constexpr int SPHERE_PROBE_ATLAS_MAX_SUBDIV

Definition at line 42 of file eevee_defines.hh.

◆ SPHERE_PROBE_GROUP_SIZE

int SPHERE_PROBE_GROUP_SIZE = 16
staticconstexpr

Definition at line 35 of file eevee_defines.hh.

◆ SPHERE_PROBE_MAX

int SPHERE_PROBE_MAX = 128
staticconstexpr

Limited by the UBO size limit (16384 bytes / sizeof(SphereProbeData)).

Definition at line 57 of file eevee_defines.hh.

◆ SPHERE_PROBE_MAX_HARMONIC

int SPHERE_PROBE_MAX_HARMONIC
staticconstexpr
Initial value:
=
static constexpr int SPHERE_PROBE_REMAP_GROUP_SIZE
static constexpr int SPHERE_PROBE_ATLAS_RES

Definition at line 45 of file eevee_defines.hh.

◆ SPHERE_PROBE_MIP_MAX_ROUGHNESS

float SPHERE_PROBE_MIP_MAX_ROUGHNESS = 0.7f
staticconstexpr

Definition at line 52 of file eevee_defines.hh.

◆ SPHERE_PROBE_MIPMAP_LEVELS

int SPHERE_PROBE_MIPMAP_LEVELS = 5
staticconstexpr

Definition at line 37 of file eevee_defines.hh.

◆ SPHERE_PROBE_MIX_END_ROUGHNESS

float SPHERE_PROBE_MIX_END_ROUGHNESS = 0.9f
staticconstexpr

Definition at line 50 of file eevee_defines.hh.

◆ SPHERE_PROBE_MIX_START_ROUGHNESS

float SPHERE_PROBE_MIX_START_ROUGHNESS = 0.7f
staticconstexpr

Definition at line 49 of file eevee_defines.hh.

◆ SPHERE_PROBE_REMAP_GROUP_SIZE

int SPHERE_PROBE_REMAP_GROUP_SIZE = 32
staticconstexpr

Definition at line 34 of file eevee_defines.hh.

◆ SPHERE_PROBE_SELECT_GROUP_SIZE

int SPHERE_PROBE_SELECT_GROUP_SIZE = 64
staticconstexpr

Definition at line 36 of file eevee_defines.hh.

◆ SPHERE_PROBE_SH_GROUP_SIZE

int SPHERE_PROBE_SH_GROUP_SIZE = 256
staticconstexpr

Definition at line 38 of file eevee_defines.hh.

◆ SPHERE_PROBE_SH_SAMPLES_PER_GROUP

int SPHERE_PROBE_SH_SAMPLES_PER_GROUP = 64
staticconstexpr

Definition at line 39 of file eevee_defines.hh.

◆ SUBSURFACE_GROUP_SIZE

int SUBSURFACE_GROUP_SIZE = RAYTRACE_GROUP_SIZE
staticconstexpr

Definition at line 156 of file eevee_defines.hh.

◆ VOLUME_HIT_DEPTH_MAX

int VOLUME_HIT_DEPTH_MAX = 16
staticconstexpr

Definition at line 199 of file eevee_defines.hh.