Instance Method

makeCounterSampleBuffer(descriptor:)

Creates a counter sample buffer.

Required.

Declaration

func makeCounterSampleBuffer(descriptor: MTLCounterSampleBufferDescriptor) throws -> MTLCounterSampleBuffer

Parameters

descriptor

A description of the sample buffer to create.

Return Value

A new counter sample buffer.

See Also

Creating Counter Sample Buffers

var counterSets: [MTLCounterSet]?

The counter sets supported by the device object.

Required.