Blender V5.3
eevee::shadow::PageAllocator Struct Reference

#include <eevee_shadow_page_ops.bsl.hh>

Public Member Functions

void page_free (ShadowTileData &tile)
void page_alloc (ShadowTileData &tile)
void page_cache_append (ShadowTileData &tile, uint tile_index)
void page_cache_remove (ShadowTileData &tile)
void page_cache_update_page_ref (uint page_index, uint new_page_index)
void defrag ()

Public Attributes

ShadowPagesInfoData & pages_infos_buf
uint(& tiles_buf )[]
uint(& pages_free_buf )[]
uint2(& pages_cached_buf )[]

Detailed Description

Operations to move virtual shadow map pages between heaps and tiles. We reuse the blender::vector class denomination.

A page is can be in 3 state (free, cached, acquired). Each one correspond to a different owner.

Definition at line 31 of file eevee_shadow_page_ops.bsl.hh.

Member Function Documentation

◆ defrag()

void eevee::shadow::PageAllocator::defrag ( )
inline

◆ page_alloc()

void eevee::shadow::PageAllocator::page_alloc ( ShadowTileData & tile)
inline

Definition at line 58 of file eevee_shadow_page_ops.bsl.hh.

References assert, atomicAdd(), index, pages_free_buf, pages_infos_buf, and tile.

◆ page_cache_append()

void eevee::shadow::PageAllocator::page_cache_append ( ShadowTileData & tile,
uint tile_index )
inline

◆ page_cache_remove()

void eevee::shadow::PageAllocator::page_cache_remove ( ShadowTileData & tile)
inline

Definition at line 92 of file eevee_shadow_page_ops.bsl.hh.

References assert, index, pages_cached_buf, tile, and x.

◆ page_cache_update_page_ref()

void eevee::shadow::PageAllocator::page_cache_update_page_ref ( uint page_index,
uint new_page_index )
inline

Definition at line 108 of file eevee_shadow_page_ops.bsl.hh.

References pages_cached_buf, tile, tile_index, tiles_buf, and uint2::y.

Referenced by defrag().

◆ page_free()

void eevee::shadow::PageAllocator::page_free ( ShadowTileData & tile)
inline

Definition at line 43 of file eevee_shadow_page_ops.bsl.hh.

References assert, atomicAdd(), index, pages_free_buf, pages_infos_buf, and tile.

Member Data Documentation

◆ pages_cached_buf

uint2(& eevee::shadow::PageAllocator::pages_cached_buf)[]

◆ pages_free_buf

uint(& eevee::shadow::PageAllocator::pages_free_buf)[]

Definition at line 37 of file eevee_shadow_page_ops.bsl.hh.

Referenced by page_alloc(), and page_free().

◆ pages_infos_buf

ShadowPagesInfoData& eevee::shadow::PageAllocator::pages_infos_buf

Definition at line 32 of file eevee_shadow_page_ops.bsl.hh.

Referenced by defrag(), page_alloc(), page_cache_append(), and page_free().

◆ tiles_buf

uint(& eevee::shadow::PageAllocator::tiles_buf)[]

Definition at line 35 of file eevee_shadow_page_ops.bsl.hh.

Referenced by page_cache_update_page_ref().


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