Contents

pushDebugGroup(_:)

Marks the beginning of a debug group and gives it an identifying label, which temporarily replaces the previous group, if applicable.

Declaration

func pushDebugGroup(_ string: String)

Parameters

  • string:

    A name for the debug group.

Discussion

Use pushDebugGroup(_:) to group commands within the command buffer, which adds a new group to a stack, effectively nesting a group within any previous group. Call popDebugGroup() to mark the end of a group of commands within the command buffer, and restore the previous group, if applicable. You can inspect the group and the commands it contains when viewing the contents of a frame capture with Metal Debugger.

Labels can help you profile and debug your app at runtime with Metal Debugger and other tools. See Naming resources and commands for more information about using labels and other debugging techniques.

See Also

Grouping commands within a GPU frame capture