Skip to content

TextStudio2DCostEstimate

StructTextStudioTextStudio
public readonly struct TextStudio2DCostEstimate

Like-for-like workload estimate surfaced to diagnostics and authoring UI.

TextStudio2DCostEstimate(int, int, int, int, int, int)

Section titled “TextStudio2DCostEstimate(int, int, int, int, int, int)”
public TextStudio2DCostEstimate(int fieldSamples, int textureSamples, int geometrySegments, int offscreenPasses, int intermediateSurfaces, int relativeFragmentCost)

Creates a workload estimate from field and texture samples, geometry segments, offscreen passes, intermediate surfaces, and relative fragment cost.

Parameters

Name Type
fieldSamples System.Int32
textureSamples System.Int32
geometrySegments System.Int32
offscreenPasses System.Int32
intermediateSurfaces System.Int32
relativeFragmentCost System.Int32

public int FieldSamples { get; }

Returns

System.Int32

public int TextureSamples { get; }

Returns

System.Int32

public int GeometrySegments { get; }

Returns

System.Int32

public int OffscreenPasses { get; }

Returns

System.Int32

public int IntermediateSurfaces { get; }

Peak concurrent Hero targets, including output, scratch, masks, and history.

Returns

System.Int32

public int RelativeFragmentCost { get; }

Returns

System.Int32