Skip to content

Commit

Permalink
Regenerate OpenXR
Browse files Browse the repository at this point in the history
  • Loading branch information
Perksey committed Nov 8, 2023
1 parent 4f09db2 commit 55cdb67
Show file tree
Hide file tree
Showing 23 changed files with 1,131 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
using Silk.NET.Core;
using Silk.NET.Core.Native;
using Silk.NET.Core.Attributes;
using Silk.NET.Core.Contexts;
using Silk.NET.Core.Loader;
using Silk.NET.OpenXR;
using Extension = Silk.NET.Core.Attributes.ExtensionAttribute;

#pragma warning disable 1591

namespace Silk.NET.OpenXR.Extensions.ML
{
[Extension("XR_ML_user_calibration")]
public unsafe partial class MLUserCalibration : NativeExtension<XR>
{
public const string ExtensionName = "XR_ML_user_calibration";
/// <summary>To be documented.</summary>
[NativeApi(EntryPoint = "xrEnableUserCalibrationEventsML", Convention = CallingConvention.Winapi)]
public unsafe partial Result EnableUserCalibrationEventsML([Count(Count = 0)] Instance instance, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] UserCalibrationEnableEventsInfoML* enableInfo);

/// <summary>To be documented.</summary>
[NativeApi(EntryPoint = "xrEnableUserCalibrationEventsML", Convention = CallingConvention.Winapi)]
public partial Result EnableUserCalibrationEventsML([Count(Count = 0)] Instance instance, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] in UserCalibrationEnableEventsInfoML enableInfo);

public MLUserCalibration(INativeContext ctx)
: base(ctx)
{
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
using Silk.NET.Core;
using Silk.NET.Core.Native;
using Silk.NET.Core.Attributes;
using Silk.NET.Core.Contexts;
using Silk.NET.Core.Loader;

#pragma warning disable 1591

namespace Silk.NET.OpenXR.Extensions.ML
{
public static class MLUserCalibrationOverloads
{
/// <summary>To be documented.</summary>
public static unsafe Result EnableUserCalibrationEventsML(this MLUserCalibration thisApi, [Count(Count = 0)] Instance instance, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<UserCalibrationEnableEventsInfoML> enableInfo)
{
// SpanOverloader
return thisApi.EnableUserCalibrationEventsML(instance, in enableInfo.GetPinnableReference());
}

}
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
using Silk.NET.Core;
using Silk.NET.Core.Native;
using Silk.NET.Core.Attributes;
using Silk.NET.Core.Contexts;
using Silk.NET.Core.Loader;

#pragma warning disable 1591

namespace Silk.NET.OpenXR.Extensions.MSFT
{
public static class MsftSceneMarkerOverloads
{
/// <summary>To be documented.</summary>
public static unsafe Result GetSceneMarkerDecodedStringMsft(this MsftSceneMarker thisApi, [Count(Count = 0)] SceneMSFT scene, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] Guid* markerId, [Count(Count = 0)] uint bufferCapacityInput, [Count(Count = 0)] uint* bufferCountOutput, [Count(Parameter = "bufferCapacityInput")] Span<byte> buffer)
{
// SpanOverloader
return thisApi.GetSceneMarkerDecodedStringMsft(scene, markerId, bufferCapacityInput, bufferCountOutput, ref buffer.GetPinnableReference());
}

/// <summary>To be documented.</summary>
public static unsafe Result GetSceneMarkerDecodedStringMsft(this MsftSceneMarker thisApi, [Count(Count = 0)] SceneMSFT scene, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] Guid* markerId, [Count(Count = 0)] uint bufferCapacityInput, [Count(Count = 0)] Span<uint> bufferCountOutput, [Count(Parameter = "bufferCapacityInput")] byte* buffer)
{
// SpanOverloader
return thisApi.GetSceneMarkerDecodedStringMsft(scene, markerId, bufferCapacityInput, ref bufferCountOutput.GetPinnableReference(), buffer);
}

/// <summary>To be documented.</summary>
public static unsafe Result GetSceneMarkerDecodedStringMsft(this MsftSceneMarker thisApi, [Count(Count = 0)] SceneMSFT scene, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] Guid* markerId, [Count(Count = 0)] uint bufferCapacityInput, [Count(Count = 0)] Span<uint> bufferCountOutput, [Count(Parameter = "bufferCapacityInput")] Span<byte> buffer)
{
// SpanOverloader
return thisApi.GetSceneMarkerDecodedStringMsft(scene, markerId, bufferCapacityInput, ref bufferCountOutput.GetPinnableReference(), ref buffer.GetPinnableReference());
}

/// <summary>To be documented.</summary>
public static unsafe Result GetSceneMarkerDecodedStringMsft(this MsftSceneMarker thisApi, [Count(Count = 0)] SceneMSFT scene, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] Guid* markerId, [Count(Count = 0)] uint bufferCapacityInput, [Count(Count = 0)] Span<uint> bufferCountOutput, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string buffer)
{
// SpanOverloader
return thisApi.GetSceneMarkerDecodedStringMsft(scene, markerId, bufferCapacityInput, ref bufferCountOutput.GetPinnableReference(), buffer);
}

/// <summary>To be documented.</summary>
public static unsafe Result GetSceneMarkerDecodedStringMsft(this MsftSceneMarker thisApi, [Count(Count = 0)] SceneMSFT scene, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<Guid> markerId, [Count(Count = 0)] uint bufferCapacityInput, [Count(Count = 0)] uint* bufferCountOutput, [Count(Parameter = "bufferCapacityInput")] byte* buffer)
{
// SpanOverloader
return thisApi.GetSceneMarkerDecodedStringMsft(scene, in markerId.GetPinnableReference(), bufferCapacityInput, bufferCountOutput, buffer);
}

/// <summary>To be documented.</summary>
public static unsafe Result GetSceneMarkerDecodedStringMsft(this MsftSceneMarker thisApi, [Count(Count = 0)] SceneMSFT scene, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<Guid> markerId, [Count(Count = 0)] uint bufferCapacityInput, [Count(Count = 0)] uint* bufferCountOutput, [Count(Parameter = "bufferCapacityInput")] Span<byte> buffer)
{
// SpanOverloader
return thisApi.GetSceneMarkerDecodedStringMsft(scene, in markerId.GetPinnableReference(), bufferCapacityInput, bufferCountOutput, ref buffer.GetPinnableReference());
}

/// <summary>To be documented.</summary>
public static unsafe Result GetSceneMarkerDecodedStringMsft(this MsftSceneMarker thisApi, [Count(Count = 0)] SceneMSFT scene, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<Guid> markerId, [Count(Count = 0)] uint bufferCapacityInput, [Count(Count = 0)] uint* bufferCountOutput, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string buffer)
{
// SpanOverloader
return thisApi.GetSceneMarkerDecodedStringMsft(scene, in markerId.GetPinnableReference(), bufferCapacityInput, bufferCountOutput, buffer);
}

/// <summary>To be documented.</summary>
public static unsafe Result GetSceneMarkerDecodedStringMsft(this MsftSceneMarker thisApi, [Count(Count = 0)] SceneMSFT scene, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<Guid> markerId, [Count(Count = 0)] uint bufferCapacityInput, [Count(Count = 0)] Span<uint> bufferCountOutput, [Count(Parameter = "bufferCapacityInput")] byte* buffer)
{
// SpanOverloader
return thisApi.GetSceneMarkerDecodedStringMsft(scene, in markerId.GetPinnableReference(), bufferCapacityInput, ref bufferCountOutput.GetPinnableReference(), buffer);
}

/// <summary>To be documented.</summary>
public static unsafe Result GetSceneMarkerDecodedStringMsft(this MsftSceneMarker thisApi, [Count(Count = 0)] SceneMSFT scene, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<Guid> markerId, [Count(Count = 0)] uint bufferCapacityInput, [Count(Count = 0)] Span<uint> bufferCountOutput, [Count(Parameter = "bufferCapacityInput")] Span<byte> buffer)
{
// SpanOverloader
return thisApi.GetSceneMarkerDecodedStringMsft(scene, in markerId.GetPinnableReference(), bufferCapacityInput, ref bufferCountOutput.GetPinnableReference(), ref buffer.GetPinnableReference());
}

/// <summary>To be documented.</summary>
public static unsafe Result GetSceneMarkerDecodedStringMsft(this MsftSceneMarker thisApi, [Count(Count = 0)] SceneMSFT scene, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<Guid> markerId, [Count(Count = 0)] uint bufferCapacityInput, [Count(Count = 0)] Span<uint> bufferCountOutput, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string buffer)
{
// SpanOverloader
return thisApi.GetSceneMarkerDecodedStringMsft(scene, in markerId.GetPinnableReference(), bufferCapacityInput, ref bufferCountOutput.GetPinnableReference(), buffer);
}

/// <summary>To be documented.</summary>
public static unsafe Result GetSceneMarkerRawDataMsft(this MsftSceneMarker thisApi, [Count(Count = 0)] SceneMSFT scene, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] Guid* markerId, [Count(Count = 0)] uint bufferCapacityInput, [Count(Count = 0)] uint* bufferCountOutput, [Count(Parameter = "bufferCapacityInput")] Span<byte> buffer)
{
// SpanOverloader
return thisApi.GetSceneMarkerRawDataMsft(scene, markerId, bufferCapacityInput, bufferCountOutput, ref buffer.GetPinnableReference());
}

/// <summary>To be documented.</summary>
public static unsafe Result GetSceneMarkerRawDataMsft(this MsftSceneMarker thisApi, [Count(Count = 0)] SceneMSFT scene, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] Guid* markerId, [Count(Count = 0)] uint bufferCapacityInput, [Count(Count = 0)] Span<uint> bufferCountOutput, [Count(Parameter = "bufferCapacityInput")] byte* buffer)
{
// SpanOverloader
return thisApi.GetSceneMarkerRawDataMsft(scene, markerId, bufferCapacityInput, ref bufferCountOutput.GetPinnableReference(), buffer);
}

/// <summary>To be documented.</summary>
public static unsafe Result GetSceneMarkerRawDataMsft(this MsftSceneMarker thisApi, [Count(Count = 0)] SceneMSFT scene, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] Guid* markerId, [Count(Count = 0)] uint bufferCapacityInput, [Count(Count = 0)] Span<uint> bufferCountOutput, [Count(Parameter = "bufferCapacityInput")] Span<byte> buffer)
{
// SpanOverloader
return thisApi.GetSceneMarkerRawDataMsft(scene, markerId, bufferCapacityInput, ref bufferCountOutput.GetPinnableReference(), ref buffer.GetPinnableReference());
}

/// <summary>To be documented.</summary>
public static unsafe Result GetSceneMarkerRawDataMsft(this MsftSceneMarker thisApi, [Count(Count = 0)] SceneMSFT scene, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] Guid* markerId, [Count(Count = 0)] uint bufferCapacityInput, [Count(Count = 0)] Span<uint> bufferCountOutput, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string buffer)
{
// SpanOverloader
return thisApi.GetSceneMarkerRawDataMsft(scene, markerId, bufferCapacityInput, ref bufferCountOutput.GetPinnableReference(), buffer);
}

/// <summary>To be documented.</summary>
public static unsafe Result GetSceneMarkerRawDataMsft(this MsftSceneMarker thisApi, [Count(Count = 0)] SceneMSFT scene, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<Guid> markerId, [Count(Count = 0)] uint bufferCapacityInput, [Count(Count = 0)] uint* bufferCountOutput, [Count(Parameter = "bufferCapacityInput")] byte* buffer)
{
// SpanOverloader
return thisApi.GetSceneMarkerRawDataMsft(scene, in markerId.GetPinnableReference(), bufferCapacityInput, bufferCountOutput, buffer);
}

/// <summary>To be documented.</summary>
public static unsafe Result GetSceneMarkerRawDataMsft(this MsftSceneMarker thisApi, [Count(Count = 0)] SceneMSFT scene, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<Guid> markerId, [Count(Count = 0)] uint bufferCapacityInput, [Count(Count = 0)] uint* bufferCountOutput, [Count(Parameter = "bufferCapacityInput")] Span<byte> buffer)
{
// SpanOverloader
return thisApi.GetSceneMarkerRawDataMsft(scene, in markerId.GetPinnableReference(), bufferCapacityInput, bufferCountOutput, ref buffer.GetPinnableReference());
}

/// <summary>To be documented.</summary>
public static unsafe Result GetSceneMarkerRawDataMsft(this MsftSceneMarker thisApi, [Count(Count = 0)] SceneMSFT scene, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<Guid> markerId, [Count(Count = 0)] uint bufferCapacityInput, [Count(Count = 0)] uint* bufferCountOutput, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string buffer)
{
// SpanOverloader
return thisApi.GetSceneMarkerRawDataMsft(scene, in markerId.GetPinnableReference(), bufferCapacityInput, bufferCountOutput, buffer);
}

/// <summary>To be documented.</summary>
public static unsafe Result GetSceneMarkerRawDataMsft(this MsftSceneMarker thisApi, [Count(Count = 0)] SceneMSFT scene, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<Guid> markerId, [Count(Count = 0)] uint bufferCapacityInput, [Count(Count = 0)] Span<uint> bufferCountOutput, [Count(Parameter = "bufferCapacityInput")] byte* buffer)
{
// SpanOverloader
return thisApi.GetSceneMarkerRawDataMsft(scene, in markerId.GetPinnableReference(), bufferCapacityInput, ref bufferCountOutput.GetPinnableReference(), buffer);
}

/// <summary>To be documented.</summary>
public static unsafe Result GetSceneMarkerRawDataMsft(this MsftSceneMarker thisApi, [Count(Count = 0)] SceneMSFT scene, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<Guid> markerId, [Count(Count = 0)] uint bufferCapacityInput, [Count(Count = 0)] Span<uint> bufferCountOutput, [Count(Parameter = "bufferCapacityInput")] Span<byte> buffer)
{
// SpanOverloader
return thisApi.GetSceneMarkerRawDataMsft(scene, in markerId.GetPinnableReference(), bufferCapacityInput, ref bufferCountOutput.GetPinnableReference(), ref buffer.GetPinnableReference());
}

/// <summary>To be documented.</summary>
public static unsafe Result GetSceneMarkerRawDataMsft(this MsftSceneMarker thisApi, [Count(Count = 0)] SceneMSFT scene, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<Guid> markerId, [Count(Count = 0)] uint bufferCapacityInput, [Count(Count = 0)] Span<uint> bufferCountOutput, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string buffer)
{
// SpanOverloader
return thisApi.GetSceneMarkerRawDataMsft(scene, in markerId.GetPinnableReference(), bufferCapacityInput, ref bufferCountOutput.GetPinnableReference(), buffer);
}

}
}

Loading

0 comments on commit 55cdb67

Please sign in to comment.