---
title: "init(function:arguments:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/shader/init(function:arguments:)"
---

# init(function:arguments:)

Creates a new shader from a function and the uniform argument values to bind to the function.

## Declaration

```swift
init(function: ShaderFunction, arguments: [Shader.Argument])
```

## See Also

### Creating a shader

- [Shader.Argument](swiftui/shader/argument.md)
