Contents

makeSimpleSurfaceShader(descriptor:)

Asynchronously creates a simple surface shader using a built-in tint color or texture implementation, as described by the given descriptor.

Declaration

nonisolated(nonsending) func makeSimpleSurfaceShader(descriptor: LowLevelMaterialResource.SimpleSurfaceDescriptor) async throws -> sending LowLevelMaterialResource.SurfaceShader

Parameters

  • descriptor:

    The combination of tint color, texture, output channel, and opacity flags.

Return Value

A compiled LowLevelMaterialResource.SurfaceShader.

Discussion

See Also

Creating surface shaders