---
title: visibilityResultBuffer
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtl4renderpassdescriptor/visibilityresultbuffer
---

# visibilityResultBuffer

Configures a buffer into which Metal writes counts of fragments (pixels) passing the depth and stencil tests.

## Declaration

```swift
var visibilityResultBuffer: (any MTLBuffer)? { get set }
```
