Skip to content

TextStudio2DBatchKey

StructTextStudioTextStudio
public readonly struct TextStudio2DBatchKey

Renderer batch identity. It intentionally contains no style asset or fingerprint.

TextStudio2DBatchKey(TextStudio2DExecutionPath, TextStudio2DShaderFeatures, TextStudio2DBlendMode, byte)

Section titled “TextStudio2DBatchKey(TextStudio2DExecutionPath, TextStudio2DShaderFeatures, TextStudio2DBlendMode, byte)”
public TextStudio2DBatchKey(TextStudio2DExecutionPath executionPath, TextStudio2DShaderFeatures features, TextStudio2DBlendMode outputBlend, byte surfaceFormat = 0)

Creates a batch identity from execution path, shader features, output blend mode, and surface format.

Parameters

Name Type
executionPath TextStudio.TextStudio2DExecutionPath
features TextStudio.TextStudio2DShaderFeatures
outputBlend TextStudio.TextStudio2DBlendMode
surfaceFormat System.Byte

public bool Equals(TextStudio2DBatchKey other)

Parameters

Name Type
other TextStudio.TextStudio2DBatchKey

Returns

System.Boolean

public override bool Equals(object obj)

Parameters

Name Type
obj System.Object

Returns

System.Boolean

public override int GetHashCode()

Returns

System.Int32

operator ==(TextStudio2DBatchKey, TextStudio2DBatchKey)

Section titled “operator ==(TextStudio2DBatchKey, TextStudio2DBatchKey)”
public static bool operator ==(TextStudio2DBatchKey left, TextStudio2DBatchKey right)

Returns whether two batch keys have equal execution paths, shader features, output blends, and surface formats.

Parameters

Name Type
left TextStudio.TextStudio2DBatchKey
right TextStudio.TextStudio2DBatchKey

Returns

System.Boolean

operator !=(TextStudio2DBatchKey, TextStudio2DBatchKey)

Section titled “operator !=(TextStudio2DBatchKey, TextStudio2DBatchKey)”
public static bool operator !=(TextStudio2DBatchKey left, TextStudio2DBatchKey right)

Returns whether two batch keys differ in execution path, shader features, output blend, or surface format.

Parameters

Name Type
left TextStudio.TextStudio2DBatchKey
right TextStudio.TextStudio2DBatchKey

Returns

System.Boolean

public TextStudio2DExecutionPath ExecutionPath { get; }

Returns

TextStudio.TextStudio2DExecutionPath

public TextStudio2DShaderFeatures Features { get; }

Returns

TextStudio.TextStudio2DShaderFeatures

public TextStudio2DBlendMode OutputBlend { get; }

Returns

TextStudio.TextStudio2DBlendMode

public byte SurfaceFormat { get; }

Returns

System.Byte