Get available gpu compress format.
240 {
242
244
245
246 if (feature.textureCompressionBC)
247 {
248
250 {
251 return KTX_TTF_BC7_RGBA;
252 }
253
255 {
256 return KTX_TTF_BC3_RGBA;
257 }
258 }
259
260
261 if (feature.textureCompressionASTC_LDR)
262 {
264 {
265 return KTX_TTF_ASTC_4x4_RGBA;
266 }
267 }
268
269
270 if (feature.textureCompressionETC2)
271 {
273 {
274 return KTX_TTF_ETC2_RGBA;
275 }
276 }
277
278
279
280
281
282
283
284
285
286
287
288 return KTX_TTF_RGBA32;
289 }
#define SPICES_PROFILE_ZONE
static bool FormatSupported(VkFormat format)
Check if the device supports sampling and transfers for the selected image.
static VkPhysicalDeviceFeatures & GetDeviceFeatures()
Get VkPhysicalDeviceFeatures.