---
title: ComputeGraphSharedUniforms
framework: realitykit
role: symbol
role_heading: Class
platforms: [iOS 27.0+, iPadOS 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: realitykit/computegraphshareduniforms
---

# ComputeGraphSharedUniforms

A transient component that stores typed uniform values shared across all ComputeGraph simulations.

## Declaration

```swift
class ComputeGraphSharedUniforms
```

## Overview

Overview You add scene-wide uniforms via a ComputeGraphSharedUniforms — such as gravity, wind, attractor locations, or a global time offset. note: Only one instance of this component should exist in a scene at a time.

## Topics

### Initializers

- [init()](realitykit/computegraphshareduniforms/init().md)

### Instance Methods

- [setUniform(_:)](realitykit/computegraphshareduniforms/setuniform(_:).md)
- [setUniformTransform(_:)](realitykit/computegraphshareduniforms/setuniformtransform(_:).md)
- [setUniformTransform(type:transform:)](realitykit/computegraphshareduniforms/setuniformtransform(type:transform:).md)
- [uniform(_:)](realitykit/computegraphshareduniforms/uniform(_:).md)

## Relationships

### Conforms To

- [Component](realitykit/component.md)
- [TransientComponent](realitykit/transientcomponent.md)
