---
title: PortalMaterial.Program
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/portalmaterial/program-swift.struct
---

# PortalMaterial.Program

A compiled shader program that drives the appearance of a portal’s surface and geometry.

## Declaration

```swift
struct Program
```

## Topics

### Configuring the program

- [descriptor](realitykit/portalmaterial/program-swift.struct/descriptor-swift.property.md)
- [PortalMaterial.Program.Descriptor](realitykit/portalmaterial/program-swift.struct/descriptor-swift.struct.md)

### Initializers

- [init(descriptor:)](realitykit/portalmaterial/program-swift.struct/init(descriptor:).md)

## Relationships

### Conforms To

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

## See Also

### Specifying the shader program

- [program](realitykit/portalmaterial/program-swift.property.md)
