<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLParallelRenderCommandEncoder/makeRenderCommandEncoder()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(pl)MTLParallelRenderCommandEncoder(im)renderCommandEncoder"
  },
  "title" : "makeRenderCommandEncoder()"
}
-->

# makeRenderCommandEncoder()

Create an object that encodes commands that perform graphics rendering operations and may be assigned to a different thread.

```
func makeRenderCommandEncoder() -> (any MTLRenderCommandEncoder)?
```

## Return Value

A graphics rendering command encoder object

## Discussion

The rendering commands encoded by [`MTLRenderCommandEncoder`](/documentation/Metal/MTLRenderCommandEncoder) objects are executed in the order in which the [`MTLRenderCommandEncoder`](/documentation/Metal/MTLRenderCommandEncoder) objects are created, not in the order they are ended.

## See Also

  [Metal Shading Language Guide](https://developer.apple.com/library/archive/documentation/Metal/Reference/MetalShadingLanguageGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40014364)

  [Metal Programming Guide](https://developer.apple.com/library/archive/documentation/Miscellaneous/Conceptual/MetalProgrammingGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40014221)



---

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)