Contents

MTLCounterSampleBuffer

A specialized memory buffer that stores a GPU’s counter set data.

Declaration

protocol MTLCounterSampleBuffer : NSObjectProtocol

Mentioned in

Overview

Create a counter sample buffer by calling an MTLDevice instance’s makeCounterSampleBuffer(descriptor:) method. See Creating a counter sample buffer to store a GPU’s counter data during a pass.

You can store a GPU device’s counter set data only with an MTLCounterSampleBuffer instance that you create from the same device. See Sampling GPU data into counter sample buffers for information about storing counter sample data in a counter sample buffer.

Topics

Resolving the counter sample buffer’s data

Inspecting the counter sample buffer’s configuration

See Also

Counter sample buffers