brutal/brutal.jolt/Brutal.Jolt/Generated/PInvoke/StateRecorder.gen.cs
2026-10-15 14:12:02 +13:00

76 lines
4.3 KiB
C#

// <auto-generated/>
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
public static partial class Jolt
{
public static unsafe partial class PInvoke
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/StateRecorder.h#L121">Jolt/Physics/StateRecorder.h:121</see>
/// <br/>
/// <c>void SetValidating(bool inValidating)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Sets the stream in validation mode. In this case the physics system ensures that before it calls ReadBytes that it will
/// ensure that those bytes contain the current state. This makes it possible to step and save the state, restore to the previous
/// step and step again and when the recorded state is not the same it can restore the expected state and any byte that changes
/// due to a ReadBytes function can be caught to find out which part of the simulation is not deterministic.
/// Note that validation only works when saving the full state of the simulation (EStateRecorderState::All, StateRecorderFilter == nullptr).
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "StateRecorder_SetValidating")]
public static partial void StateRecorder_SetValidating(StateRecorder self, Brutal.Bool8 validating);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/StateRecorder.h#L122">Jolt/Physics/StateRecorder.h:122</see>
/// <br/>
/// <c>bool IsValidating() const</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "StateRecorder_IsValidating")]
public static partial Brutal.Bool8 StateRecorder_IsValidating(StateRecorder self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/StateRecorder.h#L128">Jolt/Physics/StateRecorder.h:128</see>
/// <br/>
/// <c>void SetIsLastPart(bool inIsLastPart)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// This allows splitting the state in multiple parts. While restoring, only the last part should have this flag set to true.
/// Note that you should ensure that the different parts contain information for disjoint sets of bodies, constraints and contacts.
/// E.g. if you restore the same contact twice, you get undefined behavior. In order to create disjoint sets you can use the StateRecorderFilter.
/// Note that validation is not compatible with restoring a simulation state in multiple parts.
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "StateRecorder_SetIsLastPart")]
public static partial void StateRecorder_SetIsLastPart(StateRecorder self, Brutal.Bool8 isLastPart);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/StateRecorder.h#L129">Jolt/Physics/StateRecorder.h:129</see>
/// <br/>
/// <c>bool IsLastPart() const</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "StateRecorder_IsLastPart")]
public static partial Brutal.Bool8 StateRecorder_IsLastPart(StateRecorder self);
[LibraryImport("jolt", EntryPoint = "StateRecorder_AsStreamIn")]
public static partial StreamIn StateRecorder_AsStreamIn(StateRecorder self);
[LibraryImport("jolt", EntryPoint = "StateRecorder_AsStreamOut")]
public static partial StreamOut StateRecorder_AsStreamOut(StateRecorder self);
}
}
}