<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/PortalMaterial/Program-swift.struct/descriptor-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation14PortalMaterialV7ProgramV10descriptorAE10DescriptorVvp"
  },
  "title" : "descriptor"
}
-->

# descriptor

The descriptor that produced this program.

```
var descriptor: PortalMaterial.Program.Descriptor { get }
```

## Discussion

Use this property to inspect the shader graph and the input or
function-constant values that were used to compile the program — for
example, to enumerate the input names a parent material can set, or
to construct a fresh descriptor with adjusted constants and recompile.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)