---
title: "setUniform(_:named:)"
framework: Compute Graph
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "computegraph/computegraphsimulation/setuniform(_:named:)"
---

# setUniform(_:named:)

Finds the named uniform and sets it to the given BitwiseCopyable value.

## Declaration

```swift
@discardableResult final func setUniform<V>(_ value: V, named name: String) -> Bool where V : BitwiseCopyable
```

## Discussion

Discussion Returns true if the value was found and set successfully
