---
title: MPSNNSlice
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpsnnslice
---

# MPSNNSlice

A kernel that extracts a slice from an image.

## Declaration

```swift
class MPSNNSlice
```

## Topics

### Initializers

- [init(coder:device:)](metalperformanceshaders/mpsnnslice/init(coder:device:).md)
- [init(device:)](metalperformanceshaders/mpsnnslice/init(device:).md)

## Relationships

### Inherits From

- [MPSCNNKernel](metalperformanceshaders/mpscnnkernel.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
