Blender V5.3
eevee::surfel::list::prepare Namespace Reference

Classes

struct  Resources

Functions

void prepare_comp (Resources &srt, const draw::View &views, SurfelData &surfels, const uint3 global_id)

Function Documentation

◆ prepare_comp()

void eevee::surfel::list::prepare::prepare_comp ( Resources & srt,
const draw::View & views,
SurfelData & surfels,
const uint3 global_id )

Takes the scene surfel representation to build lists of surfels aligning with a given direction.

The lists heads are allocated to fit the surfel granularity.

Due to alignment the link and list head are split into several int arrays to avoid too much memory waste.

This steps only count the number of surfel per list.

Dispatch 1 thread per surfel.

Definition at line 62 of file eevee_surfel_list.bsl.hh.

References atomicAdd(), global_invocation_id, eevee::surfel::list_index_get(), ViewMatrices::position(), prepare_comp(), and resource_table.

Referenced by prepare_comp().