Contents

LowLevelMaterialResource.SimpleSurfaceDescriptor

The configuration for a built-in surface shader that applies a tint color, a texture, or both.

Declaration

struct SimpleSurfaceDescriptor

Overview

Pass a SimpleSurfaceDescriptor to makeSimpleSurfaceShader(descriptor:) to compile the corresponding LowLevelMaterialResource.SurfaceShader function.

The compiled function’s argument table contains the buffer and texture requirements for the function. Resolve the parameter mappings using the function’s LowLevelMaterialParameterMapping.

Topics

Creating a surface descriptor

Configuring color sources

Configuring the output

See Also

Describing the material