---
title: skipAPIValidation
framework: metalperformanceshaders
role: symbol
role_heading: Type Property
path: metalperformanceshaders/mpskerneloptions/skipapivalidation
---

# skipAPIValidation

A property that directs the kernel to perform or skip argument validation.

## Declaration

```swift
static var skipAPIValidation: MPSKernelOptions { get }
```

## Discussion

Discussion Most kernels double-check their arguments. This has a small but nonzero CPU cost. Setting this option, however, does not skip checks for memory allocation failure. Turning on this option can result in undefined behavior if the requested operation cannot be completed for some reason. Most error states will be passed through to Metal, which may do nothing or abort the program if Metal API validation is turned on.

## See Also

### Constants

- [none](metalperformanceshaders/mpskerneloptions/none.md)
- [allowReducedPrecision](metalperformanceshaders/mpskerneloptions/allowreducedprecision.md)
- [disableInternalTiling](metalperformanceshaders/mpskerneloptions/disableinternaltiling.md)
- [insertDebugGroups](metalperformanceshaders/mpskerneloptions/insertdebuggroups.md)
