Blender V5.0
blender::eevee::ShadowTileData Struct Reference

#include <eevee_shadow_shared.hh>

Public Attributes

uint3 page
uint cache_index
bool is_used
bool do_update
bool is_allocated
bool is_rendered
bool is_cached

Detailed Description

Decoded tile data structure.

Definition at line 181 of file eevee_shadow_shared.hh.

Member Data Documentation

◆ cache_index

uint blender::eevee::ShadowTileData::cache_index

Page index inside pages_cached_buf. Only valid if is_cached is true.

Definition at line 185 of file eevee_shadow_shared.hh.

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

◆ do_update

bool blender::eevee::ShadowTileData::do_update

True if an update is needed. This persists even if the tile gets unused.

Definition at line 189 of file eevee_shadow_shared.hh.

Referenced by blender::draw::test_eevee_shadow_tag_update(), and blender::draw::test_eevee_shadow_tile_packing().

◆ is_allocated

bool blender::eevee::ShadowTileData::is_allocated

True if the tile owns the page (mutually exclusive with is_cached).

Definition at line 191 of file eevee_shadow_shared.hh.

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

◆ is_cached

bool blender::eevee::ShadowTileData::is_cached

True if the tile is inside the pages_cached_buf (mutually exclusive with is_allocated).

Definition at line 196 of file eevee_shadow_shared.hh.

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

◆ is_rendered

bool blender::eevee::ShadowTileData::is_rendered

True if the tile has been staged for rendering. This will remove the do_update flag.

Definition at line 193 of file eevee_shadow_shared.hh.

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

◆ is_used

bool blender::eevee::ShadowTileData::is_used

◆ page

uint3 blender::eevee::ShadowTileData::page

Page inside the virtual shadow map atlas.

Definition at line 183 of file eevee_shadow_shared.hh.

Referenced by blender::eevee::shadow_sampling_tile_create(), and blender::draw::test_eevee_shadow_tile_packing().


The documentation for this struct was generated from the following file: