# Sandbox.Rendering.CommandList.Draw

```csharp
void Draw(GpuBuffer<T> vertexBuffer, Material material, int startVertex = 0, int vertexCount = 0, RenderAttributes attributes = null, PrimitiveType primitiveType = 5)
```

### Parameters

- `vertexBuffer` (`GpuBuffer<T>`)
- `material` (`Material`)
- `startVertex` (`int`), default `0`
- `vertexCount` (`int`), default `0`
- `attributes` (`RenderAttributes`), default `null`
- `primitiveType` (`PrimitiveType`), default `5`

Declared in [Sandbox.Rendering.CommandList](/api/Sandbox.Rendering.CommandList).
Assembly: `Sandbox.Engine`.
