<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/LowLevelMaterialParameterMapping/bufferLocation(named:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:19RealityCoreRenderer32LowLevelMaterialParameterMappingV14bufferLocation5namedSiSgSS_tF"
  },
  "title" : "bufferLocation(named:)"
}
-->

# bufferLocation(named:)

Returns the argument table buffer slot index for the named buffer parameter, or `nil`
if no parameter with that name exists.

```
func bufferLocation(named name: String) -> Int?
```

## Parameters

`name`

The name of the buffer parameter as declared in the Metal shader.

## Return Value

The buffer slot index, or `nil` if no buffer parameter with that name exists.

---

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)