Contents

MTLCounterDontSample

A sentinel value that instructs an encoder to skip sampling a counter as the GPU runs the encoder’s pass.

Declaration

var MTLCounterDontSample: Int { get }

Mentioned in

Discussion

You can skip sampling at specific stages by assigning this sentinel value to the following properties instead of an offset to a counter sample buffer:

Types

Properties

Mtlrenderpasssamplebufferattachmentdescriptor

Startofvertexsampleindex [Image] Endofvertexsampleindex [Image] Startoffragmentsampleindex [Image] Endoffragmentsampleindex

Mtlcomputepasssamplebufferattachmentdescriptor

Startofencodersampleindex [Image] Endofencodersampleindex

Mtlblitpasssamplebufferattachmentdescriptor

Startofencodersampleindex [Image] Endofencodersampleindex

Mtlresourcestatepasssamplebufferattachmentdescriptor

Startofencodersampleindex [Image] Endofencodersampleindex

Mtlaccelerationstructurepasssamplebufferattachmentdescriptor

Startofencodersampleindex [Image] Endofencodersampleindex

See Also

Counter sample buffers