---
title: DestroyFeature(CommandBuffer, DLSSContext)
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/nvidia/graphicsdevice/destroyfeature
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/nvidia/graphicsdevice/destroyfeature.md
last_updated: 2026-10-07
generated_at: 2026-11-10T19:29:57.235Z
locale: en-us
---

# DestroyFeature(CommandBuffer, DLSSContext)

> Destroys a specific feature created with GraphicsDevice.CreateFeature.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.NVIDIA](/engine/7000.0/script-reference/unityengine/nvidia.md)
* **Assembly:** UnityEngine.NVIDIAModule

```csharp
public void DestroyFeature(CommandBuffer cmd, DLSSContext dlssContext)
```

### 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.**** (\[DLSSContext]\(/engine/7000.0/script-reference/unityengine/nvidia/dlsscontext)): The command object to destroy.
