PURE API 0.5
PR00F's Ultimate Rendering Engine full documentation
Loading...
Searching...
No Matches
PureRendererHWfixedPipeImpl::LastFrameStats Class Reference

Last frame statistics collected until end of frame, then reset at the beginning of next frame. More...

Detailed Description

Last frame statistics collected until end of frame, then reset at the beginning of next frame.

Definition at line 54 of file PureRendererHWfixedPipe.cpp.

Public Member Functions

 LastFrameStats ()
 
void Reset ()
 
void Update (const PureObject3D &obj, const TPURE_RENDER_PASS &iRenderPass)
 Updates the per-frame stats with data from the given object.
 
TPureUInt getObjectsVisible () const
 
TPureUInt getObjectsOccluders () const
 
TPureUInt getOccludeesNonOcclusionTested () const
 
TPureUInt getOccludeesOcclusionTested () const
 
TPureUInt getOccludeesOcclusionTestedAndOccluded () const
 
TPureUInt getOccludeesOcclusionTestedAndNonOccluded () const
 
TPureUInt getOccludeesOcclusionTestedAndNonOccludedButNonVisibleAnyway () const
 
TPureUInt getTransferredVertices () const
 
TPureUInt getTransferredTriangles () const
 

Private Attributes

TPureUInt nLastFrameObjectsVisible
 
TPureUInt nLastFrameObjectsOccluders
 
TPureUInt nLastFrameObjectsNonOcclusionTested
 
TPureUInt nLastFrameObjectsOcclusionTested
 
TPureUInt nLastFrameObjectsOccluded
 
TPureUInt nLastFrameObjectsNonOccluded
 
TPureUInt nLastFrameObjectsNonOccludedButNotVisible
 
TPureUInt nLastFrameVertices
 
TPureUInt nLastFrameTriangles
 

Constructor & Destructor Documentation

◆ LastFrameStats()

PureRendererHWfixedPipeImpl::LastFrameStats::LastFrameStats ( )

Definition at line 221 of file PureRendererHWfixedPipe.cpp.

Member Function Documentation

◆ getObjectsOccluders()

TPureUInt PureRendererHWfixedPipeImpl::LastFrameStats::getObjectsOccluders ( ) const

Definition at line 306 of file PureRendererHWfixedPipe.cpp.

◆ getObjectsVisible()

TPureUInt PureRendererHWfixedPipeImpl::LastFrameStats::getObjectsVisible ( ) const

Definition at line 301 of file PureRendererHWfixedPipe.cpp.

◆ getOccludeesNonOcclusionTested()

TPureUInt PureRendererHWfixedPipeImpl::LastFrameStats::getOccludeesNonOcclusionTested ( ) const

Definition at line 311 of file PureRendererHWfixedPipe.cpp.

◆ getOccludeesOcclusionTested()

TPureUInt PureRendererHWfixedPipeImpl::LastFrameStats::getOccludeesOcclusionTested ( ) const

Definition at line 316 of file PureRendererHWfixedPipe.cpp.

◆ getOccludeesOcclusionTestedAndNonOccluded()

TPureUInt PureRendererHWfixedPipeImpl::LastFrameStats::getOccludeesOcclusionTestedAndNonOccluded ( ) const

Definition at line 326 of file PureRendererHWfixedPipe.cpp.

◆ getOccludeesOcclusionTestedAndNonOccludedButNonVisibleAnyway()

TPureUInt PureRendererHWfixedPipeImpl::LastFrameStats::getOccludeesOcclusionTestedAndNonOccludedButNonVisibleAnyway ( ) const

Definition at line 331 of file PureRendererHWfixedPipe.cpp.

◆ getOccludeesOcclusionTestedAndOccluded()

TPureUInt PureRendererHWfixedPipeImpl::LastFrameStats::getOccludeesOcclusionTestedAndOccluded ( ) const

Definition at line 321 of file PureRendererHWfixedPipe.cpp.

◆ getTransferredTriangles()

TPureUInt PureRendererHWfixedPipeImpl::LastFrameStats::getTransferredTriangles ( ) const

Definition at line 341 of file PureRendererHWfixedPipe.cpp.

◆ getTransferredVertices()

TPureUInt PureRendererHWfixedPipeImpl::LastFrameStats::getTransferredVertices ( ) const

Definition at line 336 of file PureRendererHWfixedPipe.cpp.

◆ Reset()

void PureRendererHWfixedPipeImpl::LastFrameStats::Reset ( )

Definition at line 226 of file PureRendererHWfixedPipe.cpp.

◆ Update()

void PureRendererHWfixedPipeImpl::LastFrameStats::Update ( const PureObject3D & obj,
const TPURE_RENDER_PASS & iRenderPass )

Updates the per-frame stats with data from the given object.

Only PURE_RPASS_NORMAL renderpass changes the following counters:

  • nLastFrameObjectsVisible;
  • nLastFrameObjectsOcclusionTested;
  • nLastFrameObjectsNonOccluded;
  • nLastFrameObjectsOccluded.

Vertex and triangle counters are updated by every renderpass by and kind of object.

Occluders do not update nLastFrameObjectsOcclusionTested even if occlusion testing is enabled for them because the renderer just doesn't test occlusion for occluders. Thus they dont update nLastFrameObjectsNonOccluded and nLastFrameObjectsOccluded either.

Definition at line 252 of file PureRendererHWfixedPipe.cpp.

Member Data Documentation

◆ nLastFrameObjectsNonOccluded

TPureUInt PureRendererHWfixedPipeImpl::LastFrameStats::nLastFrameObjectsNonOccluded
private

Definition at line 75 of file PureRendererHWfixedPipe.cpp.

◆ nLastFrameObjectsNonOccludedButNotVisible

TPureUInt PureRendererHWfixedPipeImpl::LastFrameStats::nLastFrameObjectsNonOccludedButNotVisible
private

Definition at line 76 of file PureRendererHWfixedPipe.cpp.

◆ nLastFrameObjectsNonOcclusionTested

TPureUInt PureRendererHWfixedPipeImpl::LastFrameStats::nLastFrameObjectsNonOcclusionTested
private

Definition at line 72 of file PureRendererHWfixedPipe.cpp.

◆ nLastFrameObjectsOccluded

TPureUInt PureRendererHWfixedPipeImpl::LastFrameStats::nLastFrameObjectsOccluded
private

Definition at line 74 of file PureRendererHWfixedPipe.cpp.

◆ nLastFrameObjectsOccluders

TPureUInt PureRendererHWfixedPipeImpl::LastFrameStats::nLastFrameObjectsOccluders
private

Definition at line 71 of file PureRendererHWfixedPipe.cpp.

◆ nLastFrameObjectsOcclusionTested

TPureUInt PureRendererHWfixedPipeImpl::LastFrameStats::nLastFrameObjectsOcclusionTested
private

Definition at line 73 of file PureRendererHWfixedPipe.cpp.

◆ nLastFrameObjectsVisible

TPureUInt PureRendererHWfixedPipeImpl::LastFrameStats::nLastFrameObjectsVisible
private

Definition at line 70 of file PureRendererHWfixedPipe.cpp.

◆ nLastFrameTriangles

TPureUInt PureRendererHWfixedPipeImpl::LastFrameStats::nLastFrameTriangles
private

Definition at line 78 of file PureRendererHWfixedPipe.cpp.

◆ nLastFrameVertices

TPureUInt PureRendererHWfixedPipeImpl::LastFrameStats::nLastFrameVertices
private

Definition at line 77 of file PureRendererHWfixedPipe.cpp.


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