SOURCE DUMP v1

This commit is contained in:
Rian Drake 2026-10-15 14:09:11 +13:00
commit fb20299e9d

View file

@ -0,0 +1,80 @@
// <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/JobSystemSingleThreaded.h#L13">Jolt/Core/JobSystemSingleThreaded.h:13</see>
/// <br/>
/// <c>class JobSystemSingleThreaded final : public JobSystem</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Implementation of a JobSystem without threads, runs jobs as soon as they are added
/// </para>
/// </remarks>
[InteropHandle]
public readonly partial struct JobSystemSingleThreaded : IDisposable
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/JobSystemSingleThreaded.h#L19">Jolt/Core/JobSystemSingleThreaded.h:19</see>
/// <br/>
/// <c>JobSystemSingleThreaded() = default</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Constructor
/// </para>
/// </remarks>
public static JobSystemSingleThreaded Create() => Jolt.PInvoke.JobSystemSingleThreaded_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/JobSystemSingleThreaded.h#L20">Jolt/Core/JobSystemSingleThreaded.h:20</see>
/// <br/>
/// <c>explicit JobSystemSingleThreaded(uint inMaxJobs)</c>
/// </para>
/// </summary>
public static JobSystemSingleThreaded Create(uint maxJobs) => Jolt.PInvoke.JobSystemSingleThreaded_Create_2(maxJobs);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/JobSystemSingleThreaded.h#L24">Jolt/Core/JobSystemSingleThreaded.h:24</see>
/// <br/>
/// <c>void Init(uint inMaxJobs)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Initialize the job system
/// @param inMaxJobs Max number of jobs that can be allocated at any time
/// </code>
/// </remarks>
public void Init(uint maxJobs) => Jolt.PInvoke.JobSystemSingleThreaded_Init(this, maxJobs);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/JobSystemSingleThreaded.h#L27">Jolt/Core/JobSystemSingleThreaded.h:27</see>
/// <br/>
/// <c>virtual int GetMaxConcurrency() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See JobSystem
/// </para>
/// </remarks>
public int GetMaxConcurrency() => Jolt.PInvoke.JobSystemSingleThreaded_GetMaxConcurrency(this);
public static implicit operator JobSystem(JobSystemSingleThreaded value) => Jolt.PInvoke.JobSystemSingleThreaded_AsJobSystem(value);
public void Dispose() => Jolt.PInvoke.JobSystemSingleThreaded_Destroy(this);
}
}