Skip to content

Commit

Permalink
Regenerate bindings (OpenXR broky)
Browse files Browse the repository at this point in the history
  • Loading branch information
Beyley committed Mar 21, 2024
1 parent 1127303 commit 9b80621
Show file tree
Hide file tree
Showing 270 changed files with 12,368 additions and 5,158 deletions.
Binary file modified build/cache/cl.json.gz
Binary file not shown.
Binary file modified build/cache/openxr.json.gz
Binary file not shown.
Binary file modified build/cache/sdl.json.gz
Binary file not shown.
Binary file modified build/cache/shaderc.json.gz
Binary file not shown.
Binary file modified build/cache/spirv-cross.json.gz
Binary file not shown.
Binary file modified build/cache/spirv-reflect.json.gz
Binary file not shown.
Binary file modified build/cache/spirv.json.gz
Binary file not shown.
Binary file modified build/cache/vulkan.json.gz
Binary file not shown.
Binary file modified build/cache/webgpu.json.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion generator.json
Original file line number Diff line number Diff line change
Expand Up @@ -2486,7 +2486,7 @@
"-Wno-nonportable-include-path",
"-Wno-pragma-pack",
"-I$windowsSdkIncludes",
"-Ibuild/submodules/wgpu-native/ffi"
"-Ibuild/submodules/wgpu-native/ffi/webgpu-headers"
],
"traverse": [
"build/submodules/webgpu-headers/*.h",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ public enum IMG : int
GrallocResourceNotAcquiredImg = 0x40D4,
[NativeName("Name", "CL_INVALID_GRALLOC_OBJECT_IMG")]
InvalidGrallocObjectImg = 0x40D5,
[NativeName("Name", "CL_CANCELLED_IMG")]
CancelledImg = unchecked((int) 0xFFFFFFFFFFFFFB9A),
[NativeName("Name", "CL_MEM_USE_UNCACHED_CPU_MEMORY_IMG")]
UseUncachedCpuMemoryImg = 0x4000000,
[NativeName("Name", "CL_MEM_USE_UNCACHED_CPU_MEMORY_IMG")]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// 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.IMG
{
[Extension("IMG_cancel_command")]
public unsafe partial class ImgCancelCommand : NativeExtension<CL>
{
public const string ExtensionName = "IMG_cancel_command";
[NativeApi(EntryPoint = "clCancelCommandsIMG", Convention = CallingConvention.Winapi)]
public unsafe partial int CancelCommands([Flow(Silk.NET.Core.Native.FlowDirection.In)] nint* event_list, [Flow(Silk.NET.Core.Native.FlowDirection.In)] nuint num_events_in_list);

[NativeApi(EntryPoint = "clCancelCommandsIMG", Convention = CallingConvention.Winapi)]
public partial int CancelCommands([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in nint event_list, [Flow(Silk.NET.Core.Native.FlowDirection.In)] nuint num_events_in_list);

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

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// 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.IMG
{
public static class ImgCancelCommandOverloads
{
public static unsafe int CancelCommands(this ImgCancelCommand thisApi, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<nint> event_list, [Flow(Silk.NET.Core.Native.FlowDirection.In)] nuint num_events_in_list)
{
// SpanOverloader
return thisApi.CancelCommands(in event_list.GetPinnableReference(), num_events_in_list);
}

}
}

Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@ public enum CommandBufferProperties : ulong
{
[NativeName("Name", "CL_COMMAND_BUFFER_FLAGS_KHR")]
Flags = 0x1293,
[NativeName("Name", "CL_COMMAND_BUFFER_MUTABLE_DISPATCH_ASSERTS_KHR")]
MutableDispatchAsserts = 0x12B7,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ public enum KHR : int
Flags = 0x1293,
[NativeName("Name", "CL_COMMAND_BUFFER_FLAGS_KHR")]
CommandBufferFlagsKhr = 0x1293,
[NativeName("Name", "CL_COMMAND_BUFFER_MUTABLE_DISPATCH_ASSERTS_KHR")]
MutableDispatchAsserts = 0x12B7,
[NativeName("Name", "CL_COMMAND_BUFFER_MUTABLE_DISPATCH_ASSERTS_KHR")]
CommandBufferMutableDispatchAssertsKhr = 0x12B7,
[NativeName("Name", "CL_COMMAND_BUFFER_STATE_RECORDING_KHR")]
Recording = 0x0,
[NativeName("Name", "CL_COMMAND_BUFFER_STATE_RECORDING_KHR")]
Expand Down Expand Up @@ -295,6 +299,10 @@ public enum KHR : int
DispatchLocalWorkSize = 0x12A7,
[NativeName("Name", "CL_MUTABLE_DISPATCH_LOCAL_WORK_SIZE_KHR")]
MutableDispatchLocalWorkSizeKhr = 0x12A7,
[NativeName("Name", "CL_MUTABLE_DISPATCH_ASSERT_NO_ADDITIONAL_WORK_GROUPS_KHR")]
NoAdditionalWorkGroups = 0x1,
[NativeName("Name", "CL_MUTABLE_DISPATCH_ASSERT_NO_ADDITIONAL_WORK_GROUPS_KHR")]
MutableDispatchAssertNoAdditionalWorkGroupsKhr = 0x1,
[NativeName("Name", "CL_MUTABLE_DISPATCH_GLOBAL_OFFSET_KHR")]
GlobalOffset = 0x1,
[NativeName("Name", "CL_MUTABLE_DISPATCH_GLOBAL_OFFSET_KHR")]
Expand All @@ -316,9 +324,13 @@ public enum KHR : int
[NativeName("Name", "CL_MUTABLE_DISPATCH_EXEC_INFO_KHR")]
MutableDispatchExecInfoKhr = 0x10,
[NativeName("Name", "CL_MUTABLE_DISPATCH_UPDATABLE_FIELDS_KHR")]
MutableDispatchUpdatableFields = 0x12B1,
UpdatableFields = 0x12B1,
[NativeName("Name", "CL_MUTABLE_DISPATCH_UPDATABLE_FIELDS_KHR")]
MutableDispatchUpdatableFieldsKhr = 0x12B1,
[NativeName("Name", "CL_MUTABLE_DISPATCH_ASSERTS_KHR")]
Asserts = 0x12B8,
[NativeName("Name", "CL_MUTABLE_DISPATCH_ASSERTS_KHR")]
MutableDispatchAssertsKhr = 0x12B8,
[NativeName("Name", "CL_COMMAND_BUFFER_PLATFORM_UNIVERSAL_SYNC_KHR")]
UniversalSync = 0x1,
[NativeName("Name", "CL_COMMAND_BUFFER_PLATFORM_UNIVERSAL_SYNC_KHR")]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// 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
{
[System.Flags]
[NativeName("Name", "cl_mutable_dispatch_asserts_khr")]
public enum MutableDispatchAsserts : ulong
{
[NativeName("Name", "")]
None = 0,
[NativeName("Name", "CL_MUTABLE_DISPATCH_ASSERT_NO_ADDITIONAL_WORK_GROUPS_KHR")]
NoAdditionalWorkGroups = 0x1,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ namespace Silk.NET.OpenCL.Extensions.KHR
public enum NdrangeKernelCommandProperties : ulong
{
[NativeName("Name", "CL_MUTABLE_DISPATCH_UPDATABLE_FIELDS_KHR")]
MutableDispatchUpdatableFields = 0x12B1,
UpdatableFields = 0x12B1,
[NativeName("Name", "CL_MUTABLE_DISPATCH_ASSERTS_KHR")]
Asserts = 0x12B8,
}
}
2 changes: 2 additions & 0 deletions src/OpenCL/Silk.NET.OpenCL/Enums/CLEnum.gen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1742,6 +1742,8 @@ public enum CLEnum : int
IncompatibleCommandQueueKhr = unchecked((int) 0xFFFFFFFFFFFFFB8C),
[NativeName("Name", "CL_INVALID_MUTABLE_COMMAND_KHR")]
InvalidMutableCommandKhr = unchecked((int) 0xFFFFFFFFFFFFFB8B),
[NativeName("Name", "CL_CANCELLED_IMG")]
CancelledImg = unchecked((int) 0xFFFFFFFFFFFFFB9A),
[NativeName("Name", "CL_EVENT_COMMAND_QUEUE")]
CommandQueue = 0x11D0,
[NativeName("Name", "CL_EVENT_COMMAND_QUEUE")]
Expand Down
2 changes: 2 additions & 0 deletions src/OpenCL/Silk.NET.OpenCL/Enums/ErrorCodes.gen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -218,5 +218,7 @@ public enum ErrorCodes : int
IncompatibleCommandQueueKhr = unchecked((int) 0xFFFFFFFFFFFFFB8C),
[NativeName("Name", "CL_INVALID_MUTABLE_COMMAND_KHR")]
InvalidMutableCommandKhr = unchecked((int) 0xFFFFFFFFFFFFFB8B),
[NativeName("Name", "CL_CANCELLED_IMG")]
CancelledImg = unchecked((int) 0xFFFFFFFFFFFFFB9A),
}
}
Loading

0 comments on commit 9b80621

Please sign in to comment.