1 // GENERATED FILE - DO NOT EDIT.
2 // Generated by gen_vk_mandatory_format_support_table.py using data from
3 // vk_mandatory_format_support_data.json and the vk.xml file situated at
4 // /third_party/vulkan-validation-layers/src/scripts/vk.xml
5 //
6 // Copyright 2020 The ANGLE Project Authors. All rights reserved.
7 // Use of this source code is governed by a BSD-style license that can be
8 // found in the LICENSE file.
9 //
10 // vk_mandatory_format_support_table_autogen.cpp:
11 // Queries for full Vulkan mandatory format support information based on VK format.
12
13 #include "libANGLE/renderer/vulkan/vk_format_utils.h"
14
15 using namespace angle;
16
17 namespace rx
18 {
19 namespace vk
20 {
21 namespace
22 {
23 constexpr VkFormatFeatureFlagBits BLIT_DST = VK_FORMAT_FEATURE_BLIT_DST_BIT;
24 constexpr VkFormatFeatureFlagBits BLIT_SRC = VK_FORMAT_FEATURE_BLIT_SRC_BIT;
25 constexpr VkFormatFeatureFlagBits COLOR_ATTACHMENT = VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT;
26 constexpr VkFormatFeatureFlagBits COLOR_ATTACHMENT_BLEND =
27 VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT;
28 constexpr VkFormatFeatureFlagBits DEPTH_STENCIL_ATTACHMENT =
29 VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT;
30 constexpr VkFormatFeatureFlagBits SAMPLED_IMAGE = VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT;
31 constexpr VkFormatFeatureFlagBits SAMPLED_IMAGE_FILTER_LINEAR =
32 VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT;
33 constexpr VkFormatFeatureFlagBits STORAGE_IMAGE = VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT;
34 constexpr VkFormatFeatureFlagBits STORAGE_IMAGE_ATOMIC = VK_FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT;
35 constexpr VkFormatFeatureFlagBits STORAGE_TEXEL_BUFFER = VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT;
36 constexpr VkFormatFeatureFlagBits STORAGE_TEXEL_BUFFER_ATOMIC =
37 VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT;
38 constexpr VkFormatFeatureFlagBits UNIFORM_TEXEL_BUFFER = VK_FORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT;
39 constexpr VkFormatFeatureFlagBits VERTEX_BUFFER = VK_FORMAT_FEATURE_VERTEX_BUFFER_BIT;
40
41 using namespace angle;
42
43 constexpr FormatMap<VkFormatProperties> kFormatProperties = {
44 {FormatID::R8G8_USCALED, {0, 0, 0}},
45 {FormatID::D32_FLOAT_S8X24_UINT, {0, 0, 0}},
46 {FormatID::ETC2_R8G8B8_SRGB_BLOCK, {0, 0, 0}},
47 {FormatID::R8G8_UNORM_SRGB, {0, 0, 0}},
48 {FormatID::R32G32B32A32_SINT,
49 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE | STORAGE_IMAGE,
50 STORAGE_TEXEL_BUFFER | UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
51 {FormatID::ASTC_10x8_SRGB_BLOCK, {0, 0, 0}},
52 {FormatID::R16G16B16_USCALED, {0, 0, 0}},
53 {FormatID::BC4_RED_SNORM_BLOCK, {0, 0, 0}},
54 {FormatID::R16G16B16_SNORM, {0, 0, 0}},
55 {FormatID::S8_UINT, {0, 0, 0}},
56 {FormatID::R8G8B8_USCALED, {0, 0, 0}},
57 {FormatID::ASTC_5x4_UNORM_BLOCK, {0, 0, 0}},
58 {FormatID::BC5_RG_UNORM_BLOCK, {0, 0, 0}},
59 {FormatID::ASTC_8x5_SRGB_BLOCK, {0, 0, 0}},
60 {FormatID::R8G8_SNORM,
61 {0, BLIT_SRC | SAMPLED_IMAGE | SAMPLED_IMAGE_FILTER_LINEAR,
62 UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
63 {FormatID::R16G16B16_UINT, {0, 0, 0}},
64 {FormatID::ETC2_R8G8B8A8_UNORM_BLOCK, {0, 0, 0}},
65 {FormatID::R16G16_UINT,
66 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE,
67 UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
68 {FormatID::R16_USCALED, {0, 0, 0}},
69 {FormatID::BC3_RGBA_UNORM_SRGB_BLOCK, {0, 0, 0}},
70 {FormatID::R8_SINT,
71 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE,
72 UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
73 {FormatID::R11G11B10_FLOAT,
74 {0, BLIT_SRC | SAMPLED_IMAGE | SAMPLED_IMAGE_FILTER_LINEAR, UNIFORM_TEXEL_BUFFER}},
75 {FormatID::D24_UNORM_S8_UINT, {0, 0, 0}},
76 {FormatID::B4G4R4A4_UNORM, {0, BLIT_SRC | SAMPLED_IMAGE | SAMPLED_IMAGE_FILTER_LINEAR, 0}},
77 {FormatID::ASTC_12x10_UNORM_BLOCK, {0, 0, 0}},
78 {FormatID::R8G8B8_SSCALED, {0, 0, 0}},
79 {FormatID::R32G32B32_UINT, {0, 0, VERTEX_BUFFER}},
80 {FormatID::BC6H_RGB_SFLOAT_BLOCK, {0, 0, 0}},
81 {FormatID::R16_SINT,
82 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE,
83 UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
84 {FormatID::D16_UNORM, {0, BLIT_SRC | DEPTH_STENCIL_ATTACHMENT | SAMPLED_IMAGE, 0}},
85 {FormatID::ASTC_4x4_UNORM_BLOCK, {0, 0, 0}},
86 {FormatID::ASTC_8x8_SRGB_BLOCK, {0, 0, 0}},
87 {FormatID::R8_USCALED, {0, 0, 0}},
88 {FormatID::R8G8B8_UNORM_SRGB, {0, 0, 0}},
89 {FormatID::B5G5R5A1_UNORM, {0, 0, 0}},
90 {FormatID::R16G16_SSCALED, {0, 0, 0}},
91 {FormatID::B8G8R8A8_UNORM_SRGB,
92 {0,
93 BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | COLOR_ATTACHMENT_BLEND | SAMPLED_IMAGE |
94 SAMPLED_IMAGE_FILTER_LINEAR,
95 0}},
96 {FormatID::BC3_RGBA_UNORM_BLOCK, {0, 0, 0}},
97 {FormatID::G8_B8R8_2PLANE_420_UNORM, {0, 0, 0}},
98 {FormatID::R16_FLOAT,
99 {0,
100 BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | COLOR_ATTACHMENT_BLEND | SAMPLED_IMAGE |
101 SAMPLED_IMAGE_FILTER_LINEAR,
102 UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
103 {FormatID::R8G8B8A8_SNORM,
104 {0, BLIT_SRC | SAMPLED_IMAGE | SAMPLED_IMAGE_FILTER_LINEAR | STORAGE_IMAGE,
105 STORAGE_TEXEL_BUFFER | UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
106 {FormatID::R8G8B8A8_SSCALED, {0, 0, 0}},
107 {FormatID::R8_UNORM_SRGB, {0, 0, 0}},
108 {FormatID::R8G8B8_UNORM, {0, 0, 0}},
109 {FormatID::ASTC_10x10_SRGB_BLOCK, {0, 0, 0}},
110 {FormatID::R10G10B10A2_UNORM,
111 {0,
112 BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | COLOR_ATTACHMENT_BLEND | SAMPLED_IMAGE |
113 SAMPLED_IMAGE_FILTER_LINEAR,
114 UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
115 {FormatID::ASTC_12x10_SRGB_BLOCK, {0, 0, 0}},
116 {FormatID::ASTC_5x4_SRGB_BLOCK, {0, 0, 0}},
117 {FormatID::ASTC_8x5_UNORM_BLOCK, {0, 0, 0}},
118 {FormatID::R16G16B16A16_USCALED, {0, 0, 0}},
119 {FormatID::R8G8B8A8_UNORM_SRGB,
120 {0,
121 BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | COLOR_ATTACHMENT_BLEND | SAMPLED_IMAGE |
122 SAMPLED_IMAGE_FILTER_LINEAR,
123 0}},
124 {FormatID::NONE, {0, 0, 0}},
125 {FormatID::R32G32_UINT,
126 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE | STORAGE_IMAGE,
127 STORAGE_TEXEL_BUFFER | UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
128 {FormatID::R16G16_SNORM, {0, 0, VERTEX_BUFFER}},
129 {FormatID::R16_UNORM, {0, 0, VERTEX_BUFFER}},
130 {FormatID::R10G10B10A2_SINT, {0, 0, 0}},
131 {FormatID::R16G16B16A16_FLOAT,
132 {0,
133 BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | COLOR_ATTACHMENT_BLEND | SAMPLED_IMAGE |
134 SAMPLED_IMAGE_FILTER_LINEAR | STORAGE_IMAGE,
135 STORAGE_TEXEL_BUFFER | UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
136 {FormatID::ASTC_5x5_SRGB_BLOCK, {0, 0, 0}},
137 {FormatID::EAC_R11_SNORM_BLOCK, {0, 0, 0}},
138 {FormatID::ASTC_8x6_SRGB_BLOCK, {0, 0, 0}},
139 {FormatID::R8G8B8A8_USCALED, {0, 0, 0}},
140 {FormatID::R8G8B8A8_UINT,
141 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE | STORAGE_IMAGE,
142 STORAGE_TEXEL_BUFFER | UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
143 {FormatID::R5G6B5_UNORM,
144 {0,
145 BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | COLOR_ATTACHMENT_BLEND | SAMPLED_IMAGE |
146 SAMPLED_IMAGE_FILTER_LINEAR,
147 0}},
148 {FormatID::R8G8B8A8_SINT,
149 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE | STORAGE_IMAGE,
150 STORAGE_TEXEL_BUFFER | UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
151 {FormatID::B8G8R8A8_UNORM,
152 {0,
153 BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | COLOR_ATTACHMENT_BLEND | SAMPLED_IMAGE |
154 SAMPLED_IMAGE_FILTER_LINEAR,
155 UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
156 {FormatID::R32G32B32A32_FLOAT,
157 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE | STORAGE_IMAGE,
158 STORAGE_TEXEL_BUFFER | UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
159 {FormatID::R16G16B16_UNORM, {0, 0, 0}},
160 {FormatID::BC2_RGBA_UNORM_BLOCK, {0, 0, 0}},
161 {FormatID::ASTC_12x12_UNORM_BLOCK, {0, 0, 0}},
162 {FormatID::ETC2_R8G8B8A8_SRGB_BLOCK, {0, 0, 0}},
163 {FormatID::R10G10B10A2_SNORM, {0, 0, 0}},
164 {FormatID::R8G8B8A8_UNORM,
165 {0,
166 BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | COLOR_ATTACHMENT_BLEND | SAMPLED_IMAGE |
167 SAMPLED_IMAGE_FILTER_LINEAR | STORAGE_IMAGE,
168 STORAGE_TEXEL_BUFFER | UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
169 {FormatID::ASTC_6x6_SRGB_BLOCK, {0, 0, 0}},
170 {FormatID::ASTC_10x10_UNORM_BLOCK, {0, 0, 0}},
171 {FormatID::ETC2_R8G8B8A1_SRGB_BLOCK, {0, 0, 0}},
172 {FormatID::R16G16B16_SSCALED, {0, 0, 0}},
173 {FormatID::R16G16_UNORM, {0, 0, VERTEX_BUFFER}},
174 {FormatID::D32_FLOAT, {0, 0, 0}},
175 {FormatID::R16G16B16A16_UNORM, {0, 0, VERTEX_BUFFER}},
176 {FormatID::EAC_R11_UNORM_BLOCK, {0, 0, 0}},
177 {FormatID::R16G16B16A16_UINT,
178 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE | STORAGE_IMAGE,
179 STORAGE_TEXEL_BUFFER | UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
180 {FormatID::R16G16B16A16_SINT,
181 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE | STORAGE_IMAGE,
182 STORAGE_TEXEL_BUFFER | UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
183 {FormatID::BC1_RGBA_UNORM_SRGB_BLOCK, {0, 0, 0}},
184 {FormatID::A1R5G5B5_UNORM,
185 {0,
186 BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | COLOR_ATTACHMENT_BLEND | SAMPLED_IMAGE |
187 SAMPLED_IMAGE_FILTER_LINEAR,
188 0}},
189 {FormatID::ASTC_8x6_UNORM_BLOCK, {0, 0, 0}},
190 {FormatID::EAC_R11G11_SNORM_BLOCK, {0, 0, 0}},
191 {FormatID::R10G10B10A2_SSCALED, {0, 0, 0}},
192 {FormatID::BC1_RGBA_UNORM_BLOCK, {0, 0, 0}},
193 {FormatID::R32G32_SINT,
194 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE | STORAGE_IMAGE,
195 STORAGE_TEXEL_BUFFER | UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
196 {FormatID::BC6H_RGB_UFLOAT_BLOCK, {0, 0, 0}},
197 {FormatID::R32G32B32_FLOAT, {0, 0, VERTEX_BUFFER}},
198 {FormatID::R8_UINT,
199 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE,
200 UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
201 {FormatID::ASTC_10x6_UNORM_BLOCK, {0, 0, 0}},
202 {FormatID::BC1_RGB_UNORM_BLOCK, {0, 0, 0}},
203 {FormatID::R4G4B4A4_UNORM, {0, 0, 0}},
204 {FormatID::BC1_RGB_UNORM_SRGB_BLOCK, {0, 0, 0}},
205 {FormatID::ASTC_8x8_UNORM_BLOCK, {0, 0, 0}},
206 {FormatID::R10G10B10A2_UINT,
207 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE, UNIFORM_TEXEL_BUFFER}},
208 {FormatID::ASTC_6x5_SRGB_BLOCK, {0, 0, 0}},
209 {FormatID::R16G16_FLOAT,
210 {0,
211 BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | COLOR_ATTACHMENT_BLEND | SAMPLED_IMAGE |
212 SAMPLED_IMAGE_FILTER_LINEAR,
213 UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
214 {FormatID::B5G6R5_UNORM, {0, 0, 0}},
215 {FormatID::R32_FLOAT,
216 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE | STORAGE_IMAGE,
217 STORAGE_TEXEL_BUFFER | UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
218 {FormatID::ASTC_12x12_SRGB_BLOCK, {0, 0, 0}},
219 {FormatID::ASTC_5x5_UNORM_BLOCK, {0, 0, 0}},
220 {FormatID::R8G8B8_SINT, {0, 0, 0}},
221 {FormatID::R32_SINT,
222 {0,
223 BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE | STORAGE_IMAGE | STORAGE_IMAGE_ATOMIC,
224 STORAGE_TEXEL_BUFFER | STORAGE_TEXEL_BUFFER_ATOMIC | UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
225 {FormatID::ETC2_R8G8B8A1_UNORM_BLOCK, {0, 0, 0}},
226 {FormatID::R16_SSCALED, {0, 0, 0}},
227 {FormatID::ASTC_6x6_UNORM_BLOCK, {0, 0, 0}},
228 {FormatID::R8G8B8_SNORM, {0, 0, 0}},
229 {FormatID::R16_UINT,
230 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE,
231 UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
232 {FormatID::R8_UNORM,
233 {0,
234 BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | COLOR_ATTACHMENT_BLEND | SAMPLED_IMAGE |
235 SAMPLED_IMAGE_FILTER_LINEAR,
236 UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
237 {FormatID::BC7_RGBA_UNORM_SRGB_BLOCK, {0, 0, 0}},
238 {FormatID::G8_B8_R8_3PLANE_420_UNORM, {0, 0, 0}},
239 {FormatID::R32G32_FLOAT,
240 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE | STORAGE_IMAGE,
241 STORAGE_TEXEL_BUFFER | UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
242 {FormatID::BC5_RG_SNORM_BLOCK, {0, 0, 0}},
243 {FormatID::R16G16B16A16_SNORM, {0, 0, VERTEX_BUFFER}},
244 {FormatID::R8G8_UNORM,
245 {0,
246 BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | COLOR_ATTACHMENT_BLEND | SAMPLED_IMAGE |
247 SAMPLED_IMAGE_FILTER_LINEAR,
248 UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
249 {FormatID::ASTC_10x6_SRGB_BLOCK, {0, 0, 0}},
250 {FormatID::ASTC_10x5_UNORM_BLOCK, {0, 0, 0}},
251 {FormatID::B10G10R10A2_UNORM, {0, 0, 0}},
252 {FormatID::BC2_RGBA_UNORM_SRGB_BLOCK, {0, 0, 0}},
253 {FormatID::R32G32B32_SINT, {0, 0, VERTEX_BUFFER}},
254 {FormatID::R10G10B10A2_USCALED, {0, 0, 0}},
255 {FormatID::R8G8_SINT,
256 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE,
257 UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
258 {FormatID::R16G16B16A16_SSCALED, {0, 0, 0}},
259 {FormatID::ASTC_10x5_SRGB_BLOCK, {0, 0, 0}},
260 {FormatID::R8_SSCALED, {0, 0, 0}},
261 {FormatID::R16G16B16_FLOAT, {0, 0, 0}},
262 {FormatID::R8_SNORM,
263 {0, BLIT_SRC | SAMPLED_IMAGE | SAMPLED_IMAGE_FILTER_LINEAR,
264 UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
265 {FormatID::R16_SNORM, {0, 0, VERTEX_BUFFER}},
266 {FormatID::D24_UNORM_X8_UINT, {0, 0, 0}},
267 {FormatID::R16G16_SINT,
268 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE,
269 UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
270 {FormatID::R16G16B16_SINT, {0, 0, 0}},
271 {FormatID::R8G8_SSCALED, {0, 0, 0}},
272 {FormatID::EAC_R11G11_UNORM_BLOCK, {0, 0, 0}},
273 {FormatID::ASTC_10x8_UNORM_BLOCK, {0, 0, 0}},
274 {FormatID::ASTC_4x4_SRGB_BLOCK, {0, 0, 0}},
275 {FormatID::R8G8_UINT,
276 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE,
277 UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
278 {FormatID::R5G5B5A1_UNORM, {0, 0, 0}},
279 {FormatID::R8G8B8_UINT, {0, 0, 0}},
280 {FormatID::BC7_RGBA_UNORM_BLOCK, {0, 0, 0}},
281 {FormatID::ASTC_6x5_UNORM_BLOCK, {0, 0, 0}},
282 {FormatID::R32_UINT,
283 {0,
284 BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE | STORAGE_IMAGE | STORAGE_IMAGE_ATOMIC,
285 STORAGE_TEXEL_BUFFER | STORAGE_TEXEL_BUFFER_ATOMIC | UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
286 {FormatID::R9G9B9E5_SHAREDEXP, {0, BLIT_SRC | SAMPLED_IMAGE | SAMPLED_IMAGE_FILTER_LINEAR, 0}},
287 {FormatID::BC4_RED_UNORM_BLOCK, {0, 0, 0}},
288 {FormatID::R32G32B32A32_UINT,
289 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE | STORAGE_IMAGE,
290 STORAGE_TEXEL_BUFFER | UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
291 {FormatID::ETC2_R8G8B8_UNORM_BLOCK, {0, 0, 0}},
292 {FormatID::R16G16_USCALED, {0, 0, 0}}};
293 } // anonymous namespace
294
GetMandatoryFormatSupport(FormatID formatID)295 const VkFormatProperties &GetMandatoryFormatSupport(FormatID formatID)
296 {
297 return kFormatProperties[formatID];
298 }
299 } // namespace vk
300 } // namespace rx
301