Skip to content

Commit 4c68768

Browse files
committed
Fix missing API constants
1 parent 4d2a162 commit 4c68768

File tree

3 files changed

+244
-0
lines changed

3 files changed

+244
-0
lines changed

.silktouch/a1b4e159b3dbe7f3.stout

0 Bytes
Binary file not shown.

sources/SilkTouch/SilkTouch/Mods/MixKhronosData.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1959,6 +1959,12 @@ internal void ReadGroups(XDocument doc, JobData data, HashSet<string> vendors)
19591959
groupName = groupName.Replace("FlagBits", "Flags");
19601960
}
19611961

1962+
// Skip Vulkan API Constants since it is not an enum
1963+
if (block.Attribute("type")?.Value == "constants")
1964+
{
1965+
continue;
1966+
}
1967+
19621968
// Special cases for OpenCL contributed by @Alexx999 for 2.X and ported to 3.0 from:
19631969
// https://github.com/dotnet/Silk.NET/blob/d8919600/src/Core/Silk.NET.BuildTools/Converters/Readers/OpenCLReader.cs#L842-L845
19641970
// Note that this has actually been split into two cases: top-level intentional exclusions and just a silent

sources/Vulkan/Vulkan/Vulkan/Vk.gen.cs

Lines changed: 238 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50629,6 +50629,126 @@ public Result WriteMicromapsPropertiesEXT(
5062950629
(((uint)(0)) << 29U) | (((uint)(1)) << 22U) | (((uint)(4)) << 12U) | ((uint)(315))
5063050630
);
5063150631

50632+
[NativeTypeName("#define VK_ATTACHMENT_UNUSED (~0U)")]
50633+
[SupportedApiProfile(
50634+
"vulkan",
50635+
["VK_VERSION_1_0", "VK_VERSION_1_1", "VK_VERSION_1_2", "VK_VERSION_1_3", "VK_VERSION_1_4"],
50636+
MinVersion = "1.0"
50637+
)]
50638+
public const uint AttachmentUnused = (~0U);
50639+
50640+
[NativeTypeName("#define VK_FALSE 0U")]
50641+
[SupportedApiProfile(
50642+
"vulkan",
50643+
["VK_VERSION_1_0", "VK_VERSION_1_1", "VK_VERSION_1_2", "VK_VERSION_1_3", "VK_VERSION_1_4"],
50644+
MinVersion = "1.0"
50645+
)]
50646+
public const uint False = 0U;
50647+
50648+
[NativeTypeName("#define VK_LOD_CLAMP_NONE 1000.0F")]
50649+
[SupportedApiProfile(
50650+
"vulkan",
50651+
["VK_VERSION_1_0", "VK_VERSION_1_1", "VK_VERSION_1_2", "VK_VERSION_1_3", "VK_VERSION_1_4"],
50652+
MinVersion = "1.0"
50653+
)]
50654+
public const float LodClampNone = 1000.0F;
50655+
50656+
[NativeTypeName("#define VK_QUEUE_FAMILY_IGNORED (~0U)")]
50657+
[SupportedApiProfile(
50658+
"vulkan",
50659+
["VK_VERSION_1_0", "VK_VERSION_1_1", "VK_VERSION_1_2", "VK_VERSION_1_3", "VK_VERSION_1_4"],
50660+
MinVersion = "1.0"
50661+
)]
50662+
public const uint QueueFamilyIgnored = (~0U);
50663+
50664+
[NativeTypeName("#define VK_REMAINING_ARRAY_LAYERS (~0U)")]
50665+
[SupportedApiProfile(
50666+
"vulkan",
50667+
["VK_VERSION_1_0", "VK_VERSION_1_1", "VK_VERSION_1_2", "VK_VERSION_1_3", "VK_VERSION_1_4"],
50668+
MinVersion = "1.0"
50669+
)]
50670+
public const uint RemainingArrayLayers = (~0U);
50671+
50672+
[NativeTypeName("#define VK_REMAINING_MIP_LEVELS (~0U)")]
50673+
[SupportedApiProfile(
50674+
"vulkan",
50675+
["VK_VERSION_1_0", "VK_VERSION_1_1", "VK_VERSION_1_2", "VK_VERSION_1_3", "VK_VERSION_1_4"],
50676+
MinVersion = "1.0"
50677+
)]
50678+
public const uint RemainingMipLevels = (~0U);
50679+
50680+
[NativeTypeName("#define VK_SUBPASS_EXTERNAL (~0U)")]
50681+
[SupportedApiProfile(
50682+
"vulkan",
50683+
["VK_VERSION_1_0", "VK_VERSION_1_1", "VK_VERSION_1_2", "VK_VERSION_1_3", "VK_VERSION_1_4"],
50684+
MinVersion = "1.0"
50685+
)]
50686+
public const uint SubpassExternal = (~0U);
50687+
50688+
[NativeTypeName("#define VK_TRUE 1U")]
50689+
[SupportedApiProfile(
50690+
"vulkan",
50691+
["VK_VERSION_1_0", "VK_VERSION_1_1", "VK_VERSION_1_2", "VK_VERSION_1_3", "VK_VERSION_1_4"],
50692+
MinVersion = "1.0"
50693+
)]
50694+
public const uint True = 1U;
50695+
50696+
[NativeTypeName("#define VK_WHOLE_SIZE (~0ULL)")]
50697+
[SupportedApiProfile(
50698+
"vulkan",
50699+
["VK_VERSION_1_0", "VK_VERSION_1_1", "VK_VERSION_1_2", "VK_VERSION_1_3", "VK_VERSION_1_4"],
50700+
MinVersion = "1.0"
50701+
)]
50702+
public const ulong WholeSize = (~0UL);
50703+
50704+
[NativeTypeName("#define VK_MAX_MEMORY_TYPES 32U")]
50705+
[SupportedApiProfile(
50706+
"vulkan",
50707+
["VK_VERSION_1_0", "VK_VERSION_1_1", "VK_VERSION_1_2", "VK_VERSION_1_3", "VK_VERSION_1_4"],
50708+
MinVersion = "1.0"
50709+
)]
50710+
public const uint MaxMemoryTypes = 32U;
50711+
50712+
[NativeTypeName("#define VK_MAX_PHYSICAL_DEVICE_NAME_SIZE 256U")]
50713+
[SupportedApiProfile(
50714+
"vulkan",
50715+
["VK_VERSION_1_0", "VK_VERSION_1_1", "VK_VERSION_1_2", "VK_VERSION_1_3", "VK_VERSION_1_4"],
50716+
MinVersion = "1.0"
50717+
)]
50718+
public const uint MaxPhysicalDeviceNameSize = 256U;
50719+
50720+
[NativeTypeName("#define VK_UUID_SIZE 16U")]
50721+
[SupportedApiProfile(
50722+
"vulkan",
50723+
["VK_VERSION_1_0", "VK_VERSION_1_1", "VK_VERSION_1_2", "VK_VERSION_1_3", "VK_VERSION_1_4"],
50724+
MinVersion = "1.0"
50725+
)]
50726+
public const uint UuidSize = 16U;
50727+
50728+
[NativeTypeName("#define VK_MAX_EXTENSION_NAME_SIZE 256U")]
50729+
[SupportedApiProfile(
50730+
"vulkan",
50731+
["VK_VERSION_1_0", "VK_VERSION_1_1", "VK_VERSION_1_2", "VK_VERSION_1_3", "VK_VERSION_1_4"],
50732+
MinVersion = "1.0"
50733+
)]
50734+
public const uint MaxExtensionNameSize = 256U;
50735+
50736+
[NativeTypeName("#define VK_MAX_DESCRIPTION_SIZE 256U")]
50737+
[SupportedApiProfile(
50738+
"vulkan",
50739+
["VK_VERSION_1_0", "VK_VERSION_1_1", "VK_VERSION_1_2", "VK_VERSION_1_3", "VK_VERSION_1_4"],
50740+
MinVersion = "1.0"
50741+
)]
50742+
public const uint MaxDescriptionSize = 256U;
50743+
50744+
[NativeTypeName("#define VK_MAX_MEMORY_HEAPS 16U")]
50745+
[SupportedApiProfile(
50746+
"vulkan",
50747+
["VK_VERSION_1_0", "VK_VERSION_1_1", "VK_VERSION_1_2", "VK_VERSION_1_3", "VK_VERSION_1_4"],
50748+
MinVersion = "1.0"
50749+
)]
50750+
public const uint MaxMemoryHeaps = 16U;
50751+
5063250752
[NativeTypeName("#define VK_API_VERSION_1_1 VK_MAKE_API_VERSION(0, 1, 1, 0)")]
5063350753
[SupportedApiProfile(
5063450754
"vulkan",
@@ -50639,6 +50759,30 @@ public Result WriteMicromapsPropertiesEXT(
5063950759
(((uint)(0)) << 29U) | (((uint)(1)) << 22U) | (((uint)(1)) << 12U) | ((uint)(0))
5064050760
);
5064150761

50762+
[NativeTypeName("#define VK_MAX_DEVICE_GROUP_SIZE 32U")]
50763+
[SupportedApiProfile(
50764+
"vulkan",
50765+
["VK_VERSION_1_1", "VK_VERSION_1_2", "VK_VERSION_1_3", "VK_VERSION_1_4"],
50766+
MinVersion = "1.1"
50767+
)]
50768+
public const uint MaxDeviceGroupSize = 32U;
50769+
50770+
[NativeTypeName("#define VK_LUID_SIZE 8U")]
50771+
[SupportedApiProfile(
50772+
"vulkan",
50773+
["VK_VERSION_1_1", "VK_VERSION_1_2", "VK_VERSION_1_3", "VK_VERSION_1_4"],
50774+
MinVersion = "1.1"
50775+
)]
50776+
public const uint LuidSize = 8U;
50777+
50778+
[NativeTypeName("#define VK_QUEUE_FAMILY_EXTERNAL (~1U)")]
50779+
[SupportedApiProfile(
50780+
"vulkan",
50781+
["VK_VERSION_1_1", "VK_VERSION_1_2", "VK_VERSION_1_3", "VK_VERSION_1_4"],
50782+
MinVersion = "1.1"
50783+
)]
50784+
public const uint QueueFamilyExternal = (~1U);
50785+
5064250786
[NativeTypeName("#define VK_API_VERSION_1_2 VK_MAKE_API_VERSION(0, 1, 2, 0)")]
5064350787
[SupportedApiProfile(
5064450788
"vulkan",
@@ -50649,6 +50793,22 @@ public Result WriteMicromapsPropertiesEXT(
5064950793
(((uint)(0)) << 29U) | (((uint)(1)) << 22U) | (((uint)(2)) << 12U) | ((uint)(0))
5065050794
);
5065150795

50796+
[NativeTypeName("#define VK_MAX_DRIVER_NAME_SIZE 256U")]
50797+
[SupportedApiProfile(
50798+
"vulkan",
50799+
["VK_VERSION_1_2", "VK_VERSION_1_3", "VK_VERSION_1_4"],
50800+
MinVersion = "1.2"
50801+
)]
50802+
public const uint MaxDriverNameSize = 256U;
50803+
50804+
[NativeTypeName("#define VK_MAX_DRIVER_INFO_SIZE 256U")]
50805+
[SupportedApiProfile(
50806+
"vulkan",
50807+
["VK_VERSION_1_2", "VK_VERSION_1_3", "VK_VERSION_1_4"],
50808+
MinVersion = "1.2"
50809+
)]
50810+
public const uint MaxDriverInfoSize = 256U;
50811+
5065250812
[NativeTypeName("#define VK_API_VERSION_1_3 VK_MAKE_API_VERSION(0, 1, 3, 0)")]
5065350813
[SupportedApiProfile("vulkan", ["VK_VERSION_1_3", "VK_VERSION_1_4"], MinVersion = "1.3")]
5065450814
public const uint ApiVersion1X3 = (
@@ -50661,6 +50821,10 @@ public Result WriteMicromapsPropertiesEXT(
5066150821
(((uint)(0)) << 29U) | (((uint)(1)) << 22U) | (((uint)(4)) << 12U) | ((uint)(0))
5066250822
);
5066350823

50824+
[NativeTypeName("#define VK_MAX_GLOBAL_PRIORITY_SIZE 16U")]
50825+
[SupportedApiProfile("vulkan", ["VK_VERSION_1_4"], MinVersion = "1.4")]
50826+
public const uint MaxGlobalPrioritySize = 16U;
50827+
5066450828
[NativeTypeName("#define VK_KHR_SURFACE_SPEC_VERSION 25")]
5066550829
[SupportedApiProfile("vulkan", ["VK_KHR_surface"])]
5066650830
public const int KhrSurfaceSpecVersion = 25;
@@ -52475,6 +52639,17 @@ public Result WriteMicromapsPropertiesEXT(
5247552639
public static Utf8String KhrRayTracingPositionFetchExtensionName =>
5247652640
"VK_KHR_ray_tracing_position_fetch"u8;
5247752641

52642+
[NativeTypeName("#define VK_MAX_PIPELINE_BINARY_KEY_SIZE_KHR 32U")]
52643+
[SupportedApiProfile(
52644+
"vulkan",
52645+
["VK_KHR_pipeline_binary"],
52646+
ImpliesSets = [
52647+
"VK_KHR_pipeline_binary+VK_KHR_maintenance5",
52648+
"VK_KHR_pipeline_binary+VK_VERSION_1_4",
52649+
]
52650+
)]
52651+
public const uint MaxPipelineBinaryKeySizeKHR = 32U;
52652+
5247852653
[NativeTypeName("#define VK_KHR_PIPELINE_BINARY_SPEC_VERSION 1")]
5247952654
[SupportedApiProfile(
5248052655
"vulkan",
@@ -52546,6 +52721,14 @@ public Result WriteMicromapsPropertiesEXT(
5254652721
public static Utf8String KhrComputeShaderDerivativesExtensionName =>
5254752722
"VK_KHR_compute_shader_derivatives"u8;
5254852723

52724+
[NativeTypeName("#define VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR 7U")]
52725+
[SupportedApiProfile(
52726+
"vulkan",
52727+
["VK_KHR_video_decode_av1"],
52728+
ImpliesSets = ["VK_KHR_video_decode_queue"]
52729+
)]
52730+
public const uint MaxVideoAv1ReferencesPerFrameKHR = 7U;
52731+
5254952732
[NativeTypeName("#define VK_KHR_VIDEO_DECODE_AV1_SPEC_VERSION 1")]
5255052733
[SupportedApiProfile(
5255152734
"vulkan",
@@ -53576,6 +53759,17 @@ public Result WriteMicromapsPropertiesEXT(
5357653759
)]
5357753760
public static Utf8String ExtQueueFamilyForeignExtensionName => "VK_EXT_queue_family_foreign"u8;
5357853761

53762+
[NativeTypeName("#define VK_QUEUE_FAMILY_FOREIGN_EXT (~2U)")]
53763+
[SupportedApiProfile(
53764+
"vulkan",
53765+
["VK_EXT_queue_family_foreign"],
53766+
ImpliesSets = [
53767+
"VK_EXT_queue_family_foreign+VK_KHR_external_memory",
53768+
"VK_EXT_queue_family_foreign+VK_VERSION_1_1",
53769+
]
53770+
)]
53771+
public const uint QueueFamilyForeignEXT = (~2U);
53772+
5357953773
[NativeTypeName("#define VK_EXT_DEBUG_UTILS_SPEC_VERSION 2")]
5358053774
[SupportedApiProfile("vulkan", ["VK_EXT_debug_utils"])]
5358153775
public const int ExtDebugUtilsSpecVersion = 2;
@@ -53882,6 +54076,17 @@ public Result WriteMicromapsPropertiesEXT(
5388254076
)]
5388354077
public static Utf8String NvRayTracingExtensionName => "VK_NV_ray_tracing"u8;
5388454078

54079+
[NativeTypeName("#define VK_SHADER_UNUSED_KHR (~0U)")]
54080+
[SupportedApiProfile(
54081+
"vulkan",
54082+
["VK_KHR_ray_tracing_pipeline"],
54083+
ImpliesSets = [
54084+
"VK_KHR_acceleration_structure+VK_KHR_spirv_1_4",
54085+
"VK_KHR_acceleration_structure+VK_VERSION_1_2",
54086+
]
54087+
)]
54088+
public const uint ShaderUnusedKHR = (~0U);
54089+
5388554090
[NativeTypeName("#define VK_SHADER_UNUSED_NV VK_SHADER_UNUSED_KHR")]
5388654091
[SupportedApiProfile(
5388754092
"vulkan",
@@ -56297,6 +56502,17 @@ public Result WriteMicromapsPropertiesEXT(
5629756502
public static Utf8String ExtImageSlicedViewOf3DExtensionName =>
5629856503
"VK_EXT_image_sliced_view_of_3d"u8;
5629956504

56505+
[NativeTypeName("#define VK_REMAINING_3D_SLICES_EXT (~0U)")]
56506+
[SupportedApiProfile(
56507+
"vulkan",
56508+
["VK_EXT_image_sliced_view_of_3d"],
56509+
ImpliesSets = [
56510+
"VK_KHR_maintenance1+VK_KHR_get_physical_device_properties2",
56511+
"VK_VERSION_1_1",
56512+
]
56513+
)]
56514+
public const uint Remaining3DSlicesEXT = (~0U);
56515+
5630056516
[NativeTypeName("#define VK_VALVE_DESCRIPTOR_SET_HOST_MAPPING_SPEC_VERSION 1")]
5630156517
[SupportedApiProfile(
5630256518
"vulkan",
@@ -56706,6 +56922,18 @@ public Result WriteMicromapsPropertiesEXT(
5670656922
public static Utf8String LunargDirectDriverLoadingExtensionName =>
5670756923
"VK_LUNARG_direct_driver_loading"u8;
5670856924

56925+
[NativeTypeName("#define VK_MAX_SHADER_MODULE_IDENTIFIER_SIZE_EXT 32U")]
56926+
[SupportedApiProfile(
56927+
"vulkan",
56928+
["VK_EXT_shader_module_identifier"],
56929+
ImpliesSets = [
56930+
"VK_EXT_pipeline_creation_cache_control+VK_KHR_get_physical_device_properties2",
56931+
"VK_EXT_pipeline_creation_cache_control+VK_VERSION_1_1",
56932+
"VK_VERSION_1_3",
56933+
]
56934+
)]
56935+
public const uint MaxShaderModuleIdentifierSizeEXT = 32U;
56936+
5670956937
[NativeTypeName("#define VK_EXT_SHADER_MODULE_IDENTIFIER_SPEC_VERSION 1")]
5671056938
[SupportedApiProfile(
5671156939
"vulkan",
@@ -57422,6 +57650,16 @@ public Result WriteMicromapsPropertiesEXT(
5742257650
public static Utf8String NvPartitionedAccelerationStructureExtensionName =>
5742357651
"VK_NV_partitioned_acceleration_structure"u8;
5742457652

57653+
[NativeTypeName(
57654+
"#define VK_PARTITIONED_ACCELERATION_STRUCTURE_PARTITION_INDEX_GLOBAL_NV (~0U)"
57655+
)]
57656+
[SupportedApiProfile(
57657+
"vulkan",
57658+
["VK_NV_partitioned_acceleration_structure"],
57659+
ImpliesSets = ["VK_KHR_acceleration_structure"]
57660+
)]
57661+
public const uint PartitionedAccelerationStructurePartitionIndexGlobalNV = (~0U);
57662+
5742557663
[NativeTypeName("#define VK_EXT_DEVICE_GENERATED_COMMANDS_SPEC_VERSION 1")]
5742657664
[SupportedApiProfile(
5742757665
"vulkan",

0 commit comments

Comments
 (0)