---
title: CustomMaterialError
framework: realitykit
role: symbol
role_heading: Enumeration
path: realitykit/custommaterialerror
---

# CustomMaterialError

Errors generated when loading custom material functions.

## Declaration

```swift
enum CustomMaterialError
```

## Topics

### Enumeration Cases

- [CustomMaterialError.defaultSurfaceShaderForMaterialNotFound](realitykit/custommaterialerror/defaultsurfaceshaderformaterialnotfound.md)
- [CustomMaterialError.geometryModifierFunctionNotFound](realitykit/custommaterialerror/geometrymodifierfunctionnotfound.md)
- [CustomMaterialError.surfaceShaderFunctionNotFound](realitykit/custommaterialerror/surfaceshaderfunctionnotfound.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Error](swift/error.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
