1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
use crate::macros::vulkan_bitflags;
vulkan_bitflags! {
#[non_exhaustive]
/// Describes how an image is going to be used. This is **not** just an optimization.
///
/// If you try to use an image in a way that you didn't declare, an error will occur.
ImageUsage = ImageUsageFlags(u32);
/// The image can be used as a source for transfer, blit, resolve and clear commands.
TRANSFER_SRC = TRANSFER_SRC,
/// The image can be used as a destination for transfer, blit, resolve and clear commands.
TRANSFER_DST = TRANSFER_DST,
/// The image can be used as a sampled image in a shader.
SAMPLED = SAMPLED,
/// The image can be used as a storage image in a shader.
STORAGE = STORAGE,
/// The image can be used as a color attachment in a render pass/framebuffer.
COLOR_ATTACHMENT = COLOR_ATTACHMENT,
/// The image can be used as a depth/stencil attachment in a render pass/framebuffer.
DEPTH_STENCIL_ATTACHMENT = DEPTH_STENCIL_ATTACHMENT,
/// The image will be used as an attachment, and will only ever be used temporarily.
/// As soon as you leave a render pass, the content of transient images becomes undefined.
///
/// This is a hint to the Vulkan implementation that it may not need allocate any memory for
/// this image if the image can live entirely in some cache.
///
/// If `transient_attachment` is true, then only `color_attachment`, `depth_stencil_attachment`
/// and `input_attachment` can be true as well. The rest must be false or an error will be
/// returned when creating the image.
TRANSIENT_ATTACHMENT = TRANSIENT_ATTACHMENT,
/// The image can be used as an input attachment in a render pass/framebuffer.
INPUT_ATTACHMENT = INPUT_ATTACHMENT,
/* TODO: enable
// TODO: document
VIDEO_DECODE_DST = VIDEO_DECODE_DST_KHR
RequiresOneOf([
RequiresAllOf([DeviceExtension(khr_video_decode_queue)]),
]),*/
/* TODO: enable
// TODO: document
VIDEO_DECODE_SRC = VIDEO_DECODE_SRC_KHR
RequiresOneOf([
RequiresAllOf([DeviceExtension(khr_video_decode_queue)]),
]),*/
/* TODO: enable
// TODO: document
VIDEO_DECODE_DPB = VIDEO_DECODE_DPB_KHR
RequiresOneOf([
RequiresAllOf([DeviceExtension(khr_video_decode_queue)]),
]),*/
/* TODO: enable
// TODO: document
FRAGMENT_DENSITY_MAP = FRAGMENT_DENSITY_MAP_EXT
RequiresOneOf([
RequiresAllOf([DeviceExtension(ext_fragment_density_map)]),
]),*/
/* TODO: enable
// TODO: document
FRAGMENT_SHADING_RATE_ATTACHMENT = FRAGMENT_SHADING_RATE_ATTACHMENT_KHR
RequiresOneOf([
RequiresAllOf([DeviceExtension(khr_fragment_shading_rate)]),
]),*/
/* TODO: enable
// TODO: document
VIDEO_ENCODE_DST = VIDEO_ENCODE_DST_KHR
RequiresOneOf([
RequiresAllOf([DeviceExtension(khr_video_encode_queue)]),
]),*/
/* TODO: enable
// TODO: document
VIDEO_ENCODE_SRC = VIDEO_ENCODE_SRC_KHR
RequiresOneOf([
RequiresAllOf([DeviceExtension(khr_video_encode_queue)]),
]),*/
/* TODO: enable
// TODO: document
VIDEO_ENCODE_DPB = VIDEO_ENCODE_DPB_KHR
RequiresOneOf([
RequiresAllOf([DeviceExtension(khr_video_encode_queue)]),
]),*/
/* TODO: enable
// TODO: document
ATTACHMENT_FEEDBACK_LOOP = ATTACHMENT_FEEDBACK_LOOP_EXT
RequiresOneOf([
RequiresAllOf([DeviceExtension(ext_attachment_feedback_loop_layout)]),
]),*/
/* TODO: enable
// TODO: document
INVOCATION_MASK = INVOCATION_MASK_HUAWEI
RequiresOneOf([
RequiresAllOf([DeviceExtension(huawei_invocation_mask)]),
]),*/
/* TODO: enable
// TODO: document
SAMPLE_WEIGHT = SAMPLE_WEIGHT_QCOM
RequiresOneOf([
RequiresAllOf([DeviceExtension(qcom_image_processing)]),
]),*/
/* TODO: enable
// TODO: document
SAMPLE_BLOCK_MATCH = SAMPLE_BLOCK_MATCH_QCOM
RequiresOneOf([
RequiresAllOf([DeviceExtension(qcom_image_processing)]),
]),*/
}