Skip to content

TextStudio2DRenderStatistics

StructTextStudioTextStudio
public readonly struct TextStudio2DRenderStatistics

Read-only snapshot of how one text rendered its 2D Appearance in the latest presentation update. Categories are disjoint, so their sum is the text’s scheduled work: direct draws present the visible output, offscreen draws and passes build an isolated composition, and shadow draws render only into shadow maps. Counts are scheduled submissions before engine batching; the Frame Debugger or a GPU profiler measures merged hardware draws.

public TextStudio2DRoute Route { get; }

How the text’s Appearance executes.

Returns

TextStudio.TextStudio2DRoute

public TextStudio2DRouteReason Reason { get; }

The first condition that selected TextStudio.TextStudio2DRenderStatistics.Route.

Returns

TextStudio.TextStudio2DRouteReason

public int DirectDraws { get; }

Draws presenting the visible output: native field submeshes, ordered primitive runs or the composed quad.

Returns

System.Int32

public bool WorldBatched { get; }

True while a TextStudio.TextStudioWorldBatchGroup draws this text; its draws count on the group.

Returns

System.Boolean

public int OffscreenLayerDraws { get; }

Glyph and surface draws into offscreen composition targets.

Returns

System.Int32

public int CompositePasses { get; }

Full-target blend passes that combine offscreen surfaces, excluding filter passes.

Returns

System.Int32

public int FilterPasses { get; }

Blur, warp, history, lens and other image-filter passes.

Returns

System.Int32

public int PublishPasses { get; }

Copies of a finished composition into its shared output page slice.

Returns

System.Int32

public int ShadowDraws { get; }

Draws into shadow maps for alpha-clipped world shadows.

Returns

System.Int32

public int CompositionWidth { get; }

Offscreen composition size in pixels, or zero without a composition.

Returns

System.Int32

public int CompositionHeight { get; }

Offscreen composition size in pixels, or zero without a composition.

Returns

System.Int32

public int OffscreenWork { get; }

Scheduled offscreen work: layer draws plus composite, filter and publish passes.

Returns

System.Int32