Contents

LowLevelMaterialResource

A compiled material composed of three independently-replaceable shader functions.

Declaration

final class LowLevelMaterialResource

Overview

A LowLevelMaterialResource combines a GeometryModifier shader function, a SurfaceShader function, and a LightingFunction (lighting evaluation). Each function can receive per-draw parameters through its own LowLevelArgumentTable, described by LowLevelArgumentTable.Descriptor.

Create a LowLevelMaterialResource by building a LowLevelMaterialResource.Descriptor from the three shader functions and passing it to makeMaterialResource(descriptor:).

Topics

Describing the material

Configuring the shaders

Reading shader graph output

Instance Properties

See Also

GPU resources