---
title: MTLVisibilityResultMode.boolean
framework: metal
role: symbol
role_heading: Case
path: metal/mtlvisibilityresultmode/boolean
---

# MTLVisibilityResultMode.boolean

The result records whether any samples passed depth and stencil tests.

## Declaration

```swift
case boolean
```

## Discussion

Discussion The GPU writes a 64-bit integer to the visibility result buffer that is nonzero if at least one fragment passed depth and stencil tests, and zero if no fragments passed the tests.

## See Also

### Result modes

- [MTLVisibilityResultMode.disabled](metal/mtlvisibilityresultmode/disabled.md)
- [MTLVisibilityResultMode.counting](metal/mtlvisibilityresultmode/counting.md)
