A description of how to create a counter sample buffer.


class MTLCounterSampleBufferDescriptor : NSObject


Specifying the Configuration of a Counter Sample Buffer

var counterSet: MTLCounterSet

The counter set to sample.

var label: String

A label for the counter sample buffer.

var sampleCount: Int

The number of samples that can be stored in the buffer.

var storageMode: MTLStorageMode

The storage mode to use for the sample buffer.


Inherits From

See Also

Sample Buffers

protocol MTLCounterSampleBuffer

An object that stores counter samples.

var MTLCounterDontSample: Int

A value that indicates that you want a sample to be omitted.


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