Skip to content

Commit

Permalink
This is the Summer 2022 Update 1 (v2.16.0) (#983)
Browse files Browse the repository at this point in the history
* Regenerate bindings & post patch notes for 2.16

* Update release notes
  • Loading branch information
Perksey committed Aug 2, 2022
1 parent 5be866f commit af7bdbd
Show file tree
Hide file tree
Showing 103 changed files with 46,151 additions and 180 deletions.
Binary file modified build/cache/gl.json.gz
Binary file not shown.
Binary file modified build/cache/glcore.json.gz
Binary file not shown.
Binary file modified build/cache/gles2.json.gz
Binary file not shown.
Binary file modified build/cache/openxr.json.gz
Binary file not shown.
Binary file modified build/cache/vulkan.json.gz
Binary file not shown.
29 changes: 18 additions & 11 deletions build/props/common.props
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,31 @@
<LangVersion>preview</LangVersion>
<Authors>.NET Foundation and Contributors</Authors>
<PackageReleaseNotes>
Silk.NET April 2022 Update

- Add DirectStorage bindings
- Add legacy OpenGL 2.0 support for the ImGui extension (thank you @Beyley)
- Add the ability to customize the functionality/priorities of DefaultPathResolver
- Add more auto-generated constants to Assimp, DirectX, and SDL
- Update to Vulkan 1.3.210
Silk.NET Summer 2022 Update 1

- Massive project-wide bindings overhaul, making our bindings easier to use and higher quality than before.
- Added grouped OpenCL enums. (thanks @Alexx999)
- Added support for creation of contexts with versions prior to OpenGL 3.2. (thanks @Beyley)
- Added support for multiple ImGuiControllers. (thanks @Beyley)
- Added support for single-file mode. (thanks @kant2002)
- Added shorter names in enums used in bindings.
- Added AspectRatioEstimate API to VideoMode. (thanks @ohtrobinson)
- Update to latest OpenGL specifications
- Fix Assimp native package being out-of-sync with latest binding
- Fix SDL input backend producing different key mappings to the GLFW input backend
- Fix Android Activity restarts not being properly handled by Silk.NET Windowing
- Update to OpenXR 1.0.24
- Update to Vulkan 1.3.223
- Improved ImGuiController disposal. (thanks @Beyley)
- Fixed incorrect OpenCL functions. This is breaking, but if you were using these functions your code didn't work anyway. (thanks @Alexx999)
- Fixed IsVisible not being respected in some cases. (thanks @paralaxsd)
- Fixed window close events not being respected on the SDL backend. (thanks @paralaxsd)

This update may result in your projects having a lot of deprecation warnings. We believe this update contains much-needed improvements to both Silk.NET and code consuming it, but we appeciate migrating to this version may take time.
</PackageReleaseNotes>
<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>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageOutputPath>$(MSBuildThisFileDirectory)/../output_packages</PackageOutputPath>
<RepositoryUrl>https://github.com/dotnet/Silk.NET</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<VersionPrefix>2.15</VersionPrefix>
<VersionPrefix>2.16</VersionPrefix>
<VersionSuffix Condition="'$(VersionSuffix)' == ''"></VersionSuffix>
<Description Condition="'$(Description)' == ''">
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.
Expand Down
42,096 changes: 42,075 additions & 21 deletions src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ATI/AtiFragmentShader.gen.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ public static unsafe void SetFragmentShaderConstant(this AtiFragmentShader thisA
thisApi.SetFragmentShaderConstant(dst, in value.GetPinnableReference());
}

public static unsafe void SetFragmentShaderConstant(this AtiFragmentShader thisApi, [Flow(FlowDirection.In)] FragmentShaderConATI dst, [Count(Count = 4), Flow(FlowDirection.In)] ReadOnlySpan<float> value)
{
// SpanOverloader
thisApi.SetFragmentShaderConstant(dst, in value.GetPinnableReference());
}

}
}

29 changes: 29 additions & 0 deletions src/OpenGL/Silk.NET.OpenGL.Legacy/Enums/FogCoordSrc.gen.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// 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.OpenGL.Legacy
{
[NativeName("Name", "FogCoordSrc")]
public enum FogCoordSrc : int
{
[System.Obsolete]
[NativeName("Name", "GL_FOG_COORDINATE")]
FogCoordinate = 0x8451,
[NativeName("Name", "GL_FOG_COORDINATE_EXT")]
FogCoordinateExt = 0x8451,
[System.Obsolete]
[NativeName("Name", "GL_FOG_COORD")]
FogCoord = 0x8451,
[System.Obsolete]
[NativeName("Name", "GL_FRAGMENT_DEPTH")]
FragmentDepth = 0x8452,
[NativeName("Name", "GL_FRAGMENT_DEPTH_EXT")]
FragmentDepthExt = 0x8452,
}
}
18 changes: 18 additions & 0 deletions src/OpenGL/Silk.NET.OpenGL.Legacy/Enums/FragmentOp1ATI.gen.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// 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.OpenGL.Legacy
{
[NativeName("Name", "FragmentOp1ATI")]
public enum FragmentOp1ATI : int
{
[NativeName("Name", "GL_MOV_ATI")]
MovAti = 0x8961,
}
}
26 changes: 26 additions & 0 deletions src/OpenGL/Silk.NET.OpenGL.Legacy/Enums/FragmentOp2ATI.gen.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// 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.OpenGL.Legacy
{
[NativeName("Name", "FragmentOp2ATI")]
public enum FragmentOp2ATI : int
{
[NativeName("Name", "GL_ADD_ATI")]
AddAti = 0x8963,
[NativeName("Name", "GL_MUL_ATI")]
MulAti = 0x8964,
[NativeName("Name", "GL_SUB_ATI")]
SubAti = 0x8965,
[NativeName("Name", "GL_DOT3_ATI")]
Dot3Ati = 0x8966,
[NativeName("Name", "GL_DOT4_ATI")]
Dot4Ati = 0x8967,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,9 @@

namespace Silk.NET.OpenGL.Legacy
{
[NativeName("Name", "FragmentOpATI")]
public enum FragmentOpATI : int
[NativeName("Name", "FragmentOp3ATI")]
public enum FragmentOp3ATI : int
{
[NativeName("Name", "GL_MOV_ATI")]
MovAti = 0x8961,
[NativeName("Name", "GL_ADD_ATI")]
AddAti = 0x8963,
[NativeName("Name", "GL_MUL_ATI")]
MulAti = 0x8964,
[NativeName("Name", "GL_SUB_ATI")]
SubAti = 0x8965,
[NativeName("Name", "GL_DOT3_ATI")]
Dot3Ati = 0x8966,
[NativeName("Name", "GL_DOT4_ATI")]
Dot4Ati = 0x8967,
[NativeName("Name", "GL_MAD_ATI")]
MadAti = 0x8968,
[NativeName("Name", "GL_LERP_ATI")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ namespace Silk.NET.OpenGL.Legacy
[NativeName("Name", "FragmentShaderColorModMaskATI")]
public enum FragmentShaderColorModMaskATI : int
{
[NativeName("Name", "GL_2X_BIT_ATI")]
Gl2XBitAti = 0x1,
[NativeName("Name", "GL_COMP_BIT_ATI")]
CompBitAti = 0x2,
[NativeName("Name", "GL_NEGATE_BIT_ATI")]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
// 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.OpenGL.Legacy
{
[NativeName("Name", "FragmentShaderConATI")]
public enum FragmentShaderConATI : int
{
[NativeName("Name", "GL_CON_0_ATI")]
Con0Ati = 0x8941,
[NativeName("Name", "GL_CON_1_ATI")]
Con1Ati = 0x8942,
[NativeName("Name", "GL_CON_2_ATI")]
Con2Ati = 0x8943,
[NativeName("Name", "GL_CON_3_ATI")]
Con3Ati = 0x8944,
[NativeName("Name", "GL_CON_4_ATI")]
Con4Ati = 0x8945,
[NativeName("Name", "GL_CON_5_ATI")]
Con5Ati = 0x8946,
[NativeName("Name", "GL_CON_6_ATI")]
Con6Ati = 0x8947,
[NativeName("Name", "GL_CON_7_ATI")]
Con7Ati = 0x8948,
[NativeName("Name", "GL_CON_8_ATI")]
Con8Ati = 0x8949,
[NativeName("Name", "GL_CON_9_ATI")]
Con9Ati = 0x894A,
[NativeName("Name", "GL_CON_10_ATI")]
Con10Ati = 0x894B,
[NativeName("Name", "GL_CON_11_ATI")]
Con11Ati = 0x894C,
[NativeName("Name", "GL_CON_12_ATI")]
Con12Ati = 0x894D,
[NativeName("Name", "GL_CON_13_ATI")]
Con13Ati = 0x894E,
[NativeName("Name", "GL_CON_14_ATI")]
Con14Ati = 0x894F,
[NativeName("Name", "GL_CON_15_ATI")]
Con15Ati = 0x8950,
[NativeName("Name", "GL_CON_16_ATI")]
Con16Ati = 0x8951,
[NativeName("Name", "GL_CON_17_ATI")]
Con17Ati = 0x8952,
[NativeName("Name", "GL_CON_18_ATI")]
Con18Ati = 0x8953,
[NativeName("Name", "GL_CON_19_ATI")]
Con19Ati = 0x8954,
[NativeName("Name", "GL_CON_20_ATI")]
Con20Ati = 0x8955,
[NativeName("Name", "GL_CON_21_ATI")]
Con21Ati = 0x8956,
[NativeName("Name", "GL_CON_22_ATI")]
Con22Ati = 0x8957,
[NativeName("Name", "GL_CON_23_ATI")]
Con23Ati = 0x8958,
[NativeName("Name", "GL_CON_24_ATI")]
Con24Ati = 0x8959,
[NativeName("Name", "GL_CON_25_ATI")]
Con25Ati = 0x895A,
[NativeName("Name", "GL_CON_26_ATI")]
Con26Ati = 0x895B,
[NativeName("Name", "GL_CON_27_ATI")]
Con27Ati = 0x895C,
[NativeName("Name", "GL_CON_28_ATI")]
Con28Ati = 0x895D,
[NativeName("Name", "GL_CON_29_ATI")]
Con29Ati = 0x895E,
[NativeName("Name", "GL_CON_30_ATI")]
Con30Ati = 0x895F,
[NativeName("Name", "GL_CON_31_ATI")]
Con31Ati = 0x8960,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ public enum FragmentShaderDestMaskATI : int
GreenBitAti = 0x2,
[NativeName("Name", "GL_BLUE_BIT_ATI")]
BlueBitAti = 0x4,
[NativeName("Name", "GL_NONE")]
None = 0x0,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@ public enum FragmentShaderDestModMaskATI : int
EighthBitAti = 0x20,
[NativeName("Name", "GL_SATURATE_BIT_ATI")]
SaturateBitAti = 0x40,
[NativeName("Name", "GL_NONE")]
None = 0x0,
}
}
Loading

0 comments on commit af7bdbd

Please sign in to comment.