# DestroyFeature

> Destroys a specific FSR2Context created with GraphicsDevice.CreateFSRUpscale2.

## Definition

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

## DestroyFeature(CommandBuffer, FSR2Context)

Destroys a specific FSR2Context created with GraphicsDevice.CreateFSRUpscale2.

```csharp
public void DestroyFeature(CommandBuffer cmd, FSR2Context fsrContext)
```

### 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.**** (\[FSR2Context]\(/engine/6000.7/script-reference/unityengine/amd/fsr2context)): The command object to destroy.

## DestroyFeature(CommandBuffer, FSRUpscalerContext)

Destroys a specific FSRUpscalerContext created with GraphicsDevice.CreateFSRUpscale3 or GraphicsDevice.CreateFSRUpscale4.

```csharp
public void DestroyFeature(CommandBuffer cmd, FSRUpscalerContext fsrContext)
```

### 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.**** (\[FSRUpscalerContext]\(/engine/6000.7/script-reference/unityengine/amd/fsrupscalercontext)): The command object to destroy.
