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::BC1_RGBA_UNORM_SRGB_BLOCK, {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::A1R5G5B5_UNORM,
184 {0,
185 BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | COLOR_ATTACHMENT_BLEND | SAMPLED_IMAGE |
186 SAMPLED_IMAGE_FILTER_LINEAR,
187 0}},
188 {FormatID::ASTC_8x6_UNORM_BLOCK, {0, 0, 0}},
189 {FormatID::EAC_R11G11_SNORM_BLOCK, {0, 0, 0}},
190 {FormatID::R10G10B10A2_SSCALED, {0, 0, 0}},
191 {FormatID::BC1_RGBA_UNORM_BLOCK, {0, 0, 0}},
192 {FormatID::R32G32_SINT,
193 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE | STORAGE_IMAGE,
194 STORAGE_TEXEL_BUFFER | UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
195 {FormatID::BC6H_RGB_UFLOAT_BLOCK, {0, 0, 0}},
196 {FormatID::R32G32B32_FLOAT, {0, 0, VERTEX_BUFFER}},
197 {FormatID::R8_UINT,
198 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE,
199 UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
200 {FormatID::ASTC_10x6_UNORM_BLOCK, {0, 0, 0}},
201 {FormatID::BC1_RGB_UNORM_BLOCK, {0, 0, 0}},
202 {FormatID::R4G4B4A4_UNORM, {0, 0, 0}},
203 {FormatID::BC1_RGB_UNORM_SRGB_BLOCK, {0, 0, 0}},
204 {FormatID::ASTC_8x8_UNORM_BLOCK, {0, 0, 0}},
205 {FormatID::R10G10B10A2_UINT,
206 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE, UNIFORM_TEXEL_BUFFER}},
207 {FormatID::ASTC_6x5_SRGB_BLOCK, {0, 0, 0}},
208 {FormatID::R16G16_FLOAT,
209 {0,
210 BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | COLOR_ATTACHMENT_BLEND | SAMPLED_IMAGE |
211 SAMPLED_IMAGE_FILTER_LINEAR,
212 UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
213 {FormatID::B5G6R5_UNORM, {0, 0, 0}},
214 {FormatID::R32_FLOAT,
215 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE | STORAGE_IMAGE,
216 STORAGE_TEXEL_BUFFER | UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
217 {FormatID::ASTC_12x12_SRGB_BLOCK, {0, 0, 0}},
218 {FormatID::ASTC_5x5_UNORM_BLOCK, {0, 0, 0}},
219 {FormatID::R8G8B8_SINT, {0, 0, 0}},
220 {FormatID::R32_SINT,
221 {0,
222 BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE | STORAGE_IMAGE | STORAGE_IMAGE_ATOMIC,
223 STORAGE_TEXEL_BUFFER | STORAGE_TEXEL_BUFFER_ATOMIC | UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
224 {FormatID::ETC2_R8G8B8A1_UNORM_BLOCK, {0, 0, 0}},
225 {FormatID::R16_SSCALED, {0, 0, 0}},
226 {FormatID::ASTC_6x6_UNORM_BLOCK, {0, 0, 0}},
227 {FormatID::R8G8B8_SNORM, {0, 0, 0}},
228 {FormatID::R16_UINT,
229 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE,
230 UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
231 {FormatID::R8_UNORM,
232 {0,
233 BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | COLOR_ATTACHMENT_BLEND | SAMPLED_IMAGE |
234 SAMPLED_IMAGE_FILTER_LINEAR,
235 UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
236 {FormatID::BC7_RGBA_UNORM_SRGB_BLOCK, {0, 0, 0}},
237 {FormatID::G8_B8_R8_3PLANE_420_UNORM, {0, 0, 0}},
238 {FormatID::R32G32_FLOAT,
239 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE | STORAGE_IMAGE,
240 STORAGE_TEXEL_BUFFER | UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
241 {FormatID::BC5_RG_SNORM_BLOCK, {0, 0, 0}},
242 {FormatID::R16G16B16A16_SNORM, {0, 0, VERTEX_BUFFER}},
243 {FormatID::R8G8_UNORM,
244 {0,
245 BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | COLOR_ATTACHMENT_BLEND | SAMPLED_IMAGE |
246 SAMPLED_IMAGE_FILTER_LINEAR,
247 UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
248 {FormatID::ASTC_10x6_SRGB_BLOCK, {0, 0, 0}},
249 {FormatID::ASTC_10x5_UNORM_BLOCK, {0, 0, 0}},
250 {FormatID::B10G10R10A2_UNORM, {0, 0, 0}},
251 {FormatID::BC2_RGBA_UNORM_SRGB_BLOCK, {0, 0, 0}},
252 {FormatID::R32G32B32_SINT, {0, 0, VERTEX_BUFFER}},
253 {FormatID::R10G10B10A2_USCALED, {0, 0, 0}},
254 {FormatID::R8G8_SINT,
255 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE,
256 UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
257 {FormatID::R16G16B16A16_SSCALED, {0, 0, 0}},
258 {FormatID::ASTC_10x5_SRGB_BLOCK, {0, 0, 0}},
259 {FormatID::R8_SSCALED, {0, 0, 0}},
260 {FormatID::R16G16B16_FLOAT, {0, 0, 0}},
261 {FormatID::R8_SNORM,
262 {0, BLIT_SRC | SAMPLED_IMAGE | SAMPLED_IMAGE_FILTER_LINEAR,
263 UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
264 {FormatID::R16_SNORM, {0, 0, VERTEX_BUFFER}},
265 {FormatID::D24_UNORM_X8_UINT, {0, 0, 0}},
266 {FormatID::R16G16_SINT,
267 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE,
268 UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
269 {FormatID::R16G16B16_SINT, {0, 0, 0}},
270 {FormatID::R8G8_SSCALED, {0, 0, 0}},
271 {FormatID::EAC_R11G11_UNORM_BLOCK, {0, 0, 0}},
272 {FormatID::ASTC_10x8_UNORM_BLOCK, {0, 0, 0}},
273 {FormatID::ASTC_4x4_SRGB_BLOCK, {0, 0, 0}},
274 {FormatID::R8G8_UINT,
275 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE,
276 UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
277 {FormatID::R5G5B5A1_UNORM, {0, 0, 0}},
278 {FormatID::R8G8B8_UINT, {0, 0, 0}},
279 {FormatID::BC7_RGBA_UNORM_BLOCK, {0, 0, 0}},
280 {FormatID::ASTC_6x5_UNORM_BLOCK, {0, 0, 0}},
281 {FormatID::R32_UINT,
282 {0,
283 BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE | STORAGE_IMAGE | STORAGE_IMAGE_ATOMIC,
284 STORAGE_TEXEL_BUFFER | STORAGE_TEXEL_BUFFER_ATOMIC | UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
285 {FormatID::R9G9B9E5_SHAREDEXP, {0, BLIT_SRC | SAMPLED_IMAGE | SAMPLED_IMAGE_FILTER_LINEAR, 0}},
286 {FormatID::BC4_RED_UNORM_BLOCK, {0, 0, 0}},
287 {FormatID::R32G32B32A32_UINT,
288 {0, BLIT_DST | BLIT_SRC | COLOR_ATTACHMENT | SAMPLED_IMAGE | STORAGE_IMAGE,
289 STORAGE_TEXEL_BUFFER | UNIFORM_TEXEL_BUFFER | VERTEX_BUFFER}},
290 {FormatID::ETC2_R8G8B8_UNORM_BLOCK, {0, 0, 0}},
291 {FormatID::R16G16_USCALED, {0, 0, 0}}};
292 } // anonymous namespace
293
GetMandatoryFormatSupport(FormatID formatID)294 const VkFormatProperties &GetMandatoryFormatSupport(FormatID formatID)
295 {
296 return kFormatProperties[formatID];
297 }
298 } // namespace vk
299 } // namespace rx
300