Open 3D Engine Atom Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::RPI::CullingDebugContext Class Reference

Classes

class  CullStats
 Per-view culling metrics. More...
 

Public Member Functions

CullStatsGetCullStatsForView (View *view)
 
void ResetCullStats ()
 
AZStd::unordered_map< View *, CullStats * > & LockAndGetAllCullStats ()
 For internal use only. Use GetCullStatsForView() instead.
 
void UnlockAllCullStats ()
 For internal use only.
 

Public Attributes

AZStd::mutex m_frozenFrustumsMutex
 
AZStd::unordered_map< View *, Frustum > m_frozenFrustums
 
bool m_enableStats = false
 
bool m_enableFrustumCulling = true
 
bool m_parallelOctreeTraversal = true
 
bool m_freezeFrustums = false
 
bool m_debugDraw = false
 
bool m_drawViewFrustum = false
 
bool m_drawFullyVisibleNodes = false
 
bool m_drawPartiallyVisibleNodes = false
 
bool m_drawBoundingBoxes = true
 
bool m_drawBoundingSpheres = false
 
bool m_drawLodRadii = false
 
bool m_drawWorldCoordinateAxes = false
 
int m_currentViewSelection = 0
 
AZ::Name m_currentViewSelectionName
 
uint32_t m_numCullablesInScene = 0
 

Member Function Documentation

◆ GetCullStatsForView()

CullStats & AZ::RPI::CullingDebugContext::GetCullStatsForView ( View view)

Finds or creates a new CullStats struct for a given view. Once accessed, use the CullStats to accumulate metrics for a frame. Is designed to be thread-safe


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