Instance Method

renderCommandEncoderWithDescriptor:

Creates an object to encode a rendering pass into the command buffer.

Required.

Declaration

- (id<MTLRenderCommandEncoder>)renderCommandEncoderWithDescriptor:(MTLRenderPassDescriptor *)renderPassDescriptor;

Parameters

renderPassDescriptor

A collection of attachments and associated state for the render pass.

Return Value

A graphics rendering command encoder object.

Discussion

A MTLRenderCommandEncoder object provides methods to set up and perform a single graphics rendering pass.

After the command buffer creates this render command encoder, you can’t create other command encoders for this command buffer until you call the endEncoding method of the MTLRenderCommandEncoder object.

See Also

Creating Command Encoders

- parallelRenderCommandEncoderWithDescriptor:

Creates an object that can split the work of encoding commands for a single render pass.

Required.

- computeCommandEncoderWithDispatchType:

Creates an object to encode a compute pass into the command buffer.

Required.

- computeCommandEncoder

Creates an object to encode a sequential compute pass into the command buffer.

Required.

- blitCommandEncoder

Creates an object to encode a block information transfer (blit) pass into the command buffer.

Required.

MTLDispatchType

Constants indicating how the compute command encoder's commands are dispatched.