<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ComputeGraphSharedUniforms/uniform(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit",
      "ComputeGraph",
      "_RealityKit_ComputeGraph"
    ],
    "preciseIdentifier" : "s:24_RealityKit_ComputeGraph0cD14SharedUniformsC7uniformyxSgxms15BitwiseCopyableRzlF"
  },
  "title" : "uniform(_:)"
}
-->

# uniform(_:)

Returns the stored uniform value for the given type, or `nil` if none has been set.

```
func uniform<V>(_ type: V.Type) -> V? where V : BitwiseCopyable
```

## Parameters

`type`

The `BitwiseCopyable` type to retrieve.

## Return Value

The stored value, or `nil`.

---

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)