Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.0] Refactor SilkTouch to Use Roslyn Workspaces + more #2288

Merged
merged 45 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
7e32758
Initial group codegen
Perksey Apr 6, 2024
e53716f
Fix some trimming oddities
Perksey Apr 6, 2024
67ed5ae
Fix HintTargetPGI and others similarly situated
Perksey Apr 6, 2024
678dc6e
Base typing and namespacing
Perksey Apr 7, 2024
52e401a
Cast enum members, fix stray semicolons, Silk.NET.OpenGL builds again
Perksey Apr 8, 2024
5219292
Group and bool transformations
Perksey Apr 21, 2024
710fa56
Fix erroneous cast order
Perksey Apr 23, 2024
ea85042
Add Delete(singular) overloads (ArrayParameterOverloader)
Perksey Apr 23, 2024
4376388
Add SAL object model & Khronos length metadata parsing
Perksey May 3, 2024
3214433
ArrayParameterTransformer w/ tests
Perksey May 10, 2024
220afd0
Integrate ArrayParameterTransformer
Perksey May 10, 2024
7eec321
Merge branch 'develop/3.0' into feature/opengl-codegen
Perksey May 15, 2024
4450085
Support SupportedApiProfileAttribute generation with metadata
Perksey May 21, 2024
d523e37
PrettifyNames conflict resolution now actually works
Perksey May 21, 2024
90da556
Fix casting transformation ambiguity bugs
Perksey May 23, 2024
4f85362
Fix metadata retrieval for reserved identifiers
Perksey May 23, 2024
110a782
Merge branch 'feature/opengl-codegen' of https://github.com/dotnet/Si…
Perksey May 23, 2024
24343a8
Fix unit tests
Perksey May 23, 2024
ba1f9c4
Fixup for all caps names
Perksey May 24, 2024
37637f5
Fix naive trimming bug
Perksey May 24, 2024
5eca8c3
More self-review comments
Perksey May 24, 2024
e2ff544
SDL bindings
Perksey May 31, 2024
9f36ade
Merge attempt 2
Perksey May 31, 2024
261ddd8
Merge branch 'feature/sdl-bindings' of https://github.com/dotnet/Silk…
Perksey May 31, 2024
6298422
Fix naming regression
Perksey May 31, 2024
58561c8
Prettify & extract the nested _e__{Union,Struct,FixedBuffer} structs
Perksey Jun 3, 2024
8d7af55
Function pointer generation
Perksey Jun 6, 2024
0fb7e09
Add a second pass to name delegates based on usage!
Perksey Jun 6, 2024
384453b
Fixes from self-review
Perksey Jun 9, 2024
a76c488
Rejig the repo structure
Perksey Sep 7, 2024
9cf86ba
Save progress, as I am deleting the progress
Perksey Sep 12, 2024
f61ccce
Create a Roslyn compilation & workspace
Perksey Oct 2, 2024
570c24c
Merge branch 'feature/silktouch-3.0-fit-for-future' into HEAD
Perksey Oct 2, 2024
851f85b
Bugfixes, generation runs with renaming but is slow and outputs wrong
Perksey Oct 2, 2024
05a0f69
Some more bugfixes
Perksey Oct 2, 2024
79af236
Fix mods not saving outputs, unnecessary subdirs, filenames, and othe…
Perksey Oct 3, 2024
663f520
Add IResponseFileMod, fix EntryPoint not in DllImport, and other fixe…
Perksey Oct 3, 2024
59f6fe8
Delete some stray files
Perksey Oct 3, 2024
116d08e
Minor nits
Perksey Oct 3, 2024
1ba1315
Initial commit of the SymbolFinder rename experiment
Perksey Oct 5, 2024
938d8a9
This is the new renamer
Perksey Oct 6, 2024
789d244
Fix ctors and dtors, stop using `using static`s
Perksey Oct 6, 2024
e31c725
Regenerate bindings
Perksey Oct 6, 2024
e6f2cf3
Use public Roslyn APIs and parallelise
Perksey Oct 7, 2024
14d3e58
Pull in merged PRs
Perksey Oct 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file removed .silktouch/1ce66f3f47b7ebfb.stout
Binary file not shown.
Binary file added .silktouch/c8c046b328b09d23.stout
Binary file not shown.
Binary file added .silktouch/f634eee0bf239a81.stout
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\sources\Maths\Silk.NET.Maths.csproj" />
<ProjectReference Include="..\..\..\sources\Maths\Maths\Silk.NET.Maths.csproj" />
</ItemGroup>

</Project>
1 change: 1 addition & 0 deletions eng/silktouch/common.rsp
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ multi-file
trimmable-vtbls
preview-codegen
generate-file-scoped-namespaces
exclude-using-statics-for-enums
5 changes: 0 additions & 5 deletions eng/silktouch/opengl/glcore/header.txt

This file was deleted.

5 changes: 0 additions & 5 deletions eng/silktouch/opengl/gles1/header.txt

This file was deleted.

5 changes: 0 additions & 5 deletions eng/silktouch/opengl/gles2/header.txt

This file was deleted.

2 changes: 1 addition & 1 deletion eng/silktouch/opengl/settings.rsp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
--define-macro
TODO_DEFINE_MACROS=HERE
--headerFile
header.txt
../header.txt
--include-directory
../../../submodules/opengl/api
../../../submodules/egl/api
Expand Down
64 changes: 36 additions & 28 deletions generator.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
{
"Jobs": {
"Microsoft": {
"ClangSharpResponseFiles": [
"eng/submodules/terrafx.interop.windows/generation/**/generate.rsp"
],
"ManualOverrides": {
"sources/Windows/um/icm/Windows.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/Windows/um/icm/Windows.cs",
"sources/Gdiplus/um/gdiplustypes/GpRect.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/Gdiplus/um/gdiplustypes/GpRect.cs",
"sources/Gdiplus/um/gdiplustypes/GpRectF.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/Gdiplus/um/gdiplustypes/GpRectF.cs",
"sources/Gdiplus/um/gdiplustypes/GpPathData.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/Gdiplus/um/gdiplustypes/GpPathData.cs"
},
"InputSourceRoot": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows",
"InputTestRoot": "eng/submodules/terrafx.interop.windows/tests/Interop/Windows",
"OutputSourceRoot": "sources/Windows",
"OutputTestRoot": "tests/Windows",
"DefaultLicenseHeader": "eng/silktouch/header.txt",
"Solution": "Silk.NET.sln",
"SourceProject": "TODO.csproj",
"TestProject": "tests/TODO.csproj",
"DefaultLicenseHeader": "eng/silktouch/header.txt",
"Mods": [
"AddIncludes",
"ClangScraper",
"ChangeNamespace"
],
"ClangScraper": {
"ClangSharpResponseFiles": [
"eng/submodules/terrafx.interop.windows/generation/**/generate.rsp"
],
"ManualOverrides": {
"sources/Windows/um/icm/Windows.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/Windows/um/icm/Windows.cs",
"sources/Gdiplus/um/gdiplustypes/GpRect.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/Gdiplus/um/gdiplustypes/GpRect.cs",
"sources/Gdiplus/um/gdiplustypes/GpRectF.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/Gdiplus/um/gdiplustypes/GpRectF.cs",
"sources/Gdiplus/um/gdiplustypes/GpPathData.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/Gdiplus/um/gdiplustypes/GpPathData.cs"
},
"InputSourceRoot": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows",
"InputTestRoot": "eng/submodules/terrafx.interop.windows/tests/Interop/Windows"
},
"ChangeNamespace": {
"Mappings": {
"TerraFX.Interop.(.*)": "Silk.NET.$1"
Expand All @@ -30,23 +33,26 @@
]
},
"SDL": {
"ClangSharpResponseFiles": [
"eng/silktouch/sdl/**/generate.rsp"
],
"InputSourceRoot": "sources/SDL",
"InputTestRoot": "tests/SDL",
"OutputSourceRoot": "sources/SDL",
"OutputTestRoot": "tests/SDL",
"SourceProject": "sources/SDL/SDL/Silk.NET.SDL.csproj",
"TestProject": "tests/SDL/SDL/Silk.NET.SDL.UnitTests.csproj",
"Solution": "Silk.NET.sln",
"DefaultLicenseHeader": "eng/silktouch/header.txt",
"Mods": [
"AddIncludes",
"ClangScraper",
"ExtractNestedTyping",
"TransformHandles",
"TransformFunctions",
"PrettifyNames",
"AddVTables"
],
"ClangScraper": {
"ClangSharpResponseFiles": [
"eng/silktouch/sdl/**/generate.rsp"
],
"InputSourceRoot": "sources/SDL",
"InputTestRoot": "tests/SDL"
},
"TransformHandles": {
"AssumeMissingTypesOpaque": true,
"UseDSL": true
Expand All @@ -58,24 +64,26 @@
}
},
"OpenGL": {
"ClangSharpResponseFiles": [
"eng/silktouch/opengl/**/generate.rsp"
],
"InputSourceRoot": "sources/OpenGL",
"InputTestRoot": "tests/OpenGL",
"OutputSourceRoot": "sources/OpenGL",
"OutputTestRoot": "tests/OpenGL",
"SourceProject": "sources/OpenGL/OpenGL/Silk.NET.OpenGL.csproj",
"Solution": "Silk.NET.sln",
"DefaultLicenseHeader": "eng/silktouch/header.txt",
"Mods": [
"AddIncludes",
"ClangScraper",
"AddApiProfiles",
"MixKhronosData",
"AddOpaqueStructs",
"TransformFunctions",
"PrettifyNames",
"AddVTables"
],
"ClangScraper": {
"ClangSharpResponseFiles": [
"eng/silktouch/opengl/**/generate.rsp"
],
"InputSourceRoot": "sources/OpenGL",
"InputTestRoot": "tests/OpenGL"
},
"AddApiProfiles": {
"Profiles": [
{
Expand Down
2 changes: 1 addition & 1 deletion sources/Core/Core/Silk.NET.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<PackageReference Include="Fody" Version="6.8.1" PrivateAssets="all" />
<PackageReference Include="InlineIL.Fody" Version="1.8.0" PrivateAssets="all" />
</ItemGroup>

<!-- Dogfooding -->
<Import Project="Silk.NET.Core.targets" />

Expand Down
2 changes: 1 addition & 1 deletion sources/OpenGL/OpenGL/Enums/AccumOp.gen.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from the OpenGL Core Profile headers and corresponding dependencies.
// Ported from the OpenGL headers and corresponding dependencies.
// Original source is Copyright 2013-2020 The Khronos Group Inc. Licensed under the MIT license.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand Down
2 changes: 1 addition & 1 deletion sources/OpenGL/OpenGL/Enums/AlphaFunction.gen.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from the OpenGL Core Profile headers and corresponding dependencies.
// Ported from the OpenGL headers and corresponding dependencies.
// Original source is Copyright 2013-2020 The Khronos Group Inc. Licensed under the MIT license.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand Down
2 changes: 1 addition & 1 deletion sources/OpenGL/OpenGL/Enums/ArrayObjectPNameATI.gen.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from the OpenGL Core Profile headers and corresponding dependencies.
// Ported from the OpenGL headers and corresponding dependencies.
// Original source is Copyright 2013-2020 The Khronos Group Inc. Licensed under the MIT license.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand Down
2 changes: 1 addition & 1 deletion sources/OpenGL/OpenGL/Enums/ArrayObjectUsageATI.gen.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from the OpenGL Core Profile headers and corresponding dependencies.
// Ported from the OpenGL headers and corresponding dependencies.
// Original source is Copyright 2013-2020 The Khronos Group Inc. Licensed under the MIT license.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from the OpenGL Core Profile headers and corresponding dependencies.
// Ported from the OpenGL headers and corresponding dependencies.
// Original source is Copyright 2013-2020 The Khronos Group Inc. Licensed under the MIT license.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand Down
5 changes: 5 additions & 0 deletions sources/OpenGL/OpenGL/Enums/AttribMask.gen.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from the OpenGL headers and corresponding dependencies.
// Original source is Copyright 2013-2020 The Khronos Group Inc. Licensed under the MIT license.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

namespace Silk.NET.OpenGL;

[Transformed]
Expand Down
6 changes: 3 additions & 3 deletions sources/OpenGL/OpenGL/Enums/AttributeType.gen.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from the OpenGL Core Profile headers and corresponding dependencies.
// Ported from the OpenGL headers and corresponding dependencies.
// Original source is Copyright 2013-2020 The Khronos Group Inc. Licensed under the MIT license.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand Down Expand Up @@ -127,8 +127,6 @@ public enum AttributeType : uint
UnsignedInt64Vec2ARB = unchecked((uint)0x8FF5),
UnsignedInt64Vec3ARB = unchecked((uint)0x8FF6),
UnsignedInt64Vec4ARB = unchecked((uint)0x8FF7),
Int64NV = unchecked((uint)0x140E),
UnsignedInt64NV = unchecked((uint)0x140F),
FloatVec2ARB = unchecked((uint)0x8B50),
FloatVec3ARB = unchecked((uint)0x8B51),
FloatVec4ARB = unchecked((uint)0x8B52),
Expand All @@ -150,6 +148,8 @@ public enum AttributeType : uint
Sampler2DShadowARB = unchecked((uint)0x8B62),
Sampler2DRectARB = unchecked((uint)0x8B63),
Sampler2DRectShadowARB = unchecked((uint)0x8B64),
Int64NV = unchecked((uint)0x140E),
UnsignedInt64NV = unchecked((uint)0x140F),
Sampler3DOES = unchecked((uint)0x8B5F),
Sampler2DShadowEXT = unchecked((uint)0x8B62),
FloatMAT2X3NV = unchecked((uint)0x8B65),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from the OpenGL Core Profile headers and corresponding dependencies.
// Ported from the OpenGL headers and corresponding dependencies.
// Original source is Copyright 2013-2020 The Khronos Group Inc. Licensed under the MIT license.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand Down
2 changes: 1 addition & 1 deletion sources/OpenGL/OpenGL/Enums/BinormalPointerType.gen.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from the OpenGL Core Profile headers and corresponding dependencies.
// Ported from the OpenGL headers and corresponding dependencies.
// Original source is Copyright 2013-2020 The Khronos Group Inc. Licensed under the MIT license.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand Down
2 changes: 1 addition & 1 deletion sources/OpenGL/OpenGL/Enums/BlendEquationMode.gen.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from the OpenGL Core Profile headers and corresponding dependencies.
// Ported from the OpenGL headers and corresponding dependencies.
// Original source is Copyright 2013-2020 The Khronos Group Inc. Licensed under the MIT license.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand Down
2 changes: 1 addition & 1 deletion sources/OpenGL/OpenGL/Enums/BlendingFactor.gen.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from the OpenGL Core Profile headers and corresponding dependencies.
// Ported from the OpenGL headers and corresponding dependencies.
// Original source is Copyright 2013-2020 The Khronos Group Inc. Licensed under the MIT license.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand Down
2 changes: 1 addition & 1 deletion sources/OpenGL/OpenGL/Enums/BlitFramebufferFilter.gen.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from the OpenGL Core Profile headers and corresponding dependencies.
// Ported from the OpenGL headers and corresponding dependencies.
// Original source is Copyright 2013-2020 The Khronos Group Inc. Licensed under the MIT license.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand Down
2 changes: 1 addition & 1 deletion sources/OpenGL/OpenGL/Enums/Boolean.gen.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from the OpenGL Core Profile headers and corresponding dependencies.
// Ported from the OpenGL headers and corresponding dependencies.
// Original source is Copyright 2013-2020 The Khronos Group Inc. Licensed under the MIT license.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand Down
2 changes: 1 addition & 1 deletion sources/OpenGL/OpenGL/Enums/Buffer.gen.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from the OpenGL Core Profile headers and corresponding dependencies.
// Ported from the OpenGL headers and corresponding dependencies.
// Original source is Copyright 2013-2020 The Khronos Group Inc. Licensed under the MIT license.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand Down
2 changes: 1 addition & 1 deletion sources/OpenGL/OpenGL/Enums/BufferAccess.gen.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from the OpenGL Core Profile headers and corresponding dependencies.
// Ported from the OpenGL headers and corresponding dependencies.
// Original source is Copyright 2013-2020 The Khronos Group Inc. Licensed under the MIT license.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand Down
2 changes: 1 addition & 1 deletion sources/OpenGL/OpenGL/Enums/BufferBitQCOM.gen.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from the OpenGL Core Profile headers and corresponding dependencies.
// Ported from the OpenGL headers and corresponding dependencies.
// Original source is Copyright 2013-2020 The Khronos Group Inc. Licensed under the MIT license.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand Down
2 changes: 1 addition & 1 deletion sources/OpenGL/OpenGL/Enums/BufferPName.gen.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from the OpenGL Core Profile headers and corresponding dependencies.
// Ported from the OpenGL headers and corresponding dependencies.
// Original source is Copyright 2013-2020 The Khronos Group Inc. Licensed under the MIT license.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand Down
2 changes: 1 addition & 1 deletion sources/OpenGL/OpenGL/Enums/BufferPointerName.gen.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from the OpenGL Core Profile headers and corresponding dependencies.
// Ported from the OpenGL headers and corresponding dependencies.
// Original source is Copyright 2013-2020 The Khronos Group Inc. Licensed under the MIT license.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand Down
8 changes: 4 additions & 4 deletions sources/OpenGL/OpenGL/Enums/BufferStorageMask.gen.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from the OpenGL Core Profile headers and corresponding dependencies.
// Ported from the OpenGL headers and corresponding dependencies.
// Original source is Copyright 2013-2020 The Khronos Group Inc. Licensed under the MIT license.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand All @@ -19,10 +19,10 @@ public enum BufferStorageMask : uint
SparseStorageBitARB = unchecked((uint)0x0400),
LgpuSeparateStorageBitNVX = unchecked((uint)0x0800),
PerGpuStorageBitNV = unchecked((uint)0x0800),
MapReadBitEXT = unchecked((uint)0x0001),
MapWriteBitEXT = unchecked((uint)0x0002),
MapPersistentBitEXT = unchecked((uint)0x0040),
MapCoherentBitEXT = unchecked((uint)0x0080),
DynamicStorageBitEXT = unchecked((uint)0x0100),
ClientStorageBitEXT = unchecked((uint)0x0200)
ClientStorageBitEXT = unchecked((uint)0x0200),
MapReadBitEXT = unchecked((uint)0x0001),
MapWriteBitEXT = unchecked((uint)0x0002)
}
2 changes: 1 addition & 1 deletion sources/OpenGL/OpenGL/Enums/BufferStorageTarget.gen.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from the OpenGL Core Profile headers and corresponding dependencies.
// Ported from the OpenGL headers and corresponding dependencies.
// Original source is Copyright 2013-2020 The Khronos Group Inc. Licensed under the MIT license.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand Down
2 changes: 1 addition & 1 deletion sources/OpenGL/OpenGL/Enums/BufferTarget.gen.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from the OpenGL Core Profile headers and corresponding dependencies.
// Ported from the OpenGL headers and corresponding dependencies.
// Original source is Copyright 2013-2020 The Khronos Group Inc. Licensed under the MIT license.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand Down
2 changes: 1 addition & 1 deletion sources/OpenGL/OpenGL/Enums/BufferUsage.gen.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from the OpenGL Core Profile headers and corresponding dependencies.
// Ported from the OpenGL headers and corresponding dependencies.
// Original source is Copyright 2013-2020 The Khronos Group Inc. Licensed under the MIT license.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand Down
2 changes: 1 addition & 1 deletion sources/OpenGL/OpenGL/Enums/ClampColorMode.gen.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from the OpenGL Core Profile headers and corresponding dependencies.
// Ported from the OpenGL headers and corresponding dependencies.
// Original source is Copyright 2013-2020 The Khronos Group Inc. Licensed under the MIT license.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand Down
2 changes: 1 addition & 1 deletion sources/OpenGL/OpenGL/Enums/ClampColorTarget.gen.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from the OpenGL Core Profile headers and corresponding dependencies.
// Ported from the OpenGL headers and corresponding dependencies.
// Original source is Copyright 2013-2020 The Khronos Group Inc. Licensed under the MIT license.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand Down
5 changes: 5 additions & 0 deletions sources/OpenGL/OpenGL/Enums/ClearBufferMask.gen.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from the OpenGL headers and corresponding dependencies.
// Original source is Copyright 2013-2020 The Khronos Group Inc. Licensed under the MIT license.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

namespace Silk.NET.OpenGL;

[Transformed]
Expand Down
Loading
Loading