<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTL4CommandBuffer/makeRenderCommandEncoder(descriptor:options:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(pl)MTL4CommandBuffer(im)renderCommandEncoderWithDescriptor:options:"
  },
  "title" : "makeRenderCommandEncoder(descriptor:options:)"
}
-->

# makeRenderCommandEncoder(descriptor:options:)

Creates a render command encoder from a render pass descriptor with additional options.

```
func makeRenderCommandEncoder(descriptor: MTL4RenderPassDescriptor, options: MTL4RenderEncoderOptions = []) -> (any MTL4RenderCommandEncoder)?
```

## Parameters

`descriptor`

Descriptor for the render pass.

`options`

[`MTL4RenderEncoderOptions`](/documentation/Metal/MTL4RenderEncoderOptions) instance that provide render pass options.

## Return Value

The created [`MTL4RenderCommandEncoder`](/documentation/Metal/MTL4RenderCommandEncoder) instance, or `nil` if the function fails.

## Discussion

This method creates a render command encoder to encode a render pass, whilst providing you the option to define
some render pass characteristics via an instance of [`MTL4RenderEncoderOptions`](/documentation/Metal/MTL4RenderEncoderOptions).

Use these options to configure suspending/resuming render command encoders, which allow you to encode render passes
from multiple threads simultaneously.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)