Contents

MTLLogStateDescriptor

An interface that represents a log state configuration.

Declaration

class MTLLogStateDescriptor

Mentioned in

Overview

Configure the descriptor to create an MTLLogState by calling makeLogState(descriptor:).

If you’ve set the environment variables MTL_LOG_BUFFER_SIZE or MTL_LOG_LEVEL, then the system automatically enables logging. If any command buffer or command queue has an attached log state, then the system uses the log state’s settings instead of the environment variable values.

Topics

Instance properties

Log levels

See Also

Shader logging