Skip to content

Commit a7c35a0

Browse files
committed
Move bakery functionality into a mod separate from SupportedApiProfiles
1 parent b18eebc commit a7c35a0

File tree

12 files changed

+993
-753
lines changed

12 files changed

+993
-753
lines changed

generator.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"AddIncludes",
7373
"ClangScraper",
7474
"AddApiProfiles",
75+
"BakeSourceSets",
7576
"MixKhronosData",
7677
"AddOpaqueStructs",
7778
"TransformFunctions",
@@ -89,29 +90,33 @@
8990
"Profiles": [
9091
{
9192
"Profile": "gl",
92-
"SourceSubdirectory": "glcompat",
93-
"BakedOutputSubdirectory": "gl"
93+
"SourceSubdirectory": "glcompat"
9494
},
9595
{
9696
"Profile": "glcore",
9797
"SourceSubdirectory": "glcore",
98-
"BakedOutputSubdirectory": "gl",
9998
"MinVersion": "3.2"
10099
},
101100
{
102101
"Profile": "gles1",
103102
"SourceSubdirectory": "gles1",
104-
"BakedOutputSubdirectory": "gl",
105103
"MaxVersion": "2.0"
106104
},
107105
{
108106
"Profile": "gles2",
109107
"SourceSubdirectory": "gles2",
110-
"BakedOutputSubdirectory": "gl",
111108
"MinVersion": "2.0"
112109
}
113110
]
114111
},
112+
"BakeSourceSets": {
113+
"SourceSets": {
114+
"glcompat": "gl",
115+
"glcore": "gl",
116+
"gles1": "gl",
117+
"gles2": "gl"
118+
}
119+
},
115120
"AddOpaqueStructs": {
116121
"Names": [
117122
"GLsync"

sources/OpenGL/OpenGL/Enums/GLEnum.gen.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3194,7 +3194,7 @@ public enum GLEnum : uint
31943194
LayoutDepthAttachmentStencilReadOnlyEXT = unchecked((uint)0x9531),
31953195
HandleTypeD3D12FenceEXT = unchecked((uint)0x9594),
31963196
D3D12FenceValueEXT = unchecked((uint)0x9595),
3197-
ActiveProgramEXT = unchecked((uint)0x8B8D),
3197+
ActiveProgramEXT = unchecked((uint)0x8259),
31983198
LightModelColorControlEXT = unchecked((uint)0x81F8),
31993199
SingleColorEXT = unchecked((uint)0x81F9),
32003200
SeparateSpecularColorEXT = unchecked((uint)0x81FA),

sources/OpenGL/OpenGL/gl/GL.gen.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
namespace Silk.NET.OpenGL;
99

10-
[SupportedApiProfile("gles1", MaxVersion = "2.0")]
11-
[SupportedApiProfile("gles2", MinVersion = "2.0")]
12-
[SupportedApiProfile("glcore", MinVersion = "3.2")]
1310
[SupportedApiProfile("gl")]
11+
[SupportedApiProfile("glcore", MinVersion = "3.2")]
12+
[SupportedApiProfile("gles2", MinVersion = "2.0")]
13+
[SupportedApiProfile("gles1", MaxVersion = "2.0")]
1414
public unsafe partial class GL : IGL, IGL.Static
1515
{
1616
public partial class DllImport : IGL.Static

0 commit comments

Comments
 (0)