# CreateFeature(CommandBuffer, in FSR2CommandInitializationData)

> Creates an FSR2Context object.

## Definition

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

## CreateFeature(CommandBuffer, FSR2CommandInitializationData)

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

### Parameters

**** (\[CommandBuffer]\(/engine/6000.6/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.6/script-reference/unityengine/amd/fsr2commandinitializationdata)): Initial settings structure for the FSR2 feature.

### Returns

| Type                                                                          | Description                                                |
| ----------------------------------------------------------------------------- | ---------------------------------------------------------- |
| [FSR2Context](/engine/6000.6/script-reference/unityengine/amd/fsr2context.md) | Returns a Fidelity FX Super Resolution 2.0 context object. |
