Blender  V3.3
eevee_defines.hh
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2021 Blender Foundation.
3  */
4 
12 #pragma once
13 
19 #define CULLING_BATCH_SIZE 1024
20 
27 #define SHADOW_TILEMAP_RES 16
28 #define SHADOW_TILEMAP_LOD 4 /* LOG2(SHADOW_TILEMAP_RES) */
29 #define SHADOW_TILEMAP_PER_ROW 64
30 #define SHADOW_PAGE_COPY_GROUP_SIZE 32
31 #define SHADOW_DEPTH_SCAN_GROUP_SIZE 32
32 #define SHADOW_AABB_TAG_GROUP_SIZE 64
33 #define SHADOW_MAX_TILEMAP 4096
34 #define SHADOW_MAX_PAGE 4096
35 #define SHADOW_PAGE_PER_ROW 64
36 
37 #define HIZ_MIP_COUNT 6u
38 /* Group size is 2x smaller because we simply copy the level 0. */
39 #define HIZ_GROUP_SIZE 1u << (HIZ_MIP_COUNT - 2u)
40 
41 #define RAYTRACE_GROUP_SIZE 16
42 #define RAYTRACE_MAX_TILES (16384 / RAYTRACE_GROUP_SIZE) * (16384 / RAYTRACE_GROUP_SIZE)
43 
44 /* Minimum visibility size. */
45 #define LIGHTPROBE_FILTER_VIS_GROUP_SIZE 16
46 
47 #define FILM_GROUP_SIZE 16