Contents

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 LowLevelMaterialResource

Parameters

  • descriptor:

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

Return Value

A newly compiled LowLevelMaterialResource.

Discussion

See Also

Creating resources