Contents

logState

Contains information related to shader logging.

Declaration

var logState: (any MTLLogState)? { get set }

Discussion

To enable shader logging, call beginCommandBuffer(allocator:options:) with an instance of MTL4CommandBufferOptions that contains a non-nil MTLLogState instance in this property.

Shader functions log messages until the command buffer ends.