Contents

LowLevelMaterialResource.SurfaceShader

A compiled Metal function that implements the surface shader function.

Declaration

final class SurfaceShader

Overview

Create a SurfaceShader by compiling a LowLevelMaterialResource.SurfaceShader.Descriptor with makeSurfaceShader(descriptor:), or use makeSimpleSurfaceShader(descriptor:) for the built-in simple surface shader function.

Topics

Describing the shader

Configuring shader parameters

See Also

Configuring the shaders