<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/LowLevelRenderContextStandalone/makeMaterialResource(descriptor:)-8pruc",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:19RealityCoreRenderer31LowLevelRenderContextStandaloneC20makeMaterialResource10descriptorAA0dejK0CAG10DescriptorV_tYaKF"
  },
  "title" : "makeMaterialResource(descriptor:)"
}
-->

# makeMaterialResource(descriptor:)

Asynchronously compiles a material resource from a geometry modifier, surface shader,
and lighting function.

```
nonisolated(nonsending) final func makeMaterialResource(descriptor: LowLevelMaterialResource.Descriptor) async throws -> sending LowLevelMaterialResource
```

## Parameters

`descriptor`

The geometry modifier, surface shader, and lighting function to compile into a material.

## Return Value

A newly compiled [`LowLevelMaterialResource`](/documentation/RealityKit/LowLevelMaterialResource).

## Discussion> Throws: An error if shader compilation fails.

---

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)