---
title: "setUniform(_:)"
framework: realitykit
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "realitykit/computegraphshareduniforms/setuniform(_:)"
---

# setUniform(_:)

Stores a uniform value, replacing any previously stored value of the same type.

## Declaration

```swift
func setUniform<V>(_ value: borrowing V) where V : BitwiseCopyable
```

## Parameters

- `value`: The value to store. Must conform to BitwiseCopyable.
