Skip to content

Commit 3c4a24c

Browse files
authored
This is the December 2021 Update (v2.11.0) (#712)
* Regenerate bindings * Release notes * Apply duct tape
1 parent 5909972 commit 3c4a24c

File tree

66 files changed

+5946
-96
lines changed

Some content is hidden

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

66 files changed

+5946
-96
lines changed

build/cache/cl.json.gz

27.2 KB
Binary file not shown.

build/cache/gl.json.gz

0 Bytes
Binary file not shown.

build/cache/glcore.json.gz

0 Bytes
Binary file not shown.

build/cache/gles2.json.gz

517 Bytes
Binary file not shown.

build/cache/openxr.json.gz

158 Bytes
Binary file not shown.

build/cache/vulkan.json.gz

1.52 KB
Binary file not shown.

build/csharp_typemap.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,5 +165,6 @@
165165
"LONG_PTR": "nint",
166166
"_screen_window": "void",
167167
"_screen_context": "void",
168-
"int16_t": "short"
168+
"int16_t": "short",
169+
"cl_properties": "ulong"
169170
}

build/props/common.props

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,25 @@
55
<LangVersion>preview</LangVersion>
66
<Authors>.NET Foundation and Contributors</Authors>
77
<PackageReleaseNotes>
8-
Silk.NET .NET Conf 2021 Update
8+
Silk.NET December 2021 Update
99

10-
- Fixes issues with 2.10 (compiled against .NET 6 RC1) not working correctly in projects using the .NET 6 Release SDK.
10+
- Add a high-level C# wrapper over Vulkan Structure Chains (thanks @thargy).
11+
- Add a WindowClass option in Windowing for setting the X11 class name (thanks @Pydacor)
12+
- Add a IsContextControlDisabled option in Windowing to disable automatically making OpenGL contexts current
13+
- Add support for cloning Vk objects to allow reuse of their function tables independently
14+
- Update to latest OpenCL specifications
15+
- Update to latest OpenGL and OpenGLES specifications
16+
- Update to Vulkan 1.2.210
17+
- Fix string marshalling regression which resulted in multiple string-overloaded functions throwing
18+
- Fix multiple input-related problems when using the SDL backend of our Windowing abstractions
19+
- Discontinued support for Legacy Xamarin (exclusively supporting .NET 6 mobile from now on)
1120
</PackageReleaseNotes>
1221
<PackageTags Condition="'$(PackageTags)' == ''">OpenCL;OpenGL;OpenAL;OpenGLES;GLES;Vulkan;Assimp;DirectX;GLFW;SDL;Windowing;Input;Gamepad;Joystick;Keyboard;Mouse;SilkTouch;Source;Generator;C#;F#;.NET;DotNet;Mono;Vector;Math;Maths;Numerics;Game;Graphics;Compute;Audio;Sound;Engine;Silk;Silk.NET;Slim.NET;ElgarTK;GPU;Sharp;Science;Scientific;Visualization;Visual;Audiovisual;Windows;macOS;Linux;Android;Bindings;OSX;Wrapper;Native</PackageTags>
1322
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1423
<PackageOutputPath>$(MSBuildThisFileDirectory)/../output_packages</PackageOutputPath>
1524
<RepositoryUrl>https://github.com/dotnet/Silk.NET</RepositoryUrl>
1625
<RepositoryType>Git</RepositoryType>
17-
<VersionPrefix>2.10.1</VersionPrefix>
26+
<VersionPrefix>2.11</VersionPrefix>
1827
<VersionSuffix Condition="'$(VersionSuffix)' == ''"></VersionSuffix>
1928
<Description Condition="'$(Description)' == ''">
2029
Silk.NET is a high-speed, advanced library, providing bindings to popular low-level APIs such as OpenGL, OpenCL, OpenAL, OpenXR, GLFW, SDL, Vulkan, Assimp, and DirectX.

generator.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,15 @@
417417
"cl_semaphore_payload_khr": "cl_ulong",
418418
"cl_external_semaphore_handle_type_khr": "cl_uint",
419419
"cl_external_memory_handle_type_khr": "cl_uint",
420+
"cl_device_command_buffer_capabilities_khr": "cl_bitfield",
421+
"cl_sync_point_khr": "cl_uint",
422+
"cl_command_buffer_info_khr": "cl_uint",
423+
"cl_command_buffer_state_khr": "cl_uint",
424+
"cl_command_buffer_properties_khr": "cl_properties",
425+
"cl_command_buffer_flags_khr": "cl_bitfield",
426+
"cl_ndrange_kernel_command_properties_khr": "cl_properties",
427+
"cl_mutable_command_khr": "intptr_t",
428+
"cl_command_buffer_khr": "intptr_t"
420429
},
421430
{
422431
"$include.commonTypeMap": "build/csharp_typemap.json"

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,8 @@ public enum INTEL : int
420420
CommandReleaseDX9ObjectsIntel = 0x402B,
421421
[NativeName("Name", "CL_EGL_YUV_PLANE_INTEL")]
422422
EglYuvPlaneIntel = 0x4107,
423+
[NativeName("Name", "CL_QUEUE_THREAD_LOCAL_EXEC_ENABLE_INTEL")]
424+
QueueThreadLocalExecEnableIntel = unchecked((int)0x80000000),
423425
[NativeName("Name", "CL_MEM_CHANNEL_INTEL")]
424426
MemChannelIntel = 0x4213,
425427
[NativeName("Name", "CL_MEM_FORCE_HOST_MEMORY_INTEL")]
@@ -476,8 +478,6 @@ public enum INTEL : int
476478
DeviceSimultaneousInteropsIntel = 0x4104,
477479
[NativeName("Name", "CL_DEVICE_NUM_SIMULTANEOUS_INTEROPS_INTEL")]
478480
DeviceNumSimultaneousInteropsIntel = 0x4105,
479-
[NativeName("Name", "CL_QUEUE_THREAD_LOCAL_EXEC_ENABLE_INTEL")]
480-
QueueThreadLocalExecEnableIntel = unchecked((int)0x80000000),
481481
[NativeName("Name", "CL_DEVICE_HOST_MEM_CAPABILITIES_INTEL")]
482482
DeviceHostMemCapabilitiesIntel = 0x4190,
483483
[NativeName("Name", "CL_DEVICE_DEVICE_MEM_CAPABILITIES_INTEL")]
@@ -500,6 +500,10 @@ public enum INTEL : int
500500
MemAllocFlagsIntel = 0x4195,
501501
[NativeName("Name", "CL_MEM_ALLOC_WRITE_COMBINED_INTEL")]
502502
MemAllocWriteCombinedIntel = 0x1,
503+
[NativeName("Name", "CL_MEM_ALLOC_INITIAL_PLACEMENT_DEVICE_INTEL")]
504+
MemAllocInitialPlacementDeviceIntel = 0x2,
505+
[NativeName("Name", "CL_MEM_ALLOC_INITIAL_PLACEMENT_HOST_INTEL")]
506+
MemAllocInitialPlacementHostIntel = 0x4,
503507
[NativeName("Name", "CL_MEM_ALLOC_TYPE_INTEL")]
504508
MemAllocTypeIntel = 0x419A,
505509
[NativeName("Name", "CL_MEM_ALLOC_BASE_PTR_INTEL")]

0 commit comments

Comments
 (0)