mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
76
Brutal.Jolt/Generated/Classes/JobSystemSingleThreaded.gen.cs
Normal file
76
Brutal.Jolt/Generated/Classes/JobSystemSingleThreaded.gen.cs
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
// <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);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue