ezEngine Release 26.3
Loading...
Searching...
No Matches
ezExtractedRenderData Class Reference

#include <ExtractedRenderData.h>

Public Member Functions

EZ_ALWAYS_INLINE void SetCamera (const ezCamera &camera)
 
EZ_ALWAYS_INLINE const ezCameraGetCamera () const
 
EZ_ALWAYS_INLINE void SetViewData (const ezViewData &viewData)
 
EZ_ALWAYS_INLINE const ezViewDataGetViewData () const
 
EZ_ALWAYS_INLINE void SetWorldTime (ezTime time)
 
EZ_ALWAYS_INLINE ezTime GetWorldTime () const
 
EZ_ALWAYS_INLINE void SetWorldDebugContext (const ezDebugRendererContext &debugContext)
 
EZ_ALWAYS_INLINE const ezDebugRendererContextGetWorldDebugContext () const
 
EZ_ALWAYS_INLINE void SetViewDebugContext (const ezDebugRendererContext &debugContext)
 
EZ_ALWAYS_INLINE const ezDebugRendererContextGetViewDebugContext () const
 
void AddRenderData (const ezRenderData *pRenderData, ezRenderData::Category category)
 Adds render data for a specific rendering category.
 
void AddFrameData (const ezRenderData *pFrameData)
 Adds frame-level data that is not tied to a specific render category.
 
void SortAndBatch ()
 Sorts and batches all render data by category and sorting key for efficient rendering.
 
void Clear ()
 
ezRenderDataBatchList GetRenderDataBatchesWithCategory (ezRenderData::Category category) const
 Returns all render data batches for a specific category.
 
ezArrayPtr< const ezRenderDataBatch::SortableRenderData > GetRawRenderDataWithCategory (ezRenderData::Category category) const
 Returns raw unsorted render data for a specific category.
 
template<typename T >
EZ_ALWAYS_INLINE const T * GetFrameData () const
 

Detailed Description

Contains all render data extracted from a view for one frame.

During the extraction phase, render components add their render data to this container, organized by category (opaque, transparent, etc.). The data is then sorted and batched for efficient rendering. Also stores camera data, view data, world time, and debug contexts.


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