brutal/Brutal.Jolt/Generated/Classes/JobSystemSingleThreaded.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

76 lines
3 KiB
C#

// <auto-generated/>
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
/// <summary>
/// <para>
/// Implementation of a JobSystem without threads, runs jobs as soon as they are added
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Core/JobSystemSingleThreaded.h#L13">Jolt/Core/JobSystemSingleThreaded.h:13</see>
/// <br/>
/// <c>class JobSystemSingleThreaded final : public JobSystem</c>
/// </para>
/// </summary>
[InteropHandle]
public readonly partial struct JobSystemSingleThreaded : IDisposable
{
/// <summary>
/// <para>
/// Constructor
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Core/JobSystemSingleThreaded.h#L19">Jolt/Core/JobSystemSingleThreaded.h:19</see>
/// <br/>
/// <c>JobSystemSingleThreaded() = default</c>
/// </para>
/// </summary>
public static JobSystemSingleThreaded Create() => Jolt.PInvoke.JobSystemSingleThreaded_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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>
/// Initialize the job system
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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);
/// <inheritdoc cref="JobSystem.GetMaxConcurrency()"/>
public int GetMaxConcurrency() => ((JobSystem)this).GetMaxConcurrency();
public static implicit operator JobSystem(JobSystemSingleThreaded value) =>
Unsafe.BitCast<JobSystemSingleThreaded, JobSystem>(value);
public void Dispose() => Jolt.PInvoke.JobSystemSingleThreaded_Destroy(this);
}
}