TextStudio2DBatchKey
public readonly struct TextStudio2DBatchKeyRenderer batch identity. It intentionally contains no style asset or fingerprint.
Constructors
Section titled “Constructors”
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 |
Methods
Section titled “Methods”
Equals(TextStudio2DBatchKey)
Section titled “Equals(TextStudio2DBatchKey)”public bool Equals(TextStudio2DBatchKey other)Parameters
| Name | Type |
|---|---|
other |
TextStudio.TextStudio2DBatchKey |
Returns
System.Boolean
Equals(object)
Section titled “Equals(object)”public override bool Equals(object obj)Parameters
| Name | Type |
|---|---|
obj |
System.Object |
Returns
System.Boolean
GetHashCode()
Section titled “GetHashCode()”public override int GetHashCode()Returns
System.Int32
Operators
Section titled “Operators”
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
Properties
Section titled “Properties”
ExecutionPath
Section titled “ExecutionPath”public TextStudio2DExecutionPath ExecutionPath { get; }Returns
TextStudio.TextStudio2DExecutionPath
Features
Section titled “Features”public TextStudio2DShaderFeatures Features { get; }Returns
TextStudio.TextStudio2DShaderFeatures
OutputBlend
Section titled “OutputBlend”public TextStudio2DBlendMode OutputBlend { get; }Returns
TextStudio.TextStudio2DBlendMode
SurfaceFormat
Section titled “SurfaceFormat”public byte SurfaceFormat { get; }Returns
System.Byte