---
title: "subscript(dynamicMember:)"
framework: swiftui
role: symbol
role_heading: Type Subscript
path: "swiftui/shaderlibrary/subscript(dynamicmember:)-swift.type.subscript"
---

# subscript(dynamicMember:)

Returns a new shader function representing the stitchable MSL function called name in the default shader library.

## Declaration

```swift
static subscript(dynamicMember name: String) -> ShaderFunction { get }
```

## Overview

Overview Typically this subscript is used implicitly via the dynamic member syntax, for example: let fn = ShaderLibrary.myFunction which creates a reference to the MSL function called myFunction().
