Skip to content

Commit 0401f15

Browse files
committed
Regenerate bindings
1 parent ca27380 commit 0401f15

File tree

115 files changed

+6322
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+6322
-6
lines changed

build/cache/cl.json.gz

0 Bytes
Binary file not shown.

build/cache/openxr.json.gz

0 Bytes
Binary file not shown.

build/cache/vulkan.json.gz

818 Bytes
Binary file not shown.

build/cache/win32extras.json.gz

0 Bytes
Binary file not shown.

src/Core/Silk.NET.Core.Win32Extras/Windows.gen.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4034,6 +4034,9 @@ public unsafe partial class Windows : NativeAPI
40344034
[NativeName("Name", "PF_ARM_V83_JSCVT_INSTRUCTIONS_AVAILABLE")]
40354035
public const int PFArmV83JscvtInstructionsAvailable = unchecked((int) 0x2C);
40364036
[NativeName("Type", "int")]
4037+
[NativeName("Name", "PF_ARM_V83_LRCPC_INSTRUCTIONS_AVAILABLE")]
4038+
public const int PFArmV83LrcpcInstructionsAvailable = unchecked((int) 0x2D);
4039+
[NativeName("Type", "int")]
40374040
[NativeName("Name", "XSTATE_LEGACY_FLOATING_POINT")]
40384041
public const int XstateLegacyFloatingPoint = unchecked((int) 0x0);
40394042
[NativeName("Type", "int")]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.1.1
1+
1.1.1
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
5+
using System;
6+
using Silk.NET.Core.Attributes;
7+
8+
#pragma warning disable 1591
9+
10+
namespace Silk.NET.OpenCL.Extensions.LOADER
11+
{
12+
[NativeName("Name", "cl_icdl_info")]
13+
public enum IcdlInfo : int
14+
{
15+
[NativeName("Name", "CL_ICDL_OCL_VERSION")]
16+
OclVersion = 0x1,
17+
[NativeName("Name", "CL_ICDL_VERSION")]
18+
Version = 0x2,
19+
[NativeName("Name", "CL_ICDL_NAME")]
20+
Name = 0x3,
21+
[NativeName("Name", "CL_ICDL_VENDOR")]
22+
Vendor = 0x4,
23+
}
24+
}

src/OpenCL/Extensions/Silk.NET.OpenCL.Extensions.LOADER/Enums/LOADER.gen.cs

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,33 @@
1010
namespace Silk.NET.OpenCL.Extensions.LOADER
1111
{
1212
[Obsolete("The \"ungrouped\" enums (CLEnum, KHR, etc...) are deprecated in favour of the \"grouped\" enums (ErrorCodes, DeviceType, etc...). 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. ")]
13+
[Flags]
1314
[NativeName("Name", "CLenum")]
1415
public enum LOADER : int
1516
{
17+
[NativeName("Name", "")]
18+
None = 0,
19+
[NativeName("Name", "CL_ICDL_OCL_VERSION")]
20+
OclVersion = 0x1,
21+
[NativeName("Name", "CL_ICDL_OCL_VERSION")]
22+
IcdlOclVersion = 0x1,
23+
[NativeName("Name", "CL_ICDL_VERSION")]
24+
Version = 0x2,
25+
[NativeName("Name", "CL_ICDL_VERSION")]
26+
IcdlVersion = 0x2,
27+
[NativeName("Name", "CL_ICDL_NAME")]
28+
Name = 0x3,
29+
[NativeName("Name", "CL_ICDL_NAME")]
30+
IcdlName = 0x3,
31+
[NativeName("Name", "CL_ICDL_VENDOR")]
32+
Vendor = 0x4,
33+
[NativeName("Name", "CL_ICDL_VENDOR")]
34+
IcdlVendor = 0x4,
1635
[NativeName("Name", "CL_LAYER_API_VERSION")]
1736
ApiVersion = 0x4240,
1837
[NativeName("Name", "CL_LAYER_API_VERSION")]
1938
LayerApiVersion = 0x4240,
2039
[NativeName("Name", "CL_LAYER_NAME")]
21-
Name = 0x4241,
22-
[NativeName("Name", "CL_LAYER_NAME")]
2340
LayerName = 0x4241,
2441
}
2542
}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
using System;
4+
using System.Runtime.InteropServices;
5+
using System.Runtime.CompilerServices;
6+
using System.Text;
7+
using Silk.NET.Core;
8+
using Silk.NET.Core.Native;
9+
using Silk.NET.Core.Attributes;
10+
using Silk.NET.Core.Contexts;
11+
using Silk.NET.Core.Loader;
12+
using Silk.NET.OpenCL;
13+
using Extension = Silk.NET.Core.Attributes.ExtensionAttribute;
14+
15+
#pragma warning disable 1591
16+
17+
namespace Silk.NET.OpenCL.Extensions.LOADER
18+
{
19+
[Extension("LOADER_info")]
20+
public unsafe partial class LoaderInfo : NativeExtension<CL>
21+
{
22+
public const string ExtensionName = "LOADER_info";
23+
[NativeApi(EntryPoint = "clGetICDLoaderInfoOCLICD", Convention = CallingConvention.Winapi)]
24+
public unsafe partial int GetIcdloaderInfoOclicd([Flow(FlowDirection.In)] IcdlInfo param_name, [Flow(FlowDirection.In)] nuint param_value_size, [Flow(FlowDirection.Out)] void* param_value, [Flow(FlowDirection.Out)] nuint* param_value_size_ret);
25+
26+
[NativeApi(EntryPoint = "clGetICDLoaderInfoOCLICD", Convention = CallingConvention.Winapi)]
27+
public unsafe partial int GetIcdloaderInfoOclicd([Flow(FlowDirection.In)] IcdlInfo param_name, [Flow(FlowDirection.In)] nuint param_value_size, [Flow(FlowDirection.Out)] void* param_value, [Flow(FlowDirection.Out)] out nuint param_value_size_ret);
28+
29+
[NativeApi(EntryPoint = "clGetICDLoaderInfoOCLICD", Convention = CallingConvention.Winapi)]
30+
public unsafe partial int GetIcdloaderInfoOclicd<T0>([Flow(FlowDirection.In)] IcdlInfo param_name, [Flow(FlowDirection.In)] nuint param_value_size, [Flow(FlowDirection.Out)] out T0 param_value, [Flow(FlowDirection.Out)] nuint* param_value_size_ret) where T0 : unmanaged;
31+
32+
[NativeApi(EntryPoint = "clGetICDLoaderInfoOCLICD", Convention = CallingConvention.Winapi)]
33+
public partial int GetIcdloaderInfoOclicd<T0>([Flow(FlowDirection.In)] IcdlInfo param_name, [Flow(FlowDirection.In)] nuint param_value_size, [Flow(FlowDirection.Out)] out T0 param_value, [Flow(FlowDirection.Out)] out nuint param_value_size_ret) where T0 : unmanaged;
34+
35+
[Obsolete("The \"ungrouped\" enums (LOADER) are deprecated in favour of the \"grouped\" enums (IcdlInfo). 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. ", false)]
36+
[NativeApi(EntryPoint = "clGetICDLoaderInfoOCLICD", Convention = CallingConvention.Winapi)]
37+
public unsafe partial int GetIcdloaderInfoOclicd([Flow(FlowDirection.In)] LOADER param_name, [Flow(FlowDirection.In)] nuint param_value_size, [Flow(FlowDirection.Out)] void* param_value, [Flow(FlowDirection.Out)] nuint* param_value_size_ret);
38+
39+
[Obsolete("The \"ungrouped\" enums (LOADER) are deprecated in favour of the \"grouped\" enums (IcdlInfo). 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. ", false)]
40+
[NativeApi(EntryPoint = "clGetICDLoaderInfoOCLICD", Convention = CallingConvention.Winapi)]
41+
public unsafe partial int GetIcdloaderInfoOclicd([Flow(FlowDirection.In)] LOADER param_name, [Flow(FlowDirection.In)] nuint param_value_size, [Flow(FlowDirection.Out)] void* param_value, [Flow(FlowDirection.Out)] out nuint param_value_size_ret);
42+
43+
[Obsolete("The \"ungrouped\" enums (LOADER) are deprecated in favour of the \"grouped\" enums (IcdlInfo). 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. ", false)]
44+
[NativeApi(EntryPoint = "clGetICDLoaderInfoOCLICD", Convention = CallingConvention.Winapi)]
45+
public unsafe partial int GetIcdloaderInfoOclicd<T0>([Flow(FlowDirection.In)] LOADER param_name, [Flow(FlowDirection.In)] nuint param_value_size, [Flow(FlowDirection.Out)] out T0 param_value, [Flow(FlowDirection.Out)] nuint* param_value_size_ret) where T0 : unmanaged;
46+
47+
[Obsolete("The \"ungrouped\" enums (LOADER) are deprecated in favour of the \"grouped\" enums (IcdlInfo). 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. ", false)]
48+
[NativeApi(EntryPoint = "clGetICDLoaderInfoOCLICD", Convention = CallingConvention.Winapi)]
49+
public partial int GetIcdloaderInfoOclicd<T0>([Flow(FlowDirection.In)] LOADER param_name, [Flow(FlowDirection.In)] nuint param_value_size, [Flow(FlowDirection.Out)] out T0 param_value, [Flow(FlowDirection.Out)] out nuint param_value_size_ret) where T0 : unmanaged;
50+
51+
public LoaderInfo(INativeContext ctx)
52+
: base(ctx)
53+
{
54+
}
55+
}
56+
}
57+
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
using System;
4+
using System.Runtime.InteropServices;
5+
using System.Runtime.CompilerServices;
6+
using System.Text;
7+
using Silk.NET.Core;
8+
using Silk.NET.Core.Native;
9+
using Silk.NET.Core.Attributes;
10+
using Silk.NET.Core.Contexts;
11+
using Silk.NET.Core.Loader;
12+
13+
#pragma warning disable 1591
14+
15+
namespace Silk.NET.OpenCL.Extensions.LOADER
16+
{
17+
public static class LoaderInfoOverloads
18+
{
19+
public static unsafe int GetIcdloaderInfoOclicd(this LoaderInfo thisApi, [Flow(FlowDirection.In)] IcdlInfo param_name, [Flow(FlowDirection.In)] nuint param_value_size, [Flow(FlowDirection.Out)] void* param_value, [Flow(FlowDirection.Out)] Span<nuint> param_value_size_ret)
20+
{
21+
// SpanOverloader
22+
return thisApi.GetIcdloaderInfoOclicd(param_name, param_value_size, param_value, out param_value_size_ret.GetPinnableReference());
23+
}
24+
25+
public static unsafe int GetIcdloaderInfoOclicd<T0>(this LoaderInfo thisApi, [Flow(FlowDirection.In)] IcdlInfo param_name, [Flow(FlowDirection.In)] nuint param_value_size, [Flow(FlowDirection.Out)] Span<T0> param_value, [Flow(FlowDirection.Out)] nuint* param_value_size_ret) where T0 : unmanaged
26+
{
27+
// SpanOverloader
28+
return thisApi.GetIcdloaderInfoOclicd(param_name, param_value_size, out param_value.GetPinnableReference(), param_value_size_ret);
29+
}
30+
31+
public static unsafe int GetIcdloaderInfoOclicd<T0>(this LoaderInfo thisApi, [Flow(FlowDirection.In)] IcdlInfo param_name, [Flow(FlowDirection.In)] nuint param_value_size, [Flow(FlowDirection.Out)] Span<T0> param_value, [Flow(FlowDirection.Out)] Span<nuint> param_value_size_ret) where T0 : unmanaged
32+
{
33+
// SpanOverloader
34+
return thisApi.GetIcdloaderInfoOclicd(param_name, param_value_size, out param_value.GetPinnableReference(), out param_value_size_ret.GetPinnableReference());
35+
}
36+
37+
[Obsolete("The \"ungrouped\" enums (LOADER) are deprecated in favour of the \"grouped\" enums (IcdlInfo). 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. ", false)]
38+
public static unsafe int GetIcdloaderInfoOclicd(this LoaderInfo thisApi, [Flow(FlowDirection.In)] LOADER param_name, [Flow(FlowDirection.In)] nuint param_value_size, [Flow(FlowDirection.Out)] void* param_value, [Flow(FlowDirection.Out)] Span<nuint> param_value_size_ret)
39+
{
40+
// SpanOverloader
41+
return thisApi.GetIcdloaderInfoOclicd(param_name, param_value_size, param_value, out param_value_size_ret.GetPinnableReference());
42+
}
43+
44+
[Obsolete("The \"ungrouped\" enums (LOADER) are deprecated in favour of the \"grouped\" enums (IcdlInfo). 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. ", false)]
45+
public static unsafe int GetIcdloaderInfoOclicd<T0>(this LoaderInfo thisApi, [Flow(FlowDirection.In)] LOADER param_name, [Flow(FlowDirection.In)] nuint param_value_size, [Flow(FlowDirection.Out)] Span<T0> param_value, [Flow(FlowDirection.Out)] nuint* param_value_size_ret) where T0 : unmanaged
46+
{
47+
// SpanOverloader
48+
return thisApi.GetIcdloaderInfoOclicd(param_name, param_value_size, out param_value.GetPinnableReference(), param_value_size_ret);
49+
}
50+
51+
[Obsolete("The \"ungrouped\" enums (LOADER) are deprecated in favour of the \"grouped\" enums (IcdlInfo). 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. ", false)]
52+
public static unsafe int GetIcdloaderInfoOclicd<T0>(this LoaderInfo thisApi, [Flow(FlowDirection.In)] LOADER param_name, [Flow(FlowDirection.In)] nuint param_value_size, [Flow(FlowDirection.Out)] Span<T0> param_value, [Flow(FlowDirection.Out)] Span<nuint> param_value_size_ret) where T0 : unmanaged
53+
{
54+
// SpanOverloader
55+
return thisApi.GetIcdloaderInfoOclicd(param_name, param_value_size, out param_value.GetPinnableReference(), out param_value_size_ret.GetPinnableReference());
56+
}
57+
58+
}
59+
}
60+

0 commit comments

Comments
 (0)