Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::batch_collector_t< Key > Class Template Reference

#include <batch_collector.h>

Public Types

using batch_map_t = std::unordered_map<Key, batch_group_t<Key>>
 
using batch_list_t = std::vector<batch_group_t<Key>*>
 

Public Member Functions

 batch_collector_t ()
 
 ~batch_collector_t ()=default
 
 batch_collector_t (const batch_collector_t &)=delete
 
auto operator= (const batch_collector_t &) -> batch_collector_t &=delete
 
 batch_collector_t (batch_collector_t &&) noexcept=default
 
auto operator= (batch_collector_t &&) noexcept -> batch_collector_t &=default
 
void collect_renderable (const Key &key, const batch_instance &instance)
 
void collect_renderable (const Key &key, const math::mat4 &world_transform)
 
void prepare_batches (const submit_context &context)
 
auto get_prepared_batches () const -> const batch_list_t &
 
void clear ()
 
auto get_stats () const -> const batch_stats &
 
auto get_batch_count () const -> size_t
 
auto get_instance_count () const -> size_t
 
auto has_batches () const -> bool
 
void set_max_instances_per_batch (uint32_t max_instances)
 
void set_profiling_enabled (bool enabled)
 

Static Public Member Functions

static auto is_static_mesh_batching_enabled () -> bool
 
static void set_static_mesh_batching_enabled (bool enabled)
 

Detailed Description

template<typename Key>
class unravel::batch_collector_t< Key >

Definition at line 69 of file batch_collector.h.

Member Typedef Documentation

◆ batch_list_t

template<typename Key >
using unravel::batch_collector_t< Key >::batch_list_t = std::vector<batch_group_t<Key>*>

Definition at line 73 of file batch_collector.h.

◆ batch_map_t

template<typename Key >
using unravel::batch_collector_t< Key >::batch_map_t = std::unordered_map<Key, batch_group_t<Key>>

Definition at line 72 of file batch_collector.h.

Constructor & Destructor Documentation

◆ batch_collector_t() [1/3]

template<typename Key >
unravel::batch_collector_t< Key >::batch_collector_t ( )
default

◆ ~batch_collector_t()

template<typename Key >
unravel::batch_collector_t< Key >::~batch_collector_t ( )
default

◆ batch_collector_t() [2/3]

template<typename Key >
unravel::batch_collector_t< Key >::batch_collector_t ( const batch_collector_t< Key > & )
delete

◆ batch_collector_t() [3/3]

template<typename Key >
unravel::batch_collector_t< Key >::batch_collector_t ( batch_collector_t< Key > && )
defaultnoexcept

Member Function Documentation

◆ clear()

template<typename Key >
void unravel::batch_collector_t< Key >::clear ( )

Definition at line 130 of file batch_collector.hpp.

◆ collect_renderable() [1/2]

template<typename Key >
void unravel::batch_collector_t< Key >::collect_renderable ( const Key & key,
const batch_instance & instance )

Definition at line 61 of file batch_collector.hpp.

◆ collect_renderable() [2/2]

template<typename Key >
void unravel::batch_collector_t< Key >::collect_renderable ( const Key & key,
const math::mat4 & world_transform )

Definition at line 80 of file batch_collector.hpp.

◆ get_batch_count()

template<typename Key >
auto unravel::batch_collector_t< Key >::get_batch_count ( ) const -> size_t

Definition at line 144 of file batch_collector.hpp.

◆ get_instance_count()

template<typename Key >
auto unravel::batch_collector_t< Key >::get_instance_count ( ) const -> size_t

Definition at line 150 of file batch_collector.hpp.

◆ get_prepared_batches()

template<typename Key >
auto unravel::batch_collector_t< Key >::get_prepared_batches ( ) const -> const batch_list_t&

Definition at line 124 of file batch_collector.hpp.

◆ get_stats()

template<typename Key >
auto unravel::batch_collector_t< Key >::get_stats ( ) const -> const batch_stats&

Definition at line 138 of file batch_collector.hpp.

◆ has_batches()

template<typename Key >
auto unravel::batch_collector_t< Key >::has_batches ( ) const -> bool

Definition at line 161 of file batch_collector.hpp.

◆ is_static_mesh_batching_enabled()

template<typename Key >
static auto unravel::batch_collector_t< Key >::is_static_mesh_batching_enabled ( ) -> bool
inlinestatic

Definition at line 77 of file batch_collector.h.

◆ operator=() [1/2]

template<typename Key >
auto unravel::batch_collector_t< Key >::operator= ( batch_collector_t< Key > && ) -> batch_collector_t &=default
defaultnoexcept

◆ operator=() [2/2]

template<typename Key >
auto unravel::batch_collector_t< Key >::operator= ( const batch_collector_t< Key > & ) -> batch_collector_t &=delete
delete

◆ prepare_batches()

template<typename Key >
void unravel::batch_collector_t< Key >::prepare_batches ( const submit_context & context)

Definition at line 86 of file batch_collector.hpp.

◆ set_max_instances_per_batch()

template<typename Key >
void unravel::batch_collector_t< Key >::set_max_instances_per_batch ( uint32_t max_instances)

Definition at line 167 of file batch_collector.hpp.

◆ set_profiling_enabled()

template<typename Key >
void unravel::batch_collector_t< Key >::set_profiling_enabled ( bool enabled)

Definition at line 173 of file batch_collector.hpp.

◆ set_static_mesh_batching_enabled()

template<typename Key >
static void unravel::batch_collector_t< Key >::set_static_mesh_batching_enabled ( bool enabled)
inlinestatic

Definition at line 82 of file batch_collector.h.


The documentation for this class was generated from the following files: