Core batch collection system for grouping compatible draw calls.
More...
#include <batch_collector.h>
Core batch collection system for grouping compatible draw calls.
Definition at line 141 of file batch_collector.h.
◆ batch_list_t
◆ batch_map_t
◆ batch_collector() [1/3]
| unravel::batch_collector::batch_collector |
( |
| ) |
|
◆ ~batch_collector()
| unravel::batch_collector::~batch_collector |
( |
| ) |
|
|
default |
◆ batch_collector() [2/3]
◆ batch_collector() [3/3]
◆ clear()
| void unravel::batch_collector::clear |
( |
| ) |
|
◆ collect_renderable() [1/2]
Collect a renderable object for batching.
- Parameters
-
| key | Batch key identifying the renderable |
| instance | Instance data for the object |
Definition at line 123 of file batch_collector.cpp.
◆ collect_renderable() [2/2]
| void unravel::batch_collector::collect_renderable |
( |
const batch_key & | key, |
|
|
const math::mat4 & | world_transform ) |
Collect a renderable with just world transform.
- Parameters
-
| key | Batch key identifying the renderable |
| world_transform | World transformation matrix |
Definition at line 143 of file batch_collector.cpp.
◆ get_batch_count()
| auto unravel::batch_collector::get_batch_count |
( |
| ) |
const -> size_t |
Get number of collected batches.
- Returns
- Number of unique batch keys collected
Definition at line 214 of file batch_collector.cpp.
◆ get_instance_count()
| auto unravel::batch_collector::get_instance_count |
( |
| ) |
const -> size_t |
Get total number of instances collected.
- Returns
- Total instances across all batches
Definition at line 219 of file batch_collector.cpp.
◆ get_prepared_batches()
| auto unravel::batch_collector::get_prepared_batches |
( |
| ) |
const -> const batch_list_t& |
Get prepared batches for rendering.
- Returns
- Vector of batch groups ready for submission
Definition at line 197 of file batch_collector.cpp.
◆ get_stats()
| auto unravel::batch_collector::get_stats |
( |
| ) |
const -> const batch_stats& |
◆ has_batches()
| auto unravel::batch_collector::has_batches |
( |
| ) |
const -> bool |
Check if any batches have been collected.
- Returns
- True if there are batches to render
Definition at line 229 of file batch_collector.cpp.
◆ is_static_mesh_batching_enabled()
| auto unravel::batch_collector::is_static_mesh_batching_enabled |
( |
| ) |
-> bool |
|
static |
Check if static mesh batching is enabled globally.
- Returns
- True if static mesh batching is enabled
Definition at line 377 of file batch_collector.cpp.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ prepare_batches()
| void unravel::batch_collector::prepare_batches |
( |
const submit_context & | context | ) |
|
Prepare batches for rendering (sort, split, optimize)
- Parameters
-
| context | Submit context with rendering parameters |
Definition at line 149 of file batch_collector.cpp.
◆ set_max_instances_per_batch()
| void unravel::batch_collector::set_max_instances_per_batch |
( |
uint32_t | max_instances | ) |
|
Set maximum instances per batch.
- Parameters
-
| max_instances | Maximum instances (0 = no limit) |
Definition at line 234 of file batch_collector.cpp.
◆ set_profiling_enabled()
| void unravel::batch_collector::set_profiling_enabled |
( |
bool | enabled | ) |
|
Enable or disable performance profiling.
- Parameters
-
| enabled | Whether to enable profiling |
Definition at line 239 of file batch_collector.cpp.
◆ set_static_mesh_batching_enabled()
| void unravel::batch_collector::set_static_mesh_batching_enabled |
( |
bool | enabled | ) |
|
|
static |
Enable or disable static mesh batching globally.
- Parameters
-
| enabled | True to enable batching, false to disable |
Definition at line 382 of file batch_collector.cpp.
The documentation for this class was generated from the following files:
- C:/Workspace/github/UnravelEngine/UnravelEngine/engine/engine/rendering/batch_collector.h
- C:/Workspace/github/UnravelEngine/UnravelEngine/engine/engine/rendering/batch_collector.cpp