---
title: "setRenderPipelineState(_:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtl4rendercommandencoder/setrenderpipelinestate(_:)"
---

# setRenderPipelineState(_:)

Configures this encoder with a render pipeline state that applies to your subsequent draw commands.

## Declaration

```swift
func setRenderPipelineState(_ pipelineState: any MTLRenderPipelineState)
```

## Parameters

- `pipelineState`: A non-nil doc://com.apple.metal/documentation/Metal/MTLRenderPipelineState instance.
