Contents

LowLevelMaterialParameterMapping

A mapping of named buffer and texture parameters to binding indices for a compiled shader function.

Declaration

struct LowLevelMaterialParameterMapping

Overview

Use bufferLocation(named:), constantLocation(named:), and textureLocation(named:) to look up the binding index for a named parameter, then bind a resource to that slot with setBufferSlice(_:at:) or setTexture(_:at:).

Topics

Accessing parameter mappings

Locating parameters

See Also

Pipeline and render targets