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

#include <ClusteredDataExtractor.h>

Inheritance diagram for ezClusteredDataCPU:

Public Types

enum  { MAX_NUM_LIGHTS = EZ_BIT(10) , MAX_NUM_DECALS = EZ_BIT(10) , MAX_NUM_REFLECTION_PROBES = EZ_BIT(8) }
 
- Public Types inherited from ezRenderData
using SortingKeyFunc = ezUInt64(*)(const ezRenderData *, const ezCamera &)
 This function generates a 64bit sorting key for the given render data. Data with lower sorting key is rendered first.
 

Public Attributes

ezArrayPtr< ezPerLightData > m_LightData
 
ezArrayPtr< ezPerDecalData > m_DecalData
 
ezArrayPtr< ezPerReflectionProbeData > m_ReflectionProbeData
 
ezArrayPtr< ezPerClusterData > m_ClusterData
 
ezArrayPtr< ezUInt32 > m_ClusterItemList
 
ezUInt32 m_uiBrightestDirectionalLightIndex = 0
 
ezUInt32 m_uiSkyIrradianceIndex = 0
 
ezEnum< ezCameraUsageHintm_cameraUsageHint = ezCameraUsageHint::Default
 
float m_fFogHeight = 0.0f
 
float m_fFogHeightFalloff = 0.0f
 
float m_fFogDensityAtCameraPos = 0.0f
 
float m_fFogDensity = 0.0f
 
float m_fFogStartDistance = 0.0f
 
float m_fFogInvSkyDistance = 0.0f
 
ezColor m_FogColor = ezColor::Black
 
- Public Attributes inherited from ezRenderData
ezBitflags< Flagsm_Flags
 
ezVec3 m_vGlobalPosition = ezVec3::MakeZero()
 
float m_fSortingDepthOffset = 0.0f
 
ezUInt32 m_uiSortingKey = 0
 
ezGameObjectHandle m_hOwner
 

Additional Inherited Members

- Public Member Functions inherited from ezRenderData
bool IsDynamic () const
 
bool IsStatic () const
 
bool FlipWinding () const
 
ezUInt64 GetFinalSortingKey (Category category, const ezCamera &camera) const
 Returns the final sorting for this render data with the given category and camera.
 
virtual bool CanBatch (const ezRenderData &other) const
 Returns whether this render data and the other render data can be batched together, e.g. rendered in one draw call. An implementation can assume that the other render data is of the same type as this render data.
 
- Public Member Functions inherited from ezReflectedClass
virtual const ezRTTIGetDynamicRTTI () const
 
bool IsInstanceOf (const ezRTTI *pType) const
 Returns whether the type of this instance is of the given type or derived from it.
 
template<typename T >
EZ_ALWAYS_INLINE bool IsInstanceOf () const
 Returns whether the type of this instance is of the given type or derived from it.
 
- Static Public Member Functions inherited from ezRenderData
static Category RegisterCategory (const char *szCategoryName, SortingKeyFunc sortingKeyFunc)
 
static Category RegisterDerivedCategory (const char *szCategoryName, Category baseCategory)
 
static Category RegisterRedirectedCategory (const char *szCategoryName, Category staticCategory, Category dynamicCategory)
 
static Category FindCategory (ezTempHashedString sCategoryName)
 
static Category ResolveCategory (Category category, bool bDynamic)
 
static ezHashedString GetCategoryName (Category category)
 
static void GetAllCategoryNames (ezDynamicArray< ezHashedString > &out_categoryNames)
 
- Static Public Member Functions inherited from ezNoBase
static const ezRTTIGetStaticRTTI ()
 

Detailed Description

CPU-side data for clustered rendering containing lights, decals, and reflection probes.

Used by the clustered rendering system to organize lights, decals, and probes into spatial clusters for efficient per-pixel lookup during shading. The clusters divide the view frustum into a 3D grid.


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