<!--
{
  "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/ConstantParameter",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:19RealityCoreRenderer32LowLevelMaterialParameterMappingV08ConstantG0V"
  },
  "title" : "LowLevelMaterialParameterMapping.ConstantParameter"
}
-->

# LowLevelMaterialParameterMapping.ConstantParameter

A constant parameter embedded within a buffer slot.

```
struct ConstantParameter
```

## Topics

### Accessing the parameter type

[`var metalType: MTLDataType`](/documentation/RealityKit/LowLevelMaterialParameterMapping/ConstantParameter/metalType)

The Metal data type of this constant.

### Instance Properties

[`var name: String`](/documentation/RealityKit/LowLevelMaterialParameterMapping/ConstantParameter/name)

The name of the constant as declared in the Metal shader.

[`var offset: Int`](/documentation/RealityKit/LowLevelMaterialParameterMapping/ConstantParameter/offset)

The byte offset of this constant within its buffer slot.

## Relationships

### Conforms To

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

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

---

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)