makeMaterialResource(descriptor:)
Asynchronously compiles a material resource from a geometry modifier, surface shader, and lighting function.
Declaration
nonisolated(nonsending) func makeMaterialResource(descriptor: LowLevelMaterialResource.Descriptor) async throws -> sending LowLevelMaterialResourceParameters
- descriptor:
The geometry modifier, surface shader, and lighting function to compile into a material.
Return Value
A newly compiled LowLevelMaterialResource.