Instance Method

newCounterSampleBufferWithDescriptor:error:

Creates a counter sample buffer.

Required.

Declaration

- (id<MTLCounterSampleBuffer>)newCounterSampleBufferWithDescriptor:(MTLCounterSampleBufferDescriptor *)descriptor error:(NSError * _Nullable *)error;

Parameters

descriptor

A description of the sample buffer to create.

error

On input, a pointer to an error object variable. On output, an error object that describes any error that occurred, or nil if the operation succeeded.

Return Value

A new counter sample buffer.

See Also

Creating Counter Sample Buffers

counterSets

The counter sets supported by the device object.

Required.