<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLBufferLayoutDescriptor",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTLBufferLayoutDescriptor"
  },
  "title" : "MTLBufferLayoutDescriptor"
}
-->

# MTLBufferLayoutDescriptor

A description of how a compute function fetches input data for an attribute.

```
class MTLBufferLayoutDescriptor
```

## Topics

### Describing fetch behavior

[`stride`](/documentation/Metal/MTLBufferLayoutDescriptor/stride)

The number of bytes from one buffer entry to the next.

[`stepFunction`](/documentation/Metal/MTLBufferLayoutDescriptor/stepFunction)

Determines how and when compute functions fetch data.

[`stepRate`](/documentation/Metal/MTLBufferLayoutDescriptor/stepRate)

How frequently the step function should load data.

[`MTLStepFunction`](/documentation/Metal/MTLStepFunction)

The frequency and locations at which a function fetches attribute data.



---

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)