Table of Contents

Class InvasiveHashDiagnostics

Namespace
BepuPhysics
Assembly
BepuPhysics.dll

Helper diagnostics class for monitoring internal state determinism across runs. Typically used by inserting tests into engine internals.

public class InvasiveHashDiagnostics
Inheritance
InvasiveHashDiagnostics
Inherited Members

Fields

CurrentHashIndex

public int CurrentHashIndex

Field Value

int

CurrentRunIndex

public int CurrentRunIndex

Field Value

int

Hashes

public int[][][] Hashes

Field Value

int[][][]

Instance

public static InvasiveHashDiagnostics Instance

Field Value

InvasiveHashDiagnostics

Methods

ContributeToHash(HashDiagnosticType, int)

public void ContributeToHash(HashDiagnosticType hashType, int value)

Parameters

hashType HashDiagnosticType
value int

ContributeToHash(ref int, int)

public void ContributeToHash(ref int hash, int value)

Parameters

hash int
value int

ContributeToHash<T>(HashDiagnosticType, T)

public void ContributeToHash<T>(HashDiagnosticType hashType, T value) where T : unmanaged

Parameters

hashType HashDiagnosticType
value T

Type Parameters

T

ContributeToHash<T>(ref int, T)

public void ContributeToHash<T>(ref int hash, T value) where T : unmanaged

Parameters

hash int
value T

Type Parameters

T

GetHashForType(HashDiagnosticType)

public ref int GetHashForType(HashDiagnosticType hashType)

Parameters

hashType HashDiagnosticType

Returns

int

Initialize(int, int)

public static void Initialize(int runCount, int hashCapacityPerType)

Parameters

runCount int
hashCapacityPerType int

MoveToNextHashFrame()

public void MoveToNextHashFrame()

MoveToNextRun()

public void MoveToNextRun()

TypeIsActive(HashDiagnosticType)

public bool TypeIsActive(HashDiagnosticType hashType)

Parameters

hashType HashDiagnosticType

Returns

bool