Structure

MTLCommonCounter

Names of common counters.

Declaration

struct MTLCommonCounter

Topics

Initializing a Counter

init(rawValue: String)

Creates a counter from a raw value.

Specifying a Counter

static let timestamp: MTLCommonCounter

A counter that holds a timestamp.

static let vertexCycles: MTLCommonCounter

A counter that holds the number of cycles spent in vertex shaders.

static let fragmentCycles: MTLCommonCounter

A counter that holds the number of cycles spent in fragment shaders.

static let tessellationCycles: MTLCommonCounter

A counter that holds the number of cycles spent in the tesselation stage.

static let postTessellationVertexCycles: MTLCommonCounter

A counter that holds the number of cycles spent in post-tessellation vertex shaders.

static let renderTargetWriteCycles: MTLCommonCounter

A counter that holds the number of cycles spent writing data to render targets.

static let totalCycles: MTLCommonCounter

A counter that holds the number of cycles spent in the GPU.

static let vertexInvocations: MTLCommonCounter

A counter that holds the number of vertices processed by the vertex shader.

static let tessellationInputPatches: MTLCommonCounter

A counter that holds the number of tessellation patches sent to the tessellation stage.

static let postTessellationVertexInvocations: MTLCommonCounter

A counter that holds the number of vertices sent to the post-tessellation vertex shader.

static let clipperInvocations: MTLCommonCounter

A counter that holds the number of primitives sent to the clip stage.

static let clipperPrimitivesOut: MTLCommonCounter

A counter that holds the number of primitives generated by the clip stage.

static let fragmentInvocations: MTLCommonCounter

A counter that holds the number of fragments generated by the rasterizer.

static let fragmentsPassed: MTLCommonCounter

A counter that holds the number of fragments that pass the scissor, depth, and stencil tests.

static let computeKernelInvocations: MTLCommonCounter

A counter that holds the number of compute kernel invocations.

Relationships

See Also

Counters and Counter Sets

struct MTLCommonCounterSet

Options for specifying commonly used sets of counters.

Beta
protocol MTLCounterSet

A set of counters to sample.

Beta
protocol MTLCounter

A descriptor for a single counter.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software