mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 21:18:24 +01:00
95 lines
5 KiB
C#
95 lines
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
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/JobSystemThreadPool.h#L32">Jolt/Core/JobSystemThreadPool.h:32</see>
|
|
/// <br/>
|
|
/// <c>JobSystemThreadPool(uint inMaxJobs, uint inMaxBarriers, int inNumThreads = -1)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Creates a thread pool.
|
|
/// @see JobSystemThreadPool::Init
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "JobSystemThreadPool_Create")]
|
|
public static partial JobSystemThreadPool JobSystemThreadPool_Create(uint maxJobs, uint maxBarriers, int numThreads);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/JobSystemThreadPool.h#L33">Jolt/Core/JobSystemThreadPool.h:33</see>
|
|
/// <br/>
|
|
/// <c>JobSystemThreadPool() = default</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[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/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/JobSystemThreadPool.h#L45">Jolt/Core/JobSystemThreadPool.h:45</see>
|
|
/// <br/>
|
|
/// <c>void Init(uint inMaxJobs, uint inMaxBarriers, int inNumThreads = -1)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Initialize the thread pool
|
|
/// @param inMaxJobs Max number of jobs that can be allocated at any time
|
|
/// @param inMaxBarriers Max number of barriers that can be allocated at any time
|
|
/// @param inNumThreads Number of threads to start (the number of concurrent jobs is 1 more because the main thread will also run jobs while waiting for a barrier to complete). Use -1 to auto detect the amount of CPU's.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "JobSystemThreadPool_Init")]
|
|
public static partial void JobSystemThreadPool_Init(JobSystemThreadPool self, uint maxJobs, uint maxBarriers, int numThreads);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/JobSystemThreadPool.h#L48">Jolt/Core/JobSystemThreadPool.h:48</see>
|
|
/// <br/>
|
|
/// <c>virtual int GetMaxConcurrency() const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See JobSystem
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "JobSystemThreadPool_GetMaxConcurrency")]
|
|
public static partial int JobSystemThreadPool_GetMaxConcurrency(JobSystemThreadPool self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/JobSystemThreadPool.h#L52">Jolt/Core/JobSystemThreadPool.h:52</see>
|
|
/// <br/>
|
|
/// <c>void SetNumThreads(int inNumThreads)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Change the max concurrency after initialization
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "JobSystemThreadPool_SetNumThreads")]
|
|
public static partial void JobSystemThreadPool_SetNumThreads(JobSystemThreadPool self, int numThreads);
|
|
[LibraryImport("jolt", EntryPoint = "JobSystemThreadPool_AsJobSystemWithBarrier")]
|
|
public static partial JobSystemWithBarrier JobSystemThreadPool_AsJobSystemWithBarrier(JobSystemThreadPool self);
|
|
[LibraryImport("jolt", EntryPoint = "JobSystemThreadPool_AsJobSystem")]
|
|
public static partial JobSystem JobSystemThreadPool_AsJobSystem(JobSystemThreadPool self);
|
|
}
|
|
}
|
|
}
|