---
title: DestroyFeature(CommandBuffer, FSR2Context)
product: Unity Editor
version: '6000.3'
latest_version: '7000.0'
status: This page documents version 6000.3. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/6000.3/script-reference/unityengine/amd/graphicsdevice/destroyfeature
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/amd/graphicsdevice/destroyfeature.md
last_updated: 2026-12-04
generated_at: 2026-12-04T07:28:14.076Z
locale: en-us
---

# DestroyFeature(CommandBuffer, FSR2Context)

> Destroys a specific FSR2Context created with GraphicsDevice.CreateFeature.

## Definition

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

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

### Parameters

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