# SupportsStencil(RenderTexture)

> Does a RenderTexture have stencil buffer?

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static bool SupportsStencil(RenderTexture rt)
```

### Parameters

**** (\[RenderTexture]\(/engine/6000.6/script-reference/unityengine/rendertexture)): Render texture, or null for main screen.

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |

### Remarks

If rt is null, will report the status for the main screen.
