# HasKernel(string)

> Checks whether a shader contains a given kernel.

## Definition

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

```csharp
public bool HasKernel(string name)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the kernel to look for.

### Returns

| Type                                                          | Description                                   |
| ------------------------------------------------------------- | --------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the kernel is found, false otherwise. |
