# CreateFSRUpscale2(CommandBuffer, in FSR2CommandInitializationData)

> Creates a FSR2 context.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.AMD](/engine/6000.7/script-reference/unityengine/amd.md)
* **Assembly:** UnityEngine.AMDModule

## CreateFSRUpscale2(CommandBuffer, FSR2CommandInitializationData)

```csharp
public FSR2Context CreateFSRUpscale2(CommandBuffer cmd, in FSR2CommandInitializationData initSettings)
```

### Parameters

**** (\[CommandBuffer]\(/engine/6000.7/script-reference/unityengine/rendering/commandbuffer)): The rendering command buffer to record commands into. This call does not execute the command buffer. You must execute the command buffer yourself at any time after this call.**** (\[FSR2CommandInitializationData]\(/engine/6000.7/script-reference/unityengine/amd/fsr2commandinitializationdata)): A set of initialization settings for FSR2. If you want to change some options in it, then you need to create a new context.

### Returns

| Type                                                                          | Description     |
| ----------------------------------------------------------------------------- | --------------- |
| [FSR2Context](/engine/6000.7/script-reference/unityengine/amd/fsr2context.md) | A FSR2 context. |
