How to Identify Apple silicon Metal device

If I do check on Apple silicon this way :
Code Block
BOOL supportMacTextures = [_metalDevice supportsFamily:MTLGPUFamilyMac1];
I will get YES as result.

But as I know A12Z chipset does not support BC1..BC7 textures.

Or it does support them?


Accepted Reply

You should not attempt to detect any specific GPU. Use the Metal device family API to determine what features are supported and code to those features.

Replies

You should not attempt to detect any specific GPU. Use the Metal device family API to determine what features are supported and code to those features.
Ok. Then probably it's a bug, because I'm getting that BC1..BC7 textures are supported, but they are actually not. Getting black textures comparably to what is on regular Mac.

P.S.: This forum is terrible... I can't edit my question and can't undo ticked answer...


Also crash on generateMipmapsForTexture for texture with MTLPixelFormatRGBA32Float format.

I'm using this reference https://developer.apple.com/metal/Metal-Feature-Set-Tables.pdf