brutal/brutal.jolt/Brutal.Jolt/Generated/Classes/FPFlushDenormals.gen.cs
2026-10-15 14:12:02 +13:00

29 lines
1.1 KiB
C#

// <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/FPFlushDenormals.h#L20">Jolt/Core/FPFlushDenormals.h:20</see>
/// <br/>
/// <c>class FPFlushDenormals : public FPControlWord&lt;_MM_FLUSH_ZERO_ON, _MM_FLUSH_ZERO_MASK&gt; { }</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Helper class that needs to be put on the stack to enable flushing denormals to zero
/// This can make floating point operations much faster when working with very small numbers
/// </code>
/// </remarks>
[InteropHandle]
public readonly partial struct FPFlushDenormals : IDisposable
{
public static FPFlushDenormals Create() => Jolt.PInvoke.FPFlushDenormals_Create();
public void Dispose() => Jolt.PInvoke.FPFlushDenormals_Destroy(this);
}
}