# Editor.ShaderUpgrade.CompileSurfaceAsync

```csharp
static System.Threading.Tasks.Task<string> CompileSurfaceAsync(string path)
```

The surface compiled with every pass; the first error, or null.

### Parameters

- `path` (`string`)

### Returns

`System.Threading.Tasks.Task<string>`

Declared in [Editor.ShaderUpgrade](/api/Editor.ShaderUpgrade).
Assembly: `Sandbox.Tools`.
