//
// 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
{
///
///
/// C++:
/// Jolt/Core/JobSystemThreadPool.h:32
///
/// JobSystemThreadPool(uint inMaxJobs, uint inMaxBarriers, int inNumThreads = -1)
///
///
///
///
/// Creates a thread pool.
/// @see JobSystemThreadPool::Init
///
///
[LibraryImport("jolt", EntryPoint = "JobSystemThreadPool_Create")]
public static partial JobSystemThreadPool JobSystemThreadPool_Create(uint maxJobs, uint maxBarriers, int numThreads);
///
///
/// C++:
/// Jolt/Core/JobSystemThreadPool.h:33
///
/// JobSystemThreadPool() = default
///
///
[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);
///
///
/// C++:
/// Jolt/Core/JobSystemThreadPool.h:45
///
/// void Init(uint inMaxJobs, uint inMaxBarriers, int inNumThreads = -1)
///
///
///
///
/// 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.
///
///
[LibraryImport("jolt", EntryPoint = "JobSystemThreadPool_Init")]
public static partial void JobSystemThreadPool_Init(JobSystemThreadPool self, uint maxJobs, uint maxBarriers, int numThreads);
///
///
/// C++:
/// Jolt/Core/JobSystemThreadPool.h:48
///
/// virtual int GetMaxConcurrency() const override
///
///
///
///
/// See JobSystem
///
///
[LibraryImport("jolt", EntryPoint = "JobSystemThreadPool_GetMaxConcurrency")]
public static partial int JobSystemThreadPool_GetMaxConcurrency(JobSystemThreadPool self);
///
///
/// C++:
/// Jolt/Core/JobSystemThreadPool.h:52
///
/// void SetNumThreads(int inNumThreads)
///
///
///
///
/// Change the max concurrency after initialization
///
///
[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);
}
}
}