Contents

Render passes

Encode a render pass to draw graphics into an image.

Overview

A render pass processes and rasterizes geometry to one or more output attachments using a render pipeline.

Render passes consist of:

  • A set of input resources, such as buffers and textures

  • A render pipeline that configures the GPU that does work with the input resources

  • Draw commands

  • Vertex shaders, the GPU core functions that process and transform a scene’s geometry

  • An optional tessellation stage that adds fine details to a scene’s geometry

  • Fragment shaders, the GPU core functions that produce the final color values for each pixel

  • Optional outputs that can include color, depth, and stencil attachments, and their load and store operations

See the Customizing render pass setup sample for implementation details.

Topics

Encoding a render pass

Encoding a render pass in parallel

Configuring a render command encoder

Render pipeline states

Dynamic render pipeline states

Render pass inputs

Render pass outputs

Depth testing

Rasterization settings

Optimizing techniques

Advanced multisampling

Applying rendering techniques

See Also

Command encoders