# ShaderInfo

> Contains the following information about a shader: -If the shader has compilation errors or warnings. -If the shader is supported on the currently selected platform. -The name of the shader.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public struct ShaderInfo
```

## Properties

| Property                                                                             | Description                                                             |
| ------------------------------------------------------------------------------------ | ----------------------------------------------------------------------- |
| [hasErrors](/engine/6000.0/script-reference/unityeditor/shaderinfo/haserrors.md)     | Indicates whether the shader has compilation errors (Read Only).        |
| [hasWarnings](/engine/6000.0/script-reference/unityeditor/shaderinfo/haswarnings.md) | Indicates whether the shader has compilation warnings (Read Only).      |
| [name](/engine/6000.0/script-reference/unityeditor/shaderinfo/name.md)               | The name of the shader (Read Only).                                     |
| [supported](/engine/6000.0/script-reference/unityeditor/shaderinfo/supported.md)     | Indicates whether the current platform supports the shader (Read Only). |
