Skip to content

Commit 6b92340

Browse files
committed
DRAFT: Start using top-level feature info to annotate individual definitions
1 parent 3229342 commit 6b92340

File tree

11 files changed

+5797
-2582
lines changed

11 files changed

+5797
-2582
lines changed

.github/workflows/ci.yml

+4
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ jobs:
4646
run: cargo test --workspace --all-targets
4747
- name: Test docs
4848
run: cargo test --workspace --doc
49+
- name: Test all targets
50+
run: cargo test --workspace --all-targets -F provisional
51+
- name: Test docs
52+
run: cargo test --workspace --doc -F provisional
4953

5054
fmt:
5155
name: Rustfmt

ash/src/extensions_generated.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -5533,8 +5533,10 @@ pub mod ext {
55335533
self.handle
55345534
}
55355535
}
5536-
#[allow(non_camel_case_types)]
55375536
#[doc = "Implemented for all types that can be passed as argument to `pipeline_properties` in [`PFN_vkGetPipelinePropertiesEXT`]"]
5537+
#[doc = ""]
5538+
#[doc = "Provided by VK_EXT_pipeline_properties"]
5539+
#[allow(non_camel_case_types)]
55385540
pub unsafe trait GetPipelinePropertiesEXTParamPipelineProperties {}
55395541
unsafe impl GetPipelinePropertiesEXTParamPipelineProperties
55405542
for PipelinePropertiesIdentifierEXT<'_>

ash/src/vk/bitflags.rs

+142-142
Large diffs are not rendered by default.

ash/src/vk/constants.rs

+30
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,61 @@
11
use super::definitions::*;
2+
#[doc = "Provided by VK_VERSION_1_0"]
23
pub const MAX_PHYSICAL_DEVICE_NAME_SIZE: usize = 256;
4+
#[doc = "Provided by VK_VERSION_1_0"]
35
pub const UUID_SIZE: usize = 16;
6+
#[doc = "Provided by VK_VERSION_1_1"]
47
pub const LUID_SIZE: usize = 8;
8+
#[doc = "Provided by VK_VERSION_1_0"]
59
pub const MAX_EXTENSION_NAME_SIZE: usize = 256;
10+
#[doc = "Provided by VK_VERSION_1_0"]
611
pub const MAX_DESCRIPTION_SIZE: usize = 256;
12+
#[doc = "Provided by VK_VERSION_1_0"]
713
pub const MAX_MEMORY_TYPES: usize = 32;
814
#[doc = "The maximum number of unique memory heaps, each of which supporting 1 or more memory types"]
15+
#[doc = ""]
16+
#[doc = "Provided by VK_VERSION_1_0"]
917
pub const MAX_MEMORY_HEAPS: usize = 16;
18+
#[doc = "Provided by VK_VERSION_1_0"]
1019
pub const LOD_CLAMP_NONE: f32 = 1000.00;
20+
#[doc = "Provided by VK_VERSION_1_0"]
1121
pub const REMAINING_MIP_LEVELS: u32 = !0;
22+
#[doc = "Provided by VK_VERSION_1_0"]
1223
pub const REMAINING_ARRAY_LAYERS: u32 = !0;
24+
#[doc = "Provided by VK_EXT_image_sliced_view_of_3d"]
1325
pub const REMAINING_3D_SLICES_EXT: u32 = !0;
26+
#[doc = "Provided by VK_VERSION_1_0"]
1427
pub const WHOLE_SIZE: u64 = !0;
28+
#[doc = "Provided by VK_VERSION_1_0"]
1529
pub const ATTACHMENT_UNUSED: u32 = !0;
30+
#[doc = "Provided by VK_VERSION_1_0"]
1631
pub const TRUE: Bool32 = 1;
32+
#[doc = "Provided by VK_VERSION_1_0"]
1733
pub const FALSE: Bool32 = 0;
34+
#[doc = "Provided by VK_VERSION_1_0"]
1835
pub const QUEUE_FAMILY_IGNORED: u32 = !0;
36+
#[doc = "Provided by VK_VERSION_1_1"]
1937
pub const QUEUE_FAMILY_EXTERNAL: u32 = !1;
38+
#[doc = "Provided by VK_EXT_queue_family_foreign"]
2039
pub const QUEUE_FAMILY_FOREIGN_EXT: u32 = !2;
40+
#[doc = "Provided by VK_VERSION_1_0"]
2141
pub const SUBPASS_EXTERNAL: u32 = !0;
42+
#[doc = "Provided by VK_VERSION_1_1"]
2243
pub const MAX_DEVICE_GROUP_SIZE: usize = 32;
44+
#[doc = "Provided by VK_VERSION_1_2"]
2345
pub const MAX_DRIVER_NAME_SIZE: usize = 256;
46+
#[doc = "Provided by VK_VERSION_1_2"]
2447
pub const MAX_DRIVER_INFO_SIZE: usize = 256;
48+
#[doc = "Provided by VK_KHR_ray_tracing_pipeline"]
2549
pub const SHADER_UNUSED_KHR: u32 = !0;
50+
#[doc = "Provided by VK_KHR_global_priority"]
2651
pub const MAX_GLOBAL_PRIORITY_SIZE_KHR: usize = 16;
52+
#[doc = "Provided by VK_EXT_shader_module_identifier"]
2753
pub const MAX_SHADER_MODULE_IDENTIFIER_SIZE_EXT: usize = 32;
54+
#[doc = "Provided by VK_KHR_pipeline_binary"]
2855
pub const MAX_PIPELINE_BINARY_KEY_SIZE_KHR: usize = 32;
56+
#[doc = "Provided by VK_KHR_video_decode_av1"]
2957
pub const MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR: usize = 7;
58+
#[doc = "Provided by VK_AMDX_shader_enqueue"]
59+
#[cfg(feature = "provisional")]
3060
pub const SHADER_INDEX_UNUSED_AMDX: u32 = !0;
3161
pub const SHADER_UNUSED_NV: u32 = SHADER_UNUSED_KHR;

ash/src/vk/definitions.rs

+3,644-1,221
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)