// // 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 { /// /// /// Implementation of a JobSystem without threads, runs jobs as soon as they are added /// /// /// C++: /// Jolt/Core/JobSystemSingleThreaded.h:13 ///
/// class JobSystemSingleThreaded final : public JobSystem ///
///
[InteropHandle] public readonly partial struct JobSystemSingleThreaded : IDisposable { /// /// /// Constructor /// /// /// C++: /// Jolt/Core/JobSystemSingleThreaded.h:19 ///
/// JobSystemSingleThreaded() = default ///
///
public static JobSystemSingleThreaded Create() => Jolt.PInvoke.JobSystemSingleThreaded_Create(); /// /// /// C++: /// Jolt/Core/JobSystemSingleThreaded.h:20 ///
/// explicit JobSystemSingleThreaded(uint inMaxJobs) ///
///
public static JobSystemSingleThreaded Create(uint maxJobs) => Jolt.PInvoke.JobSystemSingleThreaded_Create_2(maxJobs); /// /// /// Initialize the job system /// /// /// C++: /// Jolt/Core/JobSystemSingleThreaded.h:24 ///
/// void Init(uint inMaxJobs) ///
///
/// /// /// Initialize the job system /// @param inMaxJobs Max number of jobs that can be allocated at any time /// /// public void Init(uint maxJobs) => Jolt.PInvoke.JobSystemSingleThreaded_Init(this, maxJobs); /// public int GetMaxConcurrency() => ((JobSystem)this).GetMaxConcurrency(); public static implicit operator JobSystem(JobSystemSingleThreaded value) => Unsafe.BitCast(value); public void Dispose() => Jolt.PInvoke.JobSystemSingleThreaded_Destroy(this); } }