Contents

retainedReferences

A Boolean value that indicates whether the command buffer maintains strong references to the resources it uses.

Declaration

var retainedReferences: Bool { get }

Discussion

You can configure this property when you create a command buffer by setting retainedReferences of an MTLCommandBufferDescriptor instance and calling the makeCommandBuffer(descriptor:) method. The makeCommandBuffer() method sets this property to true, and makeCommandBufferWithUnretainedReferences() sets it to false.

If false, your app is responsible for maintaining strong references to all the resources the command buffer relies on until it completes.