Skip to content

Commit 29f96b3

Browse files
committed
Add prefix overrides for manually identified cases where trimming has trimmed too much of the enum member names
1 parent 1a3bc51 commit 29f96b3

10 files changed

+26
-15
lines changed

.silktouch/ac001027d53000e0.stout

0 Bytes
Binary file not shown.

.silktouch/c8c046b328b09d23.stout

0 Bytes
Binary file not shown.

generator.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,10 @@
151151
},
152152
"PrettifyNames": {
153153
"LongAcronymThreshold": 4,
154-
"GlobalPrefixHint": "gl"
154+
"GlobalPrefixHint": "gl",
155+
"PrefixOverrides": {
156+
"SyncObjectMask": "GL_SYNC"
157+
}
155158
},
156159
"TransformFunctions": {
157160
"BoolTypes": {
@@ -200,7 +203,15 @@
200203
},
201204
"PrettifyNames": {
202205
"LongAcronymThreshold": 4,
203-
"GlobalPrefixHint": "vk"
206+
"GlobalPrefixHint": "vk",
207+
"PrefixOverrides": {
208+
"VkFenceImportFlags": "VK_FENCE_IMPORT",
209+
"VkIndirectStateFlagsNV": "VK_INDIRECT_STATE_FLAG",
210+
"VkSemaphoreImportFlags": "VK_SEMAPHORE_IMPORT",
211+
"VkSemaphoreWaitFlags": "VK_SEMAPHORE_WAIT",
212+
"VkSubmitFlags": "VK_SUBMIT",
213+
"VkSurfaceCounterFlagsEXT": "VK_SURFACE_COUNTER"
214+
}
204215
},
205216
"AddVTables": {
206217
"VTables": [

sources/OpenGL/OpenGL/Enums/SyncObjectMask.gen.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ namespace Silk.NET.OpenGL;
1313
[Flags]
1414
public enum SyncObjectMask : uint
1515
{
16-
Bit = unchecked((uint)0x00000001),
17-
BitApple = unchecked((uint)0x00000001),
16+
FlushCommandsBit = unchecked((uint)0x00000001),
17+
FlushCommandsBitApple = unchecked((uint)0x00000001),
1818
}

sources/Vulkan/Vulkan/Vulkan/VkFenceImportFlagBits.gen.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ public enum FenceImportFlags : uint
2121
["VK_VERSION_1_1", "VK_VERSION_1_2", "VK_VERSION_1_3", "VK_VERSION_1_4"],
2222
MinVersion = "1.1"
2323
)]
24-
Bit = 0x00000001,
24+
TemporaryBit = 0x00000001,
2525

2626
[SupportedApiProfile(
2727
"vulkan",
2828
["VK_KHR_external_fence"],
2929
ImpliesSets = ["VK_KHR_external_fence_capabilities"]
3030
)]
31-
BitKHR = Bit,
31+
TemporaryBitKHR = TemporaryBit,
3232
}

sources/Vulkan/Vulkan/Vulkan/VkIndirectStateFlagBitsNV.gen.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ public enum IndirectStateFlagsNV : uint
2121
["VK_NV_device_generated_commands"],
2222
ImpliesSets = ["VK_VERSION_1_1+VK_KHR_buffer_device_address", "VK_VERSION_1_2"]
2323
)]
24-
FlagFrontfaceBitNV = 0x00000001,
24+
FrontfaceBitNV = 0x00000001,
2525
}

sources/Vulkan/Vulkan/Vulkan/VkSemaphoreImportFlagBits.gen.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ public enum SemaphoreImportFlags : uint
2121
["VK_VERSION_1_1", "VK_VERSION_1_2", "VK_VERSION_1_3", "VK_VERSION_1_4"],
2222
MinVersion = "1.1"
2323
)]
24-
Bit = 0x00000001,
24+
TemporaryBit = 0x00000001,
2525

2626
[SupportedApiProfile(
2727
"vulkan",
2828
["VK_KHR_external_semaphore"],
2929
ImpliesSets = ["VK_KHR_external_semaphore_capabilities"]
3030
)]
31-
BitKHR = Bit,
31+
TemporaryBitKHR = TemporaryBit,
3232
}

sources/Vulkan/Vulkan/Vulkan/VkSemaphoreWaitFlagBits.gen.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public enum SemaphoreWaitFlags : uint
2121
["VK_VERSION_1_2", "VK_VERSION_1_3", "VK_VERSION_1_4"],
2222
MinVersion = "1.2"
2323
)]
24-
Bit = 0x00000001,
24+
AnyBit = 0x00000001,
2525

2626
[SupportedApiProfile(
2727
"vulkan",
@@ -31,5 +31,5 @@ public enum SemaphoreWaitFlags : uint
3131
"VK_KHR_timeline_semaphore+VK_VERSION_1_1",
3232
]
3333
)]
34-
BitKHR = Bit,
34+
AnyBitKHR = AnyBit,
3535
}

sources/Vulkan/Vulkan/Vulkan/VkSubmitFlagBits.gen.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public enum SubmitFlags : uint
1717
None = 0,
1818

1919
[SupportedApiProfile("vulkan", ["VK_VERSION_1_3", "VK_VERSION_1_4"], MinVersion = "1.3")]
20-
Bit = 0x00000001,
20+
ProtectedBit = 0x00000001,
2121

2222
[SupportedApiProfile(
2323
"vulkan",
@@ -27,5 +27,5 @@ public enum SubmitFlags : uint
2727
"VK_KHR_synchronization2+VK_VERSION_1_1",
2828
]
2929
)]
30-
BitKHR = Bit,
30+
ProtectedBitKHR = ProtectedBit,
3131
}

sources/Vulkan/Vulkan/Vulkan/VkSurfaceCounterFlagBitsEXT.gen.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ public enum SurfaceCounterFlagsEXT : uint
2121
["VK_EXT_display_surface_counter"],
2222
ImpliesSets = ["VK_KHR_display"]
2323
)]
24-
SurfaceCounterVblankBitEXT = 0x00000001,
24+
VblankBitEXT = 0x00000001,
2525

2626
[SupportedApiProfile(
2727
"vulkan",
2828
["VK_EXT_display_surface_counter"],
2929
ImpliesSets = ["VK_KHR_display"]
3030
)]
31-
SurfaceCounterVblankEXT = SurfaceCounterVblankBitEXT,
31+
VblankEXT = VblankBitEXT,
3232
}

0 commit comments

Comments
 (0)