-
-
Notifications
You must be signed in to change notification settings - Fork 420
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is the Silk.NET December 2023 Update (v2.20.0)
- Loading branch information
Showing
103 changed files
with
4,388 additions
and
139 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...OpenCL/Extensions/Silk.NET.OpenCL.Extensions.KHR/Enums/SemaphoreReimportProperties.gen.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// 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 Silk.NET.Core.Attributes; | ||
|
||
#pragma warning disable 1591 | ||
|
||
namespace Silk.NET.OpenCL.Extensions.KHR | ||
{ | ||
[NativeName("Name", "cl_semaphore_reimport_properties_khr")] | ||
public enum SemaphoreReimportProperties : ulong | ||
{ | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
src/OpenCL/Extensions/Silk.NET.OpenCL.Extensions.KHR/KhrExternalSemaphoreSyncFd.gen.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// 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.OpenCL; | ||
using Extension = Silk.NET.Core.Attributes.ExtensionAttribute; | ||
|
||
#pragma warning disable 1591 | ||
|
||
namespace Silk.NET.OpenCL.Extensions.KHR | ||
{ | ||
[Extension("KHR_external_semaphore_sync_fd")] | ||
public unsafe partial class KhrExternalSemaphoreSyncFd : NativeExtension<CL> | ||
{ | ||
public const string ExtensionName = "KHR_external_semaphore_sync_fd"; | ||
[NativeApi(EntryPoint = "clReImportSemaphoreSyncFdKHR", Convention = CallingConvention.Winapi)] | ||
public unsafe partial int ReImportSemaphoreSyncF([Flow(Silk.NET.Core.Native.FlowDirection.In)] nint sema_object, [Flow(Silk.NET.Core.Native.FlowDirection.Out)] SemaphoreReimportProperties* reimport_props, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int fd); | ||
|
||
[NativeApi(EntryPoint = "clReImportSemaphoreSyncFdKHR", Convention = CallingConvention.Winapi)] | ||
public partial int ReImportSemaphoreSyncF([Flow(Silk.NET.Core.Native.FlowDirection.In)] nint sema_object, [Flow(Silk.NET.Core.Native.FlowDirection.Out)] out SemaphoreReimportProperties reimport_props, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int fd); | ||
|
||
[Obsolete("The \"ungrouped\" enums (KHR) are deprecated in favour of the \"grouped\" enums (SemaphoreReimportProperties). Not only is this akin to how the original specification represents enums, it also ensures that the size of the enum is correct which is a guarantee the \"ungrouped\" enums do not provide. As such, we have made every attempt to prevent functions known to use these ungrouped enums problematically from compiling; but regardless of whether usage of these deprecated enums compiles please use the other enums to ensure that all functions will work as intended. ", true)] | ||
[NativeApi(EntryPoint = "clReImportSemaphoreSyncFdKHR", Convention = CallingConvention.Winapi)] | ||
public unsafe partial int ReImportSemaphoreSyncF([Flow(Silk.NET.Core.Native.FlowDirection.In)] nint sema_object, [Flow(Silk.NET.Core.Native.FlowDirection.Out)] KHR* reimport_props, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int fd); | ||
|
||
[Obsolete("The \"ungrouped\" enums (KHR) are deprecated in favour of the \"grouped\" enums (SemaphoreReimportProperties). Not only is this akin to how the original specification represents enums, it also ensures that the size of the enum is correct which is a guarantee the \"ungrouped\" enums do not provide. As such, we have made every attempt to prevent functions known to use these ungrouped enums problematically from compiling; but regardless of whether usage of these deprecated enums compiles please use the other enums to ensure that all functions will work as intended. ", true)] | ||
[NativeApi(EntryPoint = "clReImportSemaphoreSyncFdKHR", Convention = CallingConvention.Winapi)] | ||
public partial int ReImportSemaphoreSyncF([Flow(Silk.NET.Core.Native.FlowDirection.In)] nint sema_object, [Flow(Silk.NET.Core.Native.FlowDirection.Out)] out KHR reimport_props, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int fd); | ||
|
||
public KhrExternalSemaphoreSyncFd(INativeContext ctx) | ||
: base(ctx) | ||
{ | ||
} | ||
} | ||
} | ||
|
34 changes: 34 additions & 0 deletions
34
...enCL/Extensions/Silk.NET.OpenCL.Extensions.KHR/KhrExternalSemaphoreSyncFdOverloads.gen.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// 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.OpenCL.Extensions.KHR | ||
{ | ||
public static class KhrExternalSemaphoreSyncFdOverloads | ||
{ | ||
public static unsafe int ReImportSemaphoreSyncF(this KhrExternalSemaphoreSyncFd thisApi, [Flow(Silk.NET.Core.Native.FlowDirection.In)] nint sema_object, [Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span<SemaphoreReimportProperties> reimport_props, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int fd) | ||
{ | ||
// SpanOverloader | ||
return thisApi.ReImportSemaphoreSyncF(sema_object, out reimport_props.GetPinnableReference(), fd); | ||
} | ||
|
||
[Obsolete("The \"ungrouped\" enums (KHR) are deprecated in favour of the \"grouped\" enums (SemaphoreReimportProperties). Not only is this akin to how the original specification represents enums, it also ensures that the size of the enum is correct which is a guarantee the \"ungrouped\" enums do not provide. As such, we have made every attempt to prevent functions known to use these ungrouped enums problematically from compiling; but regardless of whether usage of these deprecated enums compiles please use the other enums to ensure that all functions will work as intended. ", true)] | ||
public static unsafe int ReImportSemaphoreSyncF(this KhrExternalSemaphoreSyncFd thisApi, [Flow(Silk.NET.Core.Native.FlowDirection.In)] nint sema_object, [Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span<KHR> reimport_props, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int fd) | ||
{ | ||
// SpanOverloader | ||
return thisApi.ReImportSemaphoreSyncF(sema_object, out reimport_props.GetPinnableReference(), fd); | ||
} | ||
|
||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.