mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
50
brutal.jolt/Brutal.Jolt/Generated/PInvoke/MortonCode.gen.cs
Normal file
50
brutal.jolt/Brutal.Jolt/Generated/PInvoke/MortonCode.gen.cs
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using Brutal.Interop;
|
||||
using Brutal.Numerics;
|
||||
namespace Brutal.JoltApi
|
||||
{
|
||||
public static partial class Jolt
|
||||
{
|
||||
public static unsafe partial class PInvoke
|
||||
{
|
||||
[LibraryImport("jolt", EntryPoint = "MortonCode_Create")]
|
||||
public static partial MortonCode MortonCode_Create();
|
||||
[LibraryImport("jolt", EntryPoint = "MortonCode_Destroy")]
|
||||
public static partial void MortonCode_Destroy(MortonCode self);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/MortonCode.h#L16">Jolt/Geometry/MortonCode.h:16</see>
|
||||
/// <br/>
|
||||
/// <c>static uint32 sExpandBits(float inV)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// First converts a floating point value in the range [0, 1] to a 10 bit fixed point integer.
|
||||
/// Then expands a 10-bit integer into 30 bits by inserting 2 zeros after each bit.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "MortonCode_sExpandBits")]
|
||||
public static partial uint MortonCode_sExpandBits(float v);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/MortonCode.h#L29">Jolt/Geometry/MortonCode.h:29</see>
|
||||
/// <br/>
|
||||
/// <c>static uint32 sGetMortonCode(Vec3Arg inVector, const AABox &inVectorBounds)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Calculate the morton code for inVector, given that all vectors lie in inVectorBounds
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "MortonCode_sGetMortonCode")]
|
||||
public static partial uint MortonCode_sGetMortonCode(float3 vector, AABox vectorBounds);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue