Interface IRenderEncoderMetrics
Counts what the encoders submit, in total and for each pass. Reset() clears the counts.
public interface IRenderEncoderMetrics
Properties
BackendFlushes
The times a batch was flushed to the backend since the last Reset().
int BackendFlushes { get; }
Property Value
PassMetrics
The counts for each pass, by name. Empty when nothing has been submitted.
IReadOnlyList<RenderEncoderPassMetrics> PassMetrics { get; }
Property Value
ResourceAllocatorStats
The transient render target statistics last recorded with UpdateResourceAllocatorStats(FrameGraphResourceAllocatorStats).
FrameGraphResourceAllocatorStats ResourceAllocatorStats { get; }
Property Value
SubmittedCallbacks
The draw callbacks submitted with SubmitDrawCall(Action) since the last Reset().
int SubmittedCallbacks { get; }
Property Value
SubmittedShapes
The shapes submitted since the last Reset().
int SubmittedShapes { get; }
Property Value
SubmittedSprites
The sprites submitted since the last Reset().
int SubmittedSprites { get; }
Property Value
Methods
IncrementBackendFlush(RenderPassTag, string)
Counts one flush of a batch to the backend, for the pass called passName.
void IncrementBackendFlush(RenderPassTag passTag, string passName)
Parameters
passTagRenderPassTagpassNamestring
IncrementCallbacks(RenderPassTag, string, int)
Adds amount to the callback count of the pass called passName, which is counted as "Pass" when the name is blank.
void IncrementCallbacks(RenderPassTag passTag, string passName, int amount = 1)
Parameters
passTagRenderPassTagpassNamestringamountint
IncrementShapes(RenderPassTag, string, int)
Adds amount to the shape count of the pass called passName, which is counted as "Pass" when the name is blank.
void IncrementShapes(RenderPassTag passTag, string passName, int amount = 1)
Parameters
passTagRenderPassTagpassNamestringamountint
IncrementSprites(RenderPassTag, string, int)
Adds amount to the sprite count of the pass called passName, which is counted as "Pass" when the name is blank.
void IncrementSprites(RenderPassTag passTag, string passName, int amount = 1)
Parameters
passTagRenderPassTagpassNamestringamountint
Reset()
Clears every count, the per-pass counts and the allocator statistics.
void Reset()
UpdateResourceAllocatorStats(FrameGraphResourceAllocatorStats)
Records stats as the current transient render target statistics.
void UpdateResourceAllocatorStats(FrameGraphResourceAllocatorStats stats)