Skip to content

Commit bdfd3c8

Browse files
committed
Fix missing enum group data when the enum group is empty
1 parent b44ebea commit bdfd3c8

33 files changed

+190
-6
lines changed

.silktouch/ac001027d53000e0.stout

0 Bytes
Binary file not shown.

sources/SilkTouch/SilkTouch/Mods/MixKhronosData.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2136,6 +2136,19 @@ var group in (groupName is null ? Enumerable.Empty<string>() : [groupName])
21362136
enumToGroups.Add(group);
21372137
}
21382138
}
2139+
2140+
// Some enum groups don't have members, meaning that the code above won't catch them
2141+
if (groupName != null && !data.Groups.ContainsKey(groupName))
2142+
{
2143+
data.Groups[groupName] = new EnumGroup(
2144+
groupName,
2145+
null,
2146+
[],
2147+
isBitmask,
2148+
VendorFromString(groupName, vendors),
2149+
enumNamespace
2150+
);
2151+
}
21392152
}
21402153

21412154
var allHandles = doc.Elements("registry")
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// Ported from the Vulkan headers and corresponding dependencies.
4+
// Original source is Copyright 2015-2023 The Khronos Group Inc. Licensed under the MIT license.
5+
using System;
6+
using System.Reflection;
7+
using System.Runtime.CompilerServices;
8+
using System.Runtime.InteropServices;
9+
10+
namespace Silk.NET.Vulkan;
11+
12+
[Transformed]
13+
[Flags]
14+
public enum ImageFormatConstraintsFlagsFuchsia : uint
15+
{
16+
None = 0,
17+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// Ported from the Vulkan headers and corresponding dependencies.
4+
// Original source is Copyright 2015-2023 The Khronos Group Inc. Licensed under the MIT license.
5+
using System;
6+
using System.Reflection;
7+
using System.Runtime.CompilerServices;
8+
using System.Runtime.InteropServices;
9+
10+
namespace Silk.NET.Vulkan;
11+
12+
[Transformed]
13+
[Flags]
14+
public enum PrivateDataSlotCreateFlags : uint
15+
{
16+
None = 0,
17+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// Ported from the Vulkan headers and corresponding dependencies.
4+
// Original source is Copyright 2015-2023 The Khronos Group Inc. Licensed under the MIT license.
5+
using System;
6+
using System.Reflection;
7+
using System.Runtime.CompilerServices;
8+
using System.Runtime.InteropServices;
9+
10+
namespace Silk.NET.Vulkan;
11+
12+
[Transformed]
13+
[Flags]
14+
public enum RefreshObjectFlagsKHR : uint
15+
{
16+
None = 0,
17+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// Ported from the Vulkan headers and corresponding dependencies.
4+
// Original source is Copyright 2015-2023 The Khronos Group Inc. Licensed under the MIT license.
5+
using System;
6+
using System.Reflection;
7+
using System.Runtime.CompilerServices;
8+
using System.Runtime.InteropServices;
9+
10+
namespace Silk.NET.Vulkan;
11+
12+
[Transformed]
13+
[Flags]
14+
public enum SemaphoreCreateFlags : uint
15+
{
16+
None = 0,
17+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// Ported from the Vulkan headers and corresponding dependencies.
4+
// Original source is Copyright 2015-2023 The Khronos Group Inc. Licensed under the MIT license.
5+
using System;
6+
using System.Reflection;
7+
using System.Runtime.CompilerServices;
8+
using System.Runtime.InteropServices;
9+
10+
namespace Silk.NET.Vulkan;
11+
12+
[Transformed]
13+
[Flags]
14+
public enum ShaderModuleCreateFlags : uint
15+
{
16+
None = 0,
17+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// Ported from the Vulkan headers and corresponding dependencies.
4+
// Original source is Copyright 2015-2023 The Khronos Group Inc. Licensed under the MIT license.
5+
using System;
6+
using System.Reflection;
7+
using System.Runtime.CompilerServices;
8+
using System.Runtime.InteropServices;
9+
10+
namespace Silk.NET.Vulkan;
11+
12+
[Transformed]
13+
[Flags]
14+
public enum WaylandSurfaceCreateFlagsKHR : uint
15+
{
16+
None = 0,
17+
}

sources/Vulkan/Vulkan/Vulkan/PrivateDataSlotCreateInfo.gen.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ public unsafe partial struct PrivateDataSlotCreateInfo
2121

2222
[NativeTypeName("VkPrivateDataSlotCreateFlags")]
2323
[SupportedApiProfile("vulkan", ["VK_VERSION_1_3", "VK_VERSION_1_4"], MinVersion = "1.3")]
24-
public uint Flags;
24+
public PrivateDataSlotCreateFlags Flags;
2525
}

sources/Vulkan/Vulkan/Vulkan/SemaphoreCreateInfo.gen.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ public unsafe partial struct SemaphoreCreateInfo
3333
["VK_VERSION_1_0", "VK_VERSION_1_1", "VK_VERSION_1_2", "VK_VERSION_1_3", "VK_VERSION_1_4"],
3434
MinVersion = "1.0"
3535
)]
36-
public uint Flags;
36+
public SemaphoreCreateFlags Flags;
3737
}

0 commit comments

Comments
 (0)