# FSR2CommandInitializationData

> Represents the initialization state of a FSR2Context. You can only use and set this when calling GraphicsDevice.CreateFSRUpscale2.

## Definition

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

```csharp
public struct FSR2CommandInitializationData
```

## Fields

| Value                                                                                                                       | Description                                                                  |
| --------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| [displaySizeHeight](/engine/6000.7/script-reference/unityengine/amd/fsr2commandinitializationdata/displaysizeheight.md)     | The height of the presentation resolution targeted by the upscaling process. |
| [displaySizeWidth](/engine/6000.7/script-reference/unityengine/amd/fsr2commandinitializationdata/displaysizewidth.md)       | The width of the presentation resolution targeted by the upscaling process.  |
| [ffxFsrFlags](/engine/6000.7/script-reference/unityengine/amd/fsr2commandinitializationdata/ffxfsrflags.md)                 | Initialization flags.                                                        |
| [maxRenderSizeHeight](/engine/6000.7/script-reference/unityengine/amd/fsr2commandinitializationdata/maxrendersizeheight.md) | The maximum height that rendering will be performed at.                      |
| [maxRenderSizeWidth](/engine/6000.7/script-reference/unityengine/amd/fsr2commandinitializationdata/maxrendersizewidth.md)   | The maximum width that rendering will be performed at.                       |

## Methods

| Method                                                                                              | Description                                                                                                                                                                                        |
| --------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [GetFlag](/engine/6000.7/script-reference/unityengine/amd/fsr2commandinitializationdata/getflag.md) | Helper function. Identifies whether an initialization flag is set or unset. See Also: [FfxFsr2InitializationFlags](/engine/6000.7/script-reference/unityengine/amd/ffxfsr2initializationflags.md). |
| [SetFlag](/engine/6000.7/script-reference/unityengine/amd/fsr2commandinitializationdata/setflag.md) | Helper function. Controls the initialization feature flags set. See Also: [FfxFsr2InitializationFlags](/engine/6000.7/script-reference/unityengine/amd/ffxfsr2initializationflags.md).             |
