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
CurrentRunIndex
public int CurrentRunIndex
Field Value
Hashes
public int[][][] Hashes
Field Value
- int[][][]
Instance
public static InvasiveHashDiagnostics Instance
Field Value
Methods
ContributeToHash(HashDiagnosticType, int)
public void ContributeToHash(HashDiagnosticType hashType, int value)
Parameters
hashType
HashDiagnosticTypevalue
int
ContributeToHash(ref int, int)
public void ContributeToHash(ref int hash, int value)
Parameters
ContributeToHash<T>(HashDiagnosticType, T)
public void ContributeToHash<T>(HashDiagnosticType hashType, T value) where T : unmanaged
Parameters
hashType
HashDiagnosticTypevalue
T
Type Parameters
T
ContributeToHash<T>(ref int, T)
public void ContributeToHash<T>(ref int hash, T value) where T : unmanaged
Parameters
hash
intvalue
T
Type Parameters
T
GetHashForType(HashDiagnosticType)
public ref int GetHashForType(HashDiagnosticType hashType)
Parameters
hashType
HashDiagnosticType
Returns
Initialize(int, int)
public static void Initialize(int runCount, int hashCapacityPerType)
Parameters
MoveToNextHashFrame()
public void MoveToNextHashFrame()
MoveToNextRun()
public void MoveToNextRun()
TypeIsActive(HashDiagnosticType)
public bool TypeIsActive(HashDiagnosticType hashType)
Parameters
hashType
HashDiagnosticType