<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.0.0 - 27.0.0",
    "macOS: 10.11.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLDevice/isDepth24Stencil8PixelFormatSupported",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(pl)MTLDevice(py)depth24Stencil8PixelFormatSupported"
  },
  "title" : "isDepth24Stencil8PixelFormatSupported"
}
-->

# isDepth24Stencil8PixelFormatSupported

A Boolean value that indicates whether a device supports a packed depth-and-stencil pixel format.

```
var isDepth24Stencil8PixelFormatSupported: Bool { get }
```

## Discussion

If the value is <doc://com.apple.documentation/documentation/Swift/true>, the device supports the [`MTLPixelFormat.depth24Unorm_stencil8`](/documentation/Metal/MTLPixelFormat/depth24Unorm_stencil8) pixel format.

## See Also

  [Metal Shading Language Guide](https://developer.apple.com/library/archive/documentation/Metal/Reference/MetalShadingLanguageGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40014364)

  [Metal Programming Guide](https://developer.apple.com/library/archive/documentation/Miscellaneous/Conceptual/MetalProgrammingGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40014221)



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)