mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
322 lines
14 KiB
C#
322 lines
14 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/Renderer/DebugRendererRecorder.h#L19">Jolt/Renderer/DebugRendererRecorder.h:19</see>
|
|
/// <br/>
|
|
/// <c>class JPH_DEBUG_RENDERER_EXPORT DebugRendererRecorder final : public DebugRenderer</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Implementation of DebugRenderer that records the API invocations to be played back later
|
|
/// </para>
|
|
/// </remarks>
|
|
[InteropHandle]
|
|
public readonly partial struct DebugRendererRecorder : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Renderer/DebugRendererRecorder.h#L39">Jolt/Renderer/DebugRendererRecorder.h:39</see>
|
|
/// <br/>
|
|
/// <c>enum class ECommand : uint8</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Control commands written into the stream
|
|
/// </para>
|
|
/// </remarks>
|
|
public enum ECommand : byte
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Renderer/DebugRendererRecorder.h#L41">Jolt/Renderer/DebugRendererRecorder.h:41</see>
|
|
/// <br/>
|
|
/// <c>CreateBatch</c>
|
|
/// </para>
|
|
/// </summary>
|
|
CreateBatch,
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Renderer/DebugRendererRecorder.h#L42">Jolt/Renderer/DebugRendererRecorder.h:42</see>
|
|
/// <br/>
|
|
/// <c>CreateBatchIndexed</c>
|
|
/// </para>
|
|
/// </summary>
|
|
CreateBatchIndexed,
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Renderer/DebugRendererRecorder.h#L43">Jolt/Renderer/DebugRendererRecorder.h:43</see>
|
|
/// <br/>
|
|
/// <c>CreateGeometry</c>
|
|
/// </para>
|
|
/// </summary>
|
|
CreateGeometry,
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Renderer/DebugRendererRecorder.h#L44">Jolt/Renderer/DebugRendererRecorder.h:44</see>
|
|
/// <br/>
|
|
/// <c>EndFrame</c>
|
|
/// </para>
|
|
/// </summary>
|
|
EndFrame,
|
|
}
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Renderer/DebugRendererRecorder.h#L48">Jolt/Renderer/DebugRendererRecorder.h:48</see>
|
|
/// <br/>
|
|
/// <c>struct LineBlob</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Holds a single line segment
|
|
/// </para>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 48)]
|
|
public struct LineBlob
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Renderer/DebugRendererRecorder.h#L50">Jolt/Renderer/DebugRendererRecorder.h:50</see>
|
|
/// <br/>
|
|
/// <c>RVec3 mFrom</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(0)]
|
|
public float3 mFrom;
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Renderer/DebugRendererRecorder.h#L51">Jolt/Renderer/DebugRendererRecorder.h:51</see>
|
|
/// <br/>
|
|
/// <c>RVec3 mTo</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(16)]
|
|
public float3 mTo;
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Renderer/DebugRendererRecorder.h#L52">Jolt/Renderer/DebugRendererRecorder.h:52</see>
|
|
/// <br/>
|
|
/// <c>Color mColor</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(32)]
|
|
public uint mColor;
|
|
}
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Renderer/DebugRendererRecorder.h#L56">Jolt/Renderer/DebugRendererRecorder.h:56</see>
|
|
/// <br/>
|
|
/// <c>struct TriangleBlob</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Holds a single triangle
|
|
/// </para>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 64)]
|
|
public struct TriangleBlob
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Renderer/DebugRendererRecorder.h#L58">Jolt/Renderer/DebugRendererRecorder.h:58</see>
|
|
/// <br/>
|
|
/// <c>RVec3 mV1</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(0)]
|
|
public float3 mV1;
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Renderer/DebugRendererRecorder.h#L59">Jolt/Renderer/DebugRendererRecorder.h:59</see>
|
|
/// <br/>
|
|
/// <c>RVec3 mV2</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(16)]
|
|
public float3 mV2;
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Renderer/DebugRendererRecorder.h#L60">Jolt/Renderer/DebugRendererRecorder.h:60</see>
|
|
/// <br/>
|
|
/// <c>RVec3 mV3</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(32)]
|
|
public float3 mV3;
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Renderer/DebugRendererRecorder.h#L61">Jolt/Renderer/DebugRendererRecorder.h:61</see>
|
|
/// <br/>
|
|
/// <c>Color mColor</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(48)]
|
|
public uint mColor;
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Renderer/DebugRendererRecorder.h#L62">Jolt/Renderer/DebugRendererRecorder.h:62</see>
|
|
/// <br/>
|
|
/// <c>ECastShadow mCastShadow</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(52)]
|
|
public DebugRenderer.ECastShadow mCastShadow;
|
|
}
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Renderer/DebugRendererRecorder.h#L78">Jolt/Renderer/DebugRendererRecorder.h:78</see>
|
|
/// <br/>
|
|
/// <c>struct GeometryBlob</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Holds a single geometry draw call
|
|
/// </para>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 96)]
|
|
public struct GeometryBlob
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Renderer/DebugRendererRecorder.h#L80">Jolt/Renderer/DebugRendererRecorder.h:80</see>
|
|
/// <br/>
|
|
/// <c>RMat44 mModelMatrix</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(0)]
|
|
public float4x4 mModelMatrix;
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Renderer/DebugRendererRecorder.h#L81">Jolt/Renderer/DebugRendererRecorder.h:81</see>
|
|
/// <br/>
|
|
/// <c>Color mModelColor</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(64)]
|
|
public uint mModelColor;
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Renderer/DebugRendererRecorder.h#L82">Jolt/Renderer/DebugRendererRecorder.h:82</see>
|
|
/// <br/>
|
|
/// <c>uint32 mGeometryID</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(68)]
|
|
public uint mGeometryID;
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Renderer/DebugRendererRecorder.h#L83">Jolt/Renderer/DebugRendererRecorder.h:83</see>
|
|
/// <br/>
|
|
/// <c>ECullMode mCullMode</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(72)]
|
|
public DebugRenderer.ECullMode mCullMode;
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Renderer/DebugRendererRecorder.h#L84">Jolt/Renderer/DebugRendererRecorder.h:84</see>
|
|
/// <br/>
|
|
/// <c>ECastShadow mCastShadow</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(76)]
|
|
public DebugRenderer.ECastShadow mCastShadow;
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Renderer/DebugRendererRecorder.h#L85">Jolt/Renderer/DebugRendererRecorder.h:85</see>
|
|
/// <br/>
|
|
/// <c>EDrawMode mDrawMode</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(80)]
|
|
public DebugRenderer.EDrawMode mDrawMode;
|
|
}
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Renderer/DebugRendererRecorder.h#L25">Jolt/Renderer/DebugRendererRecorder.h:25</see>
|
|
/// <br/>
|
|
/// <c>DebugRendererRecorder(StreamOut &inStream)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Constructor
|
|
/// </para>
|
|
/// </remarks>
|
|
public static DebugRendererRecorder Create(StreamOut stream) => Jolt.PInvoke.DebugRendererRecorder_Create(stream);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Renderer/DebugRendererRecorder.h#L28">Jolt/Renderer/DebugRendererRecorder.h:28</see>
|
|
/// <br/>
|
|
/// <c>virtual void DrawLine(RVec3Arg inFrom, RVec3Arg inTo, ColorArg inColor) override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Implementation of DebugRenderer interface
|
|
/// </para>
|
|
/// </remarks>
|
|
public void DrawLine(float3 from, float3 to, uint color) => Jolt.PInvoke.DebugRendererRecorder_DrawLine(this, from, to, color);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Renderer/DebugRendererRecorder.h#L29">Jolt/Renderer/DebugRendererRecorder.h:29</see>
|
|
/// <br/>
|
|
/// <c>virtual void DrawTriangle(RVec3Arg inV1, RVec3Arg inV2, RVec3Arg inV3, ColorArg inColor, ECastShadow inCastShadow) override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void DrawTriangle(float3 v1, float3 v2, float3 v3, uint color, DebugRenderer.ECastShadow castShadow) => Jolt.PInvoke.DebugRendererRecorder_DrawTriangle(this, v1, v2, v3, color, castShadow);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Renderer/DebugRendererRecorder.h#L36">Jolt/Renderer/DebugRendererRecorder.h:36</see>
|
|
/// <br/>
|
|
/// <c>void EndFrame()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Mark the end of a frame
|
|
/// </para>
|
|
/// </remarks>
|
|
public void EndFrame() => Jolt.PInvoke.DebugRendererRecorder_EndFrame(this);
|
|
public static implicit operator DebugRenderer(DebugRendererRecorder value) => Jolt.PInvoke.DebugRendererRecorder_AsDebugRenderer(value);
|
|
public void Dispose() => Jolt.PInvoke.DebugRendererRecorder_Destroy(this);
|
|
}
|
|
}
|