---
title: "MTL4BufferRangeMake(_:_:)"
framework: metal
role: symbol
role_heading: Function
path: "metal/mtl4bufferrangemake(_:_:)"
---

# MTL4BufferRangeMake(_:_:)

## Declaration

```swift
func MTL4BufferRangeMake(_ bufferAddress: MTLGPUAddress, _ length: UInt64) -> MTL4BufferRange
```

## Discussion

Discussion Create a buffer range from a buffer’s GPU address (given by the gpuAddress property) and length. A length of (uint64_t)-1 represents the the range from the given address to the end of the buffer.

## See Also

### Supporting types

- [MTLAxisAlignedBoundingBox](metal/mtlaxisalignedboundingbox-swift.typealias.md)
- [MTLPackedFloat3](metal/mtlpackedfloat3-swift.typealias.md)
- [MTLPackedFloat4x3](metal/mtlpackedfloat4x3-swift.typealias.md)
- [MTLPackedFloat3Make(_:_:_:)](metal/mtlpackedfloat3make(_:_:_:).md)
- [MTL4BufferRange](metal/mtl4bufferrange.md)
