---
title: CreateFSRUpscale2(CommandBuffer, in FSR2CommandInitializationData)
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/amd/graphicsdevice/createfsrupscale2
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/amd/graphicsdevice/createfsrupscale2.md
last_updated: 2026-10-07
generated_at: 2026-11-11T17:30:44.278Z
locale: en-us
---

# CreateFSRUpscale2(CommandBuffer, in FSR2CommandInitializationData)

> Creates a FSR2 context.

## Definition

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

## CreateFSRUpscale2(CommandBuffer, FSR2CommandInitializationData)

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

### Parameters

**** (\[CommandBuffer]\(/engine/7000.0/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/7000.0/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/7000.0/script-reference/unityengine/amd/fsr2context.md) | A FSR2 context. |
