---
title: vertexDescriptor
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtl4renderpipelinedescriptor/vertexdescriptor
---

# vertexDescriptor

Configures an optional vertex descriptor for the vertex input.

## Declaration

```swift
@NSCopying var vertexDescriptor: MTLVertexDescriptor? { get set }
```

## Discussion

Discussion A vertex descriptor specifies the layout of your vertex data, allowing your vertex shaders to access the content in your vertex arrays via the [[stage_in]] attribute in Metal Shading Language.
