mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
565 lines
26 KiB
C#
565 lines
26 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
|
|
{
|
|
/// <inheritdoc cref="Jolt.RegisterDefaultAllocator()"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_RegisterDefaultAllocator")]
|
|
public static partial void RegisterDefaultAllocator();
|
|
|
|
/// <inheritdoc cref="Jolt.HashBytes(Ptr, ByteSize, ulong)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_HashBytes")]
|
|
public static partial ulong HashBytes(void* data, uint size, ulong seed);
|
|
|
|
/// <inheritdoc cref="Jolt.HashString(RefString8, ulong)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_HashString")]
|
|
public static partial ulong HashString(byte* @string, ulong seed);
|
|
|
|
/// <inheritdoc cref="Jolt.Hash64(ulong)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_Hash64")]
|
|
public static partial ulong Hash64(ulong value);
|
|
|
|
/// <inheritdoc cref="Jolt.DegreesToRadians(float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_DegreesToRadians")]
|
|
public static partial float DegreesToRadians(float v);
|
|
|
|
/// <inheritdoc cref="Jolt.RadiansToDegrees(float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_RadiansToDegrees")]
|
|
public static partial float RadiansToDegrees(float v);
|
|
|
|
/// <inheritdoc cref="Jolt.CenterAngleAroundZero(float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_CenterAngleAroundZero")]
|
|
public static partial float CenterAngleAroundZero(float v);
|
|
|
|
/// <inheritdoc cref="Jolt.DifferenceOfProducts(float, float, float, float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_DifferenceOfProducts")]
|
|
public static partial float DifferenceOfProducts(float a, float b, float c, float d);
|
|
|
|
/// <inheritdoc cref="Jolt.Sqrt(float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_Sqrt")]
|
|
public static partial float Sqrt(float v);
|
|
|
|
/// <inheritdoc cref="Jolt.Sqrt(double)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_Sqrt_2")]
|
|
public static partial double Sqrt_2(double v);
|
|
|
|
/// <inheritdoc cref="Jolt.CountTrailingZeros(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_CountTrailingZeros")]
|
|
public static partial uint CountTrailingZeros(uint value);
|
|
|
|
/// <inheritdoc cref="Jolt.CountLeadingZeros(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_CountLeadingZeros")]
|
|
public static partial uint CountLeadingZeros(uint value);
|
|
|
|
/// <inheritdoc cref="Jolt.CountBits(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_CountBits")]
|
|
public static partial uint CountBits(uint value);
|
|
|
|
/// <inheritdoc cref="Jolt.GetNextPowerOf2(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_GetNextPowerOf2")]
|
|
public static partial uint GetNextPowerOf2(uint value);
|
|
|
|
/// <inheritdoc cref="Jolt.Sin(float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_Sin")]
|
|
public static partial float Sin(float x);
|
|
|
|
/// <inheritdoc cref="Jolt.Cos(float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_Cos")]
|
|
public static partial float Cos(float x);
|
|
|
|
/// <inheritdoc cref="Jolt.Tan(float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_Tan")]
|
|
public static partial float Tan(float x);
|
|
|
|
/// <inheritdoc cref="Jolt.ASin(float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_ASin")]
|
|
public static partial float ASin(float x);
|
|
|
|
/// <inheritdoc cref="Jolt.ACos(float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_ACos")]
|
|
public static partial float ACos(float x);
|
|
|
|
/// <inheritdoc cref="Jolt.ACosApproximate(float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_ACosApproximate")]
|
|
public static partial float ACosApproximate(float x);
|
|
|
|
/// <inheritdoc cref="Jolt.ATan(float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_ATan")]
|
|
public static partial float ATan(float x);
|
|
|
|
/// <inheritdoc cref="Jolt.ATan2(float, float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_ATan2")]
|
|
public static partial float ATan2(float y, float x);
|
|
|
|
/// <inheritdoc cref="Jolt.RayTriangle(float3, float3, float3, float3, float3)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_RayTriangle")]
|
|
public static partial float RayTriangle(float3 origin, float3 direction, float3 v0, float3 v1, float3 v2);
|
|
|
|
/// <inheritdoc cref="Jolt.RayTriangle4(float3, float3, float4, float4, float4, float4, float4, float4, float4, float4, float4)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_RayTriangle4")]
|
|
public static partial float4 RayTriangle4(
|
|
float3 origin,
|
|
float3 direction,
|
|
float4 v0x,
|
|
float4 v0y,
|
|
float4 v0z,
|
|
float4 v1x,
|
|
float4 v1y,
|
|
float4 v1z,
|
|
float4 v2x,
|
|
float4 v2y,
|
|
float4 v2z
|
|
);
|
|
|
|
/// <inheritdoc cref="Jolt.GetConfigurationString()"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_GetConfigurationString")]
|
|
public static partial byte* GetConfigurationString();
|
|
|
|
/// <inheritdoc cref="Jolt.GetProcessorTickCount()"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_GetProcessorTickCount")]
|
|
public static partial ulong GetProcessorTickCount();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Convert a string to lower case
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Core/StringTools.h#L33">Jolt/Core/StringTools.h:33</see>
|
|
/// <br/>
|
|
/// <c>String ToLower(const string_view &inString)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Returns a pointer into a thread-local buffer the next string-returning call on this thread
|
|
/// overwrites.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_ToLower")]
|
|
public static partial nint ToLower(byte* @string);
|
|
|
|
/// <inheritdoc cref="Jolt.NibbleToBinary(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_NibbleToBinary")]
|
|
public static partial byte* NibbleToBinary(uint nibble);
|
|
|
|
/// <inheritdoc cref="Jolt.AABox4VsBox(in AABox, float4, float4, float4, float4, float4, float4)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_AABox4VsBox")]
|
|
public static partial uint4 AABox4VsBox(
|
|
in AABox box1,
|
|
float4 box2MinX,
|
|
float4 box2MinY,
|
|
float4 box2MinZ,
|
|
float4 box2MaxX,
|
|
float4 box2MaxY,
|
|
float4 box2MaxZ
|
|
);
|
|
|
|
/// <inheritdoc cref="Jolt.AABox4VsBox(in float4x4, float3, float4, float4, float4, float4, float4, float4, float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_AABox4VsBox_2")]
|
|
public static partial uint4 AABox4VsBox_2(
|
|
in float4x4 orientation,
|
|
float3 halfExtents,
|
|
float4 boxMinX,
|
|
float4 boxMinY,
|
|
float4 boxMinZ,
|
|
float4 boxMaxX,
|
|
float4 boxMaxY,
|
|
float4 boxMaxZ,
|
|
float epsilon
|
|
);
|
|
|
|
/// <inheritdoc cref="Jolt.AABox4VsBox(OrientedBox, float4, float4, float4, float4, float4, float4, float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_AABox4VsBox_3")]
|
|
public static partial uint4 AABox4VsBox_3(
|
|
OrientedBox box,
|
|
float4 boxMinX,
|
|
float4 boxMinY,
|
|
float4 boxMinZ,
|
|
float4 boxMaxX,
|
|
float4 boxMaxY,
|
|
float4 boxMaxZ,
|
|
float epsilon
|
|
);
|
|
|
|
/// <inheritdoc cref="Jolt.AABox4VsPoint(float3, float4, float4, float4, float4, float4, float4)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_AABox4VsPoint")]
|
|
public static partial uint4 AABox4VsPoint(
|
|
float3 point,
|
|
float4 boxMinX,
|
|
float4 boxMinY,
|
|
float4 boxMinZ,
|
|
float4 boxMaxX,
|
|
float4 boxMaxY,
|
|
float4 boxMaxZ
|
|
);
|
|
|
|
/// <inheritdoc cref="Jolt.AABox4DistanceSqToPoint(float4, float4, float4, float4, float4, float4, float4, float4, float4)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_AABox4DistanceSqToPoint")]
|
|
public static partial float4 AABox4DistanceSqToPoint(
|
|
float4 pointX,
|
|
float4 pointY,
|
|
float4 pointZ,
|
|
float4 boxMinX,
|
|
float4 boxMinY,
|
|
float4 boxMinZ,
|
|
float4 boxMaxX,
|
|
float4 boxMaxY,
|
|
float4 boxMaxZ
|
|
);
|
|
|
|
/// <inheritdoc cref="Jolt.AABox4DistanceSqToPoint(float3, float4, float4, float4, float4, float4, float4)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_AABox4DistanceSqToPoint_2")]
|
|
public static partial float4 AABox4DistanceSqToPoint_2(
|
|
float3 point,
|
|
float4 boxMinX,
|
|
float4 boxMinY,
|
|
float4 boxMinZ,
|
|
float4 boxMaxX,
|
|
float4 boxMaxY,
|
|
float4 boxMaxZ
|
|
);
|
|
|
|
/// <inheritdoc cref="Jolt.AABox4VsSphere(float4, float4, float4, float4, float4, float4, float4, float4, float4, float4)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_AABox4VsSphere")]
|
|
public static partial uint4 AABox4VsSphere(
|
|
float4 centerX,
|
|
float4 centerY,
|
|
float4 centerZ,
|
|
float4 radiusSq,
|
|
float4 boxMinX,
|
|
float4 boxMinY,
|
|
float4 boxMinZ,
|
|
float4 boxMaxX,
|
|
float4 boxMaxY,
|
|
float4 boxMaxZ
|
|
);
|
|
|
|
/// <inheritdoc cref="Jolt.AABox4VsSphere(float3, float, float4, float4, float4, float4, float4, float4)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_AABox4VsSphere_2")]
|
|
public static partial uint4 AABox4VsSphere_2(
|
|
float3 center,
|
|
float radiusSq,
|
|
float4 boxMinX,
|
|
float4 boxMinY,
|
|
float4 boxMinZ,
|
|
float4 boxMaxX,
|
|
float4 boxMaxY,
|
|
float4 boxMaxZ
|
|
);
|
|
|
|
/// <inheritdoc cref="Jolt.Indexify(ReadOnlySpan{Triangle}, out NativeArray{float3}, out NativeArray{IndexedTriangle}, float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_Indexify")]
|
|
public static partial void Indexify(
|
|
Triangle* inTriangles,
|
|
nuint inTrianglesCount,
|
|
out nint outVertices,
|
|
out nint outTriangles,
|
|
float inVertexWeldDistance
|
|
);
|
|
|
|
/// <inheritdoc cref="Jolt.Deindexify(ReadOnlySpan{float3}, ReadOnlySpan{IndexedTriangle})"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_Deindexify")]
|
|
public static partial void Deindexify(
|
|
float3* inVertices,
|
|
nuint inVerticesCount,
|
|
IndexedTriangle* inTriangles,
|
|
nuint inTrianglesCount,
|
|
out nint outTriangles
|
|
);
|
|
|
|
/// <inheritdoc cref="Jolt.RayAABox(float3, RayInvDirection, float3, float3)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_RayAABox")]
|
|
public static partial float RayAABox(
|
|
float3 origin,
|
|
RayInvDirection invDirection,
|
|
float3 boundsMin,
|
|
float3 boundsMax
|
|
);
|
|
|
|
/// <inheritdoc cref="Jolt.RayAABox(float3, RayInvDirection, float3, float3, out float, out float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_RayAABox_2")]
|
|
public static partial void RayAABox_2(
|
|
float3 origin,
|
|
RayInvDirection invDirection,
|
|
float3 boundsMin,
|
|
float3 boundsMax,
|
|
out float min,
|
|
out float max
|
|
);
|
|
|
|
/// <inheritdoc cref="Jolt.RayAABox4(float3, RayInvDirection, float4, float4, float4, float4, float4, float4)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_RayAABox4")]
|
|
public static partial float4 RayAABox4(
|
|
float3 origin,
|
|
RayInvDirection invDirection,
|
|
float4 boundsMinX,
|
|
float4 boundsMinY,
|
|
float4 boundsMinZ,
|
|
float4 boundsMaxX,
|
|
float4 boundsMaxY,
|
|
float4 boundsMaxZ
|
|
);
|
|
|
|
/// <inheritdoc cref="Jolt.RayAABoxHits(float3, RayInvDirection, float3, float3, float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_RayAABoxHits")]
|
|
public static partial Brutal.Bool8 RayAABoxHits(
|
|
float3 origin,
|
|
RayInvDirection invDirection,
|
|
float3 boundsMin,
|
|
float3 boundsMax,
|
|
float closest
|
|
);
|
|
|
|
/// <inheritdoc cref="Jolt.RayAABoxHits(float3, float3, float3, float3)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_RayAABoxHits_2")]
|
|
public static partial Brutal.Bool8 RayAABoxHits_2(
|
|
float3 origin,
|
|
float3 direction,
|
|
float3 boundsMin,
|
|
float3 boundsMax
|
|
);
|
|
|
|
/// <inheritdoc cref="Jolt.RayCylinder(float3, float3, float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_RayCylinder")]
|
|
public static partial float RayCylinder(float3 rayOrigin, float3 rayDirection, float cylinderRadius);
|
|
|
|
/// <inheritdoc cref="Jolt.RayCylinder(float3, float3, float, float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_RayCylinder_2")]
|
|
public static partial float RayCylinder_2(
|
|
float3 rayOrigin,
|
|
float3 rayDirection,
|
|
float cylinderHalfHeight,
|
|
float cylinderRadius
|
|
);
|
|
|
|
/// <inheritdoc cref="Jolt.RaySphere(float3, float3, float3, float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_RaySphere")]
|
|
public static partial float RaySphere(
|
|
float3 rayOrigin,
|
|
float3 rayDirection,
|
|
float3 sphereCenter,
|
|
float sphereRadius
|
|
);
|
|
|
|
/// <inheritdoc cref="Jolt.RaySphere(float3, float3, float3, float, out float, out float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_RaySphere_2")]
|
|
public static partial int RaySphere_2(
|
|
float3 rayOrigin,
|
|
float3 rayDirection,
|
|
float3 sphereCenter,
|
|
float sphereRadius,
|
|
out float minFraction,
|
|
out float maxFraction
|
|
);
|
|
|
|
/// <inheritdoc cref="Jolt.RayCapsule(float3, float3, float, float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_RayCapsule")]
|
|
public static partial float RayCapsule(
|
|
float3 rayOrigin,
|
|
float3 rayDirection,
|
|
float capsuleHalfHeight,
|
|
float capsuleRadius
|
|
);
|
|
|
|
/// <inheritdoc cref="Jolt.EstimateCollisionResponse(Body, Body, in ContactManifold, ref CollisionEstimationResult, float, float, float, uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_EstimateCollisionResponse")]
|
|
public static partial void EstimateCollisionResponse(
|
|
Body body1,
|
|
Body body2,
|
|
in ContactManifold manifold,
|
|
ref CollisionEstimationResult result,
|
|
float combinedFriction,
|
|
float combinedRestitution,
|
|
float minVelocityForRestitution,
|
|
uint numIterations
|
|
);
|
|
|
|
/// <inheritdoc cref="Jolt.PruneContactPoints(float3, ref StaticArrayVec3_64, ref StaticArrayVec3_64, float3)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_PruneContactPoints")]
|
|
public static partial void PruneContactPoints(
|
|
float3 penetrationAxis,
|
|
ref StaticArrayVec3_64 contactPointsOn1,
|
|
ref StaticArrayVec3_64 contactPointsOn2,
|
|
float3 centerOfMass,
|
|
out uint outBufferCheck
|
|
);
|
|
|
|
/// <inheritdoc cref="Jolt.ManifoldBetweenTwoFaces(float3, float3, float3, float, ReadOnlySpan{float3}, ReadOnlySpan{float3}, out StaticArrayVec3_64, out StaticArrayVec3_64, float3)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_ManifoldBetweenTwoFaces")]
|
|
public static partial void ManifoldBetweenTwoFaces(
|
|
float3 contactPoint1,
|
|
float3 contactPoint2,
|
|
float3 penetrationAxis,
|
|
float maxContactDistance,
|
|
float3* shape1Face,
|
|
nuint shape1FaceCount,
|
|
float3* shape2Face,
|
|
nuint shape2FaceCount,
|
|
out StaticArrayVec3_64 contactPoints1,
|
|
out StaticArrayVec3_64 contactPoints2,
|
|
float3 centerOfMass
|
|
);
|
|
|
|
/// <inheritdoc cref="Jolt.IsVelocityMotor(MotorState)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_IsVelocityMotor")]
|
|
public static partial Brutal.Bool8 IsVelocityMotor(MotorState motorState);
|
|
|
|
/// <inheritdoc cref="Jolt.IsPositionMotor(MotorState)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_IsPositionMotor")]
|
|
public static partial Brutal.Bool8 IsPositionMotor(MotorState motorState);
|
|
|
|
/// <inheritdoc cref="Jolt.VerifyJoltVersionIDInternal(ulong)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_VerifyJoltVersionIDInternal")]
|
|
public static partial Brutal.Bool8 VerifyJoltVersionIDInternal(ulong versionID);
|
|
|
|
/// <inheritdoc cref="Jolt.VerifyJoltVersionID()"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_VerifyJoltVersionID")]
|
|
public static partial Brutal.Bool8 VerifyJoltVersionID();
|
|
|
|
/// <inheritdoc cref="Jolt.RegisterTypesInternal(ulong)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_RegisterTypesInternal")]
|
|
public static partial void RegisterTypesInternal(ulong versionID);
|
|
|
|
/// <inheritdoc cref="Jolt.RegisterTypes()"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_RegisterTypes")]
|
|
public static partial void RegisterTypes();
|
|
|
|
/// <inheritdoc cref="Jolt.UnregisterTypes()"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_UnregisterTypes")]
|
|
public static partial void UnregisterTypes();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Frees an owned native buffer, releasing its elements first when they are ref-counted.
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_NativeArrayDestroy")]
|
|
public static partial void NativeArrayDestroy(nint block);
|
|
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_ShapeToIDMapCreate")]
|
|
public static partial ShapeToIDMap ShapeToIDMapCreate();
|
|
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_ShapeToIDMapGetCount")]
|
|
public static partial uint ShapeToIDMapGetCount(ShapeToIDMap map);
|
|
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_ShapeToIDMapDestroy")]
|
|
public static partial void ShapeToIDMapDestroy(ShapeToIDMap map);
|
|
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_IDToShapeMapCreate")]
|
|
public static partial IDToShapeMap IDToShapeMapCreate();
|
|
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_IDToShapeMapGetCount")]
|
|
public static partial uint IDToShapeMapGetCount(IDToShapeMap map);
|
|
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_IDToShapeMapDestroy")]
|
|
public static partial void IDToShapeMapDestroy(IDToShapeMap map);
|
|
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_MaterialToIDMapCreate")]
|
|
public static partial MaterialToIDMap MaterialToIDMapCreate();
|
|
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_MaterialToIDMapGetCount")]
|
|
public static partial uint MaterialToIDMapGetCount(MaterialToIDMap map);
|
|
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_MaterialToIDMapDestroy")]
|
|
public static partial void MaterialToIDMapDestroy(MaterialToIDMap map);
|
|
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_IDToMaterialMapCreate")]
|
|
public static partial IDToMaterialMap IDToMaterialMapCreate();
|
|
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_IDToMaterialMapGetCount")]
|
|
public static partial uint IDToMaterialMapGetCount(IDToMaterialMap map);
|
|
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_IDToMaterialMapDestroy")]
|
|
public static partial void IDToMaterialMapDestroy(IDToMaterialMap map);
|
|
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_GroupFilterToIDMapCreate")]
|
|
public static partial GroupFilterToIDMap GroupFilterToIDMapCreate();
|
|
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_GroupFilterToIDMapGetCount")]
|
|
public static partial uint GroupFilterToIDMapGetCount(GroupFilterToIDMap map);
|
|
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_GroupFilterToIDMapDestroy")]
|
|
public static partial void GroupFilterToIDMapDestroy(GroupFilterToIDMap map);
|
|
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_IDToGroupFilterMapCreate")]
|
|
public static partial IDToGroupFilterMap IDToGroupFilterMapCreate();
|
|
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_IDToGroupFilterMapGetCount")]
|
|
public static partial uint IDToGroupFilterMapGetCount(IDToGroupFilterMap map);
|
|
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_IDToGroupFilterMapDestroy")]
|
|
public static partial void IDToGroupFilterMapDestroy(IDToGroupFilterMap map);
|
|
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_SharedSettingsToIDMapCreate")]
|
|
public static partial SharedSettingsToIDMap SharedSettingsToIDMapCreate();
|
|
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_SharedSettingsToIDMapGetCount")]
|
|
public static partial uint SharedSettingsToIDMapGetCount(SharedSettingsToIDMap map);
|
|
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_SharedSettingsToIDMapDestroy")]
|
|
public static partial void SharedSettingsToIDMapDestroy(SharedSettingsToIDMap map);
|
|
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_IDToSharedSettingsMapCreate")]
|
|
public static partial IDToSharedSettingsMap IDToSharedSettingsMapCreate();
|
|
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_IDToSharedSettingsMapGetCount")]
|
|
public static partial uint IDToSharedSettingsMapGetCount(IDToSharedSettingsMap map);
|
|
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_IDToSharedSettingsMapDestroy")]
|
|
public static partial void IDToSharedSettingsMapDestroy(IDToSharedSettingsMap map);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 1 when the handle up-cast at this index really is address-identity natively, so the managed bit copy
|
|
/// is correct; 0 when it is not, or the index is out of range.
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_UpCastIsIdentity")]
|
|
public static partial uint UpCastIsIdentity(uint index);
|
|
|
|
/// <inheritdoc cref="Jolt.GetLastError()"/>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_GetLastError")]
|
|
public static partial nint GetLastError();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Installs the function Jolt calls when one of its asserts fails, and returns whether the loaded
|
|
/// natives have asserts at all - only Debug natives, or ones built with JOLT_DEBUG, do. The handler
|
|
/// gets the failed expression, an optional message (may be null), and the file and line as UTF-8 C
|
|
/// strings; returning true breaks into the debugger, false carries on as a release build would. It runs
|
|
/// on whichever thread asserted, Jolt's workers included, so it must be a static method marked
|
|
/// [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])] and must not throw. Pass null to put
|
|
/// back Jolt's default, which breaks. Jolt reads the hook unsynchronised, so set it while no physics
|
|
/// update is running.
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_SetAssertHandler")]
|
|
public static partial Brutal.Bool8 SetAssertHandler(
|
|
delegate* unmanaged[Cdecl]<byte*, byte*, byte*, uint, Brutal.Bool8> handler
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Installs the function Jolt's log messages go to, as a formatted UTF-8 C string (at most 1023 bytes).
|
|
/// It runs on whichever thread logged, Jolt's workers included, so it must be a static method marked
|
|
/// [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])], thread-safe, and must not throw. Pass
|
|
/// null to drop the messages. Either way Jolt's own default, which asserts, is replaced - so natives
|
|
/// built with asserts don't treat a log line as a failure. Call it before the first physics update:
|
|
/// swapping handlers later is safe, but the first call installs Jolt's trace hook, which Jolt itself
|
|
/// only expects to change while nothing is running.
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "Jolt_SetTraceHandler")]
|
|
public static partial void SetTraceHandler(delegate* unmanaged[Cdecl]<byte*, void> handler);
|
|
}
|
|
}
|
|
}
|