<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TouchController",
  "identifier" : "/documentation/TouchController/TCTouchControllerDescriptor",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Touch Controller"
    ],
    "preciseIdentifier" : "c:objc(cs)TCTouchControllerDescriptor"
  },
  "title" : "TCTouchControllerDescriptor"
}
-->

# TCTouchControllerDescriptor

A descriptor for configuring a touch controller.

```
class TCTouchControllerDescriptor
```

## Topics

### Creating a touch controller descriptor

[`init()`](/documentation/TouchController/TCTouchControllerDescriptor/init())

[`convenience init(mtkView: MTKView)`](/documentation/TouchController/TCTouchControllerDescriptor/init(mtkView:)-7cs6u)

### Inspecting the controller descriptor

[`var colorPixelFormat: MTLPixelFormat`](/documentation/TouchController/TCTouchControllerDescriptor/colorPixelFormat)

The pixel format for the drawable texture.

[`var depthAttachmentPixelFormat: MTLPixelFormat`](/documentation/TouchController/TCTouchControllerDescriptor/depthAttachmentPixelFormat)

The pixel format for the depth attachment.

[`var device: any MTLDevice`](/documentation/TouchController/TCTouchControllerDescriptor/device)

The Metal device to use for rendering.

[`var drawableSize: CGSize`](/documentation/TouchController/TCTouchControllerDescriptor/drawableSize)

The size of the drawable to which the touch controller’s contents be drawn, in native pixels.

[`var sampleCount: Int`](/documentation/TouchController/TCTouchControllerDescriptor/sampleCount)

The number of samples per pixel for multisampling.

[`var size: CGSize`](/documentation/TouchController/TCTouchControllerDescriptor/size)

The size of the view the touch controller’s drawable is embedded in, in points.

[`var stencilAttachmentPixelFormat: MTLPixelFormat`](/documentation/TouchController/TCTouchControllerDescriptor/stencilAttachmentPixelFormat)

The pixel format for the stencil attachment.

### Initializers

[`convenience init(MTKView: MTKView)`](/documentation/TouchController/TCTouchControllerDescriptor/init(MTKView:)-25g2c)

## Relationships

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

### Conforms To

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

---

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)