Class

MTLRenderPassColorAttachmentDescriptor

A color render target that serves as the output destination for color pixels generated by a render pass.

Declaration

class MTLRenderPassColorAttachmentDescriptor : MTLRenderPassAttachmentDescriptor

Topics

Specifying Clearing Value

var clearColor: MTLClearColor

The color to use when the color render target is cleared.

Constants

struct MTLClearColor

An RGBA value used for a color pixel.

Functions

func MTLClearColorMake(Double, Double, Double, Double) -> MTLClearColor

Returns a value used to clear a color attachment (in effect, when the loadAction property of MTLRenderPassAttachmentDescriptor is MTLLoadAction.clear).

Relationships

Conforms To

See Also

Specifying the Attachments for a Rendering Pass

Setting Load and Store Actions

Set actions that define how a render pass loads and stores a render target.

var colorAttachments: MTLRenderPassColorAttachmentDescriptorArray

An array of state information for attachments that store color data.

var depthAttachment: MTLRenderPassDepthAttachmentDescriptor!

State information for an attachment that stores depth data.

var stencilAttachment: MTLRenderPassStencilAttachmentDescriptor!

State information for an attachment that stores stencil data.

class MTLRenderPassAttachmentDescriptor

A render target that serves as the output destination for pixels generated by a render pass.

class MTLRenderPassDepthAttachmentDescriptor

A depth render target that serves as the output destination for depth pixels generated by a render pass.

class MTLRenderPassStencilAttachmentDescriptor

A stencil render target that serves as the output destination for stencil pixels generated by a render pass.