mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
91 lines
4.5 KiB
C#
91 lines
4.5 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="JobSystemThreadPool.Create(uint, uint, int)"/>
|
|
[LibraryImport("jolt", EntryPoint = "JobSystemThreadPool_Create")]
|
|
public static partial JobSystemThreadPool JobSystemThreadPool_Create(
|
|
uint maxJobs,
|
|
uint maxBarriers,
|
|
int numThreads
|
|
);
|
|
|
|
/// <inheritdoc cref="JobSystemThreadPool.Create()"/>
|
|
[LibraryImport("jolt", EntryPoint = "JobSystemThreadPool_Create_2")]
|
|
public static partial JobSystemThreadPool JobSystemThreadPool_Create_2();
|
|
|
|
[LibraryImport("jolt", EntryPoint = "JobSystemThreadPool_Destroy")]
|
|
public static partial void JobSystemThreadPool_Destroy(JobSystemThreadPool self);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Core/JobSystemThreadPool.h#L38">Jolt/Core/JobSystemThreadPool.h:38</see>
|
|
/// <br/>
|
|
/// <c>void SetThreadInitFunction(const InitExitFunction &inInitFunction)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// initFunction: The callback is invoked from native code: it must be a static method marked
|
|
/// [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])], and userData is passed back to it
|
|
/// verbatim. Pass null for none. The callback and userData are retained by the native object until they
|
|
/// are replaced or the owner is destroyed - keep whatever userData points at (a GCHandle, an
|
|
/// allocation) alive for at least that long, and don't free it at the end of the call.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "JobSystemThreadPool_SetThreadInitFunction")]
|
|
public static partial void JobSystemThreadPool_SetThreadInitFunction(
|
|
JobSystemThreadPool self,
|
|
delegate* unmanaged[Cdecl]<int, nint, void> initFunction,
|
|
nint initFunctionUserData
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Core/JobSystemThreadPool.h#L39">Jolt/Core/JobSystemThreadPool.h:39</see>
|
|
/// <br/>
|
|
/// <c>void SetThreadExitFunction(const InitExitFunction &inExitFunction)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// exitFunction: The callback is invoked from native code: it must be a static method marked
|
|
/// [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])], and userData is passed back to it
|
|
/// verbatim. Pass null for none. The callback and userData are retained by the native object until they
|
|
/// are replaced or the owner is destroyed - keep whatever userData points at (a GCHandle, an
|
|
/// allocation) alive for at least that long, and don't free it at the end of the call.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "JobSystemThreadPool_SetThreadExitFunction")]
|
|
public static partial void JobSystemThreadPool_SetThreadExitFunction(
|
|
JobSystemThreadPool self,
|
|
delegate* unmanaged[Cdecl]<int, nint, void> exitFunction,
|
|
nint exitFunctionUserData
|
|
);
|
|
|
|
/// <inheritdoc cref="JobSystemThreadPool.Init(uint, uint, int)"/>
|
|
[LibraryImport("jolt", EntryPoint = "JobSystemThreadPool_Init")]
|
|
public static partial void JobSystemThreadPool_Init(
|
|
JobSystemThreadPool self,
|
|
uint maxJobs,
|
|
uint maxBarriers,
|
|
int numThreads
|
|
);
|
|
|
|
/// <inheritdoc cref="JobSystemThreadPool.SetNumThreads(int)"/>
|
|
[LibraryImport("jolt", EntryPoint = "JobSystemThreadPool_SetNumThreads")]
|
|
public static partial void JobSystemThreadPool_SetNumThreads(JobSystemThreadPool self, int numThreads);
|
|
}
|
|
}
|
|
}
|