mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,102 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using Brutal.Interop;
|
||||
using Brutal.Numerics;
|
||||
namespace Brutal.JoltApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/JobSystemThreadPool.h#L25">Jolt/Core/JobSystemThreadPool.h:25</see>
|
||||
/// <br/>
|
||||
/// <c>class JobSystemThreadPool final : public JobSystemWithBarrier</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Implementation of a JobSystem using a thread pool
|
||||
///
|
||||
/// Note that this is considered an example implementation. It is expected that when you integrate
|
||||
/// the physics engine into your own project that you'll provide your own implementation of the
|
||||
/// JobSystem built on top of whatever job system your project uses.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[InteropHandle]
|
||||
public readonly partial struct JobSystemThreadPool : IDisposable
|
||||
{
|
||||
/// <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>
|
||||
public static JobSystemThreadPool Create(uint maxJobs, uint maxBarriers, int numThreads) => Jolt.PInvoke.JobSystemThreadPool_Create(maxJobs, maxBarriers, 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>
|
||||
public static JobSystemThreadPool Create() => Jolt.PInvoke.JobSystemThreadPool_Create_2();
|
||||
/// <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>
|
||||
public void Init(uint maxJobs, uint maxBarriers, int numThreads) => Jolt.PInvoke.JobSystemThreadPool_Init(this, maxJobs, maxBarriers, 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>
|
||||
public int GetMaxConcurrency() => Jolt.PInvoke.JobSystemThreadPool_GetMaxConcurrency(this);
|
||||
/// <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>
|
||||
public void SetNumThreads(int numThreads) => Jolt.PInvoke.JobSystemThreadPool_SetNumThreads(this, numThreads);
|
||||
public static implicit operator JobSystemWithBarrier(JobSystemThreadPool value) => Jolt.PInvoke.JobSystemThreadPool_AsJobSystemWithBarrier(value);
|
||||
public static implicit operator JobSystem(JobSystemThreadPool value) => Jolt.PInvoke.JobSystemThreadPool_AsJobSystem(value);
|
||||
public void Dispose() => Jolt.PInvoke.JobSystemThreadPool_Destroy(this);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue