Modified: trunk/Source/ThirdParty/ANGLE/src/libANGLE/renderer/metal/mtl_format_table_autogen.mm (286898 => 286899)
--- trunk/Source/ThirdParty/ANGLE/src/libANGLE/renderer/metal/mtl_format_table_autogen.mm 2021-12-11 03:02:38 UTC (rev 286898)
+++ trunk/Source/ThirdParty/ANGLE/src/libANGLE/renderer/metal/mtl_format_table_autogen.mm 2021-12-11 03:24:50 UTC (rev 286899)
@@ -159,7 +159,7 @@
case MTLPixelFormatDepth24Unorm_Stencil8:
return angle::FormatID::D24_UNORM_S8_UINT;
#endif // TARGET_OS_OSX || TARGET_OS_MACCATALYST
-#if TARGET_OS_IOS || TARGET_OS_TV || (TARGET_OS_OSX && (__MAC_OS_X_VERSION_MAX_ALLOWED >= 101600))
+#if TARGET_OS_IPHONE || (TARGET_OS_OSX && (__MAC_OS_X_VERSION_MAX_ALLOWED >= 101600))
case MTLPixelFormatASTC_10x10_sRGB:
return angle::FormatID::ASTC_10x10_SRGB_BLOCK;
case MTLPixelFormatASTC_10x5_sRGB:
@@ -236,61 +236,63 @@
return angle::FormatID::R8_UNORM_SRGB;
case MTLPixelFormatASTC_10x10_LDR:
return angle::FormatID::ASTC_10x10_UNORM_BLOCK;
+ case MTLPixelFormatASTC_10x5_LDR:
+ return angle::FormatID::ASTC_10x5_UNORM_BLOCK;
+ case MTLPixelFormatASTC_10x6_LDR:
+ return angle::FormatID::ASTC_10x6_UNORM_BLOCK;
+ case MTLPixelFormatASTC_10x8_LDR:
+ return angle::FormatID::ASTC_10x8_UNORM_BLOCK;
+ case MTLPixelFormatASTC_12x10_LDR:
+ return angle::FormatID::ASTC_12x10_UNORM_BLOCK;
+ case MTLPixelFormatASTC_12x12_LDR:
+ return angle::FormatID::ASTC_12x12_UNORM_BLOCK;
+ case MTLPixelFormatASTC_4x4_LDR:
+ return angle::FormatID::ASTC_4x4_UNORM_BLOCK;
+ case MTLPixelFormatASTC_5x4_LDR:
+ return angle::FormatID::ASTC_5x4_UNORM_BLOCK;
+ case MTLPixelFormatASTC_5x5_LDR:
+ return angle::FormatID::ASTC_5x5_UNORM_BLOCK;
+ case MTLPixelFormatASTC_6x5_LDR:
+ return angle::FormatID::ASTC_6x5_UNORM_BLOCK;
+ case MTLPixelFormatASTC_6x6_LDR:
+ return angle::FormatID::ASTC_6x6_UNORM_BLOCK;
+ case MTLPixelFormatASTC_8x5_LDR:
+ return angle::FormatID::ASTC_8x5_UNORM_BLOCK;
+ case MTLPixelFormatASTC_8x6_LDR:
+ return angle::FormatID::ASTC_8x6_UNORM_BLOCK;
+ case MTLPixelFormatASTC_8x8_LDR:
+ return angle::FormatID::ASTC_8x8_UNORM_BLOCK;
+#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_OSX
case MTLPixelFormatASTC_10x10_HDR:
return angle::FormatID::ASTC_10x10_UNORM_BLOCK;
- case MTLPixelFormatASTC_10x5_LDR:
- return angle::FormatID::ASTC_10x5_UNORM_BLOCK;
case MTLPixelFormatASTC_10x5_HDR:
return angle::FormatID::ASTC_10x5_UNORM_BLOCK;
- case MTLPixelFormatASTC_10x6_LDR:
- return angle::FormatID::ASTC_10x6_UNORM_BLOCK;
case MTLPixelFormatASTC_10x6_HDR:
return angle::FormatID::ASTC_10x6_UNORM_BLOCK;
- case MTLPixelFormatASTC_10x8_LDR:
- return angle::FormatID::ASTC_10x8_UNORM_BLOCK;
case MTLPixelFormatASTC_10x8_HDR:
return angle::FormatID::ASTC_10x8_UNORM_BLOCK;
- case MTLPixelFormatASTC_12x10_LDR:
- return angle::FormatID::ASTC_12x10_UNORM_BLOCK;
case MTLPixelFormatASTC_12x10_HDR:
return angle::FormatID::ASTC_12x10_UNORM_BLOCK;
- case MTLPixelFormatASTC_12x12_LDR:
- return angle::FormatID::ASTC_12x12_UNORM_BLOCK;
case MTLPixelFormatASTC_12x12_HDR:
return angle::FormatID::ASTC_12x12_UNORM_BLOCK;
- case MTLPixelFormatASTC_4x4_LDR:
- return angle::FormatID::ASTC_4x4_UNORM_BLOCK;
case MTLPixelFormatASTC_4x4_HDR:
return angle::FormatID::ASTC_4x4_UNORM_BLOCK;
- case MTLPixelFormatASTC_5x4_LDR:
- return angle::FormatID::ASTC_5x4_UNORM_BLOCK;
case MTLPixelFormatASTC_5x4_HDR:
return angle::FormatID::ASTC_5x4_UNORM_BLOCK;
- case MTLPixelFormatASTC_5x5_LDR:
- return angle::FormatID::ASTC_5x5_UNORM_BLOCK;
case MTLPixelFormatASTC_5x5_HDR:
return angle::FormatID::ASTC_5x5_UNORM_BLOCK;
- case MTLPixelFormatASTC_6x5_LDR:
- return angle::FormatID::ASTC_6x5_UNORM_BLOCK;
case MTLPixelFormatASTC_6x5_HDR:
return angle::FormatID::ASTC_6x5_UNORM_BLOCK;
- case MTLPixelFormatASTC_6x6_LDR:
- return angle::FormatID::ASTC_6x6_UNORM_BLOCK;
case MTLPixelFormatASTC_6x6_HDR:
return angle::FormatID::ASTC_6x6_UNORM_BLOCK;
- case MTLPixelFormatASTC_8x5_LDR:
- return angle::FormatID::ASTC_8x5_UNORM_BLOCK;
case MTLPixelFormatASTC_8x5_HDR:
return angle::FormatID::ASTC_8x5_UNORM_BLOCK;
- case MTLPixelFormatASTC_8x6_LDR:
- return angle::FormatID::ASTC_8x6_UNORM_BLOCK;
case MTLPixelFormatASTC_8x6_HDR:
return angle::FormatID::ASTC_8x6_UNORM_BLOCK;
- case MTLPixelFormatASTC_8x8_LDR:
- return angle::FormatID::ASTC_8x8_UNORM_BLOCK;
case MTLPixelFormatASTC_8x8_HDR:
return angle::FormatID::ASTC_8x8_UNORM_BLOCK;
-#endif // TARGET_OS_IOS || TARGET_OS_TV || mac 11.0+
+#endif // TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_OSX
+#endif // TARGET_OS_IPHONE || mac 11.0+
default:
return angle::FormatID::NONE;
@@ -1549,6 +1551,7 @@
this->swizzled = false;
break;
+#if TARGET_OS_IOS || TARGET_OS_TV
case angle::FormatID::ASTC_10x10_UNORM_BLOCK:
if (display->supportsAppleGPUFamily(6))
@@ -1801,7 +1804,135 @@
this->swizzled = false;
break;
-#elif TARGET_OS_IOS || TARGET_OS_TV
+#elif TARGET_OS_WATCH
+ case angle::FormatID::ASTC_10x10_UNORM_BLOCK:
+
+ this->metalFormat = MTLPixelFormatASTC_10x10_LDR;
+ this->actualFormatId = angle::FormatID::ASTC_10x10_UNORM_BLOCK;
+ this->initFunction = nullptr;
+
+ this->swizzled = false;
+ break;
+
+ case angle::FormatID::ASTC_10x5_UNORM_BLOCK:
+
+ this->metalFormat = MTLPixelFormatASTC_10x5_LDR;
+ this->actualFormatId = angle::FormatID::ASTC_10x5_UNORM_BLOCK;
+ this->initFunction = nullptr;
+
+ this->swizzled = false;
+ break;
+
+ case angle::FormatID::ASTC_10x6_UNORM_BLOCK:
+
+ this->metalFormat = MTLPixelFormatASTC_10x6_LDR;
+ this->actualFormatId = angle::FormatID::ASTC_10x6_UNORM_BLOCK;
+ this->initFunction = nullptr;
+
+ this->swizzled = false;
+ break;
+
+ case angle::FormatID::ASTC_10x8_UNORM_BLOCK:
+
+ this->metalFormat = MTLPixelFormatASTC_10x8_LDR;
+ this->actualFormatId = angle::FormatID::ASTC_10x8_UNORM_BLOCK;
+ this->initFunction = nullptr;
+
+ this->swizzled = false;
+ break;
+
+ case angle::FormatID::ASTC_12x10_UNORM_BLOCK:
+
+ this->metalFormat = MTLPixelFormatASTC_12x10_LDR;
+ this->actualFormatId = angle::FormatID::ASTC_12x10_UNORM_BLOCK;
+ this->initFunction = nullptr;
+
+ this->swizzled = false;
+ break;
+
+ case angle::FormatID::ASTC_12x12_UNORM_BLOCK:
+
+ this->metalFormat = MTLPixelFormatASTC_12x12_LDR;
+ this->actualFormatId = angle::FormatID::ASTC_12x12_UNORM_BLOCK;
+ this->initFunction = nullptr;
+
+ this->swizzled = false;
+ break;
+
+ case angle::FormatID::ASTC_4x4_UNORM_BLOCK:
+
+ this->metalFormat = MTLPixelFormatASTC_4x4_LDR;
+ this->actualFormatId = angle::FormatID::ASTC_4x4_UNORM_BLOCK;
+ this->initFunction = nullptr;
+
+ this->swizzled = false;
+ break;
+
+ case angle::FormatID::ASTC_5x4_UNORM_BLOCK:
+
+ this->metalFormat = MTLPixelFormatASTC_5x4_LDR;
+ this->actualFormatId = angle::FormatID::ASTC_5x4_UNORM_BLOCK;
+ this->initFunction = nullptr;
+
+ this->swizzled = false;
+ break;
+
+ case angle::FormatID::ASTC_5x5_UNORM_BLOCK:
+
+ this->metalFormat = MTLPixelFormatASTC_5x5_LDR;
+ this->actualFormatId = angle::FormatID::ASTC_5x5_UNORM_BLOCK;
+ this->initFunction = nullptr;
+
+ this->swizzled = false;
+ break;
+
+ case angle::FormatID::ASTC_6x5_UNORM_BLOCK:
+
+ this->metalFormat = MTLPixelFormatASTC_6x5_LDR;
+ this->actualFormatId = angle::FormatID::ASTC_6x5_UNORM_BLOCK;
+ this->initFunction = nullptr;
+
+ this->swizzled = false;
+ break;
+
+ case angle::FormatID::ASTC_6x6_UNORM_BLOCK:
+
+ this->metalFormat = MTLPixelFormatASTC_6x6_LDR;
+ this->actualFormatId = angle::FormatID::ASTC_6x6_UNORM_BLOCK;
+ this->initFunction = nullptr;
+
+ this->swizzled = false;
+ break;
+
+ case angle::FormatID::ASTC_8x5_UNORM_BLOCK:
+
+ this->metalFormat = MTLPixelFormatASTC_8x5_LDR;
+ this->actualFormatId = angle::FormatID::ASTC_8x5_UNORM_BLOCK;
+ this->initFunction = nullptr;
+
+ this->swizzled = false;
+ break;
+
+ case angle::FormatID::ASTC_8x6_UNORM_BLOCK:
+
+ this->metalFormat = MTLPixelFormatASTC_8x6_LDR;
+ this->actualFormatId = angle::FormatID::ASTC_8x6_UNORM_BLOCK;
+ this->initFunction = nullptr;
+
+ this->swizzled = false;
+ break;
+
+ case angle::FormatID::ASTC_8x8_UNORM_BLOCK:
+
+ this->metalFormat = MTLPixelFormatASTC_8x8_LDR;
+ this->actualFormatId = angle::FormatID::ASTC_8x8_UNORM_BLOCK;
+ this->initFunction = nullptr;
+
+ this->swizzled = false;
+ break;
+
+#endif // TARGET_OS_IOS || TARGET_OS_TV
+ #elif TARGET_OS_IPHONE
case angle::FormatID::ASTC_10x10_SRGB_BLOCK:
this->metalFormat = MTLPixelFormatASTC_10x10_sRGB;
@@ -2162,6 +2293,7 @@
this->swizzled = false;
break;
+#if TARGET_OS_IOS || TARGET_OS_TV
case angle::FormatID::ASTC_10x10_UNORM_BLOCK:
if (display->supportsAppleGPUFamily(6))
@@ -2414,7 +2546,135 @@
this->swizzled = false;
break;
-#endif
+#elif TARGET_OS_WATCH
+ case angle::FormatID::ASTC_10x10_UNORM_BLOCK:
+
+ this->metalFormat = MTLPixelFormatASTC_10x10_LDR;
+ this->actualFormatId = angle::FormatID::ASTC_10x10_UNORM_BLOCK;
+ this->initFunction = nullptr;
+
+ this->swizzled = false;
+ break;
+
+ case angle::FormatID::ASTC_10x5_UNORM_BLOCK:
+
+ this->metalFormat = MTLPixelFormatASTC_10x5_LDR;
+ this->actualFormatId = angle::FormatID::ASTC_10x5_UNORM_BLOCK;
+ this->initFunction = nullptr;
+
+ this->swizzled = false;
+ break;
+
+ case angle::FormatID::ASTC_10x6_UNORM_BLOCK:
+
+ this->metalFormat = MTLPixelFormatASTC_10x6_LDR;
+ this->actualFormatId = angle::FormatID::ASTC_10x6_UNORM_BLOCK;
+ this->initFunction = nullptr;
+
+ this->swizzled = false;
+ break;
+
+ case angle::FormatID::ASTC_10x8_UNORM_BLOCK:
+
+ this->metalFormat = MTLPixelFormatASTC_10x8_LDR;
+ this->actualFormatId = angle::FormatID::ASTC_10x8_UNORM_BLOCK;
+ this->initFunction = nullptr;
+
+ this->swizzled = false;
+ break;
+
+ case angle::FormatID::ASTC_12x10_UNORM_BLOCK:
+
+ this->metalFormat = MTLPixelFormatASTC_12x10_LDR;
+ this->actualFormatId = angle::FormatID::ASTC_12x10_UNORM_BLOCK;
+ this->initFunction = nullptr;
+
+ this->swizzled = false;
+ break;
+
+ case angle::FormatID::ASTC_12x12_UNORM_BLOCK:
+
+ this->metalFormat = MTLPixelFormatASTC_12x12_LDR;
+ this->actualFormatId = angle::FormatID::ASTC_12x12_UNORM_BLOCK;
+ this->initFunction = nullptr;
+
+ this->swizzled = false;
+ break;
+
+ case angle::FormatID::ASTC_4x4_UNORM_BLOCK:
+
+ this->metalFormat = MTLPixelFormatASTC_4x4_LDR;
+ this->actualFormatId = angle::FormatID::ASTC_4x4_UNORM_BLOCK;
+ this->initFunction = nullptr;
+
+ this->swizzled = false;
+ break;
+
+ case angle::FormatID::ASTC_5x4_UNORM_BLOCK:
+
+ this->metalFormat = MTLPixelFormatASTC_5x4_LDR;
+ this->actualFormatId = angle::FormatID::ASTC_5x4_UNORM_BLOCK;
+ this->initFunction = nullptr;
+
+ this->swizzled = false;
+ break;
+
+ case angle::FormatID::ASTC_5x5_UNORM_BLOCK:
+
+ this->metalFormat = MTLPixelFormatASTC_5x5_LDR;
+ this->actualFormatId = angle::FormatID::ASTC_5x5_UNORM_BLOCK;
+ this->initFunction = nullptr;
+
+ this->swizzled = false;
+ break;
+
+ case angle::FormatID::ASTC_6x5_UNORM_BLOCK:
+
+ this->metalFormat = MTLPixelFormatASTC_6x5_LDR;
+ this->actualFormatId = angle::FormatID::ASTC_6x5_UNORM_BLOCK;
+ this->initFunction = nullptr;
+
+ this->swizzled = false;
+ break;
+
+ case angle::FormatID::ASTC_6x6_UNORM_BLOCK:
+
+ this->metalFormat = MTLPixelFormatASTC_6x6_LDR;
+ this->actualFormatId = angle::FormatID::ASTC_6x6_UNORM_BLOCK;
+ this->initFunction = nullptr;
+
+ this->swizzled = false;
+ break;
+
+ case angle::FormatID::ASTC_8x5_UNORM_BLOCK:
+
+ this->metalFormat = MTLPixelFormatASTC_8x5_LDR;
+ this->actualFormatId = angle::FormatID::ASTC_8x5_UNORM_BLOCK;
+ this->initFunction = nullptr;
+
+ this->swizzled = false;
+ break;
+
+ case angle::FormatID::ASTC_8x6_UNORM_BLOCK:
+
+ this->metalFormat = MTLPixelFormatASTC_8x6_LDR;
+ this->actualFormatId = angle::FormatID::ASTC_8x6_UNORM_BLOCK;
+ this->initFunction = nullptr;
+
+ this->swizzled = false;
+ break;
+
+ case angle::FormatID::ASTC_8x8_UNORM_BLOCK:
+
+ this->metalFormat = MTLPixelFormatASTC_8x8_LDR;
+ this->actualFormatId = angle::FormatID::ASTC_8x8_UNORM_BLOCK;
+ this->initFunction = nullptr;
+
+ this->swizzled = false;
+ break;
+
+#endif // TARGET_OS_IOS || TARGET_OS_TV
+#endif // TARGET_OS_IPHONE
#if (TARGET_OS_OSX && (__MAC_OS_X_VERSION_MAX_ALLOWED >= 101600))
case angle::FormatID::ASTC_10x10_SRGB_BLOCK:
@@ -3136,7 +3396,7 @@
this->swizzled = false;
break;
-#endif
+#endif // TARGET_OS_OSX && (__MAC_OS_X_VERSION_MAX_ALLOWED >= 101600))
default:
this->metalFormat = MTLPixelFormatInvalid;
this->actualFormatId = angle::FormatID::NONE;
@@ -4379,92 +4639,64 @@
setFormatCaps(MTLPixelFormatDepth24Unorm_Stencil8, /** filterable*/ display->supportsMacGPUFamily(1) && display->supportsDepth24Stencil8PixelFormat(), /** writable*/ false, /** blendable*/ false, /** multisample*/ true, /** resolve*/ supportDepthStencilAutoResolve, /** colorRenderable*/ false, /** depthRenderable*/ display->supportsMacGPUFamily(1) && display->supportsDepth24Stencil8PixelFormat());
#endif // TARGET_OS_OSX || TARGET_OS_MACCATALYST
-#if (TARGET_OS_IOS && !TARGET_OS_MACCATALYST) || TARGET_OS_TV || \
+#if (TARGET_OS_IPHONE && !TARGET_OS_MACCATALYST) || \
(TARGET_OS_OSX && (__MAC_OS_X_VERSION_MAX_ALLOWED >= 101600))
setFormatCaps(MTLPixelFormatA1BGR5Unorm, /** filterable*/ display->supportsAppleGPUFamily(1), /** writable*/ false, /** blendable*/ display->supportsAppleGPUFamily(1), /** multisample*/ display->supportsAppleGPUFamily(1), /** resolve*/ display->supportsAppleGPUFamily(1), /** colorRenderable*/ display->supportsAppleGPUFamily(1), /** depthRenderable*/ false);
setFormatCaps(MTLPixelFormatABGR4Unorm, /** filterable*/ display->supportsAppleGPUFamily(1), /** writable*/ false, /** blendable*/ display->supportsAppleGPUFamily(1), /** multisample*/ display->supportsAppleGPUFamily(1), /** resolve*/ display->supportsAppleGPUFamily(1), /** colorRenderable*/ display->supportsAppleGPUFamily(1), /** depthRenderable*/ false);
- setFormatCaps(MTLPixelFormatASTC_10x10_HDR, /** filterable*/ display->supportsAppleGPUFamily(6), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
-
setFormatCaps(MTLPixelFormatASTC_10x10_LDR, /** filterable*/ display->supportsAppleGPUFamily(2), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
setFormatCaps(MTLPixelFormatASTC_10x10_sRGB, /** filterable*/ display->supportsAppleGPUFamily(2), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
- setFormatCaps(MTLPixelFormatASTC_10x5_HDR, /** filterable*/ display->supportsAppleGPUFamily(6), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
-
setFormatCaps(MTLPixelFormatASTC_10x5_LDR, /** filterable*/ display->supportsAppleGPUFamily(2), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
setFormatCaps(MTLPixelFormatASTC_10x5_sRGB, /** filterable*/ display->supportsAppleGPUFamily(2), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
- setFormatCaps(MTLPixelFormatASTC_10x6_HDR, /** filterable*/ display->supportsAppleGPUFamily(6), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
-
setFormatCaps(MTLPixelFormatASTC_10x6_LDR, /** filterable*/ display->supportsAppleGPUFamily(2), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
setFormatCaps(MTLPixelFormatASTC_10x6_sRGB, /** filterable*/ display->supportsAppleGPUFamily(2), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
- setFormatCaps(MTLPixelFormatASTC_10x8_HDR, /** filterable*/ display->supportsAppleGPUFamily(6), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
-
setFormatCaps(MTLPixelFormatASTC_10x8_LDR, /** filterable*/ display->supportsAppleGPUFamily(2), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
setFormatCaps(MTLPixelFormatASTC_10x8_sRGB, /** filterable*/ display->supportsAppleGPUFamily(2), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
- setFormatCaps(MTLPixelFormatASTC_12x10_HDR, /** filterable*/ display->supportsAppleGPUFamily(6), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
-
setFormatCaps(MTLPixelFormatASTC_12x10_LDR, /** filterable*/ display->supportsAppleGPUFamily(2), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
setFormatCaps(MTLPixelFormatASTC_12x10_sRGB, /** filterable*/ display->supportsAppleGPUFamily(2), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
- setFormatCaps(MTLPixelFormatASTC_12x12_HDR, /** filterable*/ display->supportsAppleGPUFamily(6), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
-
setFormatCaps(MTLPixelFormatASTC_12x12_LDR, /** filterable*/ display->supportsAppleGPUFamily(2), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
setFormatCaps(MTLPixelFormatASTC_12x12_sRGB, /** filterable*/ display->supportsAppleGPUFamily(2), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
- setFormatCaps(MTLPixelFormatASTC_4x4_HDR, /** filterable*/ display->supportsAppleGPUFamily(6), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
-
setFormatCaps(MTLPixelFormatASTC_4x4_LDR, /** filterable*/ display->supportsAppleGPUFamily(2), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
setFormatCaps(MTLPixelFormatASTC_4x4_sRGB, /** filterable*/ display->supportsAppleGPUFamily(2), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
- setFormatCaps(MTLPixelFormatASTC_5x4_HDR, /** filterable*/ display->supportsAppleGPUFamily(6), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
-
setFormatCaps(MTLPixelFormatASTC_5x4_LDR, /** filterable*/ display->supportsAppleGPUFamily(2), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
setFormatCaps(MTLPixelFormatASTC_5x4_sRGB, /** filterable*/ display->supportsAppleGPUFamily(2), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
- setFormatCaps(MTLPixelFormatASTC_5x5_HDR, /** filterable*/ display->supportsAppleGPUFamily(6), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
-
setFormatCaps(MTLPixelFormatASTC_5x5_LDR, /** filterable*/ display->supportsAppleGPUFamily(2), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
setFormatCaps(MTLPixelFormatASTC_5x5_sRGB, /** filterable*/ display->supportsAppleGPUFamily(2), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
- setFormatCaps(MTLPixelFormatASTC_6x5_HDR, /** filterable*/ display->supportsAppleGPUFamily(6), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
-
setFormatCaps(MTLPixelFormatASTC_6x5_LDR, /** filterable*/ display->supportsAppleGPUFamily(2), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
setFormatCaps(MTLPixelFormatASTC_6x5_sRGB, /** filterable*/ display->supportsAppleGPUFamily(2), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
- setFormatCaps(MTLPixelFormatASTC_6x6_HDR, /** filterable*/ display->supportsAppleGPUFamily(6), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
-
setFormatCaps(MTLPixelFormatASTC_6x6_LDR, /** filterable*/ display->supportsAppleGPUFamily(2), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
setFormatCaps(MTLPixelFormatASTC_6x6_sRGB, /** filterable*/ display->supportsAppleGPUFamily(2), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
- setFormatCaps(MTLPixelFormatASTC_8x5_HDR, /** filterable*/ display->supportsAppleGPUFamily(6), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
-
setFormatCaps(MTLPixelFormatASTC_8x5_LDR, /** filterable*/ display->supportsAppleGPUFamily(2), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
setFormatCaps(MTLPixelFormatASTC_8x5_sRGB, /** filterable*/ display->supportsAppleGPUFamily(2), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
- setFormatCaps(MTLPixelFormatASTC_8x6_HDR, /** filterable*/ display->supportsAppleGPUFamily(6), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
-
setFormatCaps(MTLPixelFormatASTC_8x6_LDR, /** filterable*/ display->supportsAppleGPUFamily(2), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
setFormatCaps(MTLPixelFormatASTC_8x6_sRGB, /** filterable*/ display->supportsAppleGPUFamily(2), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
- setFormatCaps(MTLPixelFormatASTC_8x8_HDR, /** filterable*/ display->supportsAppleGPUFamily(6), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
-
setFormatCaps(MTLPixelFormatASTC_8x8_LDR, /** filterable*/ display->supportsAppleGPUFamily(2), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
setFormatCaps(MTLPixelFormatASTC_8x8_sRGB, /** filterable*/ display->supportsAppleGPUFamily(2), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
@@ -4513,8 +4745,38 @@
setFormatCaps(MTLPixelFormatRG8Unorm_sRGB, /** filterable*/ display->supportsAppleGPUFamily(1), /** writable*/ display->supportsAppleGPUFamily(2), /** blendable*/ display->supportsAppleGPUFamily(1), /** multisample*/ display->supportsAppleGPUFamily(1), /** resolve*/ display->supportsAppleGPUFamily(1), /** colorRenderable*/ display->supportsAppleGPUFamily(1), /** depthRenderable*/ false);
-#endif
+#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_OSX
+ setFormatCaps(MTLPixelFormatASTC_10x10_HDR, /** filterable*/ display->supportsAppleGPUFamily(6), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
+ setFormatCaps(MTLPixelFormatASTC_10x5_HDR, /** filterable*/ display->supportsAppleGPUFamily(6), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
+
+ setFormatCaps(MTLPixelFormatASTC_10x6_HDR, /** filterable*/ display->supportsAppleGPUFamily(6), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
+
+ setFormatCaps(MTLPixelFormatASTC_10x8_HDR, /** filterable*/ display->supportsAppleGPUFamily(6), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
+
+ setFormatCaps(MTLPixelFormatASTC_12x10_HDR, /** filterable*/ display->supportsAppleGPUFamily(6), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
+
+ setFormatCaps(MTLPixelFormatASTC_12x12_HDR, /** filterable*/ display->supportsAppleGPUFamily(6), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
+
+ setFormatCaps(MTLPixelFormatASTC_4x4_HDR, /** filterable*/ display->supportsAppleGPUFamily(6), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
+
+ setFormatCaps(MTLPixelFormatASTC_5x4_HDR, /** filterable*/ display->supportsAppleGPUFamily(6), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
+
+ setFormatCaps(MTLPixelFormatASTC_5x5_HDR, /** filterable*/ display->supportsAppleGPUFamily(6), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
+
+ setFormatCaps(MTLPixelFormatASTC_6x5_HDR, /** filterable*/ display->supportsAppleGPUFamily(6), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
+
+ setFormatCaps(MTLPixelFormatASTC_6x6_HDR, /** filterable*/ display->supportsAppleGPUFamily(6), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
+
+ setFormatCaps(MTLPixelFormatASTC_8x5_HDR, /** filterable*/ display->supportsAppleGPUFamily(6), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
+
+ setFormatCaps(MTLPixelFormatASTC_8x6_HDR, /** filterable*/ display->supportsAppleGPUFamily(6), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
+
+ setFormatCaps(MTLPixelFormatASTC_8x8_HDR, /** filterable*/ display->supportsAppleGPUFamily(6), /** writable*/ false, /** blendable*/ false, /** multisample*/ false, /** resolve*/ false, /** colorRenderable*/ false, /** depthRenderable*/ false);
+
+#endif // TARGET_OS_IOS || TARGET_OS_TV || mac 11.0+
+#endif // TARGET_OS_IPHONE && !TARGET_OS_MACCATALYST || mac 11.0+
+
}
} // namespace mtl