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

#include <batch_collector.h>

Public Member Functions

 batch_group_t ()=default
 
 batch_group_t (const Key &key)
 
void add_instance (const batch_instance &instance)
 
void calculate_camera_distance (const math::vec3 &camera_pos)
 
auto is_valid () const -> bool
 
auto get_gpu_memory_size () const -> size_t
 

Public Attributes

Key key
 
batch_instance_collection instances
 
float camera_distance = 0.0f
 
bool is_split_batch = false
 

Detailed Description

template<typename Key>
struct unravel::batch_group_t< Key >

Definition at line 41 of file batch_collector.h.

Constructor & Destructor Documentation

◆ batch_group_t() [1/2]

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

◆ batch_group_t() [2/2]

template<typename Key >
unravel::batch_group_t< Key >::batch_group_t ( const Key & key)
explicit

Definition at line 10 of file batch_collector.hpp.

Member Function Documentation

◆ add_instance()

template<typename Key >
void unravel::batch_group_t< Key >::add_instance ( const batch_instance & instance)

Definition at line 16 of file batch_collector.hpp.

◆ calculate_camera_distance()

template<typename Key >
void unravel::batch_group_t< Key >::calculate_camera_distance ( const math::vec3 & camera_pos)

Definition at line 22 of file batch_collector.hpp.

◆ get_gpu_memory_size()

template<typename Key >
auto unravel::batch_group_t< Key >::get_gpu_memory_size ( ) const -> size_t

Definition at line 52 of file batch_collector.hpp.

◆ is_valid()

template<typename Key >
auto unravel::batch_group_t< Key >::is_valid ( ) const -> bool

Definition at line 46 of file batch_collector.hpp.

Member Data Documentation

◆ camera_distance

template<typename Key >
float unravel::batch_group_t< Key >::camera_distance = 0.0f

Definition at line 45 of file batch_collector.h.

◆ instances

template<typename Key >
batch_instance_collection unravel::batch_group_t< Key >::instances

Definition at line 44 of file batch_collector.h.

◆ is_split_batch

template<typename Key >
bool unravel::batch_group_t< Key >::is_split_batch = false

Definition at line 46 of file batch_collector.h.

◆ key

template<typename Key >
Key unravel::batch_group_t< Key >::key

Definition at line 43 of file batch_collector.h.


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